configure 449 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='GCC Quad-precision Math Library'
  539. PACKAGE_TARNAME='libquadmath'
  540. PACKAGE_VERSION='0.1'
  541. PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. get_gcc_base_ver
  584. GENINSRC_FALSE
  585. GENINSRC_TRUE
  586. XCFLAGS
  587. BUILD_LIBQUADMATH_FALSE
  588. BUILD_LIBQUADMATH_TRUE
  589. LIBQUAD_USE_SYMVER_SUN_FALSE
  590. LIBQUAD_USE_SYMVER_SUN_TRUE
  591. LIBQUAD_USE_SYMVER_GNU_FALSE
  592. LIBQUAD_USE_SYMVER_GNU_TRUE
  593. LIBQUAD_USE_SYMVER_FALSE
  594. LIBQUAD_USE_SYMVER_TRUE
  595. toolexeclibdir
  596. toolexecdir
  597. MAINT
  598. MAINTAINER_MODE_FALSE
  599. MAINTAINER_MODE_TRUE
  600. enable_static
  601. enable_shared
  602. lt_host_flags
  603. OTOOL64
  604. OTOOL
  605. LIPO
  606. NMEDIT
  607. DSYMUTIL
  608. RANLIB
  609. AR
  610. OBJDUMP
  611. LN_S
  612. NM
  613. ac_ct_DUMPBIN
  614. DUMPBIN
  615. LD
  616. FGREP
  617. SED
  618. LIBTOOL
  619. REPORT_BUGS_TEXI
  620. REPORT_BUGS_TO
  621. BUILD_INFO_FALSE
  622. BUILD_INFO_TRUE
  623. EGREP
  624. GREP
  625. CPP
  626. am__fastdepCC_FALSE
  627. am__fastdepCC_TRUE
  628. CCDEPMODE
  629. am__nodep
  630. AMDEPBACKSLASH
  631. AMDEP_FALSE
  632. AMDEP_TRUE
  633. am__quote
  634. am__include
  635. DEPDIR
  636. OBJEXT
  637. EXEEXT
  638. ac_ct_CC
  639. CPPFLAGS
  640. LDFLAGS
  641. CFLAGS
  642. CC
  643. AM_BACKSLASH
  644. AM_DEFAULT_VERBOSITY
  645. AM_DEFAULT_V
  646. AM_V
  647. am__untar
  648. am__tar
  649. AMTAR
  650. am__leading_dot
  651. SET_MAKE
  652. AWK
  653. mkdir_p
  654. MKDIR_P
  655. INSTALL_STRIP_PROGRAM
  656. STRIP
  657. install_sh
  658. MAKEINFO
  659. AUTOHEADER
  660. AUTOMAKE
  661. AUTOCONF
  662. ACLOCAL
  663. VERSION
  664. PACKAGE
  665. CYGPATH_W
  666. am__isrc
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. multi_basedir
  671. target_noncanonical
  672. target_os
  673. target_vendor
  674. target_cpu
  675. target
  676. host_os
  677. host_vendor
  678. host_cpu
  679. host
  680. build_os
  681. build_vendor
  682. build_cpu
  683. build
  684. target_alias
  685. host_alias
  686. build_alias
  687. LIBS
  688. ECHO_T
  689. ECHO_N
  690. ECHO_C
  691. DEFS
  692. mandir
  693. localedir
  694. libdir
  695. psdir
  696. pdfdir
  697. dvidir
  698. htmldir
  699. infodir
  700. docdir
  701. oldincludedir
  702. includedir
  703. localstatedir
  704. sharedstatedir
  705. sysconfdir
  706. datadir
  707. datarootdir
  708. libexecdir
  709. sbindir
  710. bindir
  711. program_transform_name
  712. prefix
  713. exec_prefix
  714. PACKAGE_URL
  715. PACKAGE_BUGREPORT
  716. PACKAGE_STRING
  717. PACKAGE_VERSION
  718. PACKAGE_TARNAME
  719. PACKAGE_NAME
  720. PATH_SEPARATOR
  721. SHELL'
  722. ac_subst_files=''
  723. ac_user_opts='
  724. enable_option_checking
  725. enable_multilib
  726. enable_silent_rules
  727. enable_version_specific_runtime_libs
  728. enable_dependency_tracking
  729. with_bugurl
  730. enable_shared
  731. enable_static
  732. with_pic
  733. enable_fast_install
  734. with_gnu_ld
  735. enable_libtool_lock
  736. enable_maintainer_mode
  737. with_toolexeclibdir
  738. enable_symvers
  739. enable_cet
  740. enable_generated_files_in_srcdir
  741. with_gcc_major_version_only
  742. '
  743. ac_precious_vars='build_alias
  744. host_alias
  745. target_alias
  746. CC
  747. CFLAGS
  748. LDFLAGS
  749. LIBS
  750. CPPFLAGS
  751. CPP'
  752. # Initialize some variables set by options.
  753. ac_init_help=
  754. ac_init_version=false
  755. ac_unrecognized_opts=
  756. ac_unrecognized_sep=
  757. # The variables have the same names as the options, with
  758. # dashes changed to underlines.
  759. cache_file=/dev/null
  760. exec_prefix=NONE
  761. no_create=
  762. no_recursion=
  763. prefix=NONE
  764. program_prefix=NONE
  765. program_suffix=NONE
  766. program_transform_name=s,x,x,
  767. silent=
  768. site=
  769. srcdir=
  770. verbose=
  771. x_includes=NONE
  772. x_libraries=NONE
  773. # Installation directory options.
  774. # These are left unexpanded so users can "make install exec_prefix=/foo"
  775. # and all the variables that are supposed to be based on exec_prefix
  776. # by default will actually change.
  777. # Use braces instead of parens because sh, perl, etc. also accept them.
  778. # (The list follows the same order as the GNU Coding Standards.)
  779. bindir='${exec_prefix}/bin'
  780. sbindir='${exec_prefix}/sbin'
  781. libexecdir='${exec_prefix}/libexec'
  782. datarootdir='${prefix}/share'
  783. datadir='${datarootdir}'
  784. sysconfdir='${prefix}/etc'
  785. sharedstatedir='${prefix}/com'
  786. localstatedir='${prefix}/var'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  790. infodir='${datarootdir}/info'
  791. htmldir='${docdir}'
  792. dvidir='${docdir}'
  793. pdfdir='${docdir}'
  794. psdir='${docdir}'
  795. libdir='${exec_prefix}/lib'
  796. localedir='${datarootdir}/locale'
  797. mandir='${datarootdir}/man'
  798. ac_prev=
  799. ac_dashdash=
  800. for ac_option
  801. do
  802. # If the previous option needs an argument, assign it.
  803. if test -n "$ac_prev"; then
  804. eval $ac_prev=\$ac_option
  805. ac_prev=
  806. continue
  807. fi
  808. case $ac_option in
  809. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  810. *=) ac_optarg= ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error $? "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=no ;;
  858. -docdir | --docdir | --docdi | --doc | --do)
  859. ac_prev=docdir ;;
  860. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  861. docdir=$ac_optarg ;;
  862. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  863. ac_prev=dvidir ;;
  864. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  865. dvidir=$ac_optarg ;;
  866. -enable-* | --enable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: $ac_useropt"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=\$ac_optarg ;;
  881. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  882. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  883. | --exec | --exe | --ex)
  884. ac_prev=exec_prefix ;;
  885. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  886. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  887. | --exec=* | --exe=* | --ex=*)
  888. exec_prefix=$ac_optarg ;;
  889. -gas | --gas | --ga | --g)
  890. # Obsolete; use --with-gas.
  891. with_gas=yes ;;
  892. -help | --help | --hel | --he | -h)
  893. ac_init_help=long ;;
  894. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  895. ac_init_help=recursive ;;
  896. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  897. ac_init_help=short ;;
  898. -host | --host | --hos | --ho)
  899. ac_prev=host_alias ;;
  900. -host=* | --host=* | --hos=* | --ho=*)
  901. host_alias=$ac_optarg ;;
  902. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  903. ac_prev=htmldir ;;
  904. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  905. | --ht=*)
  906. htmldir=$ac_optarg ;;
  907. -includedir | --includedir | --includedi | --included | --include \
  908. | --includ | --inclu | --incl | --inc)
  909. ac_prev=includedir ;;
  910. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  911. | --includ=* | --inclu=* | --incl=* | --inc=*)
  912. includedir=$ac_optarg ;;
  913. -infodir | --infodir | --infodi | --infod | --info | --inf)
  914. ac_prev=infodir ;;
  915. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  916. infodir=$ac_optarg ;;
  917. -libdir | --libdir | --libdi | --libd)
  918. ac_prev=libdir ;;
  919. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  920. libdir=$ac_optarg ;;
  921. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  922. | --libexe | --libex | --libe)
  923. ac_prev=libexecdir ;;
  924. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  925. | --libexe=* | --libex=* | --libe=*)
  926. libexecdir=$ac_optarg ;;
  927. -localedir | --localedir | --localedi | --localed | --locale)
  928. ac_prev=localedir ;;
  929. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  930. localedir=$ac_optarg ;;
  931. -localstatedir | --localstatedir | --localstatedi | --localstated \
  932. | --localstate | --localstat | --localsta | --localst | --locals)
  933. ac_prev=localstatedir ;;
  934. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  935. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  936. localstatedir=$ac_optarg ;;
  937. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  938. ac_prev=mandir ;;
  939. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  940. mandir=$ac_optarg ;;
  941. -nfp | --nfp | --nf)
  942. # Obsolete; use --without-fp.
  943. with_fp=no ;;
  944. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  945. | --no-cr | --no-c | -n)
  946. no_create=yes ;;
  947. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  948. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  949. no_recursion=yes ;;
  950. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  951. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  952. | --oldin | --oldi | --old | --ol | --o)
  953. ac_prev=oldincludedir ;;
  954. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  955. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  956. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  957. oldincludedir=$ac_optarg ;;
  958. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  959. ac_prev=prefix ;;
  960. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  961. prefix=$ac_optarg ;;
  962. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  963. | --program-pre | --program-pr | --program-p)
  964. ac_prev=program_prefix ;;
  965. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  966. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  967. program_prefix=$ac_optarg ;;
  968. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  969. | --program-suf | --program-su | --program-s)
  970. ac_prev=program_suffix ;;
  971. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  972. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  973. program_suffix=$ac_optarg ;;
  974. -program-transform-name | --program-transform-name \
  975. | --program-transform-nam | --program-transform-na \
  976. | --program-transform-n | --program-transform- \
  977. | --program-transform | --program-transfor \
  978. | --program-transfo | --program-transf \
  979. | --program-trans | --program-tran \
  980. | --progr-tra | --program-tr | --program-t)
  981. ac_prev=program_transform_name ;;
  982. -program-transform-name=* | --program-transform-name=* \
  983. | --program-transform-nam=* | --program-transform-na=* \
  984. | --program-transform-n=* | --program-transform-=* \
  985. | --program-transform=* | --program-transfor=* \
  986. | --program-transfo=* | --program-transf=* \
  987. | --program-trans=* | --program-tran=* \
  988. | --progr-tra=* | --program-tr=* | --program-t=*)
  989. program_transform_name=$ac_optarg ;;
  990. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  991. ac_prev=pdfdir ;;
  992. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  993. pdfdir=$ac_optarg ;;
  994. -psdir | --psdir | --psdi | --psd | --ps)
  995. ac_prev=psdir ;;
  996. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  997. psdir=$ac_optarg ;;
  998. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  999. | -silent | --silent | --silen | --sile | --sil)
  1000. silent=yes ;;
  1001. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1002. ac_prev=sbindir ;;
  1003. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1004. | --sbi=* | --sb=*)
  1005. sbindir=$ac_optarg ;;
  1006. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1007. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1008. | --sharedst | --shareds | --shared | --share | --shar \
  1009. | --sha | --sh)
  1010. ac_prev=sharedstatedir ;;
  1011. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1012. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1013. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1014. | --sha=* | --sh=*)
  1015. sharedstatedir=$ac_optarg ;;
  1016. -site | --site | --sit)
  1017. ac_prev=site ;;
  1018. -site=* | --site=* | --sit=*)
  1019. site=$ac_optarg ;;
  1020. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1021. ac_prev=srcdir ;;
  1022. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1023. srcdir=$ac_optarg ;;
  1024. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1025. | --syscon | --sysco | --sysc | --sys | --sy)
  1026. ac_prev=sysconfdir ;;
  1027. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1028. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1029. sysconfdir=$ac_optarg ;;
  1030. -target | --target | --targe | --targ | --tar | --ta | --t)
  1031. ac_prev=target_alias ;;
  1032. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1033. target_alias=$ac_optarg ;;
  1034. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1035. verbose=yes ;;
  1036. -version | --version | --versio | --versi | --vers | -V)
  1037. ac_init_version=: ;;
  1038. -with-* | --with-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=\$ac_optarg ;;
  1053. -without-* | --without-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid package name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "with_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval with_$ac_useropt=no ;;
  1068. --x)
  1069. # Obsolete; use --with-x.
  1070. with_x=yes ;;
  1071. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1072. | --x-incl | --x-inc | --x-in | --x-i)
  1073. ac_prev=x_includes ;;
  1074. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1075. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1076. x_includes=$ac_optarg ;;
  1077. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1078. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1079. ac_prev=x_libraries ;;
  1080. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1081. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1082. x_libraries=$ac_optarg ;;
  1083. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1084. Try \`$0 --help' for more information"
  1085. ;;
  1086. *=*)
  1087. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1088. # Reject names that are not valid shell variable names.
  1089. case $ac_envvar in #(
  1090. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1091. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1092. esac
  1093. eval $ac_envvar=\$ac_optarg
  1094. export $ac_envvar ;;
  1095. *)
  1096. # FIXME: should be removed in autoconf 3.0.
  1097. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1098. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1099. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1100. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1101. ;;
  1102. esac
  1103. done
  1104. if test -n "$ac_prev"; then
  1105. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1106. as_fn_error $? "missing argument to $ac_option"
  1107. fi
  1108. if test -n "$ac_unrecognized_opts"; then
  1109. case $enable_option_checking in
  1110. no) ;;
  1111. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1112. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1113. esac
  1114. fi
  1115. # Check all directory arguments for consistency.
  1116. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1117. datadir sysconfdir sharedstatedir localstatedir includedir \
  1118. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1119. libdir localedir mandir
  1120. do
  1121. eval ac_val=\$$ac_var
  1122. # Remove trailing slashes.
  1123. case $ac_val in
  1124. */ )
  1125. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1126. eval $ac_var=\$ac_val;;
  1127. esac
  1128. # Be sure to have absolute directory names.
  1129. case $ac_val in
  1130. [\\/$]* | ?:[\\/]* ) continue;;
  1131. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1132. esac
  1133. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1134. done
  1135. # There might be people who depend on the old broken behavior: `$host'
  1136. # used to hold the argument of --host etc.
  1137. # FIXME: To remove some day.
  1138. build=$build_alias
  1139. host=$host_alias
  1140. target=$target_alias
  1141. # FIXME: To remove some day.
  1142. if test "x$host_alias" != x; then
  1143. if test "x$build_alias" = x; then
  1144. cross_compiling=maybe
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. as_fn_error $? "working directory cannot be determined"
  1156. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1157. as_fn_error $? "pwd does not report name of working directory"
  1158. # Find the source files, if location was not specified.
  1159. if test -z "$srcdir"; then
  1160. ac_srcdir_defaulted=yes
  1161. # Try the directory containing this script, then the parent directory.
  1162. ac_confdir=`$as_dirname -- "$as_myself" ||
  1163. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1164. X"$as_myself" : 'X\(//\)[^/]' \| \
  1165. X"$as_myself" : 'X\(//\)$' \| \
  1166. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1167. $as_echo X"$as_myself" |
  1168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\/\)[^/].*/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\/\)$/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\).*/{
  1181. s//\1/
  1182. q
  1183. }
  1184. s/.*/./; q'`
  1185. srcdir=$ac_confdir
  1186. if test ! -r "$srcdir/$ac_unique_file"; then
  1187. srcdir=..
  1188. fi
  1189. else
  1190. ac_srcdir_defaulted=no
  1191. fi
  1192. if test ! -r "$srcdir/$ac_unique_file"; then
  1193. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1194. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1195. fi
  1196. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1197. ac_abs_confdir=`(
  1198. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1199. pwd)`
  1200. # When building in place, set srcdir=.
  1201. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1202. srcdir=.
  1203. fi
  1204. # Remove unnecessary trailing slashes from srcdir.
  1205. # Double slashes in file names in object file debugging info
  1206. # mess up M-x gdb in Emacs.
  1207. case $srcdir in
  1208. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1209. esac
  1210. for ac_var in $ac_precious_vars; do
  1211. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1212. eval ac_env_${ac_var}_value=\$${ac_var}
  1213. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1214. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1215. done
  1216. #
  1217. # Report the --help message.
  1218. #
  1219. if test "$ac_init_help" = "long"; then
  1220. # Omit some internal or obsolete options to make the list less imposing.
  1221. # This message is too long to be a string in the A/UX 3.1 sh.
  1222. cat <<_ACEOF
  1223. \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
  1224. Usage: $0 [OPTION]... [VAR=VALUE]...
  1225. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1226. VAR=VALUE. See below for descriptions of some of the useful variables.
  1227. Defaults for the options are specified in brackets.
  1228. Configuration:
  1229. -h, --help display this help and exit
  1230. --help=short display options specific to this package
  1231. --help=recursive display the short help of all the included packages
  1232. -V, --version display version information and exit
  1233. -q, --quiet, --silent do not print \`checking ...' messages
  1234. --cache-file=FILE cache test results in FILE [disabled]
  1235. -C, --config-cache alias for \`--cache-file=config.cache'
  1236. -n, --no-create do not create output files
  1237. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1238. Installation directories:
  1239. --prefix=PREFIX install architecture-independent files in PREFIX
  1240. [$ac_default_prefix]
  1241. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1242. [PREFIX]
  1243. By default, \`make install' will install all the files in
  1244. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1245. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1246. for instance \`--prefix=\$HOME'.
  1247. For better control, use the options below.
  1248. Fine tuning of the installation directories:
  1249. --bindir=DIR user executables [EPREFIX/bin]
  1250. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1251. --libexecdir=DIR program executables [EPREFIX/libexec]
  1252. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1253. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1254. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1255. --libdir=DIR object code libraries [EPREFIX/lib]
  1256. --includedir=DIR C header files [PREFIX/include]
  1257. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1258. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1259. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1260. --infodir=DIR info documentation [DATAROOTDIR/info]
  1261. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1262. --mandir=DIR man documentation [DATAROOTDIR/man]
  1263. --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
  1264. --htmldir=DIR html documentation [DOCDIR]
  1265. --dvidir=DIR dvi documentation [DOCDIR]
  1266. --pdfdir=DIR pdf documentation [DOCDIR]
  1267. --psdir=DIR ps documentation [DOCDIR]
  1268. _ACEOF
  1269. cat <<\_ACEOF
  1270. Program names:
  1271. --program-prefix=PREFIX prepend PREFIX to installed program names
  1272. --program-suffix=SUFFIX append SUFFIX to installed program names
  1273. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1274. System types:
  1275. --build=BUILD configure for building on BUILD [guessed]
  1276. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1277. --target=TARGET configure for building compilers for TARGET [HOST]
  1278. _ACEOF
  1279. fi
  1280. if test -n "$ac_init_help"; then
  1281. case $ac_init_help in
  1282. short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
  1283. esac
  1284. cat <<\_ACEOF
  1285. Optional Features:
  1286. --disable-option-checking ignore unrecognized --enable/--with options
  1287. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1288. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1289. --enable-multilib build many library versions (default)
  1290. --enable-silent-rules less verbose build output (undo: "make V=1")
  1291. --disable-silent-rules verbose build output (undo: "make V=0")
  1292. --enable-version-specific-runtime-libs
  1293. specify that runtime libraries should be installed
  1294. in a compiler-specific directory
  1295. --enable-dependency-tracking
  1296. do not reject slow dependency extractors
  1297. --disable-dependency-tracking
  1298. speeds up one-time build
  1299. --enable-shared[=PKGS] build shared libraries [default=yes]
  1300. --enable-static[=PKGS] build static libraries [default=yes]
  1301. --enable-fast-install[=PKGS]
  1302. optimize for fast installation [default=yes]
  1303. --disable-libtool-lock avoid locking (might break parallel builds)
  1304. --enable-maintainer-mode
  1305. enable make rules and dependencies not useful (and
  1306. sometimes confusing) to the casual installer
  1307. --disable-symvers disable symbol versioning for libquadmath
  1308. --enable-cet enable Intel CET in target libraries [default=auto]
  1309. --enable-generated-files-in-srcdir
  1310. put copies of generated files in source dir intended
  1311. for creating source tarballs for users without
  1312. texinfo bison or flex
  1313. Optional Packages:
  1314. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1315. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1316. --with-bugurl=URL Direct users to URL to report a bug
  1317. --with-pic try to use only PIC/non-PIC objects [default=use
  1318. both]
  1319. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1320. --with-toolexeclibdir=DIR
  1321. install libraries built with a cross compiler within
  1322. DIR
  1323. --with-gcc-major-version-only
  1324. use only GCC major number in filesystem paths
  1325. Some influential environment variables:
  1326. CC C compiler command
  1327. CFLAGS C compiler flags
  1328. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1329. nonstandard directory <lib dir>
  1330. LIBS libraries to pass to the linker, e.g. -l<library>
  1331. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1332. you have headers in a nonstandard directory <include dir>
  1333. CPP C preprocessor
  1334. Use these variables to override the choices made by `configure' or to help
  1335. it to find libraries and programs with nonstandard names/locations.
  1336. Report bugs to the package provider.
  1337. _ACEOF
  1338. ac_status=$?
  1339. fi
  1340. if test "$ac_init_help" = "recursive"; then
  1341. # If there are subdirs, report their specific --help.
  1342. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1343. test -d "$ac_dir" ||
  1344. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1345. continue
  1346. ac_builddir=.
  1347. case "$ac_dir" in
  1348. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *)
  1350. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1351. # A ".." for each directory in $ac_dir_suffix.
  1352. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1353. case $ac_top_builddir_sub in
  1354. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1355. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1356. esac ;;
  1357. esac
  1358. ac_abs_top_builddir=$ac_pwd
  1359. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1360. # for backward compatibility:
  1361. ac_top_builddir=$ac_top_build_prefix
  1362. case $srcdir in
  1363. .) # We are building in place.
  1364. ac_srcdir=.
  1365. ac_top_srcdir=$ac_top_builddir_sub
  1366. ac_abs_top_srcdir=$ac_pwd ;;
  1367. [\\/]* | ?:[\\/]* ) # Absolute name.
  1368. ac_srcdir=$srcdir$ac_dir_suffix;
  1369. ac_top_srcdir=$srcdir
  1370. ac_abs_top_srcdir=$srcdir ;;
  1371. *) # Relative name.
  1372. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1373. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1374. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1375. esac
  1376. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1377. cd "$ac_dir" || { ac_status=$?; continue; }
  1378. # Check for guested configure.
  1379. if test -f "$ac_srcdir/configure.gnu"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1382. elif test -f "$ac_srcdir/configure"; then
  1383. echo &&
  1384. $SHELL "$ac_srcdir/configure" --help=recursive
  1385. else
  1386. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1387. fi || ac_status=$?
  1388. cd "$ac_pwd" || { ac_status=$?; break; }
  1389. done
  1390. fi
  1391. test -n "$ac_init_help" && exit $ac_status
  1392. if $ac_init_version; then
  1393. cat <<\_ACEOF
  1394. GCC Quad-precision Math Library configure 0.1
  1395. generated by GNU Autoconf 2.69
  1396. Copyright (C) 2012 Free Software Foundation, Inc.
  1397. This configure script is free software; the Free Software Foundation
  1398. gives unlimited permission to copy, distribute and modify it.
  1399. _ACEOF
  1400. exit
  1401. fi
  1402. ## ------------------------ ##
  1403. ## Autoconf initialization. ##
  1404. ## ------------------------ ##
  1405. # ac_fn_c_try_compile LINENO
  1406. # --------------------------
  1407. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1408. ac_fn_c_try_compile ()
  1409. {
  1410. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1411. rm -f conftest.$ac_objext
  1412. if { { ac_try="$ac_compile"
  1413. case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_compile") 2>conftest.err
  1420. ac_status=$?
  1421. if test -s conftest.err; then
  1422. grep -v '^ *+' conftest.err >conftest.er1
  1423. cat conftest.er1 >&5
  1424. mv -f conftest.er1 conftest.err
  1425. fi
  1426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1427. test $ac_status = 0; } && {
  1428. test -z "$ac_c_werror_flag" ||
  1429. test ! -s conftest.err
  1430. } && test -s conftest.$ac_objext; then :
  1431. ac_retval=0
  1432. else
  1433. $as_echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. ac_retval=1
  1436. fi
  1437. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1438. as_fn_set_status $ac_retval
  1439. } # ac_fn_c_try_compile
  1440. # ac_fn_c_try_cpp LINENO
  1441. # ----------------------
  1442. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1443. ac_fn_c_try_cpp ()
  1444. {
  1445. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1446. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1447. case "(($ac_try" in
  1448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1449. *) ac_try_echo=$ac_try;;
  1450. esac
  1451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1452. $as_echo "$ac_try_echo"; } >&5
  1453. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1454. ac_status=$?
  1455. if test -s conftest.err; then
  1456. grep -v '^ *+' conftest.err >conftest.er1
  1457. cat conftest.er1 >&5
  1458. mv -f conftest.er1 conftest.err
  1459. fi
  1460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1461. test $ac_status = 0; } > conftest.i && {
  1462. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1463. test ! -s conftest.err
  1464. }; then :
  1465. ac_retval=0
  1466. else
  1467. $as_echo "$as_me: failed program was:" >&5
  1468. sed 's/^/| /' conftest.$ac_ext >&5
  1469. ac_retval=1
  1470. fi
  1471. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1472. as_fn_set_status $ac_retval
  1473. } # ac_fn_c_try_cpp
  1474. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1475. # -------------------------------------------------------
  1476. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1477. # the include files in INCLUDES and setting the cache variable VAR
  1478. # accordingly.
  1479. ac_fn_c_check_header_mongrel ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. if eval \${$3+:} false; then :
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1484. $as_echo_n "checking for $2... " >&6; }
  1485. if eval \${$3+:} false; then :
  1486. $as_echo_n "(cached) " >&6
  1487. fi
  1488. eval ac_res=\$$3
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1490. $as_echo "$ac_res" >&6; }
  1491. else
  1492. # Is the header compilable?
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1494. $as_echo_n "checking $2 usability... " >&6; }
  1495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1496. /* end confdefs.h. */
  1497. $4
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_compile "$LINENO"; then :
  1501. ac_header_compiler=yes
  1502. else
  1503. ac_header_compiler=no
  1504. fi
  1505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1507. $as_echo "$ac_header_compiler" >&6; }
  1508. # Is the header present?
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1510. $as_echo_n "checking $2 presence... " >&6; }
  1511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1512. /* end confdefs.h. */
  1513. #include <$2>
  1514. _ACEOF
  1515. if ac_fn_c_try_cpp "$LINENO"; then :
  1516. ac_header_preproc=yes
  1517. else
  1518. ac_header_preproc=no
  1519. fi
  1520. rm -f conftest.err conftest.i conftest.$ac_ext
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1522. $as_echo "$ac_header_preproc" >&6; }
  1523. # So? What about this header?
  1524. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1525. yes:no: )
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1527. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1529. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1530. ;;
  1531. no:yes:* )
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1533. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1535. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1537. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1539. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1541. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1542. ;;
  1543. esac
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1545. $as_echo_n "checking for $2... " >&6; }
  1546. if eval \${$3+:} false; then :
  1547. $as_echo_n "(cached) " >&6
  1548. else
  1549. eval "$3=\$ac_header_compiler"
  1550. fi
  1551. eval ac_res=\$$3
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1553. $as_echo "$ac_res" >&6; }
  1554. fi
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. } # ac_fn_c_check_header_mongrel
  1557. # ac_fn_c_try_run LINENO
  1558. # ----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1560. # that executables *can* be run.
  1561. ac_fn_c_try_run ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>&5
  1572. ac_status=$?
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1575. { { case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_try") 2>&5
  1582. ac_status=$?
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; }; }; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: program exited with status $ac_status" >&5
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=$ac_status
  1591. fi
  1592. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595. } # ac_fn_c_try_run
  1596. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1597. # -------------------------------------------------------
  1598. # Tests whether HEADER exists and can be compiled using the include files in
  1599. # INCLUDES, setting the cache variable VAR accordingly.
  1600. ac_fn_c_check_header_compile ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1604. $as_echo_n "checking for $2... " >&6; }
  1605. if eval \${$3+:} false; then :
  1606. $as_echo_n "(cached) " >&6
  1607. else
  1608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1609. /* end confdefs.h. */
  1610. $4
  1611. #include <$2>
  1612. _ACEOF
  1613. if ac_fn_c_try_compile "$LINENO"; then :
  1614. eval "$3=yes"
  1615. else
  1616. eval "$3=no"
  1617. fi
  1618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. } # ac_fn_c_check_header_compile
  1625. # ac_fn_c_try_link LINENO
  1626. # -----------------------
  1627. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1628. ac_fn_c_try_link ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. rm -f conftest.$ac_objext conftest$ac_exeext
  1632. if { { ac_try="$ac_link"
  1633. case "(($ac_try" in
  1634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1635. *) ac_try_echo=$ac_try;;
  1636. esac
  1637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1638. $as_echo "$ac_try_echo"; } >&5
  1639. (eval "$ac_link") 2>conftest.err
  1640. ac_status=$?
  1641. if test -s conftest.err; then
  1642. grep -v '^ *+' conftest.err >conftest.er1
  1643. cat conftest.er1 >&5
  1644. mv -f conftest.er1 conftest.err
  1645. fi
  1646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1647. test $ac_status = 0; } && {
  1648. test -z "$ac_c_werror_flag" ||
  1649. test ! -s conftest.err
  1650. } && test -s conftest$ac_exeext && {
  1651. test "$cross_compiling" = yes ||
  1652. test -x conftest$ac_exeext
  1653. }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1
  1659. fi
  1660. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1661. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1662. # interfere with the next link command; also delete a directory that is
  1663. # left behind by Apple's compiler. We do this before executing the actions.
  1664. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1665. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1666. as_fn_set_status $ac_retval
  1667. } # ac_fn_c_try_link
  1668. # ac_fn_c_check_func LINENO FUNC VAR
  1669. # ----------------------------------
  1670. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1671. ac_fn_c_check_func ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1675. $as_echo_n "checking for $2... " >&6; }
  1676. if eval \${$3+:} false; then :
  1677. $as_echo_n "(cached) " >&6
  1678. else
  1679. if test x$gcc_no_link = xyes; then
  1680. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1681. fi
  1682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1683. /* end confdefs.h. */
  1684. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1685. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1686. #define $2 innocuous_$2
  1687. /* System header to define __stub macros and hopefully few prototypes,
  1688. which can conflict with char $2 (); below.
  1689. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1690. <limits.h> exists even on freestanding compilers. */
  1691. #ifdef __STDC__
  1692. # include <limits.h>
  1693. #else
  1694. # include <assert.h>
  1695. #endif
  1696. #undef $2
  1697. /* Override any GCC internal prototype to avoid an error.
  1698. Use char because int might match the return type of a GCC
  1699. builtin and then its argument prototype would still apply. */
  1700. #ifdef __cplusplus
  1701. extern "C"
  1702. #endif
  1703. char $2 ();
  1704. /* The GNU C library defines this for functions which it implements
  1705. to always fail with ENOSYS. Some functions are actually named
  1706. something starting with __ and the normal name is an alias. */
  1707. #if defined __stub_$2 || defined __stub___$2
  1708. choke me
  1709. #endif
  1710. int
  1711. main ()
  1712. {
  1713. return $2 ();
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_link "$LINENO"; then :
  1719. eval "$3=yes"
  1720. else
  1721. eval "$3=no"
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext \
  1724. conftest$ac_exeext conftest.$ac_ext
  1725. fi
  1726. eval ac_res=\$$3
  1727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1728. $as_echo "$ac_res" >&6; }
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. } # ac_fn_c_check_func
  1731. cat >config.log <<_ACEOF
  1732. This file contains any messages produced by compilers while
  1733. running configure, to aid debugging if configure makes a mistake.
  1734. It was created by GCC Quad-precision Math Library $as_me 0.1, which was
  1735. generated by GNU Autoconf 2.69. Invocation command line was
  1736. $ $0 $@
  1737. _ACEOF
  1738. exec 5>>config.log
  1739. {
  1740. cat <<_ASUNAME
  1741. ## --------- ##
  1742. ## Platform. ##
  1743. ## --------- ##
  1744. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1745. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1746. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1747. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1748. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1749. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1750. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1751. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1752. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1753. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1754. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1755. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1756. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1757. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1758. _ASUNAME
  1759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1760. for as_dir in $PATH
  1761. do
  1762. IFS=$as_save_IFS
  1763. test -z "$as_dir" && as_dir=.
  1764. $as_echo "PATH: $as_dir"
  1765. done
  1766. IFS=$as_save_IFS
  1767. } >&5
  1768. cat >&5 <<_ACEOF
  1769. ## ----------- ##
  1770. ## Core tests. ##
  1771. ## ----------- ##
  1772. _ACEOF
  1773. # Keep a trace of the command line.
  1774. # Strip out --no-create and --no-recursion so they do not pile up.
  1775. # Strip out --silent because we don't want to record it for future runs.
  1776. # Also quote any args containing shell meta-characters.
  1777. # Make two passes to allow for proper duplicate-argument suppression.
  1778. ac_configure_args=
  1779. ac_configure_args0=
  1780. ac_configure_args1=
  1781. ac_must_keep_next=false
  1782. for ac_pass in 1 2
  1783. do
  1784. for ac_arg
  1785. do
  1786. case $ac_arg in
  1787. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1788. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1789. | -silent | --silent | --silen | --sile | --sil)
  1790. continue ;;
  1791. *\'*)
  1792. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1793. esac
  1794. case $ac_pass in
  1795. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1796. 2)
  1797. as_fn_append ac_configure_args1 " '$ac_arg'"
  1798. if test $ac_must_keep_next = true; then
  1799. ac_must_keep_next=false # Got value, back to normal.
  1800. else
  1801. case $ac_arg in
  1802. *=* | --config-cache | -C | -disable-* | --disable-* \
  1803. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1804. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1805. | -with-* | --with-* | -without-* | --without-* | --x)
  1806. case "$ac_configure_args0 " in
  1807. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1808. esac
  1809. ;;
  1810. -* ) ac_must_keep_next=true ;;
  1811. esac
  1812. fi
  1813. as_fn_append ac_configure_args " '$ac_arg'"
  1814. ;;
  1815. esac
  1816. done
  1817. done
  1818. { ac_configure_args0=; unset ac_configure_args0;}
  1819. { ac_configure_args1=; unset ac_configure_args1;}
  1820. # When interrupted or exit'd, cleanup temporary files, and complete
  1821. # config.log. We remove comments because anyway the quotes in there
  1822. # would cause problems or look ugly.
  1823. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1824. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1825. trap 'exit_status=$?
  1826. # Save into config.log some information that might help in debugging.
  1827. {
  1828. echo
  1829. $as_echo "## ---------------- ##
  1830. ## Cache variables. ##
  1831. ## ---------------- ##"
  1832. echo
  1833. # The following way of writing the cache mishandles newlines in values,
  1834. (
  1835. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1836. eval ac_val=\$$ac_var
  1837. case $ac_val in #(
  1838. *${as_nl}*)
  1839. case $ac_var in #(
  1840. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1841. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1842. esac
  1843. case $ac_var in #(
  1844. _ | IFS | as_nl) ;; #(
  1845. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1846. *) { eval $ac_var=; unset $ac_var;} ;;
  1847. esac ;;
  1848. esac
  1849. done
  1850. (set) 2>&1 |
  1851. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1852. *${as_nl}ac_space=\ *)
  1853. sed -n \
  1854. "s/'\''/'\''\\\\'\'''\''/g;
  1855. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1856. ;; #(
  1857. *)
  1858. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1859. ;;
  1860. esac |
  1861. sort
  1862. )
  1863. echo
  1864. $as_echo "## ----------------- ##
  1865. ## Output variables. ##
  1866. ## ----------------- ##"
  1867. echo
  1868. for ac_var in $ac_subst_vars
  1869. do
  1870. eval ac_val=\$$ac_var
  1871. case $ac_val in
  1872. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1873. esac
  1874. $as_echo "$ac_var='\''$ac_val'\''"
  1875. done | sort
  1876. echo
  1877. if test -n "$ac_subst_files"; then
  1878. $as_echo "## ------------------- ##
  1879. ## File substitutions. ##
  1880. ## ------------------- ##"
  1881. echo
  1882. for ac_var in $ac_subst_files
  1883. do
  1884. eval ac_val=\$$ac_var
  1885. case $ac_val in
  1886. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1887. esac
  1888. $as_echo "$ac_var='\''$ac_val'\''"
  1889. done | sort
  1890. echo
  1891. fi
  1892. if test -s confdefs.h; then
  1893. $as_echo "## ----------- ##
  1894. ## confdefs.h. ##
  1895. ## ----------- ##"
  1896. echo
  1897. cat confdefs.h
  1898. echo
  1899. fi
  1900. test "$ac_signal" != 0 &&
  1901. $as_echo "$as_me: caught signal $ac_signal"
  1902. $as_echo "$as_me: exit $exit_status"
  1903. } >&5
  1904. rm -f core *.core core.conftest.* &&
  1905. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1906. exit $exit_status
  1907. ' 0
  1908. for ac_signal in 1 2 13 15; do
  1909. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1910. done
  1911. ac_signal=0
  1912. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1913. rm -f -r conftest* confdefs.h
  1914. $as_echo "/* confdefs.h */" > confdefs.h
  1915. # Predefined preprocessor variables.
  1916. cat >>confdefs.h <<_ACEOF
  1917. #define PACKAGE_NAME "$PACKAGE_NAME"
  1918. _ACEOF
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1921. _ACEOF
  1922. cat >>confdefs.h <<_ACEOF
  1923. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1924. _ACEOF
  1925. cat >>confdefs.h <<_ACEOF
  1926. #define PACKAGE_STRING "$PACKAGE_STRING"
  1927. _ACEOF
  1928. cat >>confdefs.h <<_ACEOF
  1929. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1930. _ACEOF
  1931. cat >>confdefs.h <<_ACEOF
  1932. #define PACKAGE_URL "$PACKAGE_URL"
  1933. _ACEOF
  1934. # Let the site file select an alternate cache file if it wants to.
  1935. # Prefer an explicitly selected file to automatically selected ones.
  1936. ac_site_file1=NONE
  1937. ac_site_file2=NONE
  1938. if test -n "$CONFIG_SITE"; then
  1939. # We do not want a PATH search for config.site.
  1940. case $CONFIG_SITE in #((
  1941. -*) ac_site_file1=./$CONFIG_SITE;;
  1942. */*) ac_site_file1=$CONFIG_SITE;;
  1943. *) ac_site_file1=./$CONFIG_SITE;;
  1944. esac
  1945. elif test "x$prefix" != xNONE; then
  1946. ac_site_file1=$prefix/share/config.site
  1947. ac_site_file2=$prefix/etc/config.site
  1948. else
  1949. ac_site_file1=$ac_default_prefix/share/config.site
  1950. ac_site_file2=$ac_default_prefix/etc/config.site
  1951. fi
  1952. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1953. do
  1954. test "x$ac_site_file" = xNONE && continue
  1955. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1957. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1958. sed 's/^/| /' "$ac_site_file" >&5
  1959. . "$ac_site_file" \
  1960. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1962. as_fn_error $? "failed to load site script $ac_site_file
  1963. See \`config.log' for more details" "$LINENO" 5; }
  1964. fi
  1965. done
  1966. if test -r "$cache_file"; then
  1967. # Some versions of bash will fail to source /dev/null (special files
  1968. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1969. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1971. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1972. case $cache_file in
  1973. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1974. *) . "./$cache_file";;
  1975. esac
  1976. fi
  1977. else
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1979. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1980. >$cache_file
  1981. fi
  1982. # Check that the precious variables saved in the cache have kept the same
  1983. # value.
  1984. ac_cache_corrupted=false
  1985. for ac_var in $ac_precious_vars; do
  1986. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1987. eval ac_new_set=\$ac_env_${ac_var}_set
  1988. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1989. eval ac_new_val=\$ac_env_${ac_var}_value
  1990. case $ac_old_set,$ac_new_set in
  1991. set,)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,set)
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1997. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1998. ac_cache_corrupted=: ;;
  1999. ,);;
  2000. *)
  2001. if test "x$ac_old_val" != "x$ac_new_val"; then
  2002. # differences in whitespace do not lead to failure.
  2003. ac_old_val_w=`echo x $ac_old_val`
  2004. ac_new_val_w=`echo x $ac_new_val`
  2005. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2007. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2008. ac_cache_corrupted=:
  2009. else
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2011. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2012. eval $ac_var=\$ac_old_val
  2013. fi
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2015. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2017. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2018. fi;;
  2019. esac
  2020. # Pass precious variables to config.status.
  2021. if test "$ac_new_set" = set; then
  2022. case $ac_new_val in
  2023. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2024. *) ac_arg=$ac_var=$ac_new_val ;;
  2025. esac
  2026. case " $ac_configure_args " in
  2027. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2028. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2029. esac
  2030. fi
  2031. done
  2032. if $ac_cache_corrupted; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2036. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2037. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2038. fi
  2039. ## -------------------- ##
  2040. ## Main body of script. ##
  2041. ## -------------------- ##
  2042. ac_ext=c
  2043. ac_cpp='$CPP $CPPFLAGS'
  2044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2047. ac_config_headers="$ac_config_headers config.h"
  2048. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2049. #
  2050. # You will slowly go insane if you do not grok the following fact: when
  2051. # building this library, the top-level /target/ becomes the library's /host/.
  2052. #
  2053. # configure then causes --target to default to --host, exactly like any
  2054. # other package using autoconf. Therefore, 'target' and 'host' will
  2055. # always be the same. This makes sense both for native and cross compilers
  2056. # just think about it for a little while. :-)
  2057. #
  2058. # Also, if this library is being configured as part of a cross compiler, the
  2059. # top-level configure script will pass the "real" host as $with_cross_host.
  2060. #
  2061. # Do not delete or change the following two lines. For why, see
  2062. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2063. ac_aux_dir=
  2064. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2065. if test -f "$ac_dir/install-sh"; then
  2066. ac_aux_dir=$ac_dir
  2067. ac_install_sh="$ac_aux_dir/install-sh -c"
  2068. break
  2069. elif test -f "$ac_dir/install.sh"; then
  2070. ac_aux_dir=$ac_dir
  2071. ac_install_sh="$ac_aux_dir/install.sh -c"
  2072. break
  2073. elif test -f "$ac_dir/shtool"; then
  2074. ac_aux_dir=$ac_dir
  2075. ac_install_sh="$ac_aux_dir/shtool install -c"
  2076. break
  2077. fi
  2078. done
  2079. if test -z "$ac_aux_dir"; then
  2080. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2081. fi
  2082. # These three variables are undocumented and unsupported,
  2083. # and are intended to be withdrawn in a future Autoconf release.
  2084. # They can cause serious problems if a builder's source tree is in a directory
  2085. # whose full name contains unusual characters.
  2086. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2087. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2088. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2089. # Make sure we can run config.sub.
  2090. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2091. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2093. $as_echo_n "checking build system type... " >&6; }
  2094. if ${ac_cv_build+:} false; then :
  2095. $as_echo_n "(cached) " >&6
  2096. else
  2097. ac_build_alias=$build_alias
  2098. test "x$ac_build_alias" = x &&
  2099. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2100. test "x$ac_build_alias" = x &&
  2101. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2102. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2103. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2104. fi
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2106. $as_echo "$ac_cv_build" >&6; }
  2107. case $ac_cv_build in
  2108. *-*-*) ;;
  2109. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2110. esac
  2111. build=$ac_cv_build
  2112. ac_save_IFS=$IFS; IFS='-'
  2113. set x $ac_cv_build
  2114. shift
  2115. build_cpu=$1
  2116. build_vendor=$2
  2117. shift; shift
  2118. # Remember, the first character of IFS is used to create $*,
  2119. # except with old shells:
  2120. build_os=$*
  2121. IFS=$ac_save_IFS
  2122. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2124. $as_echo_n "checking host system type... " >&6; }
  2125. if ${ac_cv_host+:} false; then :
  2126. $as_echo_n "(cached) " >&6
  2127. else
  2128. if test "x$host_alias" = x; then
  2129. ac_cv_host=$ac_cv_build
  2130. else
  2131. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2132. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2133. fi
  2134. fi
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2136. $as_echo "$ac_cv_host" >&6; }
  2137. case $ac_cv_host in
  2138. *-*-*) ;;
  2139. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2140. esac
  2141. host=$ac_cv_host
  2142. ac_save_IFS=$IFS; IFS='-'
  2143. set x $ac_cv_host
  2144. shift
  2145. host_cpu=$1
  2146. host_vendor=$2
  2147. shift; shift
  2148. # Remember, the first character of IFS is used to create $*,
  2149. # except with old shells:
  2150. host_os=$*
  2151. IFS=$ac_save_IFS
  2152. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2154. $as_echo_n "checking target system type... " >&6; }
  2155. if ${ac_cv_target+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. if test "x$target_alias" = x; then
  2159. ac_cv_target=$ac_cv_host
  2160. else
  2161. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2162. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2163. fi
  2164. fi
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2166. $as_echo "$ac_cv_target" >&6; }
  2167. case $ac_cv_target in
  2168. *-*-*) ;;
  2169. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2170. esac
  2171. target=$ac_cv_target
  2172. ac_save_IFS=$IFS; IFS='-'
  2173. set x $ac_cv_target
  2174. shift
  2175. target_cpu=$1
  2176. target_vendor=$2
  2177. shift; shift
  2178. # Remember, the first character of IFS is used to create $*,
  2179. # except with old shells:
  2180. target_os=$*
  2181. IFS=$ac_save_IFS
  2182. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2183. # The aliases save the names the user supplied, while $host etc.
  2184. # will get canonicalized.
  2185. test -n "$target_alias" &&
  2186. test "$program_prefix$program_suffix$program_transform_name" = \
  2187. NONENONEs,x,x, &&
  2188. program_prefix=${target_alias}-
  2189. case ${build_alias} in
  2190. "") build_noncanonical=${build} ;;
  2191. *) build_noncanonical=${build_alias} ;;
  2192. esac
  2193. case ${host_alias} in
  2194. "") host_noncanonical=${build_noncanonical} ;;
  2195. *) host_noncanonical=${host_alias} ;;
  2196. esac
  2197. case ${target_alias} in
  2198. "") target_noncanonical=${host_noncanonical} ;;
  2199. *) target_noncanonical=${target_alias} ;;
  2200. esac
  2201. # Default to --enable-multilib
  2202. # Check whether --enable-multilib was given.
  2203. if test "${enable_multilib+set}" = set; then :
  2204. enableval=$enable_multilib; case "$enableval" in
  2205. yes) multilib=yes ;;
  2206. no) multilib=no ;;
  2207. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2208. esac
  2209. else
  2210. multilib=yes
  2211. fi
  2212. # We may get other options which we leave undocumented:
  2213. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2214. # See config-ml.in if you want the gory details.
  2215. if test "$srcdir" = "."; then
  2216. if test "$with_target_subdir" != "."; then
  2217. multi_basedir="$srcdir/$with_multisrctop../.."
  2218. else
  2219. multi_basedir="$srcdir/$with_multisrctop.."
  2220. fi
  2221. else
  2222. multi_basedir="$srcdir/.."
  2223. fi
  2224. # Even if the default multilib is not a cross compilation,
  2225. # it may be that some of the other multilibs are.
  2226. if test $cross_compiling = no && test $multilib = yes \
  2227. && test "x${with_multisubdir}" != x ; then
  2228. cross_compiling=maybe
  2229. fi
  2230. ac_config_commands="$ac_config_commands default-1"
  2231. target_alias=${target_alias-$host_alias}
  2232. am__api_version='1.15'
  2233. # Find a good install program. We prefer a C program (faster),
  2234. # so one script is as good as another. But avoid the broken or
  2235. # incompatible versions:
  2236. # SysV /etc/install, /usr/sbin/install
  2237. # SunOS /usr/etc/install
  2238. # IRIX /sbin/install
  2239. # AIX /bin/install
  2240. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2241. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2242. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2243. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2244. # OS/2's system install, which has a completely different semantic
  2245. # ./install, which can be erroneously created by make from ./install.sh.
  2246. # Reject install programs that cannot install multiple files.
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2248. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2249. if test -z "$INSTALL"; then
  2250. if ${ac_cv_path_install+:} false; then :
  2251. $as_echo_n "(cached) " >&6
  2252. else
  2253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2254. for as_dir in $PATH
  2255. do
  2256. IFS=$as_save_IFS
  2257. test -z "$as_dir" && as_dir=.
  2258. # Account for people who put trailing slashes in PATH elements.
  2259. case $as_dir/ in #((
  2260. ./ | .// | /[cC]/* | \
  2261. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2262. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2263. /usr/ucb/* ) ;;
  2264. *)
  2265. # OSF1 and SCO ODT 3.0 have their own names for install.
  2266. # Don't use installbsd from OSF since it installs stuff as root
  2267. # by default.
  2268. for ac_prog in ginstall scoinst install; do
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2271. if test $ac_prog = install &&
  2272. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2273. # AIX install. It has an incompatible calling convention.
  2274. :
  2275. elif test $ac_prog = install &&
  2276. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2277. # program-specific install script used by HP pwplus--don't use.
  2278. :
  2279. else
  2280. rm -rf conftest.one conftest.two conftest.dir
  2281. echo one > conftest.one
  2282. echo two > conftest.two
  2283. mkdir conftest.dir
  2284. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2285. test -s conftest.one && test -s conftest.two &&
  2286. test -s conftest.dir/conftest.one &&
  2287. test -s conftest.dir/conftest.two
  2288. then
  2289. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2290. break 3
  2291. fi
  2292. fi
  2293. fi
  2294. done
  2295. done
  2296. ;;
  2297. esac
  2298. done
  2299. IFS=$as_save_IFS
  2300. rm -rf conftest.one conftest.two conftest.dir
  2301. fi
  2302. if test "${ac_cv_path_install+set}" = set; then
  2303. INSTALL=$ac_cv_path_install
  2304. else
  2305. # As a last resort, use the slow shell script. Don't cache a
  2306. # value for INSTALL within a source directory, because that will
  2307. # break other packages using the cache if that directory is
  2308. # removed, or if the value is a relative name.
  2309. INSTALL=$ac_install_sh
  2310. fi
  2311. fi
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2313. $as_echo "$INSTALL" >&6; }
  2314. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2315. # It thinks the first close brace ends the variable substitution.
  2316. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2317. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2318. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2320. $as_echo_n "checking whether build environment is sane... " >&6; }
  2321. # Reject unsafe characters in $srcdir or the absolute working directory
  2322. # name. Accept space and tab only in the latter.
  2323. am_lf='
  2324. '
  2325. case `pwd` in
  2326. *[\\\"\#\$\&\'\`$am_lf]*)
  2327. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2328. esac
  2329. case $srcdir in
  2330. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2331. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2332. esac
  2333. # Do 'set' in a subshell so we don't clobber the current shell's
  2334. # arguments. Must try -L first in case configure is actually a
  2335. # symlink; some systems play weird games with the mod time of symlinks
  2336. # (eg FreeBSD returns the mod time of the symlink's containing
  2337. # directory).
  2338. if (
  2339. am_has_slept=no
  2340. for am_try in 1 2; do
  2341. echo "timestamp, slept: $am_has_slept" > conftest.file
  2342. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2343. if test "$*" = "X"; then
  2344. # -L didn't work.
  2345. set X `ls -t "$srcdir/configure" conftest.file`
  2346. fi
  2347. if test "$*" != "X $srcdir/configure conftest.file" \
  2348. && test "$*" != "X conftest.file $srcdir/configure"; then
  2349. # If neither matched, then we have a broken ls. This can happen
  2350. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2351. # broken ls alias from the environment. This has actually
  2352. # happened. Such a system could not be considered "sane".
  2353. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2354. alias in your environment" "$LINENO" 5
  2355. fi
  2356. if test "$2" = conftest.file || test $am_try -eq 2; then
  2357. break
  2358. fi
  2359. # Just in case.
  2360. sleep 1
  2361. am_has_slept=yes
  2362. done
  2363. test "$2" = conftest.file
  2364. )
  2365. then
  2366. # Ok.
  2367. :
  2368. else
  2369. as_fn_error $? "newly created file is older than distributed files!
  2370. Check your system clock" "$LINENO" 5
  2371. fi
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2373. $as_echo "yes" >&6; }
  2374. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2375. # generated files are strictly newer.
  2376. am_sleep_pid=
  2377. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2378. ( sleep 1 ) &
  2379. am_sleep_pid=$!
  2380. fi
  2381. rm -f conftest.file
  2382. test "$program_prefix" != NONE &&
  2383. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2384. # Use a double $ so make ignores it.
  2385. test "$program_suffix" != NONE &&
  2386. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2387. # Double any \ or $.
  2388. # By default was `s,x,x', remove it if useless.
  2389. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2390. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2391. # Expand $ac_aux_dir to an absolute path.
  2392. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2393. if test x"${MISSING+set}" != xset; then
  2394. case $am_aux_dir in
  2395. *\ * | *\ *)
  2396. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2397. *)
  2398. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2399. esac
  2400. fi
  2401. # Use eval to expand $SHELL
  2402. if eval "$MISSING --is-lightweight"; then
  2403. am_missing_run="$MISSING "
  2404. else
  2405. am_missing_run=
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2407. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2408. fi
  2409. if test x"${install_sh+set}" != xset; then
  2410. case $am_aux_dir in
  2411. *\ * | *\ *)
  2412. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2413. *)
  2414. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2415. esac
  2416. fi
  2417. # Installed binaries are usually stripped using 'strip' when the user
  2418. # run "make install-strip". However 'strip' might not be the right
  2419. # tool to use in cross-compilation environments, therefore Automake
  2420. # will honor the 'STRIP' environment variable to overrule this program.
  2421. if test "$cross_compiling" != no; then
  2422. if test -n "$ac_tool_prefix"; then
  2423. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2424. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2426. $as_echo_n "checking for $ac_word... " >&6; }
  2427. if ${ac_cv_prog_STRIP+:} false; then :
  2428. $as_echo_n "(cached) " >&6
  2429. else
  2430. if test -n "$STRIP"; then
  2431. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2440. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. IFS=$as_save_IFS
  2447. fi
  2448. fi
  2449. STRIP=$ac_cv_prog_STRIP
  2450. if test -n "$STRIP"; then
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2452. $as_echo "$STRIP" >&6; }
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. fi
  2457. fi
  2458. if test -z "$ac_cv_prog_STRIP"; then
  2459. ac_ct_STRIP=$STRIP
  2460. # Extract the first word of "strip", so it can be a program name with args.
  2461. set dummy strip; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$ac_ct_STRIP"; then
  2468. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. for ac_exec_ext in '' $ac_executable_extensions; do
  2476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2477. ac_cv_prog_ac_ct_STRIP="strip"
  2478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2479. break 2
  2480. fi
  2481. done
  2482. done
  2483. IFS=$as_save_IFS
  2484. fi
  2485. fi
  2486. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2487. if test -n "$ac_ct_STRIP"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2489. $as_echo "$ac_ct_STRIP" >&6; }
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. if test "x$ac_ct_STRIP" = x; then
  2495. STRIP=":"
  2496. else
  2497. case $cross_compiling:$ac_tool_warned in
  2498. yes:)
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2501. ac_tool_warned=yes ;;
  2502. esac
  2503. STRIP=$ac_ct_STRIP
  2504. fi
  2505. else
  2506. STRIP="$ac_cv_prog_STRIP"
  2507. fi
  2508. fi
  2509. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2511. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2512. if test -z "$MKDIR_P"; then
  2513. if ${ac_cv_path_mkdir+:} false; then :
  2514. $as_echo_n "(cached) " >&6
  2515. else
  2516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2517. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2518. do
  2519. IFS=$as_save_IFS
  2520. test -z "$as_dir" && as_dir=.
  2521. for ac_prog in mkdir gmkdir; do
  2522. for ac_exec_ext in '' $ac_executable_extensions; do
  2523. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2524. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2525. 'mkdir (GNU coreutils) '* | \
  2526. 'mkdir (coreutils) '* | \
  2527. 'mkdir (fileutils) '4.1*)
  2528. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2529. break 3;;
  2530. esac
  2531. done
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. test -d ./--version && rmdir ./--version
  2537. if test "${ac_cv_path_mkdir+set}" = set; then
  2538. MKDIR_P="$ac_cv_path_mkdir -p"
  2539. else
  2540. # As a last resort, use the slow shell script. Don't cache a
  2541. # value for MKDIR_P within a source directory, because that will
  2542. # break other packages using the cache if that directory is
  2543. # removed, or if the value is a relative name.
  2544. MKDIR_P="$ac_install_sh -d"
  2545. fi
  2546. fi
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2548. $as_echo "$MKDIR_P" >&6; }
  2549. for ac_prog in gawk mawk nawk awk
  2550. do
  2551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2552. set dummy $ac_prog; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if ${ac_cv_prog_AWK+:} false; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$AWK"; then
  2559. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_AWK="$ac_prog"
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. AWK=$ac_cv_prog_AWK
  2578. if test -n "$AWK"; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2580. $as_echo "$AWK" >&6; }
  2581. else
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2583. $as_echo "no" >&6; }
  2584. fi
  2585. test -n "$AWK" && break
  2586. done
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2588. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2589. set x ${MAKE-make}
  2590. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2591. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. cat >conftest.make <<\_ACEOF
  2595. SHELL = /bin/sh
  2596. all:
  2597. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2598. _ACEOF
  2599. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2600. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2601. *@@@%%%=?*=@@@%%%*)
  2602. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2603. *)
  2604. eval ac_cv_prog_make_${ac_make}_set=no;;
  2605. esac
  2606. rm -f conftest.make
  2607. fi
  2608. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2610. $as_echo "yes" >&6; }
  2611. SET_MAKE=
  2612. else
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2614. $as_echo "no" >&6; }
  2615. SET_MAKE="MAKE=${MAKE-make}"
  2616. fi
  2617. rm -rf .tst 2>/dev/null
  2618. mkdir .tst 2>/dev/null
  2619. if test -d .tst; then
  2620. am__leading_dot=.
  2621. else
  2622. am__leading_dot=_
  2623. fi
  2624. rmdir .tst 2>/dev/null
  2625. # Check whether --enable-silent-rules was given.
  2626. if test "${enable_silent_rules+set}" = set; then :
  2627. enableval=$enable_silent_rules;
  2628. fi
  2629. case $enable_silent_rules in # (((
  2630. yes) AM_DEFAULT_VERBOSITY=0;;
  2631. no) AM_DEFAULT_VERBOSITY=1;;
  2632. *) AM_DEFAULT_VERBOSITY=1;;
  2633. esac
  2634. am_make=${MAKE-make}
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2636. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2637. if ${am_cv_make_support_nested_variables+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if $as_echo 'TRUE=$(BAR$(V))
  2641. BAR0=false
  2642. BAR1=true
  2643. V=1
  2644. am__doit:
  2645. @$(TRUE)
  2646. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2647. am_cv_make_support_nested_variables=yes
  2648. else
  2649. am_cv_make_support_nested_variables=no
  2650. fi
  2651. fi
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2653. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2654. if test $am_cv_make_support_nested_variables = yes; then
  2655. AM_V='$(V)'
  2656. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2657. else
  2658. AM_V=$AM_DEFAULT_VERBOSITY
  2659. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2660. fi
  2661. AM_BACKSLASH='\'
  2662. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2663. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2664. # is not polluted with repeated "-I."
  2665. am__isrc=' -I$(srcdir)'
  2666. # test to see if srcdir already configured
  2667. if test -f $srcdir/config.status; then
  2668. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2669. fi
  2670. fi
  2671. # test whether we have cygpath
  2672. if test -z "$CYGPATH_W"; then
  2673. if (cygpath --version) >/dev/null 2>/dev/null; then
  2674. CYGPATH_W='cygpath -w'
  2675. else
  2676. CYGPATH_W=echo
  2677. fi
  2678. fi
  2679. # Define the identity of the package.
  2680. PACKAGE='libquadmath'
  2681. VERSION='0.1'
  2682. cat >>confdefs.h <<_ACEOF
  2683. #define PACKAGE "$PACKAGE"
  2684. _ACEOF
  2685. cat >>confdefs.h <<_ACEOF
  2686. #define VERSION "$VERSION"
  2687. _ACEOF
  2688. # Some tools Automake needs.
  2689. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2690. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2691. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2692. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2693. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2694. # For better backward compatibility. To be removed once Automake 1.9.x
  2695. # dies out for good. For more background, see:
  2696. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2697. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2698. mkdir_p='$(MKDIR_P)'
  2699. # We need awk for the "check" target (and possibly the TAP driver). The
  2700. # system "awk" is bad on some platforms.
  2701. # Always define AMTAR for backward compatibility. Yes, it's still used
  2702. # in the wild :-( We should find a proper way to deprecate it ...
  2703. AMTAR='$${TAR-tar}'
  2704. # We'll loop over all known methods to create a tar archive until one works.
  2705. _am_tools='gnutar pax cpio none'
  2706. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2707. # POSIX will say in a future version that running "rm -f" with no argument
  2708. # is OK; and we want to be able to make that assumption in our Makefile
  2709. # recipes. So use an aggressive probe to check that the usage we want is
  2710. # actually supported "in the wild" to an acceptable degree.
  2711. # See automake bug#10828.
  2712. # To make any issue more visible, cause the running configure to be aborted
  2713. # by default if the 'rm' program in use doesn't match our expectations; the
  2714. # user can still override this though.
  2715. if rm -f && rm -fr && rm -rf; then : OK; else
  2716. cat >&2 <<'END'
  2717. Oops!
  2718. Your 'rm' program seems unable to run without file operands specified
  2719. on the command line, even when the '-f' option is present. This is contrary
  2720. to the behaviour of most rm programs out there, and not conforming with
  2721. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2722. Please tell bug-automake@gnu.org about your system, including the value
  2723. of your $PATH and any error possibly output before this message. This
  2724. can help us improve future automake versions.
  2725. END
  2726. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2727. echo 'Configuration will proceed anyway, since you have set the' >&2
  2728. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2729. echo >&2
  2730. else
  2731. cat >&2 <<'END'
  2732. Aborting the configuration process, to ensure you take notice of the issue.
  2733. You can download and install GNU coreutils to get an 'rm' implementation
  2734. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2735. If you want to complete the configuration process using your problematic
  2736. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2737. to "yes", and re-run configure.
  2738. END
  2739. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2740. fi
  2741. fi
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2743. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2744. # Check whether --enable-version-specific-runtime-libs was given.
  2745. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2746. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2747. yes) version_specific_libs=yes ;;
  2748. no) version_specific_libs=no ;;
  2749. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2750. esac
  2751. else
  2752. version_specific_libs=no
  2753. fi
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2755. $as_echo "$version_specific_libs" >&6; }
  2756. DEPDIR="${am__leading_dot}deps"
  2757. ac_config_commands="$ac_config_commands depfiles"
  2758. am_make=${MAKE-make}
  2759. cat > confinc << 'END'
  2760. am__doit:
  2761. @echo this is the am__doit target
  2762. .PHONY: am__doit
  2763. END
  2764. # If we don't find an include directive, just comment out the code.
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2766. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2767. am__include="#"
  2768. am__quote=
  2769. _am_result=none
  2770. # First try GNU make style include.
  2771. echo "include confinc" > confmf
  2772. # Ignore all kinds of additional output from 'make'.
  2773. case `$am_make -s -f confmf 2> /dev/null` in #(
  2774. *the\ am__doit\ target*)
  2775. am__include=include
  2776. am__quote=
  2777. _am_result=GNU
  2778. ;;
  2779. esac
  2780. # Now try BSD make style include.
  2781. if test "$am__include" = "#"; then
  2782. echo '.include "confinc"' > confmf
  2783. case `$am_make -s -f confmf 2> /dev/null` in #(
  2784. *the\ am__doit\ target*)
  2785. am__include=.include
  2786. am__quote="\""
  2787. _am_result=BSD
  2788. ;;
  2789. esac
  2790. fi
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2792. $as_echo "$_am_result" >&6; }
  2793. rm -f confinc confmf
  2794. # Check whether --enable-dependency-tracking was given.
  2795. if test "${enable_dependency_tracking+set}" = set; then :
  2796. enableval=$enable_dependency_tracking;
  2797. fi
  2798. if test "x$enable_dependency_tracking" != xno; then
  2799. am_depcomp="$ac_aux_dir/depcomp"
  2800. AMDEPBACKSLASH='\'
  2801. am__nodep='_no'
  2802. fi
  2803. if test "x$enable_dependency_tracking" != xno; then
  2804. AMDEP_TRUE=
  2805. AMDEP_FALSE='#'
  2806. else
  2807. AMDEP_TRUE='#'
  2808. AMDEP_FALSE=
  2809. fi
  2810. ac_ext=c
  2811. ac_cpp='$CPP $CPPFLAGS'
  2812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2815. if test -n "$ac_tool_prefix"; then
  2816. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2817. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if ${ac_cv_prog_CC+:} false; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$CC"; then
  2824. ac_cv_prog_CC="$CC" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2833. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. CC=$ac_cv_prog_CC
  2843. if test -n "$CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2845. $as_echo "$CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. fi
  2851. if test -z "$ac_cv_prog_CC"; then
  2852. ac_ct_CC=$CC
  2853. # Extract the first word of "gcc", so it can be a program name with args.
  2854. set dummy gcc; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$ac_ct_CC"; then
  2861. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2862. else
  2863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2864. for as_dir in $PATH
  2865. do
  2866. IFS=$as_save_IFS
  2867. test -z "$as_dir" && as_dir=.
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2870. ac_cv_prog_ac_ct_CC="gcc"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. fi
  2879. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2880. if test -n "$ac_ct_CC"; then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2882. $as_echo "$ac_ct_CC" >&6; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. fi
  2887. if test "x$ac_ct_CC" = x; then
  2888. CC=""
  2889. else
  2890. case $cross_compiling:$ac_tool_warned in
  2891. yes:)
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2894. ac_tool_warned=yes ;;
  2895. esac
  2896. CC=$ac_ct_CC
  2897. fi
  2898. else
  2899. CC="$ac_cv_prog_CC"
  2900. fi
  2901. if test -z "$CC"; then
  2902. if test -n "$ac_tool_prefix"; then
  2903. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2904. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2906. $as_echo_n "checking for $ac_word... " >&6; }
  2907. if ${ac_cv_prog_CC+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -n "$CC"; then
  2911. ac_cv_prog_CC="$CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2920. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. done
  2926. IFS=$as_save_IFS
  2927. fi
  2928. fi
  2929. CC=$ac_cv_prog_CC
  2930. if test -n "$CC"; then
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2932. $as_echo "$CC" >&6; }
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. fi
  2937. fi
  2938. fi
  2939. if test -z "$CC"; then
  2940. # Extract the first word of "cc", so it can be a program name with args.
  2941. set dummy cc; ac_word=$2
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2943. $as_echo_n "checking for $ac_word... " >&6; }
  2944. if ${ac_cv_prog_CC+:} false; then :
  2945. $as_echo_n "(cached) " >&6
  2946. else
  2947. if test -n "$CC"; then
  2948. ac_cv_prog_CC="$CC" # Let the user override the test.
  2949. else
  2950. ac_prog_rejected=no
  2951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH
  2953. do
  2954. IFS=$as_save_IFS
  2955. test -z "$as_dir" && as_dir=.
  2956. for ac_exec_ext in '' $ac_executable_extensions; do
  2957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2958. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2959. ac_prog_rejected=yes
  2960. continue
  2961. fi
  2962. ac_cv_prog_CC="cc"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. if test $ac_prog_rejected = yes; then
  2970. # We found a bogon in the path, so make sure we never use it.
  2971. set dummy $ac_cv_prog_CC
  2972. shift
  2973. if test $# != 0; then
  2974. # We chose a different compiler from the bogus one.
  2975. # However, it has the same basename, so the bogon will be chosen
  2976. # first if we set CC to just the basename; use the full file name.
  2977. shift
  2978. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2979. fi
  2980. fi
  2981. fi
  2982. fi
  2983. CC=$ac_cv_prog_CC
  2984. if test -n "$CC"; then
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2986. $as_echo "$CC" >&6; }
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fi
  2991. fi
  2992. if test -z "$CC"; then
  2993. if test -n "$ac_tool_prefix"; then
  2994. for ac_prog in cl.exe
  2995. do
  2996. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2997. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2999. $as_echo_n "checking for $ac_word... " >&6; }
  3000. if ${ac_cv_prog_CC+:} false; then :
  3001. $as_echo_n "(cached) " >&6
  3002. else
  3003. if test -n "$CC"; then
  3004. ac_cv_prog_CC="$CC" # Let the user override the test.
  3005. else
  3006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3007. for as_dir in $PATH
  3008. do
  3009. IFS=$as_save_IFS
  3010. test -z "$as_dir" && as_dir=.
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3013. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3015. break 2
  3016. fi
  3017. done
  3018. done
  3019. IFS=$as_save_IFS
  3020. fi
  3021. fi
  3022. CC=$ac_cv_prog_CC
  3023. if test -n "$CC"; then
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3025. $as_echo "$CC" >&6; }
  3026. else
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3028. $as_echo "no" >&6; }
  3029. fi
  3030. test -n "$CC" && break
  3031. done
  3032. fi
  3033. if test -z "$CC"; then
  3034. ac_ct_CC=$CC
  3035. for ac_prog in cl.exe
  3036. do
  3037. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3038. set dummy $ac_prog; ac_word=$2
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3040. $as_echo_n "checking for $ac_word... " >&6; }
  3041. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. if test -n "$ac_ct_CC"; then
  3045. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3054. ac_cv_prog_ac_ct_CC="$ac_prog"
  3055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. IFS=$as_save_IFS
  3061. fi
  3062. fi
  3063. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3064. if test -n "$ac_ct_CC"; then
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3066. $as_echo "$ac_ct_CC" >&6; }
  3067. else
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3069. $as_echo "no" >&6; }
  3070. fi
  3071. test -n "$ac_ct_CC" && break
  3072. done
  3073. if test "x$ac_ct_CC" = x; then
  3074. CC=""
  3075. else
  3076. case $cross_compiling:$ac_tool_warned in
  3077. yes:)
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3080. ac_tool_warned=yes ;;
  3081. esac
  3082. CC=$ac_ct_CC
  3083. fi
  3084. fi
  3085. fi
  3086. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3088. as_fn_error $? "no acceptable C compiler found in \$PATH
  3089. See \`config.log' for more details" "$LINENO" 5; }
  3090. # Provide some information about the compiler.
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3092. set X $ac_compile
  3093. ac_compiler=$2
  3094. for ac_option in --version -v -V -qversion; do
  3095. { { ac_try="$ac_compiler $ac_option >&5"
  3096. case "(($ac_try" in
  3097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098. *) ac_try_echo=$ac_try;;
  3099. esac
  3100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3101. $as_echo "$ac_try_echo"; } >&5
  3102. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3103. ac_status=$?
  3104. if test -s conftest.err; then
  3105. sed '10a\
  3106. ... rest of stderr output deleted ...
  3107. 10q' conftest.err >conftest.er1
  3108. cat conftest.er1 >&5
  3109. fi
  3110. rm -f conftest.er1 conftest.err
  3111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3112. test $ac_status = 0; }
  3113. done
  3114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3115. /* end confdefs.h. */
  3116. #include <stdio.h>
  3117. int
  3118. main ()
  3119. {
  3120. printf ("hello world\n");
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. # FIXME: Cleanup?
  3126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3127. (eval $ac_link) 2>&5
  3128. ac_status=$?
  3129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3130. test $ac_status = 0; }; then :
  3131. gcc_no_link=no
  3132. else
  3133. gcc_no_link=yes
  3134. fi
  3135. if test x$gcc_no_link = xyes; then
  3136. # Setting cross_compile will disable run tests; it will
  3137. # also disable AC_CHECK_FILE but that's generally
  3138. # correct if we can't link.
  3139. cross_compiling=yes
  3140. EXEEXT=
  3141. else
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. int
  3145. main ()
  3146. {
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. ac_clean_files_save=$ac_clean_files
  3152. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3153. # Try to create an executable without -o first, disregard a.out.
  3154. # It will help us diagnose broken compilers, and finding out an intuition
  3155. # of exeext.
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3157. $as_echo_n "checking whether the C compiler works... " >&6; }
  3158. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3159. # The possible output files:
  3160. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3161. ac_rmfiles=
  3162. for ac_file in $ac_files
  3163. do
  3164. case $ac_file in
  3165. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3166. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3167. esac
  3168. done
  3169. rm -f $ac_rmfiles
  3170. if { { ac_try="$ac_link_default"
  3171. case "(($ac_try" in
  3172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3173. *) ac_try_echo=$ac_try;;
  3174. esac
  3175. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3176. $as_echo "$ac_try_echo"; } >&5
  3177. (eval "$ac_link_default") 2>&5
  3178. ac_status=$?
  3179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3180. test $ac_status = 0; }; then :
  3181. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3182. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3183. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3184. # so that the user can short-circuit this test for compilers unknown to
  3185. # Autoconf.
  3186. for ac_file in $ac_files ''
  3187. do
  3188. test -f "$ac_file" || continue
  3189. case $ac_file in
  3190. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3191. ;;
  3192. [ab].out )
  3193. # We found the default executable, but exeext='' is most
  3194. # certainly right.
  3195. break;;
  3196. *.* )
  3197. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3198. then :; else
  3199. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3200. fi
  3201. # We set ac_cv_exeext here because the later test for it is not
  3202. # safe: cross compilers may not add the suffix if given an `-o'
  3203. # argument, so we may need to know it at that point already.
  3204. # Even if this section looks crufty: it has the advantage of
  3205. # actually working.
  3206. break;;
  3207. * )
  3208. break;;
  3209. esac
  3210. done
  3211. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3212. else
  3213. ac_file=''
  3214. fi
  3215. if test -z "$ac_file"; then :
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3217. $as_echo "no" >&6; }
  3218. $as_echo "$as_me: failed program was:" >&5
  3219. sed 's/^/| /' conftest.$ac_ext >&5
  3220. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3222. as_fn_error 77 "C compiler cannot create executables
  3223. See \`config.log' for more details" "$LINENO" 5; }
  3224. else
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3226. $as_echo "yes" >&6; }
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3229. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3231. $as_echo "$ac_file" >&6; }
  3232. ac_exeext=$ac_cv_exeext
  3233. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3234. ac_clean_files=$ac_clean_files_save
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3236. $as_echo_n "checking for suffix of executables... " >&6; }
  3237. if { { ac_try="$ac_link"
  3238. case "(($ac_try" in
  3239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. *) ac_try_echo=$ac_try;;
  3241. esac
  3242. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3243. $as_echo "$ac_try_echo"; } >&5
  3244. (eval "$ac_link") 2>&5
  3245. ac_status=$?
  3246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3247. test $ac_status = 0; }; then :
  3248. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3249. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3250. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3251. # `rm'.
  3252. for ac_file in conftest.exe conftest conftest.*; do
  3253. test -f "$ac_file" || continue
  3254. case $ac_file in
  3255. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3256. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3257. break;;
  3258. * ) break;;
  3259. esac
  3260. done
  3261. else
  3262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3264. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3265. See \`config.log' for more details" "$LINENO" 5; }
  3266. fi
  3267. rm -f conftest conftest$ac_cv_exeext
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3269. $as_echo "$ac_cv_exeext" >&6; }
  3270. rm -f conftest.$ac_ext
  3271. EXEEXT=$ac_cv_exeext
  3272. ac_exeext=$EXEEXT
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. #include <stdio.h>
  3276. int
  3277. main ()
  3278. {
  3279. FILE *f = fopen ("conftest.out", "w");
  3280. return ferror (f) || fclose (f) != 0;
  3281. ;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. ac_clean_files="$ac_clean_files conftest.out"
  3286. # Check that the compiler produces executables we can run. If not, either
  3287. # the compiler is broken, or we cross compile.
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3289. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3290. if test "$cross_compiling" != yes; then
  3291. { { ac_try="$ac_link"
  3292. case "(($ac_try" in
  3293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3294. *) ac_try_echo=$ac_try;;
  3295. esac
  3296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3297. $as_echo "$ac_try_echo"; } >&5
  3298. (eval "$ac_link") 2>&5
  3299. ac_status=$?
  3300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3301. test $ac_status = 0; }
  3302. if { ac_try='./conftest$ac_cv_exeext'
  3303. { { case "(($ac_try" in
  3304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3305. *) ac_try_echo=$ac_try;;
  3306. esac
  3307. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3308. $as_echo "$ac_try_echo"; } >&5
  3309. (eval "$ac_try") 2>&5
  3310. ac_status=$?
  3311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3312. test $ac_status = 0; }; }; then
  3313. cross_compiling=no
  3314. else
  3315. if test "$cross_compiling" = maybe; then
  3316. cross_compiling=yes
  3317. else
  3318. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3320. as_fn_error $? "cannot run C compiled programs.
  3321. If you meant to cross compile, use \`--host'.
  3322. See \`config.log' for more details" "$LINENO" 5; }
  3323. fi
  3324. fi
  3325. fi
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3327. $as_echo "$cross_compiling" >&6; }
  3328. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3329. ac_clean_files=$ac_clean_files_save
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3332. $as_echo_n "checking for suffix of object files... " >&6; }
  3333. if ${ac_cv_objext+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. rm -f conftest.o conftest.obj
  3346. if { { ac_try="$ac_compile"
  3347. case "(($ac_try" in
  3348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3349. *) ac_try_echo=$ac_try;;
  3350. esac
  3351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3352. $as_echo "$ac_try_echo"; } >&5
  3353. (eval "$ac_compile") 2>&5
  3354. ac_status=$?
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3356. test $ac_status = 0; }; then :
  3357. for ac_file in conftest.o conftest.obj conftest.*; do
  3358. test -f "$ac_file" || continue;
  3359. case $ac_file in
  3360. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3361. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3362. break;;
  3363. esac
  3364. done
  3365. else
  3366. $as_echo "$as_me: failed program was:" >&5
  3367. sed 's/^/| /' conftest.$ac_ext >&5
  3368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3370. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3371. See \`config.log' for more details" "$LINENO" 5; }
  3372. fi
  3373. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3376. $as_echo "$ac_cv_objext" >&6; }
  3377. OBJEXT=$ac_cv_objext
  3378. ac_objext=$OBJEXT
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3380. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3381. if ${ac_cv_c_compiler_gnu+:} false; then :
  3382. $as_echo_n "(cached) " >&6
  3383. else
  3384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385. /* end confdefs.h. */
  3386. int
  3387. main ()
  3388. {
  3389. #ifndef __GNUC__
  3390. choke me
  3391. #endif
  3392. ;
  3393. return 0;
  3394. }
  3395. _ACEOF
  3396. if ac_fn_c_try_compile "$LINENO"; then :
  3397. ac_compiler_gnu=yes
  3398. else
  3399. ac_compiler_gnu=no
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3405. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3406. if test $ac_compiler_gnu = yes; then
  3407. GCC=yes
  3408. else
  3409. GCC=
  3410. fi
  3411. ac_test_CFLAGS=${CFLAGS+set}
  3412. ac_save_CFLAGS=$CFLAGS
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3414. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3415. if ${ac_cv_prog_cc_g+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. ac_save_c_werror_flag=$ac_c_werror_flag
  3419. ac_c_werror_flag=yes
  3420. ac_cv_prog_cc_g=no
  3421. CFLAGS="-g"
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. if ac_fn_c_try_compile "$LINENO"; then :
  3432. ac_cv_prog_cc_g=yes
  3433. else
  3434. CFLAGS=""
  3435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436. /* end confdefs.h. */
  3437. int
  3438. main ()
  3439. {
  3440. ;
  3441. return 0;
  3442. }
  3443. _ACEOF
  3444. if ac_fn_c_try_compile "$LINENO"; then :
  3445. else
  3446. ac_c_werror_flag=$ac_save_c_werror_flag
  3447. CFLAGS="-g"
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. int
  3451. main ()
  3452. {
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. if ac_fn_c_try_compile "$LINENO"; then :
  3458. ac_cv_prog_cc_g=yes
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. fi
  3462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3463. fi
  3464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3465. ac_c_werror_flag=$ac_save_c_werror_flag
  3466. fi
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3468. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3469. if test "$ac_test_CFLAGS" = set; then
  3470. CFLAGS=$ac_save_CFLAGS
  3471. elif test $ac_cv_prog_cc_g = yes; then
  3472. if test "$GCC" = yes; then
  3473. CFLAGS="-g -O2"
  3474. else
  3475. CFLAGS="-g"
  3476. fi
  3477. else
  3478. if test "$GCC" = yes; then
  3479. CFLAGS="-O2"
  3480. else
  3481. CFLAGS=
  3482. fi
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3485. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3486. if ${ac_cv_prog_cc_c89+:} false; then :
  3487. $as_echo_n "(cached) " >&6
  3488. else
  3489. ac_cv_prog_cc_c89=no
  3490. ac_save_CC=$CC
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. #include <stdarg.h>
  3494. #include <stdio.h>
  3495. struct stat;
  3496. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3497. struct buf { int x; };
  3498. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3499. static char *e (p, i)
  3500. char **p;
  3501. int i;
  3502. {
  3503. return p[i];
  3504. }
  3505. static char *f (char * (*g) (char **, int), char **p, ...)
  3506. {
  3507. char *s;
  3508. va_list v;
  3509. va_start (v,p);
  3510. s = g (p, va_arg (v,int));
  3511. va_end (v);
  3512. return s;
  3513. }
  3514. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3515. function prototypes and stuff, but not '\xHH' hex character constants.
  3516. These don't provoke an error unfortunately, instead are silently treated
  3517. as 'x'. The following induces an error, until -std is added to get
  3518. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3519. array size at least. It's necessary to write '\x00'==0 to get something
  3520. that's true only with -std. */
  3521. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3522. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3523. inside strings and character constants. */
  3524. #define FOO(x) 'x'
  3525. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3526. int test (int i, double x);
  3527. struct s1 {int (*f) (int a);};
  3528. struct s2 {int (*f) (double a);};
  3529. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3530. int argc;
  3531. char **argv;
  3532. int
  3533. main ()
  3534. {
  3535. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3536. ;
  3537. return 0;
  3538. }
  3539. _ACEOF
  3540. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3541. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3542. do
  3543. CC="$ac_save_CC $ac_arg"
  3544. if ac_fn_c_try_compile "$LINENO"; then :
  3545. ac_cv_prog_cc_c89=$ac_arg
  3546. fi
  3547. rm -f core conftest.err conftest.$ac_objext
  3548. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3549. done
  3550. rm -f conftest.$ac_ext
  3551. CC=$ac_save_CC
  3552. fi
  3553. # AC_CACHE_VAL
  3554. case "x$ac_cv_prog_cc_c89" in
  3555. x)
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3557. $as_echo "none needed" >&6; } ;;
  3558. xno)
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3560. $as_echo "unsupported" >&6; } ;;
  3561. *)
  3562. CC="$CC $ac_cv_prog_cc_c89"
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3564. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3565. esac
  3566. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3567. fi
  3568. ac_ext=c
  3569. ac_cpp='$CPP $CPPFLAGS'
  3570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3573. ac_ext=c
  3574. ac_cpp='$CPP $CPPFLAGS'
  3575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3579. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3580. if ${am_cv_prog_cc_c_o+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3584. /* end confdefs.h. */
  3585. int
  3586. main ()
  3587. {
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. # Make sure it works both with $CC and with simple cc.
  3593. # Following AC_PROG_CC_C_O, we do the test twice because some
  3594. # compilers refuse to overwrite an existing .o file with -o,
  3595. # though they will create one.
  3596. am_cv_prog_cc_c_o=yes
  3597. for am_i in 1 2; do
  3598. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3599. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3600. ac_status=$?
  3601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3602. (exit $ac_status); } \
  3603. && test -f conftest2.$ac_objext; then
  3604. : OK
  3605. else
  3606. am_cv_prog_cc_c_o=no
  3607. break
  3608. fi
  3609. done
  3610. rm -f core conftest*
  3611. unset am_i
  3612. fi
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3614. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3615. if test "$am_cv_prog_cc_c_o" != yes; then
  3616. # Losing compiler, so override with the script.
  3617. # FIXME: It is wrong to rewrite CC.
  3618. # But if we don't then we get into trouble of one sort or another.
  3619. # A longer-term fix would be to have automake use am__CC in this case,
  3620. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3621. CC="$am_aux_dir/compile $CC"
  3622. fi
  3623. ac_ext=c
  3624. ac_cpp='$CPP $CPPFLAGS'
  3625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3628. depcc="$CC" am_compiler_list=
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3630. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3631. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3635. # We make a subdir and do the tests there. Otherwise we can end up
  3636. # making bogus files that we don't know about and never remove. For
  3637. # instance it was reported that on HP-UX the gcc test will end up
  3638. # making a dummy file named 'D' -- because '-MD' means "put the output
  3639. # in D".
  3640. rm -rf conftest.dir
  3641. mkdir conftest.dir
  3642. # Copy depcomp to subdir because otherwise we won't find it if we're
  3643. # using a relative directory.
  3644. cp "$am_depcomp" conftest.dir
  3645. cd conftest.dir
  3646. # We will build objects and dependencies in a subdirectory because
  3647. # it helps to detect inapplicable dependency modes. For instance
  3648. # both Tru64's cc and ICC support -MD to output dependencies as a
  3649. # side effect of compilation, but ICC will put the dependencies in
  3650. # the current directory while Tru64 will put them in the object
  3651. # directory.
  3652. mkdir sub
  3653. am_cv_CC_dependencies_compiler_type=none
  3654. if test "$am_compiler_list" = ""; then
  3655. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3656. fi
  3657. am__universal=false
  3658. case " $depcc " in #(
  3659. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3660. esac
  3661. for depmode in $am_compiler_list; do
  3662. # Setup a source with many dependencies, because some compilers
  3663. # like to wrap large dependency lists on column 80 (with \), and
  3664. # we should not choose a depcomp mode which is confused by this.
  3665. #
  3666. # We need to recreate these files for each test, as the compiler may
  3667. # overwrite some of them when testing with obscure command lines.
  3668. # This happens at least with the AIX C compiler.
  3669. : > sub/conftest.c
  3670. for i in 1 2 3 4 5 6; do
  3671. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3672. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3673. # Solaris 10 /bin/sh.
  3674. echo '/* dummy */' > sub/conftst$i.h
  3675. done
  3676. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3677. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3678. # mode. It turns out that the SunPro C++ compiler does not properly
  3679. # handle '-M -o', and we need to detect this. Also, some Intel
  3680. # versions had trouble with output in subdirs.
  3681. am__obj=sub/conftest.${OBJEXT-o}
  3682. am__minus_obj="-o $am__obj"
  3683. case $depmode in
  3684. gcc)
  3685. # This depmode causes a compiler race in universal mode.
  3686. test "$am__universal" = false || continue
  3687. ;;
  3688. nosideeffect)
  3689. # After this tag, mechanisms are not by side-effect, so they'll
  3690. # only be used when explicitly requested.
  3691. if test "x$enable_dependency_tracking" = xyes; then
  3692. continue
  3693. else
  3694. break
  3695. fi
  3696. ;;
  3697. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3698. # This compiler won't grok '-c -o', but also, the minuso test has
  3699. # not run yet. These depmodes are late enough in the game, and
  3700. # so weak that their functioning should not be impacted.
  3701. am__obj=conftest.${OBJEXT-o}
  3702. am__minus_obj=
  3703. ;;
  3704. none) break ;;
  3705. esac
  3706. if depmode=$depmode \
  3707. source=sub/conftest.c object=$am__obj \
  3708. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3709. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3710. >/dev/null 2>conftest.err &&
  3711. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3712. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3713. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3714. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3715. # icc doesn't choke on unknown options, it will just issue warnings
  3716. # or remarks (even with -Werror). So we grep stderr for any message
  3717. # that says an option was ignored or not supported.
  3718. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3719. # icc: Command line warning: ignoring option '-M'; no argument required
  3720. # The diagnosis changed in icc 8.0:
  3721. # icc: Command line remark: option '-MP' not supported
  3722. if (grep 'ignoring option' conftest.err ||
  3723. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3724. am_cv_CC_dependencies_compiler_type=$depmode
  3725. break
  3726. fi
  3727. fi
  3728. done
  3729. cd ..
  3730. rm -rf conftest.dir
  3731. else
  3732. am_cv_CC_dependencies_compiler_type=none
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3736. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3737. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3738. if
  3739. test "x$enable_dependency_tracking" != xno \
  3740. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3741. am__fastdepCC_TRUE=
  3742. am__fastdepCC_FALSE='#'
  3743. else
  3744. am__fastdepCC_TRUE='#'
  3745. am__fastdepCC_FALSE=
  3746. fi
  3747. ac_ext=c
  3748. ac_cpp='$CPP $CPPFLAGS'
  3749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3753. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3754. # On Suns, sometimes $CPP names a directory.
  3755. if test -n "$CPP" && test -d "$CPP"; then
  3756. CPP=
  3757. fi
  3758. if test -z "$CPP"; then
  3759. if ${ac_cv_prog_CPP+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. # Double quotes because CPP needs to be expanded
  3763. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3764. do
  3765. ac_preproc_ok=false
  3766. for ac_c_preproc_warn_flag in '' yes
  3767. do
  3768. # Use a header file that comes with gcc, so configuring glibc
  3769. # with a fresh cross-compiler works.
  3770. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3771. # <limits.h> exists even on freestanding compilers.
  3772. # On the NeXT, cc -E runs the code through the compiler's parser,
  3773. # not just through cpp. "Syntax error" is here to catch this case.
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. #ifdef __STDC__
  3777. # include <limits.h>
  3778. #else
  3779. # include <assert.h>
  3780. #endif
  3781. Syntax error
  3782. _ACEOF
  3783. if ac_fn_c_try_cpp "$LINENO"; then :
  3784. else
  3785. # Broken: fails on valid input.
  3786. continue
  3787. fi
  3788. rm -f conftest.err conftest.i conftest.$ac_ext
  3789. # OK, works on sane cases. Now check whether nonexistent headers
  3790. # can be detected and how.
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. #include <ac_nonexistent.h>
  3794. _ACEOF
  3795. if ac_fn_c_try_cpp "$LINENO"; then :
  3796. # Broken: success on invalid input.
  3797. continue
  3798. else
  3799. # Passes both tests.
  3800. ac_preproc_ok=:
  3801. break
  3802. fi
  3803. rm -f conftest.err conftest.i conftest.$ac_ext
  3804. done
  3805. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3806. rm -f conftest.i conftest.err conftest.$ac_ext
  3807. if $ac_preproc_ok; then :
  3808. break
  3809. fi
  3810. done
  3811. ac_cv_prog_CPP=$CPP
  3812. fi
  3813. CPP=$ac_cv_prog_CPP
  3814. else
  3815. ac_cv_prog_CPP=$CPP
  3816. fi
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3818. $as_echo "$CPP" >&6; }
  3819. ac_preproc_ok=false
  3820. for ac_c_preproc_warn_flag in '' yes
  3821. do
  3822. # Use a header file that comes with gcc, so configuring glibc
  3823. # with a fresh cross-compiler works.
  3824. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3825. # <limits.h> exists even on freestanding compilers.
  3826. # On the NeXT, cc -E runs the code through the compiler's parser,
  3827. # not just through cpp. "Syntax error" is here to catch this case.
  3828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3829. /* end confdefs.h. */
  3830. #ifdef __STDC__
  3831. # include <limits.h>
  3832. #else
  3833. # include <assert.h>
  3834. #endif
  3835. Syntax error
  3836. _ACEOF
  3837. if ac_fn_c_try_cpp "$LINENO"; then :
  3838. else
  3839. # Broken: fails on valid input.
  3840. continue
  3841. fi
  3842. rm -f conftest.err conftest.i conftest.$ac_ext
  3843. # OK, works on sane cases. Now check whether nonexistent headers
  3844. # can be detected and how.
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <ac_nonexistent.h>
  3848. _ACEOF
  3849. if ac_fn_c_try_cpp "$LINENO"; then :
  3850. # Broken: success on invalid input.
  3851. continue
  3852. else
  3853. # Passes both tests.
  3854. ac_preproc_ok=:
  3855. break
  3856. fi
  3857. rm -f conftest.err conftest.i conftest.$ac_ext
  3858. done
  3859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3860. rm -f conftest.i conftest.err conftest.$ac_ext
  3861. if $ac_preproc_ok; then :
  3862. else
  3863. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3865. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3866. See \`config.log' for more details" "$LINENO" 5; }
  3867. fi
  3868. ac_ext=c
  3869. ac_cpp='$CPP $CPPFLAGS'
  3870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3874. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3875. if ${ac_cv_path_GREP+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if test -z "$GREP"; then
  3879. ac_path_GREP_found=false
  3880. # Loop through the user's path and test for each of PROGNAME-LIST
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_prog in grep ggrep; do
  3887. for ac_exec_ext in '' $ac_executable_extensions; do
  3888. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3889. as_fn_executable_p "$ac_path_GREP" || continue
  3890. # Check for GNU ac_path_GREP and select it if it is found.
  3891. # Check for GNU $ac_path_GREP
  3892. case `"$ac_path_GREP" --version 2>&1` in
  3893. *GNU*)
  3894. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3895. *)
  3896. ac_count=0
  3897. $as_echo_n 0123456789 >"conftest.in"
  3898. while :
  3899. do
  3900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3901. mv "conftest.tmp" "conftest.in"
  3902. cp "conftest.in" "conftest.nl"
  3903. $as_echo 'GREP' >> "conftest.nl"
  3904. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3907. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3908. # Best one so far, save it but keep looking for a better one
  3909. ac_cv_path_GREP="$ac_path_GREP"
  3910. ac_path_GREP_max=$ac_count
  3911. fi
  3912. # 10*(2^10) chars as input seems more than enough
  3913. test $ac_count -gt 10 && break
  3914. done
  3915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3916. esac
  3917. $ac_path_GREP_found && break 3
  3918. done
  3919. done
  3920. done
  3921. IFS=$as_save_IFS
  3922. if test -z "$ac_cv_path_GREP"; then
  3923. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3924. fi
  3925. else
  3926. ac_cv_path_GREP=$GREP
  3927. fi
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3930. $as_echo "$ac_cv_path_GREP" >&6; }
  3931. GREP="$ac_cv_path_GREP"
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3933. $as_echo_n "checking for egrep... " >&6; }
  3934. if ${ac_cv_path_EGREP+:} false; then :
  3935. $as_echo_n "(cached) " >&6
  3936. else
  3937. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3938. then ac_cv_path_EGREP="$GREP -E"
  3939. else
  3940. if test -z "$EGREP"; then
  3941. ac_path_EGREP_found=false
  3942. # Loop through the user's path and test for each of PROGNAME-LIST
  3943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3944. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3945. do
  3946. IFS=$as_save_IFS
  3947. test -z "$as_dir" && as_dir=.
  3948. for ac_prog in egrep; do
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3951. as_fn_executable_p "$ac_path_EGREP" || continue
  3952. # Check for GNU ac_path_EGREP and select it if it is found.
  3953. # Check for GNU $ac_path_EGREP
  3954. case `"$ac_path_EGREP" --version 2>&1` in
  3955. *GNU*)
  3956. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3957. *)
  3958. ac_count=0
  3959. $as_echo_n 0123456789 >"conftest.in"
  3960. while :
  3961. do
  3962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3963. mv "conftest.tmp" "conftest.in"
  3964. cp "conftest.in" "conftest.nl"
  3965. $as_echo 'EGREP' >> "conftest.nl"
  3966. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3969. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3970. # Best one so far, save it but keep looking for a better one
  3971. ac_cv_path_EGREP="$ac_path_EGREP"
  3972. ac_path_EGREP_max=$ac_count
  3973. fi
  3974. # 10*(2^10) chars as input seems more than enough
  3975. test $ac_count -gt 10 && break
  3976. done
  3977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3978. esac
  3979. $ac_path_EGREP_found && break 3
  3980. done
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. if test -z "$ac_cv_path_EGREP"; then
  3985. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3986. fi
  3987. else
  3988. ac_cv_path_EGREP=$EGREP
  3989. fi
  3990. fi
  3991. fi
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3993. $as_echo "$ac_cv_path_EGREP" >&6; }
  3994. EGREP="$ac_cv_path_EGREP"
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3996. $as_echo_n "checking for ANSI C header files... " >&6; }
  3997. if ${ac_cv_header_stdc+:} false; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4001. /* end confdefs.h. */
  4002. #include <stdlib.h>
  4003. #include <stdarg.h>
  4004. #include <string.h>
  4005. #include <float.h>
  4006. int
  4007. main ()
  4008. {
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. if ac_fn_c_try_compile "$LINENO"; then :
  4014. ac_cv_header_stdc=yes
  4015. else
  4016. ac_cv_header_stdc=no
  4017. fi
  4018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4019. if test $ac_cv_header_stdc = yes; then
  4020. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. #include <string.h>
  4024. _ACEOF
  4025. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4026. $EGREP "memchr" >/dev/null 2>&1; then :
  4027. else
  4028. ac_cv_header_stdc=no
  4029. fi
  4030. rm -f conftest*
  4031. fi
  4032. if test $ac_cv_header_stdc = yes; then
  4033. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4035. /* end confdefs.h. */
  4036. #include <stdlib.h>
  4037. _ACEOF
  4038. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4039. $EGREP "free" >/dev/null 2>&1; then :
  4040. else
  4041. ac_cv_header_stdc=no
  4042. fi
  4043. rm -f conftest*
  4044. fi
  4045. if test $ac_cv_header_stdc = yes; then
  4046. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4047. if test "$cross_compiling" = yes; then :
  4048. :
  4049. else
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. #include <ctype.h>
  4053. #include <stdlib.h>
  4054. #if ((' ' & 0x0FF) == 0x020)
  4055. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4056. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4057. #else
  4058. # define ISLOWER(c) \
  4059. (('a' <= (c) && (c) <= 'i') \
  4060. || ('j' <= (c) && (c) <= 'r') \
  4061. || ('s' <= (c) && (c) <= 'z'))
  4062. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4063. #endif
  4064. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4065. int
  4066. main ()
  4067. {
  4068. int i;
  4069. for (i = 0; i < 256; i++)
  4070. if (XOR (islower (i), ISLOWER (i))
  4071. || toupper (i) != TOUPPER (i))
  4072. return 2;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_c_try_run "$LINENO"; then :
  4077. else
  4078. ac_cv_header_stdc=no
  4079. fi
  4080. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4081. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4082. fi
  4083. fi
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4086. $as_echo "$ac_cv_header_stdc" >&6; }
  4087. if test $ac_cv_header_stdc = yes; then
  4088. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4089. fi
  4090. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4091. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4092. inttypes.h stdint.h unistd.h
  4093. do :
  4094. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4095. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4096. "
  4097. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4098. cat >>confdefs.h <<_ACEOF
  4099. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4100. _ACEOF
  4101. fi
  4102. done
  4103. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4104. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4105. MINIX=yes
  4106. else
  4107. MINIX=
  4108. fi
  4109. if test "$MINIX" = yes; then
  4110. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4111. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4112. $as_echo "#define _MINIX 1" >>confdefs.h
  4113. fi
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4115. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4116. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. # define __EXTENSIONS__ 1
  4122. $ac_includes_default
  4123. int
  4124. main ()
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. if ac_fn_c_try_compile "$LINENO"; then :
  4131. ac_cv_safe_to_define___extensions__=yes
  4132. else
  4133. ac_cv_safe_to_define___extensions__=no
  4134. fi
  4135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4136. fi
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4138. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4139. test $ac_cv_safe_to_define___extensions__ = yes &&
  4140. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4141. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4142. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4143. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4144. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4145. # See if makeinfo has been installed and is modern enough
  4146. # that we can use it.
  4147. # Extract the first word of "makeinfo", so it can be a program name with args.
  4148. set dummy makeinfo; ac_word=$2
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4150. $as_echo_n "checking for $ac_word... " >&6; }
  4151. if ${ac_cv_prog_MAKEINFO+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. if test -n "$MAKEINFO"; then
  4155. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  4156. else
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH
  4159. do
  4160. IFS=$as_save_IFS
  4161. test -z "$as_dir" && as_dir=.
  4162. for ac_exec_ext in '' $ac_executable_extensions; do
  4163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4164. ac_cv_prog_MAKEINFO="makeinfo"
  4165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4166. break 2
  4167. fi
  4168. done
  4169. done
  4170. IFS=$as_save_IFS
  4171. fi
  4172. fi
  4173. MAKEINFO=$ac_cv_prog_MAKEINFO
  4174. if test -n "$MAKEINFO"; then
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  4176. $as_echo "$MAKEINFO" >&6; }
  4177. else
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4179. $as_echo "no" >&6; }
  4180. fi
  4181. if test -n "$MAKEINFO"; then
  4182. # Found it, now check the version.
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  4184. $as_echo_n "checking for modern makeinfo... " >&6; }
  4185. if ${gcc_cv_prog_makeinfo_modern+:} false; then :
  4186. $as_echo_n "(cached) " >&6
  4187. else
  4188. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  4189. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  4190. case $ac_prog_version in
  4191. '') gcc_cv_prog_makeinfo_modern=no;;
  4192. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  4193. *) gcc_cv_prog_makeinfo_modern=no;;
  4194. esac
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  4197. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  4198. else
  4199. gcc_cv_prog_makeinfo_modern=no
  4200. fi
  4201. if test $gcc_cv_prog_makeinfo_modern = no; then
  4202. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  4203. fi
  4204. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  4205. BUILD_INFO_TRUE=
  4206. BUILD_INFO_FALSE='#'
  4207. else
  4208. BUILD_INFO_TRUE='#'
  4209. BUILD_INFO_FALSE=
  4210. fi
  4211. # Check whether --with-bugurl was given.
  4212. if test "${with_bugurl+set}" = set; then :
  4213. withval=$with_bugurl; case "$withval" in
  4214. yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
  4215. no) BUGURL=
  4216. ;;
  4217. *) BUGURL="$withval"
  4218. ;;
  4219. esac
  4220. else
  4221. BUGURL="https://gcc.gnu.org/bugs/"
  4222. fi
  4223. case ${BUGURL} in
  4224. "")
  4225. REPORT_BUGS_TO=
  4226. REPORT_BUGS_TEXI=
  4227. ;;
  4228. *)
  4229. REPORT_BUGS_TO="<$BUGURL>"
  4230. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  4231. ;;
  4232. esac;
  4233. # Configure libtool
  4234. case `pwd` in
  4235. *\ * | *\ *)
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4237. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4238. esac
  4239. macro_version='2.2.7a'
  4240. macro_revision='1.3134'
  4241. ltmain="$ac_aux_dir/ltmain.sh"
  4242. # Backslashify metacharacters that are still active within
  4243. # double-quoted strings.
  4244. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4245. # Same as above, but do not quote variable references.
  4246. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4247. # Sed substitution to delay expansion of an escaped shell variable in a
  4248. # double_quote_subst'ed string.
  4249. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4250. # Sed substitution to delay expansion of an escaped single quote.
  4251. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4252. # Sed substitution to avoid accidental globbing in evaled expressions
  4253. no_glob_subst='s/\*/\\\*/g'
  4254. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4255. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4256. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4258. $as_echo_n "checking how to print strings... " >&6; }
  4259. # Test print first, because it will be a builtin if present.
  4260. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4261. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4262. ECHO='print -r --'
  4263. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4264. ECHO='printf %s\n'
  4265. else
  4266. # Use this function as a fallback that always works.
  4267. func_fallback_echo ()
  4268. {
  4269. eval 'cat <<_LTECHO_EOF
  4270. $1
  4271. _LTECHO_EOF'
  4272. }
  4273. ECHO='func_fallback_echo'
  4274. fi
  4275. # func_echo_all arg...
  4276. # Invoke $ECHO with all args, space-separated.
  4277. func_echo_all ()
  4278. {
  4279. $ECHO ""
  4280. }
  4281. case "$ECHO" in
  4282. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4283. $as_echo "printf" >&6; } ;;
  4284. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4285. $as_echo "print -r" >&6; } ;;
  4286. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4287. $as_echo "cat" >&6; } ;;
  4288. esac
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4290. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4291. if ${ac_cv_path_SED+:} false; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4295. for ac_i in 1 2 3 4 5 6 7; do
  4296. ac_script="$ac_script$as_nl$ac_script"
  4297. done
  4298. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4299. { ac_script=; unset ac_script;}
  4300. if test -z "$SED"; then
  4301. ac_path_SED_found=false
  4302. # Loop through the user's path and test for each of PROGNAME-LIST
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_prog in sed gsed; do
  4309. for ac_exec_ext in '' $ac_executable_extensions; do
  4310. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4311. as_fn_executable_p "$ac_path_SED" || continue
  4312. # Check for GNU ac_path_SED and select it if it is found.
  4313. # Check for GNU $ac_path_SED
  4314. case `"$ac_path_SED" --version 2>&1` in
  4315. *GNU*)
  4316. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4317. *)
  4318. ac_count=0
  4319. $as_echo_n 0123456789 >"conftest.in"
  4320. while :
  4321. do
  4322. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4323. mv "conftest.tmp" "conftest.in"
  4324. cp "conftest.in" "conftest.nl"
  4325. $as_echo '' >> "conftest.nl"
  4326. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4327. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4328. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4329. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4330. # Best one so far, save it but keep looking for a better one
  4331. ac_cv_path_SED="$ac_path_SED"
  4332. ac_path_SED_max=$ac_count
  4333. fi
  4334. # 10*(2^10) chars as input seems more than enough
  4335. test $ac_count -gt 10 && break
  4336. done
  4337. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4338. esac
  4339. $ac_path_SED_found && break 3
  4340. done
  4341. done
  4342. done
  4343. IFS=$as_save_IFS
  4344. if test -z "$ac_cv_path_SED"; then
  4345. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4346. fi
  4347. else
  4348. ac_cv_path_SED=$SED
  4349. fi
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4352. $as_echo "$ac_cv_path_SED" >&6; }
  4353. SED="$ac_cv_path_SED"
  4354. rm -f conftest.sed
  4355. test -z "$SED" && SED=sed
  4356. Xsed="$SED -e 1s/^X//"
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4358. $as_echo_n "checking for fgrep... " >&6; }
  4359. if ${ac_cv_path_FGREP+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4363. then ac_cv_path_FGREP="$GREP -F"
  4364. else
  4365. if test -z "$FGREP"; then
  4366. ac_path_FGREP_found=false
  4367. # Loop through the user's path and test for each of PROGNAME-LIST
  4368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4369. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4370. do
  4371. IFS=$as_save_IFS
  4372. test -z "$as_dir" && as_dir=.
  4373. for ac_prog in fgrep; do
  4374. for ac_exec_ext in '' $ac_executable_extensions; do
  4375. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4376. as_fn_executable_p "$ac_path_FGREP" || continue
  4377. # Check for GNU ac_path_FGREP and select it if it is found.
  4378. # Check for GNU $ac_path_FGREP
  4379. case `"$ac_path_FGREP" --version 2>&1` in
  4380. *GNU*)
  4381. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4382. *)
  4383. ac_count=0
  4384. $as_echo_n 0123456789 >"conftest.in"
  4385. while :
  4386. do
  4387. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4388. mv "conftest.tmp" "conftest.in"
  4389. cp "conftest.in" "conftest.nl"
  4390. $as_echo 'FGREP' >> "conftest.nl"
  4391. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4392. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4393. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4394. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4395. # Best one so far, save it but keep looking for a better one
  4396. ac_cv_path_FGREP="$ac_path_FGREP"
  4397. ac_path_FGREP_max=$ac_count
  4398. fi
  4399. # 10*(2^10) chars as input seems more than enough
  4400. test $ac_count -gt 10 && break
  4401. done
  4402. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4403. esac
  4404. $ac_path_FGREP_found && break 3
  4405. done
  4406. done
  4407. done
  4408. IFS=$as_save_IFS
  4409. if test -z "$ac_cv_path_FGREP"; then
  4410. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4411. fi
  4412. else
  4413. ac_cv_path_FGREP=$FGREP
  4414. fi
  4415. fi
  4416. fi
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4418. $as_echo "$ac_cv_path_FGREP" >&6; }
  4419. FGREP="$ac_cv_path_FGREP"
  4420. test -z "$GREP" && GREP=grep
  4421. # Check whether --with-gnu-ld was given.
  4422. if test "${with_gnu_ld+set}" = set; then :
  4423. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4424. else
  4425. with_gnu_ld=no
  4426. fi
  4427. ac_prog=ld
  4428. if test "$GCC" = yes; then
  4429. # Check if gcc -print-prog-name=ld gives a path.
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4431. $as_echo_n "checking for ld used by $CC... " >&6; }
  4432. case $host in
  4433. *-*-mingw*)
  4434. # gcc leaves a trailing carriage return which upsets mingw
  4435. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4436. *)
  4437. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4438. esac
  4439. case $ac_prog in
  4440. # Accept absolute paths.
  4441. [\\/]* | ?:[\\/]*)
  4442. re_direlt='/[^/][^/]*/\.\./'
  4443. # Canonicalize the pathname of ld
  4444. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4445. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4446. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4447. done
  4448. test -z "$LD" && LD="$ac_prog"
  4449. ;;
  4450. "")
  4451. # If it fails, then pretend we aren't using GCC.
  4452. ac_prog=ld
  4453. ;;
  4454. *)
  4455. # If it is relative, then search for the first ld in PATH.
  4456. with_gnu_ld=unknown
  4457. ;;
  4458. esac
  4459. elif test "$with_gnu_ld" = yes; then
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4461. $as_echo_n "checking for GNU ld... " >&6; }
  4462. else
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4464. $as_echo_n "checking for non-GNU ld... " >&6; }
  4465. fi
  4466. if ${lt_cv_path_LD+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. if test -z "$LD"; then
  4470. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4471. for ac_dir in $PATH; do
  4472. IFS="$lt_save_ifs"
  4473. test -z "$ac_dir" && ac_dir=.
  4474. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4475. lt_cv_path_LD="$ac_dir/$ac_prog"
  4476. # Check to see if the program is GNU ld. I'd rather use --version,
  4477. # but apparently some variants of GNU ld only accept -v.
  4478. # Break only if it was the GNU/non-GNU ld that we prefer.
  4479. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4480. *GNU* | *'with BFD'*)
  4481. test "$with_gnu_ld" != no && break
  4482. ;;
  4483. *)
  4484. test "$with_gnu_ld" != yes && break
  4485. ;;
  4486. esac
  4487. fi
  4488. done
  4489. IFS="$lt_save_ifs"
  4490. else
  4491. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4492. fi
  4493. fi
  4494. LD="$lt_cv_path_LD"
  4495. if test -n "$LD"; then
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4497. $as_echo "$LD" >&6; }
  4498. else
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4500. $as_echo "no" >&6; }
  4501. fi
  4502. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4504. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4505. if ${lt_cv_prog_gnu_ld+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4509. case `$LD -v 2>&1 </dev/null` in
  4510. *GNU* | *'with BFD'*)
  4511. lt_cv_prog_gnu_ld=yes
  4512. ;;
  4513. *)
  4514. lt_cv_prog_gnu_ld=no
  4515. ;;
  4516. esac
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4519. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4520. with_gnu_ld=$lt_cv_prog_gnu_ld
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4522. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4523. if ${lt_cv_path_NM+:} false; then :
  4524. $as_echo_n "(cached) " >&6
  4525. else
  4526. if test -n "$NM"; then
  4527. # Let the user override the test.
  4528. lt_cv_path_NM="$NM"
  4529. else
  4530. lt_nm_to_check="${ac_tool_prefix}nm"
  4531. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4532. lt_nm_to_check="$lt_nm_to_check nm"
  4533. fi
  4534. for lt_tmp_nm in $lt_nm_to_check; do
  4535. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4536. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4537. IFS="$lt_save_ifs"
  4538. test -z "$ac_dir" && ac_dir=.
  4539. tmp_nm="$ac_dir/$lt_tmp_nm"
  4540. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4541. # Check to see if the nm accepts a BSD-compat flag.
  4542. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4543. # nm: unknown option "B" ignored
  4544. # Tru64's nm complains that /dev/null is an invalid object file
  4545. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4546. */dev/null* | *'Invalid file or object type'*)
  4547. lt_cv_path_NM="$tmp_nm -B"
  4548. break
  4549. ;;
  4550. *)
  4551. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4552. */dev/null*)
  4553. lt_cv_path_NM="$tmp_nm -p"
  4554. break
  4555. ;;
  4556. *)
  4557. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4558. continue # so that we can try to find one that supports BSD flags
  4559. ;;
  4560. esac
  4561. ;;
  4562. esac
  4563. fi
  4564. done
  4565. IFS="$lt_save_ifs"
  4566. done
  4567. : ${lt_cv_path_NM=no}
  4568. fi
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4571. $as_echo "$lt_cv_path_NM" >&6; }
  4572. if test "$lt_cv_path_NM" != "no"; then
  4573. NM="$lt_cv_path_NM"
  4574. else
  4575. # Didn't find any BSD compatible name lister, look for dumpbin.
  4576. if test -n "$DUMPBIN"; then :
  4577. # Let the user override the test.
  4578. else
  4579. if test -n "$ac_tool_prefix"; then
  4580. for ac_prog in dumpbin "link -dump"
  4581. do
  4582. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4583. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$DUMPBIN"; then
  4590. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4599. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. DUMPBIN=$ac_cv_prog_DUMPBIN
  4609. if test -n "$DUMPBIN"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4611. $as_echo "$DUMPBIN" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. test -n "$DUMPBIN" && break
  4617. done
  4618. fi
  4619. if test -z "$DUMPBIN"; then
  4620. ac_ct_DUMPBIN=$DUMPBIN
  4621. for ac_prog in dumpbin "link -dump"
  4622. do
  4623. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4624. set dummy $ac_prog; ac_word=$2
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4626. $as_echo_n "checking for $ac_word... " >&6; }
  4627. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test -n "$ac_ct_DUMPBIN"; then
  4631. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4632. else
  4633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4634. for as_dir in $PATH
  4635. do
  4636. IFS=$as_save_IFS
  4637. test -z "$as_dir" && as_dir=.
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4640. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4642. break 2
  4643. fi
  4644. done
  4645. done
  4646. IFS=$as_save_IFS
  4647. fi
  4648. fi
  4649. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4650. if test -n "$ac_ct_DUMPBIN"; then
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4652. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4653. else
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. $as_echo "no" >&6; }
  4656. fi
  4657. test -n "$ac_ct_DUMPBIN" && break
  4658. done
  4659. if test "x$ac_ct_DUMPBIN" = x; then
  4660. DUMPBIN=":"
  4661. else
  4662. case $cross_compiling:$ac_tool_warned in
  4663. yes:)
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4666. ac_tool_warned=yes ;;
  4667. esac
  4668. DUMPBIN=$ac_ct_DUMPBIN
  4669. fi
  4670. fi
  4671. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4672. *COFF*)
  4673. DUMPBIN="$DUMPBIN -symbols"
  4674. ;;
  4675. *)
  4676. DUMPBIN=:
  4677. ;;
  4678. esac
  4679. fi
  4680. if test "$DUMPBIN" != ":"; then
  4681. NM="$DUMPBIN"
  4682. fi
  4683. fi
  4684. test -z "$NM" && NM=nm
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4686. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4687. if ${lt_cv_nm_interface+:} false; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. lt_cv_nm_interface="BSD nm"
  4691. echo "int some_variable = 0;" > conftest.$ac_ext
  4692. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4693. (eval "$ac_compile" 2>conftest.err)
  4694. cat conftest.err >&5
  4695. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4696. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4697. cat conftest.err >&5
  4698. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4699. cat conftest.out >&5
  4700. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4701. lt_cv_nm_interface="MS dumpbin"
  4702. fi
  4703. rm -f conftest*
  4704. fi
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4706. $as_echo "$lt_cv_nm_interface" >&6; }
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4708. $as_echo_n "checking whether ln -s works... " >&6; }
  4709. LN_S=$as_ln_s
  4710. if test "$LN_S" = "ln -s"; then
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4712. $as_echo "yes" >&6; }
  4713. else
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4715. $as_echo "no, using $LN_S" >&6; }
  4716. fi
  4717. # find the maximum length of command line arguments
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4719. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4720. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4721. $as_echo_n "(cached) " >&6
  4722. else
  4723. i=0
  4724. teststring="ABCD"
  4725. case $build_os in
  4726. msdosdjgpp*)
  4727. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4728. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4729. # during glob expansion). Even if it were fixed, the result of this
  4730. # check would be larger than it should be.
  4731. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4732. ;;
  4733. gnu*)
  4734. # Under GNU Hurd, this test is not required because there is
  4735. # no limit to the length of command line arguments.
  4736. # Libtool will interpret -1 as no limit whatsoever
  4737. lt_cv_sys_max_cmd_len=-1;
  4738. ;;
  4739. cygwin* | mingw* | cegcc*)
  4740. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4741. # about 5 minutes as the teststring grows exponentially.
  4742. # Worse, since 9x/ME are not pre-emptively multitasking,
  4743. # you end up with a "frozen" computer, even though with patience
  4744. # the test eventually succeeds (with a max line length of 256k).
  4745. # Instead, let's just punt: use the minimum linelength reported by
  4746. # all of the supported platforms: 8192 (on NT/2K/XP).
  4747. lt_cv_sys_max_cmd_len=8192;
  4748. ;;
  4749. mint*)
  4750. # On MiNT this can take a long time and run out of memory.
  4751. lt_cv_sys_max_cmd_len=8192;
  4752. ;;
  4753. amigaos*)
  4754. # On AmigaOS with pdksh, this test takes hours, literally.
  4755. # So we just punt and use a minimum line length of 8192.
  4756. lt_cv_sys_max_cmd_len=8192;
  4757. ;;
  4758. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4759. # This has been around since 386BSD, at least. Likely further.
  4760. if test -x /sbin/sysctl; then
  4761. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4762. elif test -x /usr/sbin/sysctl; then
  4763. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4764. else
  4765. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4766. fi
  4767. # And add a safety zone
  4768. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4769. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4770. ;;
  4771. interix*)
  4772. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4773. lt_cv_sys_max_cmd_len=196608
  4774. ;;
  4775. osf*)
  4776. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4777. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4778. # nice to cause kernel panics so lets avoid the loop below.
  4779. # First set a reasonable default.
  4780. lt_cv_sys_max_cmd_len=16384
  4781. #
  4782. if test -x /sbin/sysconfig; then
  4783. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4784. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4785. esac
  4786. fi
  4787. ;;
  4788. sco3.2v5*)
  4789. lt_cv_sys_max_cmd_len=102400
  4790. ;;
  4791. sysv5* | sco5v6* | sysv4.2uw2*)
  4792. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4793. if test -n "$kargmax"; then
  4794. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4795. else
  4796. lt_cv_sys_max_cmd_len=32768
  4797. fi
  4798. ;;
  4799. *)
  4800. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4801. if test -n "$lt_cv_sys_max_cmd_len"; then
  4802. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4803. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4804. else
  4805. # Make teststring a little bigger before we do anything with it.
  4806. # a 1K string should be a reasonable start.
  4807. for i in 1 2 3 4 5 6 7 8 ; do
  4808. teststring=$teststring$teststring
  4809. done
  4810. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4811. # If test is not a shell built-in, we'll probably end up computing a
  4812. # maximum length that is only half of the actual maximum length, but
  4813. # we can't tell.
  4814. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4815. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4816. test $i != 17 # 1/2 MB should be enough
  4817. do
  4818. i=`expr $i + 1`
  4819. teststring=$teststring$teststring
  4820. done
  4821. # Only check the string length outside the loop.
  4822. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4823. teststring=
  4824. # Add a significant safety factor because C++ compilers can tack on
  4825. # massive amounts of additional arguments before passing them to the
  4826. # linker. It appears as though 1/2 is a usable value.
  4827. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4828. fi
  4829. ;;
  4830. esac
  4831. fi
  4832. if test -n $lt_cv_sys_max_cmd_len ; then
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4834. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4835. else
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4837. $as_echo "none" >&6; }
  4838. fi
  4839. max_cmd_len=$lt_cv_sys_max_cmd_len
  4840. : ${CP="cp -f"}
  4841. : ${MV="mv -f"}
  4842. : ${RM="rm -f"}
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4844. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4845. # Try some XSI features
  4846. xsi_shell=no
  4847. ( _lt_dummy="a/b/c"
  4848. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4849. = c,a/b,, \
  4850. && eval 'test $(( 1 + 1 )) -eq 2 \
  4851. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4852. && xsi_shell=yes
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4854. $as_echo "$xsi_shell" >&6; }
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4856. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4857. lt_shell_append=no
  4858. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4859. >/dev/null 2>&1 \
  4860. && lt_shell_append=yes
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4862. $as_echo "$lt_shell_append" >&6; }
  4863. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4864. lt_unset=unset
  4865. else
  4866. lt_unset=false
  4867. fi
  4868. # test EBCDIC or ASCII
  4869. case `echo X|tr X '\101'` in
  4870. A) # ASCII based system
  4871. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4872. lt_SP2NL='tr \040 \012'
  4873. lt_NL2SP='tr \015\012 \040\040'
  4874. ;;
  4875. *) # EBCDIC based system
  4876. lt_SP2NL='tr \100 \n'
  4877. lt_NL2SP='tr \r\n \100\100'
  4878. ;;
  4879. esac
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4881. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4882. if ${lt_cv_ld_reload_flag+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. lt_cv_ld_reload_flag='-r'
  4886. fi
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4888. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4889. reload_flag=$lt_cv_ld_reload_flag
  4890. case $reload_flag in
  4891. "" | " "*) ;;
  4892. *) reload_flag=" $reload_flag" ;;
  4893. esac
  4894. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4895. case $host_os in
  4896. darwin*)
  4897. if test "$GCC" = yes; then
  4898. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4899. else
  4900. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4901. fi
  4902. ;;
  4903. esac
  4904. if test -n "$ac_tool_prefix"; then
  4905. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4906. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4908. $as_echo_n "checking for $ac_word... " >&6; }
  4909. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if test -n "$OBJDUMP"; then
  4913. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4914. else
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4922. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4924. break 2
  4925. fi
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. fi
  4930. fi
  4931. OBJDUMP=$ac_cv_prog_OBJDUMP
  4932. if test -n "$OBJDUMP"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4934. $as_echo "$OBJDUMP" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. fi
  4940. if test -z "$ac_cv_prog_OBJDUMP"; then
  4941. ac_ct_OBJDUMP=$OBJDUMP
  4942. # Extract the first word of "objdump", so it can be a program name with args.
  4943. set dummy objdump; ac_word=$2
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4945. $as_echo_n "checking for $ac_word... " >&6; }
  4946. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. if test -n "$ac_ct_OBJDUMP"; then
  4950. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4951. else
  4952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4953. for as_dir in $PATH
  4954. do
  4955. IFS=$as_save_IFS
  4956. test -z "$as_dir" && as_dir=.
  4957. for ac_exec_ext in '' $ac_executable_extensions; do
  4958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4959. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4961. break 2
  4962. fi
  4963. done
  4964. done
  4965. IFS=$as_save_IFS
  4966. fi
  4967. fi
  4968. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4969. if test -n "$ac_ct_OBJDUMP"; then
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4971. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4972. else
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4974. $as_echo "no" >&6; }
  4975. fi
  4976. if test "x$ac_ct_OBJDUMP" = x; then
  4977. OBJDUMP="false"
  4978. else
  4979. case $cross_compiling:$ac_tool_warned in
  4980. yes:)
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4983. ac_tool_warned=yes ;;
  4984. esac
  4985. OBJDUMP=$ac_ct_OBJDUMP
  4986. fi
  4987. else
  4988. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4989. fi
  4990. test -z "$OBJDUMP" && OBJDUMP=objdump
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4992. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4993. if ${lt_cv_deplibs_check_method+:} false; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4997. lt_cv_file_magic_test_file=
  4998. lt_cv_deplibs_check_method='unknown'
  4999. # Need to set the preceding variable on all platforms that support
  5000. # interlibrary dependencies.
  5001. # 'none' -- dependencies not supported.
  5002. # `unknown' -- same as none, but documents that we really don't know.
  5003. # 'pass_all' -- all dependencies passed with no checks.
  5004. # 'test_compile' -- check by making test program.
  5005. # 'file_magic [[regex]]' -- check by looking for files in library path
  5006. # which responds to the $file_magic_cmd with a given extended regex.
  5007. # If you have `file' or equivalent on your system and you're not sure
  5008. # whether `pass_all' will *always* work, you probably want this one.
  5009. case $host_os in
  5010. aix[4-9]*)
  5011. lt_cv_deplibs_check_method=pass_all
  5012. ;;
  5013. beos*)
  5014. lt_cv_deplibs_check_method=pass_all
  5015. ;;
  5016. bsdi[45]*)
  5017. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5018. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5019. lt_cv_file_magic_test_file=/shlib/libc.so
  5020. ;;
  5021. cygwin*)
  5022. # func_win32_libid is a shell function defined in ltmain.sh
  5023. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5024. lt_cv_file_magic_cmd='func_win32_libid'
  5025. ;;
  5026. mingw* | pw32*)
  5027. # Base MSYS/MinGW do not provide the 'file' command needed by
  5028. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5029. # unless we find 'file', for example because we are cross-compiling.
  5030. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5031. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5032. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5033. lt_cv_file_magic_cmd='func_win32_libid'
  5034. else
  5035. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5036. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5037. fi
  5038. ;;
  5039. cegcc*)
  5040. # use the weaker test based on 'objdump'. See mingw*.
  5041. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5042. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5043. ;;
  5044. darwin* | rhapsody*)
  5045. lt_cv_deplibs_check_method=pass_all
  5046. ;;
  5047. freebsd* | dragonfly*)
  5048. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5049. case $host_cpu in
  5050. i*86 )
  5051. # Not sure whether the presence of OpenBSD here was a mistake.
  5052. # Let's accept both of them until this is cleared up.
  5053. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5054. lt_cv_file_magic_cmd=/usr/bin/file
  5055. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5056. ;;
  5057. esac
  5058. else
  5059. lt_cv_deplibs_check_method=pass_all
  5060. fi
  5061. ;;
  5062. gnu*)
  5063. lt_cv_deplibs_check_method=pass_all
  5064. ;;
  5065. haiku*)
  5066. lt_cv_deplibs_check_method=pass_all
  5067. ;;
  5068. hpux10.20* | hpux11*)
  5069. lt_cv_file_magic_cmd=/usr/bin/file
  5070. case $host_cpu in
  5071. ia64*)
  5072. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5073. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5074. ;;
  5075. hppa*64*)
  5076. 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]'
  5077. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5078. ;;
  5079. *)
  5080. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5081. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5082. ;;
  5083. esac
  5084. ;;
  5085. interix[3-9]*)
  5086. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5087. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5088. ;;
  5089. irix5* | irix6* | nonstopux*)
  5090. case $LD in
  5091. *-32|*"-32 ") libmagic=32-bit;;
  5092. *-n32|*"-n32 ") libmagic=N32;;
  5093. *-64|*"-64 ") libmagic=64-bit;;
  5094. *) libmagic=never-match;;
  5095. esac
  5096. lt_cv_deplibs_check_method=pass_all
  5097. ;;
  5098. # This must be Linux ELF.
  5099. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5100. lt_cv_deplibs_check_method=pass_all
  5101. ;;
  5102. netbsd*)
  5103. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5104. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5105. else
  5106. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5107. fi
  5108. ;;
  5109. newos6*)
  5110. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5111. lt_cv_file_magic_cmd=/usr/bin/file
  5112. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5113. ;;
  5114. *nto* | *qnx*)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. openbsd*)
  5118. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5119. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5120. else
  5121. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5122. fi
  5123. ;;
  5124. osf3* | osf4* | osf5*)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. rdos*)
  5128. lt_cv_deplibs_check_method=pass_all
  5129. ;;
  5130. solaris*)
  5131. lt_cv_deplibs_check_method=pass_all
  5132. ;;
  5133. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5134. lt_cv_deplibs_check_method=pass_all
  5135. ;;
  5136. sysv4 | sysv4.3*)
  5137. case $host_vendor in
  5138. motorola)
  5139. 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]'
  5140. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5141. ;;
  5142. ncr)
  5143. lt_cv_deplibs_check_method=pass_all
  5144. ;;
  5145. sequent)
  5146. lt_cv_file_magic_cmd='/bin/file'
  5147. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5148. ;;
  5149. sni)
  5150. lt_cv_file_magic_cmd='/bin/file'
  5151. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5152. lt_cv_file_magic_test_file=/lib/libc.so
  5153. ;;
  5154. siemens)
  5155. lt_cv_deplibs_check_method=pass_all
  5156. ;;
  5157. pc)
  5158. lt_cv_deplibs_check_method=pass_all
  5159. ;;
  5160. esac
  5161. ;;
  5162. tpf*)
  5163. lt_cv_deplibs_check_method=pass_all
  5164. ;;
  5165. esac
  5166. fi
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5168. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5169. file_magic_cmd=$lt_cv_file_magic_cmd
  5170. deplibs_check_method=$lt_cv_deplibs_check_method
  5171. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5172. if test -n "$ac_tool_prefix"; then
  5173. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5174. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5176. $as_echo_n "checking for $ac_word... " >&6; }
  5177. if ${ac_cv_prog_AR+:} false; then :
  5178. $as_echo_n "(cached) " >&6
  5179. else
  5180. if test -n "$AR"; then
  5181. ac_cv_prog_AR="$AR" # Let the user override the test.
  5182. else
  5183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5184. for as_dir in $PATH
  5185. do
  5186. IFS=$as_save_IFS
  5187. test -z "$as_dir" && as_dir=.
  5188. for ac_exec_ext in '' $ac_executable_extensions; do
  5189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5190. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5192. break 2
  5193. fi
  5194. done
  5195. done
  5196. IFS=$as_save_IFS
  5197. fi
  5198. fi
  5199. AR=$ac_cv_prog_AR
  5200. if test -n "$AR"; then
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5202. $as_echo "$AR" >&6; }
  5203. else
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5205. $as_echo "no" >&6; }
  5206. fi
  5207. fi
  5208. if test -z "$ac_cv_prog_AR"; then
  5209. ac_ct_AR=$AR
  5210. # Extract the first word of "ar", so it can be a program name with args.
  5211. set dummy ar; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$ac_ct_AR"; then
  5218. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5227. ac_cv_prog_ac_ct_AR="ar"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5237. if test -n "$ac_ct_AR"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5239. $as_echo "$ac_ct_AR" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. if test "x$ac_ct_AR" = x; then
  5245. AR="false"
  5246. else
  5247. case $cross_compiling:$ac_tool_warned in
  5248. yes:)
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5251. ac_tool_warned=yes ;;
  5252. esac
  5253. AR=$ac_ct_AR
  5254. fi
  5255. else
  5256. AR="$ac_cv_prog_AR"
  5257. fi
  5258. test -z "$AR" && AR=ar
  5259. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5260. if test -n "$ac_tool_prefix"; then
  5261. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5262. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5264. $as_echo_n "checking for $ac_word... " >&6; }
  5265. if ${ac_cv_prog_STRIP+:} false; then :
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. if test -n "$STRIP"; then
  5269. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5270. else
  5271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5272. for as_dir in $PATH
  5273. do
  5274. IFS=$as_save_IFS
  5275. test -z "$as_dir" && as_dir=.
  5276. for ac_exec_ext in '' $ac_executable_extensions; do
  5277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5278. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5280. break 2
  5281. fi
  5282. done
  5283. done
  5284. IFS=$as_save_IFS
  5285. fi
  5286. fi
  5287. STRIP=$ac_cv_prog_STRIP
  5288. if test -n "$STRIP"; then
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5290. $as_echo "$STRIP" >&6; }
  5291. else
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5293. $as_echo "no" >&6; }
  5294. fi
  5295. fi
  5296. if test -z "$ac_cv_prog_STRIP"; then
  5297. ac_ct_STRIP=$STRIP
  5298. # Extract the first word of "strip", so it can be a program name with args.
  5299. set dummy strip; ac_word=$2
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. if test -n "$ac_ct_STRIP"; then
  5306. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5315. ac_cv_prog_ac_ct_STRIP="strip"
  5316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. fi
  5323. fi
  5324. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5325. if test -n "$ac_ct_STRIP"; then
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5327. $as_echo "$ac_ct_STRIP" >&6; }
  5328. else
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5330. $as_echo "no" >&6; }
  5331. fi
  5332. if test "x$ac_ct_STRIP" = x; then
  5333. STRIP=":"
  5334. else
  5335. case $cross_compiling:$ac_tool_warned in
  5336. yes:)
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5339. ac_tool_warned=yes ;;
  5340. esac
  5341. STRIP=$ac_ct_STRIP
  5342. fi
  5343. else
  5344. STRIP="$ac_cv_prog_STRIP"
  5345. fi
  5346. test -z "$STRIP" && STRIP=:
  5347. if test -n "$ac_tool_prefix"; then
  5348. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5349. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5351. $as_echo_n "checking for $ac_word... " >&6; }
  5352. if ${ac_cv_prog_RANLIB+:} false; then :
  5353. $as_echo_n "(cached) " >&6
  5354. else
  5355. if test -n "$RANLIB"; then
  5356. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5357. else
  5358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5359. for as_dir in $PATH
  5360. do
  5361. IFS=$as_save_IFS
  5362. test -z "$as_dir" && as_dir=.
  5363. for ac_exec_ext in '' $ac_executable_extensions; do
  5364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5365. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5367. break 2
  5368. fi
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. fi
  5373. fi
  5374. RANLIB=$ac_cv_prog_RANLIB
  5375. if test -n "$RANLIB"; then
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5377. $as_echo "$RANLIB" >&6; }
  5378. else
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5380. $as_echo "no" >&6; }
  5381. fi
  5382. fi
  5383. if test -z "$ac_cv_prog_RANLIB"; then
  5384. ac_ct_RANLIB=$RANLIB
  5385. # Extract the first word of "ranlib", so it can be a program name with args.
  5386. set dummy ranlib; ac_word=$2
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5388. $as_echo_n "checking for $ac_word... " >&6; }
  5389. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5390. $as_echo_n "(cached) " >&6
  5391. else
  5392. if test -n "$ac_ct_RANLIB"; then
  5393. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5394. else
  5395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5396. for as_dir in $PATH
  5397. do
  5398. IFS=$as_save_IFS
  5399. test -z "$as_dir" && as_dir=.
  5400. for ac_exec_ext in '' $ac_executable_extensions; do
  5401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5402. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5404. break 2
  5405. fi
  5406. done
  5407. done
  5408. IFS=$as_save_IFS
  5409. fi
  5410. fi
  5411. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5412. if test -n "$ac_ct_RANLIB"; then
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5414. $as_echo "$ac_ct_RANLIB" >&6; }
  5415. else
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5417. $as_echo "no" >&6; }
  5418. fi
  5419. if test "x$ac_ct_RANLIB" = x; then
  5420. RANLIB=":"
  5421. else
  5422. case $cross_compiling:$ac_tool_warned in
  5423. yes:)
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5425. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5426. ac_tool_warned=yes ;;
  5427. esac
  5428. RANLIB=$ac_ct_RANLIB
  5429. fi
  5430. else
  5431. RANLIB="$ac_cv_prog_RANLIB"
  5432. fi
  5433. test -z "$RANLIB" && RANLIB=:
  5434. # Determine commands to create old-style static archives.
  5435. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5436. old_postinstall_cmds='chmod 644 $oldlib'
  5437. old_postuninstall_cmds=
  5438. if test -n "$RANLIB"; then
  5439. case $host_os in
  5440. openbsd*)
  5441. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5442. ;;
  5443. *)
  5444. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5445. ;;
  5446. esac
  5447. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5448. fi
  5449. case $host_os in
  5450. darwin*)
  5451. lock_old_archive_extraction=yes ;;
  5452. *)
  5453. lock_old_archive_extraction=no ;;
  5454. esac
  5455. # If no C compiler was specified, use CC.
  5456. LTCC=${LTCC-"$CC"}
  5457. # If no C compiler flags were specified, use CFLAGS.
  5458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5459. # Allow CC to be a program name with arguments.
  5460. compiler=$CC
  5461. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5463. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5464. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. # These are sane defaults that work on at least a few old systems.
  5468. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5469. # Character class describing NM global symbol codes.
  5470. symcode='[BCDEGRST]'
  5471. # Regexp to match symbols that can be accessed directly from C.
  5472. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5473. # Define system-specific variables.
  5474. case $host_os in
  5475. aix*)
  5476. symcode='[BCDT]'
  5477. ;;
  5478. cygwin* | mingw* | pw32* | cegcc*)
  5479. symcode='[ABCDGISTW]'
  5480. ;;
  5481. hpux*)
  5482. if test "$host_cpu" = ia64; then
  5483. symcode='[ABCDEGRST]'
  5484. fi
  5485. ;;
  5486. irix* | nonstopux*)
  5487. symcode='[BCDEGRST]'
  5488. ;;
  5489. osf*)
  5490. symcode='[BCDEGQRST]'
  5491. ;;
  5492. solaris*)
  5493. symcode='[BDRT]'
  5494. ;;
  5495. sco3.2v5*)
  5496. symcode='[DT]'
  5497. ;;
  5498. sysv4.2uw2*)
  5499. symcode='[DT]'
  5500. ;;
  5501. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5502. symcode='[ABDT]'
  5503. ;;
  5504. sysv4)
  5505. symcode='[DFNSTU]'
  5506. ;;
  5507. esac
  5508. # If we're using GNU nm, then use its standard symbol codes.
  5509. case `$NM -V 2>&1` in
  5510. *GNU* | *'with BFD'*)
  5511. symcode='[ABCDGIRSTW]' ;;
  5512. esac
  5513. # Transform an extracted symbol line into a proper C declaration.
  5514. # Some systems (esp. on ia64) link data and code symbols differently,
  5515. # so use this general approach.
  5516. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5517. # Transform an extracted symbol line into symbol name and symbol address
  5518. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5519. 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'"
  5520. # Handle CRLF in mingw tool chain
  5521. opt_cr=
  5522. case $build_os in
  5523. mingw*)
  5524. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5525. ;;
  5526. esac
  5527. # Try without a prefix underscore, then with it.
  5528. for ac_symprfx in "" "_"; do
  5529. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5530. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5531. # Write the raw and C identifiers.
  5532. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5533. # Fake it for dumpbin and say T for any non-static function
  5534. # and D for any global variable.
  5535. # Also find C++ and __fastcall symbols from MSVC++,
  5536. # which start with @ or ?.
  5537. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5538. " {last_section=section; section=\$ 3};"\
  5539. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5540. " \$ 0!~/External *\|/{next};"\
  5541. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5542. " {if(hide[section]) next};"\
  5543. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5544. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5545. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5546. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5547. " ' prfx=^$ac_symprfx"
  5548. else
  5549. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5550. fi
  5551. # Check to see that the pipe works correctly.
  5552. pipe_works=no
  5553. rm -f conftest*
  5554. cat > conftest.$ac_ext <<_LT_EOF
  5555. #ifdef __cplusplus
  5556. extern "C" {
  5557. #endif
  5558. char nm_test_var;
  5559. void nm_test_func(void);
  5560. void nm_test_func(void){}
  5561. #ifdef __cplusplus
  5562. }
  5563. #endif
  5564. int main(){nm_test_var='a';nm_test_func();return(0);}
  5565. _LT_EOF
  5566. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5567. (eval $ac_compile) 2>&5
  5568. ac_status=$?
  5569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5570. test $ac_status = 0; }; then
  5571. # Now try to grab the symbols.
  5572. nlist=conftest.nm
  5573. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5574. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5575. ac_status=$?
  5576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5577. test $ac_status = 0; } && test -s "$nlist"; then
  5578. # Try sorting and uniquifying the output.
  5579. if sort "$nlist" | uniq > "$nlist"T; then
  5580. mv -f "$nlist"T "$nlist"
  5581. else
  5582. rm -f "$nlist"T
  5583. fi
  5584. # Make sure that we snagged all the symbols we need.
  5585. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5586. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5587. cat <<_LT_EOF > conftest.$ac_ext
  5588. #ifdef __cplusplus
  5589. extern "C" {
  5590. #endif
  5591. _LT_EOF
  5592. # Now generate the symbol file.
  5593. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5594. cat <<_LT_EOF >> conftest.$ac_ext
  5595. /* The mapping between symbol names and symbols. */
  5596. const struct {
  5597. const char *name;
  5598. void *address;
  5599. }
  5600. lt__PROGRAM__LTX_preloaded_symbols[] =
  5601. {
  5602. { "@PROGRAM@", (void *) 0 },
  5603. _LT_EOF
  5604. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5605. cat <<\_LT_EOF >> conftest.$ac_ext
  5606. {0, (void *) 0}
  5607. };
  5608. /* This works around a problem in FreeBSD linker */
  5609. #ifdef FREEBSD_WORKAROUND
  5610. static const void *lt_preloaded_setup() {
  5611. return lt__PROGRAM__LTX_preloaded_symbols;
  5612. }
  5613. #endif
  5614. #ifdef __cplusplus
  5615. }
  5616. #endif
  5617. _LT_EOF
  5618. # Now try linking the two files.
  5619. mv conftest.$ac_objext conftstm.$ac_objext
  5620. lt_save_LIBS="$LIBS"
  5621. lt_save_CFLAGS="$CFLAGS"
  5622. LIBS="conftstm.$ac_objext"
  5623. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5625. (eval $ac_link) 2>&5
  5626. ac_status=$?
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5628. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5629. pipe_works=yes
  5630. fi
  5631. LIBS="$lt_save_LIBS"
  5632. CFLAGS="$lt_save_CFLAGS"
  5633. else
  5634. echo "cannot find nm_test_func in $nlist" >&5
  5635. fi
  5636. else
  5637. echo "cannot find nm_test_var in $nlist" >&5
  5638. fi
  5639. else
  5640. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5641. fi
  5642. else
  5643. echo "$progname: failed program was:" >&5
  5644. cat conftest.$ac_ext >&5
  5645. fi
  5646. rm -rf conftest* conftst*
  5647. # Do not use the global_symbol_pipe unless it works.
  5648. if test "$pipe_works" = yes; then
  5649. break
  5650. else
  5651. lt_cv_sys_global_symbol_pipe=
  5652. fi
  5653. done
  5654. fi
  5655. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5656. lt_cv_sys_global_symbol_to_cdecl=
  5657. fi
  5658. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5660. $as_echo "failed" >&6; }
  5661. else
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5663. $as_echo "ok" >&6; }
  5664. fi
  5665. # Check whether --enable-libtool-lock was given.
  5666. if test "${enable_libtool_lock+set}" = set; then :
  5667. enableval=$enable_libtool_lock;
  5668. fi
  5669. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5670. # Some flags need to be propagated to the compiler or linker for good
  5671. # libtool support.
  5672. case $host in
  5673. ia64-*-hpux*)
  5674. # Find out which ABI we are using.
  5675. echo 'int i;' > conftest.$ac_ext
  5676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5677. (eval $ac_compile) 2>&5
  5678. ac_status=$?
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5680. test $ac_status = 0; }; then
  5681. case `/usr/bin/file conftest.$ac_objext` in
  5682. *ELF-32*)
  5683. HPUX_IA64_MODE="32"
  5684. ;;
  5685. *ELF-64*)
  5686. HPUX_IA64_MODE="64"
  5687. ;;
  5688. esac
  5689. fi
  5690. rm -rf conftest*
  5691. ;;
  5692. *-*-irix6*)
  5693. # Find out which ABI we are using.
  5694. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5695. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5696. (eval $ac_compile) 2>&5
  5697. ac_status=$?
  5698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5699. test $ac_status = 0; }; then
  5700. if test "$lt_cv_prog_gnu_ld" = yes; then
  5701. case `/usr/bin/file conftest.$ac_objext` in
  5702. *32-bit*)
  5703. LD="${LD-ld} -melf32bsmip"
  5704. ;;
  5705. *N32*)
  5706. LD="${LD-ld} -melf32bmipn32"
  5707. ;;
  5708. *64-bit*)
  5709. LD="${LD-ld} -melf64bmip"
  5710. ;;
  5711. esac
  5712. else
  5713. case `/usr/bin/file conftest.$ac_objext` in
  5714. *32-bit*)
  5715. LD="${LD-ld} -32"
  5716. ;;
  5717. *N32*)
  5718. LD="${LD-ld} -n32"
  5719. ;;
  5720. *64-bit*)
  5721. LD="${LD-ld} -64"
  5722. ;;
  5723. esac
  5724. fi
  5725. fi
  5726. rm -rf conftest*
  5727. ;;
  5728. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5729. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5730. # Find out which ABI we are using.
  5731. echo 'int i;' > conftest.$ac_ext
  5732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5733. (eval $ac_compile) 2>&5
  5734. ac_status=$?
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5736. test $ac_status = 0; }; then
  5737. case `/usr/bin/file conftest.o` in
  5738. *32-bit*)
  5739. case $host in
  5740. x86_64-*kfreebsd*-gnu)
  5741. LD="${LD-ld} -m elf_i386_fbsd"
  5742. ;;
  5743. x86_64-*linux*)
  5744. case `/usr/bin/file conftest.o` in
  5745. *x86-64*)
  5746. LD="${LD-ld} -m elf32_x86_64"
  5747. ;;
  5748. *)
  5749. LD="${LD-ld} -m elf_i386"
  5750. ;;
  5751. esac
  5752. ;;
  5753. powerpc64le-*linux*)
  5754. LD="${LD-ld} -m elf32lppclinux"
  5755. ;;
  5756. powerpc64-*linux*)
  5757. LD="${LD-ld} -m elf32ppclinux"
  5758. ;;
  5759. s390x-*linux*)
  5760. LD="${LD-ld} -m elf_s390"
  5761. ;;
  5762. sparc64-*linux*)
  5763. LD="${LD-ld} -m elf32_sparc"
  5764. ;;
  5765. esac
  5766. ;;
  5767. *64-bit*)
  5768. case $host in
  5769. x86_64-*kfreebsd*-gnu)
  5770. LD="${LD-ld} -m elf_x86_64_fbsd"
  5771. ;;
  5772. x86_64-*linux*)
  5773. LD="${LD-ld} -m elf_x86_64"
  5774. ;;
  5775. powerpcle-*linux*)
  5776. LD="${LD-ld} -m elf64lppc"
  5777. ;;
  5778. powerpc-*linux*)
  5779. LD="${LD-ld} -m elf64ppc"
  5780. ;;
  5781. s390*-*linux*|s390*-*tpf*)
  5782. LD="${LD-ld} -m elf64_s390"
  5783. ;;
  5784. sparc*-*linux*)
  5785. LD="${LD-ld} -m elf64_sparc"
  5786. ;;
  5787. esac
  5788. ;;
  5789. esac
  5790. fi
  5791. rm -rf conftest*
  5792. ;;
  5793. *-*-sco3.2v5*)
  5794. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5795. SAVE_CFLAGS="$CFLAGS"
  5796. CFLAGS="$CFLAGS -belf"
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5798. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5799. if ${lt_cv_cc_needs_belf+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. ac_ext=c
  5803. ac_cpp='$CPP $CPPFLAGS'
  5804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5807. if test x$gcc_no_link = xyes; then
  5808. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5809. fi
  5810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5811. /* end confdefs.h. */
  5812. int
  5813. main ()
  5814. {
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. if ac_fn_c_try_link "$LINENO"; then :
  5820. lt_cv_cc_needs_belf=yes
  5821. else
  5822. lt_cv_cc_needs_belf=no
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext \
  5825. conftest$ac_exeext conftest.$ac_ext
  5826. ac_ext=c
  5827. ac_cpp='$CPP $CPPFLAGS'
  5828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5831. fi
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5833. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5834. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5835. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5836. CFLAGS="$SAVE_CFLAGS"
  5837. fi
  5838. ;;
  5839. sparc*-*solaris*)
  5840. # Find out which ABI we are using.
  5841. echo 'int i;' > conftest.$ac_ext
  5842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5843. (eval $ac_compile) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5846. test $ac_status = 0; }; then
  5847. case `/usr/bin/file conftest.o` in
  5848. *64-bit*)
  5849. case $lt_cv_prog_gnu_ld in
  5850. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5851. *)
  5852. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5853. LD="${LD-ld} -64"
  5854. fi
  5855. ;;
  5856. esac
  5857. ;;
  5858. esac
  5859. fi
  5860. rm -rf conftest*
  5861. ;;
  5862. esac
  5863. need_locks="$enable_libtool_lock"
  5864. case $host_os in
  5865. rhapsody* | darwin*)
  5866. if test -n "$ac_tool_prefix"; then
  5867. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5868. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5870. $as_echo_n "checking for $ac_word... " >&6; }
  5871. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$DSYMUTIL"; then
  5875. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5876. else
  5877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5878. for as_dir in $PATH
  5879. do
  5880. IFS=$as_save_IFS
  5881. test -z "$as_dir" && as_dir=.
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5884. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5886. break 2
  5887. fi
  5888. done
  5889. done
  5890. IFS=$as_save_IFS
  5891. fi
  5892. fi
  5893. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5894. if test -n "$DSYMUTIL"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5896. $as_echo "$DSYMUTIL" >&6; }
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. fi
  5902. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5903. ac_ct_DSYMUTIL=$DSYMUTIL
  5904. # Extract the first word of "dsymutil", so it can be a program name with args.
  5905. set dummy dsymutil; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$ac_ct_DSYMUTIL"; then
  5912. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5921. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5931. if test -n "$ac_ct_DSYMUTIL"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5933. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. if test "x$ac_ct_DSYMUTIL" = x; then
  5939. DSYMUTIL=":"
  5940. else
  5941. case $cross_compiling:$ac_tool_warned in
  5942. yes:)
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5945. ac_tool_warned=yes ;;
  5946. esac
  5947. DSYMUTIL=$ac_ct_DSYMUTIL
  5948. fi
  5949. else
  5950. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5951. fi
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_NMEDIT+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$NMEDIT"; then
  5961. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. NMEDIT=$ac_cv_prog_NMEDIT
  5980. if test -n "$NMEDIT"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5982. $as_echo "$NMEDIT" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_NMEDIT"; then
  5989. ac_ct_NMEDIT=$NMEDIT
  5990. # Extract the first word of "nmedit", so it can be a program name with args.
  5991. set dummy nmedit; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_NMEDIT"; then
  5998. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6017. if test -n "$ac_ct_NMEDIT"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6019. $as_echo "$ac_ct_NMEDIT" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_NMEDIT" = x; then
  6025. NMEDIT=":"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. NMEDIT=$ac_ct_NMEDIT
  6034. fi
  6035. else
  6036. NMEDIT="$ac_cv_prog_NMEDIT"
  6037. fi
  6038. if test -n "$ac_tool_prefix"; then
  6039. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6040. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_LIPO+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$LIPO"; then
  6047. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. LIPO=$ac_cv_prog_LIPO
  6066. if test -n "$LIPO"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6068. $as_echo "$LIPO" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. fi
  6074. if test -z "$ac_cv_prog_LIPO"; then
  6075. ac_ct_LIPO=$LIPO
  6076. # Extract the first word of "lipo", so it can be a program name with args.
  6077. set dummy lipo; ac_word=$2
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. $as_echo_n "checking for $ac_word... " >&6; }
  6080. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. if test -n "$ac_ct_LIPO"; then
  6084. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6085. else
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6093. ac_cv_prog_ac_ct_LIPO="lipo"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. fi
  6101. fi
  6102. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6103. if test -n "$ac_ct_LIPO"; then
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6105. $as_echo "$ac_ct_LIPO" >&6; }
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6108. $as_echo "no" >&6; }
  6109. fi
  6110. if test "x$ac_ct_LIPO" = x; then
  6111. LIPO=":"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. LIPO=$ac_ct_LIPO
  6120. fi
  6121. else
  6122. LIPO="$ac_cv_prog_LIPO"
  6123. fi
  6124. if test -n "$ac_tool_prefix"; then
  6125. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6126. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6128. $as_echo_n "checking for $ac_word... " >&6; }
  6129. if ${ac_cv_prog_OTOOL+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. if test -n "$OTOOL"; then
  6133. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6134. else
  6135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6136. for as_dir in $PATH
  6137. do
  6138. IFS=$as_save_IFS
  6139. test -z "$as_dir" && as_dir=.
  6140. for ac_exec_ext in '' $ac_executable_extensions; do
  6141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6142. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6144. break 2
  6145. fi
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. fi
  6150. fi
  6151. OTOOL=$ac_cv_prog_OTOOL
  6152. if test -n "$OTOOL"; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6154. $as_echo "$OTOOL" >&6; }
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6157. $as_echo "no" >&6; }
  6158. fi
  6159. fi
  6160. if test -z "$ac_cv_prog_OTOOL"; then
  6161. ac_ct_OTOOL=$OTOOL
  6162. # Extract the first word of "otool", so it can be a program name with args.
  6163. set dummy otool; ac_word=$2
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6165. $as_echo_n "checking for $ac_word... " >&6; }
  6166. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. if test -n "$ac_ct_OTOOL"; then
  6170. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6171. else
  6172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6173. for as_dir in $PATH
  6174. do
  6175. IFS=$as_save_IFS
  6176. test -z "$as_dir" && as_dir=.
  6177. for ac_exec_ext in '' $ac_executable_extensions; do
  6178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6179. ac_cv_prog_ac_ct_OTOOL="otool"
  6180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6181. break 2
  6182. fi
  6183. done
  6184. done
  6185. IFS=$as_save_IFS
  6186. fi
  6187. fi
  6188. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6189. if test -n "$ac_ct_OTOOL"; then
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6191. $as_echo "$ac_ct_OTOOL" >&6; }
  6192. else
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6194. $as_echo "no" >&6; }
  6195. fi
  6196. if test "x$ac_ct_OTOOL" = x; then
  6197. OTOOL=":"
  6198. else
  6199. case $cross_compiling:$ac_tool_warned in
  6200. yes:)
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6203. ac_tool_warned=yes ;;
  6204. esac
  6205. OTOOL=$ac_ct_OTOOL
  6206. fi
  6207. else
  6208. OTOOL="$ac_cv_prog_OTOOL"
  6209. fi
  6210. if test -n "$ac_tool_prefix"; then
  6211. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6212. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_OTOOL64+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$OTOOL64"; then
  6219. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. OTOOL64=$ac_cv_prog_OTOOL64
  6238. if test -n "$OTOOL64"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6240. $as_echo "$OTOOL64" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. fi
  6246. if test -z "$ac_cv_prog_OTOOL64"; then
  6247. ac_ct_OTOOL64=$OTOOL64
  6248. # Extract the first word of "otool64", so it can be a program name with args.
  6249. set dummy otool64; ac_word=$2
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6251. $as_echo_n "checking for $ac_word... " >&6; }
  6252. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. if test -n "$ac_ct_OTOOL64"; then
  6256. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. fi
  6273. fi
  6274. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6275. if test -n "$ac_ct_OTOOL64"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6277. $as_echo "$ac_ct_OTOOL64" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "x$ac_ct_OTOOL64" = x; then
  6283. OTOOL64=":"
  6284. else
  6285. case $cross_compiling:$ac_tool_warned in
  6286. yes:)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6289. ac_tool_warned=yes ;;
  6290. esac
  6291. OTOOL64=$ac_ct_OTOOL64
  6292. fi
  6293. else
  6294. OTOOL64="$ac_cv_prog_OTOOL64"
  6295. fi
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6297. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6298. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. lt_cv_apple_cc_single_mod=no
  6302. if test -z "${LT_MULTI_MODULE}"; then
  6303. # By default we will add the -single_module flag. You can override
  6304. # by either setting the environment variable LT_MULTI_MODULE
  6305. # non-empty at configure time, or by adding -multi_module to the
  6306. # link flags.
  6307. rm -rf libconftest.dylib*
  6308. echo "int foo(void){return 1;}" > conftest.c
  6309. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6310. -dynamiclib -Wl,-single_module conftest.c" >&5
  6311. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6312. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6313. _lt_result=$?
  6314. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6315. lt_cv_apple_cc_single_mod=yes
  6316. else
  6317. cat conftest.err >&5
  6318. fi
  6319. rm -rf libconftest.dylib*
  6320. rm -f conftest.*
  6321. fi
  6322. fi
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6324. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6326. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6327. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6328. $as_echo_n "(cached) " >&6
  6329. else
  6330. lt_cv_ld_exported_symbols_list=no
  6331. save_LDFLAGS=$LDFLAGS
  6332. echo "_main" > conftest.sym
  6333. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6334. if test x$gcc_no_link = xyes; then
  6335. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6336. fi
  6337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6338. /* end confdefs.h. */
  6339. int
  6340. main ()
  6341. {
  6342. ;
  6343. return 0;
  6344. }
  6345. _ACEOF
  6346. if ac_fn_c_try_link "$LINENO"; then :
  6347. lt_cv_ld_exported_symbols_list=yes
  6348. else
  6349. lt_cv_ld_exported_symbols_list=no
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext \
  6352. conftest$ac_exeext conftest.$ac_ext
  6353. LDFLAGS="$save_LDFLAGS"
  6354. fi
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6356. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6358. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6359. if ${lt_cv_ld_force_load+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. lt_cv_ld_force_load=no
  6363. cat > conftest.c << _LT_EOF
  6364. int forced_loaded() { return 2;}
  6365. _LT_EOF
  6366. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6367. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6368. echo "$AR cru libconftest.a conftest.o" >&5
  6369. $AR cru libconftest.a conftest.o 2>&5
  6370. cat > conftest.c << _LT_EOF
  6371. int main() { return 0;}
  6372. _LT_EOF
  6373. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6374. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6375. _lt_result=$?
  6376. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6377. lt_cv_ld_force_load=yes
  6378. else
  6379. cat conftest.err >&5
  6380. fi
  6381. rm -f conftest.err libconftest.a conftest conftest.c
  6382. rm -rf conftest.dSYM
  6383. fi
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6385. $as_echo "$lt_cv_ld_force_load" >&6; }
  6386. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6387. # build without first building modern cctools / linker.
  6388. case $host_cpu-$host_os in
  6389. *-rhapsody* | *-darwin1.[012])
  6390. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6391. *-darwin1.*)
  6392. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6393. *-darwin*)
  6394. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6395. # deployment target is forced to an earlier version.
  6396. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6397. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6398. ;;
  6399. 10.[012][,.]*)
  6400. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6401. ;;
  6402. *)
  6403. ;;
  6404. esac
  6405. ;;
  6406. esac
  6407. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6408. _lt_dar_single_mod='$single_module'
  6409. fi
  6410. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6411. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6412. else
  6413. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6414. fi
  6415. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6416. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6417. else
  6418. _lt_dsymutil=
  6419. fi
  6420. ;;
  6421. esac
  6422. for ac_header in dlfcn.h
  6423. do :
  6424. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6425. "
  6426. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6427. cat >>confdefs.h <<_ACEOF
  6428. #define HAVE_DLFCN_H 1
  6429. _ACEOF
  6430. fi
  6431. done
  6432. # Set options
  6433. enable_dlopen=no
  6434. enable_win32_dll=no
  6435. # Check whether --enable-shared was given.
  6436. if test "${enable_shared+set}" = set; then :
  6437. enableval=$enable_shared; p=${PACKAGE-default}
  6438. case $enableval in
  6439. yes) enable_shared=yes ;;
  6440. no) enable_shared=no ;;
  6441. *)
  6442. enable_shared=no
  6443. # Look at the argument we got. We use all the common list separators.
  6444. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6445. for pkg in $enableval; do
  6446. IFS="$lt_save_ifs"
  6447. if test "X$pkg" = "X$p"; then
  6448. enable_shared=yes
  6449. fi
  6450. done
  6451. IFS="$lt_save_ifs"
  6452. ;;
  6453. esac
  6454. else
  6455. enable_shared=yes
  6456. fi
  6457. # Check whether --enable-static was given.
  6458. if test "${enable_static+set}" = set; then :
  6459. enableval=$enable_static; p=${PACKAGE-default}
  6460. case $enableval in
  6461. yes) enable_static=yes ;;
  6462. no) enable_static=no ;;
  6463. *)
  6464. enable_static=no
  6465. # Look at the argument we got. We use all the common list separators.
  6466. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6467. for pkg in $enableval; do
  6468. IFS="$lt_save_ifs"
  6469. if test "X$pkg" = "X$p"; then
  6470. enable_static=yes
  6471. fi
  6472. done
  6473. IFS="$lt_save_ifs"
  6474. ;;
  6475. esac
  6476. else
  6477. enable_static=yes
  6478. fi
  6479. # Check whether --with-pic was given.
  6480. if test "${with_pic+set}" = set; then :
  6481. withval=$with_pic; pic_mode="$withval"
  6482. else
  6483. pic_mode=default
  6484. fi
  6485. test -z "$pic_mode" && pic_mode=default
  6486. # Check whether --enable-fast-install was given.
  6487. if test "${enable_fast_install+set}" = set; then :
  6488. enableval=$enable_fast_install; p=${PACKAGE-default}
  6489. case $enableval in
  6490. yes) enable_fast_install=yes ;;
  6491. no) enable_fast_install=no ;;
  6492. *)
  6493. enable_fast_install=no
  6494. # Look at the argument we got. We use all the common list separators.
  6495. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6496. for pkg in $enableval; do
  6497. IFS="$lt_save_ifs"
  6498. if test "X$pkg" = "X$p"; then
  6499. enable_fast_install=yes
  6500. fi
  6501. done
  6502. IFS="$lt_save_ifs"
  6503. ;;
  6504. esac
  6505. else
  6506. enable_fast_install=yes
  6507. fi
  6508. # This can be used to rebuild libtool when needed
  6509. LIBTOOL_DEPS="$ltmain"
  6510. # Always use our own libtool.
  6511. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6512. test -z "$LN_S" && LN_S="ln -s"
  6513. if test -n "${ZSH_VERSION+set}" ; then
  6514. setopt NO_GLOB_SUBST
  6515. fi
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6517. $as_echo_n "checking for objdir... " >&6; }
  6518. if ${lt_cv_objdir+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. rm -f .libs 2>/dev/null
  6522. mkdir .libs 2>/dev/null
  6523. if test -d .libs; then
  6524. lt_cv_objdir=.libs
  6525. else
  6526. # MS-DOS does not allow filenames that begin with a dot.
  6527. lt_cv_objdir=_libs
  6528. fi
  6529. rmdir .libs 2>/dev/null
  6530. fi
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6532. $as_echo "$lt_cv_objdir" >&6; }
  6533. objdir=$lt_cv_objdir
  6534. cat >>confdefs.h <<_ACEOF
  6535. #define LT_OBJDIR "$lt_cv_objdir/"
  6536. _ACEOF
  6537. case $host_os in
  6538. aix3*)
  6539. # AIX sometimes has problems with the GCC collect2 program. For some
  6540. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6541. # vanish in a puff of smoke.
  6542. if test "X${COLLECT_NAMES+set}" != Xset; then
  6543. COLLECT_NAMES=
  6544. export COLLECT_NAMES
  6545. fi
  6546. ;;
  6547. esac
  6548. # Global variables:
  6549. ofile=libtool
  6550. can_build_shared=yes
  6551. # All known linkers require a `.a' archive for static linking (except MSVC,
  6552. # which needs '.lib').
  6553. libext=a
  6554. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6555. old_CC="$CC"
  6556. old_CFLAGS="$CFLAGS"
  6557. # Set sane defaults for various variables
  6558. test -z "$CC" && CC=cc
  6559. test -z "$LTCC" && LTCC=$CC
  6560. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6561. test -z "$LD" && LD=ld
  6562. test -z "$ac_objext" && ac_objext=o
  6563. for cc_temp in $compiler""; do
  6564. case $cc_temp in
  6565. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6566. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6567. \-*) ;;
  6568. *) break;;
  6569. esac
  6570. done
  6571. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6572. # Only perform the check for file, if the check method requires it
  6573. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6574. case $deplibs_check_method in
  6575. file_magic*)
  6576. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6578. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6579. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6580. $as_echo_n "(cached) " >&6
  6581. else
  6582. case $MAGIC_CMD in
  6583. [\\/*] | ?:[\\/]*)
  6584. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6585. ;;
  6586. *)
  6587. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6588. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6589. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6590. for ac_dir in $ac_dummy; do
  6591. IFS="$lt_save_ifs"
  6592. test -z "$ac_dir" && ac_dir=.
  6593. if test -f $ac_dir/${ac_tool_prefix}file; then
  6594. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6595. if test -n "$file_magic_test_file"; then
  6596. case $deplibs_check_method in
  6597. "file_magic "*)
  6598. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6599. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6600. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6601. $EGREP "$file_magic_regex" > /dev/null; then
  6602. :
  6603. else
  6604. cat <<_LT_EOF 1>&2
  6605. *** Warning: the command libtool uses to detect shared libraries,
  6606. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6607. *** The result is that libtool may fail to recognize shared libraries
  6608. *** as such. This will affect the creation of libtool libraries that
  6609. *** depend on shared libraries, but programs linked with such libtool
  6610. *** libraries will work regardless of this problem. Nevertheless, you
  6611. *** may want to report the problem to your system manager and/or to
  6612. *** bug-libtool@gnu.org
  6613. _LT_EOF
  6614. fi ;;
  6615. esac
  6616. fi
  6617. break
  6618. fi
  6619. done
  6620. IFS="$lt_save_ifs"
  6621. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6622. ;;
  6623. esac
  6624. fi
  6625. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6626. if test -n "$MAGIC_CMD"; then
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6628. $as_echo "$MAGIC_CMD" >&6; }
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6631. $as_echo "no" >&6; }
  6632. fi
  6633. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6634. if test -n "$ac_tool_prefix"; then
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6636. $as_echo_n "checking for file... " >&6; }
  6637. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. case $MAGIC_CMD in
  6641. [\\/*] | ?:[\\/]*)
  6642. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6643. ;;
  6644. *)
  6645. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6646. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6647. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6648. for ac_dir in $ac_dummy; do
  6649. IFS="$lt_save_ifs"
  6650. test -z "$ac_dir" && ac_dir=.
  6651. if test -f $ac_dir/file; then
  6652. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6653. if test -n "$file_magic_test_file"; then
  6654. case $deplibs_check_method in
  6655. "file_magic "*)
  6656. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6657. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6658. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6659. $EGREP "$file_magic_regex" > /dev/null; then
  6660. :
  6661. else
  6662. cat <<_LT_EOF 1>&2
  6663. *** Warning: the command libtool uses to detect shared libraries,
  6664. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6665. *** The result is that libtool may fail to recognize shared libraries
  6666. *** as such. This will affect the creation of libtool libraries that
  6667. *** depend on shared libraries, but programs linked with such libtool
  6668. *** libraries will work regardless of this problem. Nevertheless, you
  6669. *** may want to report the problem to your system manager and/or to
  6670. *** bug-libtool@gnu.org
  6671. _LT_EOF
  6672. fi ;;
  6673. esac
  6674. fi
  6675. break
  6676. fi
  6677. done
  6678. IFS="$lt_save_ifs"
  6679. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6680. ;;
  6681. esac
  6682. fi
  6683. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6684. if test -n "$MAGIC_CMD"; then
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6686. $as_echo "$MAGIC_CMD" >&6; }
  6687. else
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6689. $as_echo "no" >&6; }
  6690. fi
  6691. else
  6692. MAGIC_CMD=:
  6693. fi
  6694. fi
  6695. fi
  6696. ;;
  6697. esac
  6698. # Use C for the default configuration in the libtool script
  6699. lt_save_CC="$CC"
  6700. ac_ext=c
  6701. ac_cpp='$CPP $CPPFLAGS'
  6702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6705. # Source file extension for C test sources.
  6706. ac_ext=c
  6707. # Object file extension for compiled C test sources.
  6708. objext=o
  6709. objext=$objext
  6710. # Code to be used in simple compile tests
  6711. lt_simple_compile_test_code="int some_variable = 0;"
  6712. # Code to be used in simple link tests
  6713. lt_simple_link_test_code='int main(){return(0);}'
  6714. # If no C compiler was specified, use CC.
  6715. LTCC=${LTCC-"$CC"}
  6716. # If no C compiler flags were specified, use CFLAGS.
  6717. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6718. # Allow CC to be a program name with arguments.
  6719. compiler=$CC
  6720. # Save the default compiler, since it gets overwritten when the other
  6721. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6722. compiler_DEFAULT=$CC
  6723. # save warnings/boilerplate of simple test code
  6724. ac_outfile=conftest.$ac_objext
  6725. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6726. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6727. _lt_compiler_boilerplate=`cat conftest.err`
  6728. $RM conftest*
  6729. ac_outfile=conftest.$ac_objext
  6730. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6731. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6732. _lt_linker_boilerplate=`cat conftest.err`
  6733. $RM -r conftest*
  6734. ## CAVEAT EMPTOR:
  6735. ## There is no encapsulation within the following macros, do not change
  6736. ## the running order or otherwise move them around unless you know exactly
  6737. ## what you are doing...
  6738. if test -n "$compiler"; then
  6739. lt_prog_compiler_no_builtin_flag=
  6740. if test "$GCC" = yes; then
  6741. case $cc_basename in
  6742. nvcc*)
  6743. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6744. *)
  6745. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6746. esac
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6748. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6749. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. lt_cv_prog_compiler_rtti_exceptions=no
  6753. ac_outfile=conftest.$ac_objext
  6754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6755. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6756. # Insert the option either (1) after the last *FLAGS variable, or
  6757. # (2) before a word containing "conftest.", or (3) at the end.
  6758. # Note that $ac_compile itself does not contain backslashes and begins
  6759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6760. # The option is referenced via a variable to avoid confusing sed.
  6761. lt_compile=`echo "$ac_compile" | $SED \
  6762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6764. -e 's:$: $lt_compiler_flag:'`
  6765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6766. (eval "$lt_compile" 2>conftest.err)
  6767. ac_status=$?
  6768. cat conftest.err >&5
  6769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6770. if (exit $ac_status) && test -s "$ac_outfile"; then
  6771. # The compiler can only warn and ignore the option if not recognized
  6772. # So say no if there are warnings other than the usual output.
  6773. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6774. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6775. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6776. lt_cv_prog_compiler_rtti_exceptions=yes
  6777. fi
  6778. fi
  6779. $RM conftest*
  6780. fi
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6782. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6783. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6784. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6785. else
  6786. :
  6787. fi
  6788. fi
  6789. lt_prog_compiler_wl=
  6790. lt_prog_compiler_pic=
  6791. lt_prog_compiler_static=
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6793. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6794. if test "$GCC" = yes; then
  6795. lt_prog_compiler_wl='-Wl,'
  6796. lt_prog_compiler_static='-static'
  6797. case $host_os in
  6798. aix*)
  6799. # All AIX code is PIC.
  6800. if test "$host_cpu" = ia64; then
  6801. # AIX 5 now supports IA64 processor
  6802. lt_prog_compiler_static='-Bstatic'
  6803. fi
  6804. lt_prog_compiler_pic='-fPIC'
  6805. ;;
  6806. amigaos*)
  6807. case $host_cpu in
  6808. powerpc)
  6809. # see comment about AmigaOS4 .so support
  6810. lt_prog_compiler_pic='-fPIC'
  6811. ;;
  6812. m68k)
  6813. # FIXME: we need at least 68020 code to build shared libraries, but
  6814. # adding the `-m68020' flag to GCC prevents building anything better,
  6815. # like `-m68040'.
  6816. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6817. ;;
  6818. esac
  6819. ;;
  6820. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6821. # PIC is the default for these OSes.
  6822. ;;
  6823. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6824. # This hack is so that the source file can tell whether it is being
  6825. # built for inclusion in a dll (and should export symbols for example).
  6826. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6827. # (--disable-auto-import) libraries
  6828. lt_prog_compiler_pic='-DDLL_EXPORT'
  6829. ;;
  6830. darwin* | rhapsody*)
  6831. # PIC is the default on this platform
  6832. # Common symbols not allowed in MH_DYLIB files
  6833. lt_prog_compiler_pic='-fno-common'
  6834. ;;
  6835. haiku*)
  6836. # PIC is the default for Haiku.
  6837. # The "-static" flag exists, but is broken.
  6838. lt_prog_compiler_static=
  6839. ;;
  6840. hpux*)
  6841. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6842. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6843. # sets the default TLS model and affects inlining.
  6844. case $host_cpu in
  6845. hppa*64*)
  6846. # +Z the default
  6847. ;;
  6848. *)
  6849. lt_prog_compiler_pic='-fPIC'
  6850. ;;
  6851. esac
  6852. ;;
  6853. interix[3-9]*)
  6854. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6855. # Instead, we relocate shared libraries at runtime.
  6856. ;;
  6857. msdosdjgpp*)
  6858. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6859. # on systems that don't support them.
  6860. lt_prog_compiler_can_build_shared=no
  6861. enable_shared=no
  6862. ;;
  6863. *nto* | *qnx*)
  6864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6865. # it will coredump.
  6866. lt_prog_compiler_pic='-fPIC -shared'
  6867. ;;
  6868. sysv4*MP*)
  6869. if test -d /usr/nec; then
  6870. lt_prog_compiler_pic=-Kconform_pic
  6871. fi
  6872. ;;
  6873. *)
  6874. lt_prog_compiler_pic='-fPIC'
  6875. ;;
  6876. esac
  6877. case $cc_basename in
  6878. nvcc*) # Cuda Compiler Driver 2.2
  6879. lt_prog_compiler_wl='-Xlinker '
  6880. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6881. ;;
  6882. esac
  6883. else
  6884. # PORTME Check for flag to pass linker flags through the system compiler.
  6885. case $host_os in
  6886. aix*)
  6887. lt_prog_compiler_wl='-Wl,'
  6888. if test "$host_cpu" = ia64; then
  6889. # AIX 5 now supports IA64 processor
  6890. lt_prog_compiler_static='-Bstatic'
  6891. else
  6892. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6893. fi
  6894. ;;
  6895. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6896. # This hack is so that the source file can tell whether it is being
  6897. # built for inclusion in a dll (and should export symbols for example).
  6898. lt_prog_compiler_pic='-DDLL_EXPORT'
  6899. ;;
  6900. hpux9* | hpux10* | hpux11*)
  6901. lt_prog_compiler_wl='-Wl,'
  6902. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6903. # not for PA HP-UX.
  6904. case $host_cpu in
  6905. hppa*64*|ia64*)
  6906. # +Z the default
  6907. ;;
  6908. *)
  6909. lt_prog_compiler_pic='+Z'
  6910. ;;
  6911. esac
  6912. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6913. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6914. ;;
  6915. irix5* | irix6* | nonstopux*)
  6916. lt_prog_compiler_wl='-Wl,'
  6917. # PIC (with -KPIC) is the default.
  6918. lt_prog_compiler_static='-non_shared'
  6919. ;;
  6920. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6921. case $cc_basename in
  6922. # old Intel for x86_64 which still supported -KPIC.
  6923. ecc*)
  6924. lt_prog_compiler_wl='-Wl,'
  6925. lt_prog_compiler_pic='-KPIC'
  6926. lt_prog_compiler_static='-static'
  6927. ;;
  6928. # icc used to be incompatible with GCC.
  6929. # ICC 10 doesn't accept -KPIC any more.
  6930. icc* | ifort*)
  6931. lt_prog_compiler_wl='-Wl,'
  6932. lt_prog_compiler_pic='-fPIC'
  6933. lt_prog_compiler_static='-static'
  6934. ;;
  6935. # Lahey Fortran 8.1.
  6936. lf95*)
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_pic='--shared'
  6939. lt_prog_compiler_static='--static'
  6940. ;;
  6941. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6942. # Portland Group compilers (*not* the Pentium gcc compiler,
  6943. # which looks to be a dead project)
  6944. lt_prog_compiler_wl='-Wl,'
  6945. lt_prog_compiler_pic='-fpic'
  6946. lt_prog_compiler_static='-Bstatic'
  6947. ;;
  6948. ccc*)
  6949. lt_prog_compiler_wl='-Wl,'
  6950. # All Alpha code is PIC.
  6951. lt_prog_compiler_static='-non_shared'
  6952. ;;
  6953. xl* | bgxl* | bgf* | mpixl*)
  6954. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6955. lt_prog_compiler_wl='-Wl,'
  6956. lt_prog_compiler_pic='-qpic'
  6957. lt_prog_compiler_static='-qstaticlink'
  6958. ;;
  6959. *)
  6960. case `$CC -V 2>&1 | sed 5q` in
  6961. *Sun\ F* | *Sun*Fortran*)
  6962. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6963. lt_prog_compiler_pic='-KPIC'
  6964. lt_prog_compiler_static='-Bstatic'
  6965. lt_prog_compiler_wl=''
  6966. ;;
  6967. *Sun\ C*)
  6968. # Sun C 5.9
  6969. lt_prog_compiler_pic='-KPIC'
  6970. lt_prog_compiler_static='-Bstatic'
  6971. lt_prog_compiler_wl='-Wl,'
  6972. ;;
  6973. esac
  6974. ;;
  6975. esac
  6976. ;;
  6977. newsos6)
  6978. lt_prog_compiler_pic='-KPIC'
  6979. lt_prog_compiler_static='-Bstatic'
  6980. ;;
  6981. *nto* | *qnx*)
  6982. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6983. # it will coredump.
  6984. lt_prog_compiler_pic='-fPIC -shared'
  6985. ;;
  6986. osf3* | osf4* | osf5*)
  6987. lt_prog_compiler_wl='-Wl,'
  6988. # All OSF/1 code is PIC.
  6989. lt_prog_compiler_static='-non_shared'
  6990. ;;
  6991. rdos*)
  6992. lt_prog_compiler_static='-non_shared'
  6993. ;;
  6994. solaris*)
  6995. lt_prog_compiler_pic='-KPIC'
  6996. lt_prog_compiler_static='-Bstatic'
  6997. case $cc_basename in
  6998. f77* | f90* | f95*)
  6999. lt_prog_compiler_wl='-Qoption ld ';;
  7000. *)
  7001. lt_prog_compiler_wl='-Wl,';;
  7002. esac
  7003. ;;
  7004. sunos4*)
  7005. lt_prog_compiler_wl='-Qoption ld '
  7006. lt_prog_compiler_pic='-PIC'
  7007. lt_prog_compiler_static='-Bstatic'
  7008. ;;
  7009. sysv4 | sysv4.2uw2* | sysv4.3*)
  7010. lt_prog_compiler_wl='-Wl,'
  7011. lt_prog_compiler_pic='-KPIC'
  7012. lt_prog_compiler_static='-Bstatic'
  7013. ;;
  7014. sysv4*MP*)
  7015. if test -d /usr/nec ;then
  7016. lt_prog_compiler_pic='-Kconform_pic'
  7017. lt_prog_compiler_static='-Bstatic'
  7018. fi
  7019. ;;
  7020. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7021. lt_prog_compiler_wl='-Wl,'
  7022. lt_prog_compiler_pic='-KPIC'
  7023. lt_prog_compiler_static='-Bstatic'
  7024. ;;
  7025. unicos*)
  7026. lt_prog_compiler_wl='-Wl,'
  7027. lt_prog_compiler_can_build_shared=no
  7028. ;;
  7029. uts4*)
  7030. lt_prog_compiler_pic='-pic'
  7031. lt_prog_compiler_static='-Bstatic'
  7032. ;;
  7033. *)
  7034. lt_prog_compiler_can_build_shared=no
  7035. ;;
  7036. esac
  7037. fi
  7038. case $host_os in
  7039. # For platforms which do not support PIC, -DPIC is meaningless:
  7040. *djgpp*)
  7041. lt_prog_compiler_pic=
  7042. ;;
  7043. *)
  7044. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7045. ;;
  7046. esac
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7048. $as_echo "$lt_prog_compiler_pic" >&6; }
  7049. #
  7050. # Check to make sure the PIC flag actually works.
  7051. #
  7052. if test -n "$lt_prog_compiler_pic"; then
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7054. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7055. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. lt_cv_prog_compiler_pic_works=no
  7059. ac_outfile=conftest.$ac_objext
  7060. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7061. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7062. # Insert the option either (1) after the last *FLAGS variable, or
  7063. # (2) before a word containing "conftest.", or (3) at the end.
  7064. # Note that $ac_compile itself does not contain backslashes and begins
  7065. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7066. # The option is referenced via a variable to avoid confusing sed.
  7067. lt_compile=`echo "$ac_compile" | $SED \
  7068. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7069. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7070. -e 's:$: $lt_compiler_flag:'`
  7071. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7072. (eval "$lt_compile" 2>conftest.err)
  7073. ac_status=$?
  7074. cat conftest.err >&5
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. if (exit $ac_status) && test -s "$ac_outfile"; then
  7077. # The compiler can only warn and ignore the option if not recognized
  7078. # So say no if there are warnings other than the usual output.
  7079. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7080. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7081. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7082. lt_cv_prog_compiler_pic_works=yes
  7083. fi
  7084. fi
  7085. $RM conftest*
  7086. fi
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7088. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7089. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7090. case $lt_prog_compiler_pic in
  7091. "" | " "*) ;;
  7092. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7093. esac
  7094. else
  7095. lt_prog_compiler_pic=
  7096. lt_prog_compiler_can_build_shared=no
  7097. fi
  7098. fi
  7099. #
  7100. # Check to make sure the static flag actually works.
  7101. #
  7102. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7104. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7105. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7106. $as_echo_n "(cached) " >&6
  7107. else
  7108. lt_cv_prog_compiler_static_works=no
  7109. save_LDFLAGS="$LDFLAGS"
  7110. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7111. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7112. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7113. # The linker can only warn and ignore the option if not recognized
  7114. # So say no if there are warnings
  7115. if test -s conftest.err; then
  7116. # Append any errors to the config.log.
  7117. cat conftest.err 1>&5
  7118. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7119. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7120. if diff conftest.exp conftest.er2 >/dev/null; then
  7121. lt_cv_prog_compiler_static_works=yes
  7122. fi
  7123. else
  7124. lt_cv_prog_compiler_static_works=yes
  7125. fi
  7126. fi
  7127. $RM -r conftest*
  7128. LDFLAGS="$save_LDFLAGS"
  7129. fi
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7131. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7132. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7133. :
  7134. else
  7135. lt_prog_compiler_static=
  7136. fi
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7138. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7139. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. lt_cv_prog_compiler_c_o=no
  7143. $RM -r conftest 2>/dev/null
  7144. mkdir conftest
  7145. cd conftest
  7146. mkdir out
  7147. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7148. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7149. # Insert the option either (1) after the last *FLAGS variable, or
  7150. # (2) before a word containing "conftest.", or (3) at the end.
  7151. # Note that $ac_compile itself does not contain backslashes and begins
  7152. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7153. lt_compile=`echo "$ac_compile" | $SED \
  7154. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7155. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7156. -e 's:$: $lt_compiler_flag:'`
  7157. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7158. (eval "$lt_compile" 2>out/conftest.err)
  7159. ac_status=$?
  7160. cat out/conftest.err >&5
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7163. then
  7164. # The compiler can only warn and ignore the option if not recognized
  7165. # So say no if there are warnings
  7166. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7167. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7168. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7169. lt_cv_prog_compiler_c_o=yes
  7170. fi
  7171. fi
  7172. chmod u+w . 2>&5
  7173. $RM conftest*
  7174. # SGI C++ compiler will create directory out/ii_files/ for
  7175. # template instantiation
  7176. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7177. $RM out/* && rmdir out
  7178. cd ..
  7179. $RM -r conftest
  7180. $RM conftest*
  7181. fi
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7183. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7185. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7186. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. lt_cv_prog_compiler_c_o=no
  7190. $RM -r conftest 2>/dev/null
  7191. mkdir conftest
  7192. cd conftest
  7193. mkdir out
  7194. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7195. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7196. # Insert the option either (1) after the last *FLAGS variable, or
  7197. # (2) before a word containing "conftest.", or (3) at the end.
  7198. # Note that $ac_compile itself does not contain backslashes and begins
  7199. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7200. lt_compile=`echo "$ac_compile" | $SED \
  7201. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7202. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7203. -e 's:$: $lt_compiler_flag:'`
  7204. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7205. (eval "$lt_compile" 2>out/conftest.err)
  7206. ac_status=$?
  7207. cat out/conftest.err >&5
  7208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7209. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7210. then
  7211. # The compiler can only warn and ignore the option if not recognized
  7212. # So say no if there are warnings
  7213. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7214. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7215. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7216. lt_cv_prog_compiler_c_o=yes
  7217. fi
  7218. fi
  7219. chmod u+w . 2>&5
  7220. $RM conftest*
  7221. # SGI C++ compiler will create directory out/ii_files/ for
  7222. # template instantiation
  7223. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7224. $RM out/* && rmdir out
  7225. cd ..
  7226. $RM -r conftest
  7227. $RM conftest*
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7230. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7231. hard_links="nottested"
  7232. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7233. # do not overwrite the value of need_locks provided by the user
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7235. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7236. hard_links=yes
  7237. $RM conftest*
  7238. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7239. touch conftest.a
  7240. ln conftest.a conftest.b 2>&5 || hard_links=no
  7241. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7243. $as_echo "$hard_links" >&6; }
  7244. if test "$hard_links" = no; then
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7246. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7247. need_locks=warn
  7248. fi
  7249. else
  7250. need_locks=no
  7251. fi
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7253. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7254. runpath_var=
  7255. allow_undefined_flag=
  7256. always_export_symbols=no
  7257. archive_cmds=
  7258. archive_expsym_cmds=
  7259. compiler_needs_object=no
  7260. enable_shared_with_static_runtimes=no
  7261. export_dynamic_flag_spec=
  7262. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7263. hardcode_automatic=no
  7264. hardcode_direct=no
  7265. hardcode_direct_absolute=no
  7266. hardcode_libdir_flag_spec=
  7267. hardcode_libdir_flag_spec_ld=
  7268. hardcode_libdir_separator=
  7269. hardcode_minus_L=no
  7270. hardcode_shlibpath_var=unsupported
  7271. inherit_rpath=no
  7272. link_all_deplibs=unknown
  7273. module_cmds=
  7274. module_expsym_cmds=
  7275. old_archive_from_new_cmds=
  7276. old_archive_from_expsyms_cmds=
  7277. thread_safe_flag_spec=
  7278. whole_archive_flag_spec=
  7279. # include_expsyms should be a list of space-separated symbols to be *always*
  7280. # included in the symbol list
  7281. include_expsyms=
  7282. # exclude_expsyms can be an extended regexp of symbols to exclude
  7283. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7284. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7285. # as well as any symbol that contains `d'.
  7286. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7287. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7288. # platforms (ab)use it in PIC code, but their linkers get confused if
  7289. # the symbol is explicitly referenced. Since portable code cannot
  7290. # rely on this symbol name, it's probably fine to never include it in
  7291. # preloaded symbol tables.
  7292. # Exclude shared library initialization/finalization symbols.
  7293. extract_expsyms_cmds=
  7294. case $host_os in
  7295. cygwin* | mingw* | pw32* | cegcc*)
  7296. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7297. # When not using gcc, we currently assume that we are using
  7298. # Microsoft Visual C++.
  7299. if test "$GCC" != yes; then
  7300. with_gnu_ld=no
  7301. fi
  7302. ;;
  7303. interix*)
  7304. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7305. with_gnu_ld=yes
  7306. ;;
  7307. openbsd*)
  7308. with_gnu_ld=no
  7309. ;;
  7310. esac
  7311. ld_shlibs=yes
  7312. # On some targets, GNU ld is compatible enough with the native linker
  7313. # that we're better off using the native interface for both.
  7314. lt_use_gnu_ld_interface=no
  7315. if test "$with_gnu_ld" = yes; then
  7316. case $host_os in
  7317. aix*)
  7318. # The AIX port of GNU ld has always aspired to compatibility
  7319. # with the native linker. However, as the warning in the GNU ld
  7320. # block says, versions before 2.19.5* couldn't really create working
  7321. # shared libraries, regardless of the interface used.
  7322. case `$LD -v 2>&1` in
  7323. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7324. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7325. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7326. *)
  7327. lt_use_gnu_ld_interface=yes
  7328. ;;
  7329. esac
  7330. ;;
  7331. *)
  7332. lt_use_gnu_ld_interface=yes
  7333. ;;
  7334. esac
  7335. fi
  7336. if test "$lt_use_gnu_ld_interface" = yes; then
  7337. # If archive_cmds runs LD, not CC, wlarc should be empty
  7338. wlarc='${wl}'
  7339. # Set some defaults for GNU ld with shared library support. These
  7340. # are reset later if shared libraries are not supported. Putting them
  7341. # here allows them to be overridden if necessary.
  7342. runpath_var=LD_RUN_PATH
  7343. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7344. export_dynamic_flag_spec='${wl}--export-dynamic'
  7345. # ancient GNU ld didn't support --whole-archive et. al.
  7346. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7347. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7348. else
  7349. whole_archive_flag_spec=
  7350. fi
  7351. supports_anon_versioning=no
  7352. case `$LD -v 2>&1` in
  7353. *GNU\ gold*) supports_anon_versioning=yes ;;
  7354. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7355. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7356. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7357. *\ 2.11.*) ;; # other 2.11 versions
  7358. *) supports_anon_versioning=yes ;;
  7359. esac
  7360. # See if GNU ld supports shared libraries.
  7361. case $host_os in
  7362. aix[3-9]*)
  7363. # On AIX/PPC, the GNU linker is very broken
  7364. if test "$host_cpu" != ia64; then
  7365. ld_shlibs=no
  7366. cat <<_LT_EOF 1>&2
  7367. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7368. *** to be unable to reliably create shared libraries on AIX.
  7369. *** Therefore, libtool is disabling shared libraries support. If you
  7370. *** really care for shared libraries, you may want to install binutils
  7371. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7372. *** You will then need to restart the configuration process.
  7373. _LT_EOF
  7374. fi
  7375. ;;
  7376. amigaos*)
  7377. case $host_cpu in
  7378. powerpc)
  7379. # see comment about AmigaOS4 .so support
  7380. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7381. archive_expsym_cmds=''
  7382. ;;
  7383. m68k)
  7384. 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)'
  7385. hardcode_libdir_flag_spec='-L$libdir'
  7386. hardcode_minus_L=yes
  7387. ;;
  7388. esac
  7389. ;;
  7390. beos*)
  7391. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7392. allow_undefined_flag=unsupported
  7393. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7394. # support --undefined. This deserves some investigation. FIXME
  7395. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7396. else
  7397. ld_shlibs=no
  7398. fi
  7399. ;;
  7400. cygwin* | mingw* | pw32* | cegcc*)
  7401. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7402. # as there is no search path for DLLs.
  7403. hardcode_libdir_flag_spec='-L$libdir'
  7404. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7405. allow_undefined_flag=unsupported
  7406. always_export_symbols=no
  7407. enable_shared_with_static_runtimes=yes
  7408. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7409. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7410. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7411. # If the export-symbols file already is a .def file (1st line
  7412. # is EXPORTS), use it as is; otherwise, prepend...
  7413. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7414. cp $export_symbols $output_objdir/$soname.def;
  7415. else
  7416. echo EXPORTS > $output_objdir/$soname.def;
  7417. cat $export_symbols >> $output_objdir/$soname.def;
  7418. fi~
  7419. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7420. else
  7421. ld_shlibs=no
  7422. fi
  7423. ;;
  7424. haiku*)
  7425. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7426. link_all_deplibs=yes
  7427. ;;
  7428. interix[3-9]*)
  7429. hardcode_direct=no
  7430. hardcode_shlibpath_var=no
  7431. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7432. export_dynamic_flag_spec='${wl}-E'
  7433. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7434. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7435. # default) and relocated if they conflict, which is a slow very memory
  7436. # consuming and fragmenting process. To avoid this, we pick a random,
  7437. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7438. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7439. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7440. 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'
  7441. ;;
  7442. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7443. tmp_diet=no
  7444. if test "$host_os" = linux-dietlibc; then
  7445. case $cc_basename in
  7446. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7447. esac
  7448. fi
  7449. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7450. && test "$tmp_diet" = no
  7451. then
  7452. tmp_addflag=' $pic_flag'
  7453. tmp_sharedflag='-shared'
  7454. case $cc_basename,$host_cpu in
  7455. pgcc*) # Portland Group C compiler
  7456. 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'
  7457. tmp_addflag=' $pic_flag'
  7458. ;;
  7459. pgf77* | pgf90* | pgf95* | pgfortran*)
  7460. # Portland Group f77 and f90 compilers
  7461. 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'
  7462. tmp_addflag=' $pic_flag -Mnomain' ;;
  7463. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7464. tmp_addflag=' -i_dynamic' ;;
  7465. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7466. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7467. ifc* | ifort*) # Intel Fortran compiler
  7468. tmp_addflag=' -nofor_main' ;;
  7469. lf95*) # Lahey Fortran 8.1
  7470. whole_archive_flag_spec=
  7471. tmp_sharedflag='--shared' ;;
  7472. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7473. tmp_sharedflag='-qmkshrobj'
  7474. tmp_addflag= ;;
  7475. nvcc*) # Cuda Compiler Driver 2.2
  7476. 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'
  7477. compiler_needs_object=yes
  7478. ;;
  7479. esac
  7480. case `$CC -V 2>&1 | sed 5q` in
  7481. *Sun\ C*) # Sun C 5.9
  7482. 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'
  7483. compiler_needs_object=yes
  7484. tmp_sharedflag='-G' ;;
  7485. *Sun\ F*) # Sun Fortran 8.3
  7486. tmp_sharedflag='-G' ;;
  7487. esac
  7488. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7489. if test "x$supports_anon_versioning" = xyes; then
  7490. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7491. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7492. echo "local: *; };" >> $output_objdir/$libname.ver~
  7493. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7494. fi
  7495. case $cc_basename in
  7496. xlf* | bgf* | bgxlf* | mpixlf*)
  7497. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7498. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7499. hardcode_libdir_flag_spec=
  7500. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7501. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7502. if test "x$supports_anon_versioning" = xyes; then
  7503. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7504. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7505. echo "local: *; };" >> $output_objdir/$libname.ver~
  7506. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7507. fi
  7508. ;;
  7509. esac
  7510. else
  7511. ld_shlibs=no
  7512. fi
  7513. ;;
  7514. netbsd*)
  7515. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7516. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7517. wlarc=
  7518. else
  7519. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7521. fi
  7522. ;;
  7523. solaris*)
  7524. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7525. ld_shlibs=no
  7526. cat <<_LT_EOF 1>&2
  7527. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7528. *** create shared libraries on Solaris systems. Therefore, libtool
  7529. *** is disabling shared libraries support. We urge you to upgrade GNU
  7530. *** binutils to release 2.9.1 or newer. Another option is to modify
  7531. *** your PATH or compiler configuration so that the native linker is
  7532. *** used, and then restart.
  7533. _LT_EOF
  7534. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7536. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7537. else
  7538. ld_shlibs=no
  7539. fi
  7540. ;;
  7541. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7542. case `$LD -v 2>&1` in
  7543. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7544. ld_shlibs=no
  7545. cat <<_LT_EOF 1>&2
  7546. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7547. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7548. *** is disabling shared libraries support. We urge you to upgrade GNU
  7549. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7550. *** your PATH or compiler configuration so that the native linker is
  7551. *** used, and then restart.
  7552. _LT_EOF
  7553. ;;
  7554. *)
  7555. # For security reasons, it is highly recommended that you always
  7556. # use absolute paths for naming shared libraries, and exclude the
  7557. # DT_RUNPATH tag from executables and libraries. But doing so
  7558. # requires that you compile everything twice, which is a pain.
  7559. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7560. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7561. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7563. else
  7564. ld_shlibs=no
  7565. fi
  7566. ;;
  7567. esac
  7568. ;;
  7569. sunos4*)
  7570. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7571. wlarc=
  7572. hardcode_direct=yes
  7573. hardcode_shlibpath_var=no
  7574. ;;
  7575. *)
  7576. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7577. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7578. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7579. else
  7580. ld_shlibs=no
  7581. fi
  7582. ;;
  7583. esac
  7584. if test "$ld_shlibs" = no; then
  7585. runpath_var=
  7586. hardcode_libdir_flag_spec=
  7587. export_dynamic_flag_spec=
  7588. whole_archive_flag_spec=
  7589. fi
  7590. else
  7591. # PORTME fill in a description of your system's linker (not GNU ld)
  7592. case $host_os in
  7593. aix3*)
  7594. allow_undefined_flag=unsupported
  7595. always_export_symbols=yes
  7596. 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'
  7597. # Note: this linker hardcodes the directories in LIBPATH if there
  7598. # are no directories specified by -L.
  7599. hardcode_minus_L=yes
  7600. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7601. # Neither direct hardcoding nor static linking is supported with a
  7602. # broken collect2.
  7603. hardcode_direct=unsupported
  7604. fi
  7605. ;;
  7606. aix[4-9]*)
  7607. if test "$host_cpu" = ia64; then
  7608. # On IA64, the linker does run time linking by default, so we don't
  7609. # have to do anything special.
  7610. aix_use_runtimelinking=no
  7611. exp_sym_flag='-Bexport'
  7612. no_entry_flag=""
  7613. else
  7614. # If we're using GNU nm, then we don't want the "-C" option.
  7615. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7616. # Also, AIX nm treats weak defined symbols like other global
  7617. # defined symbols, whereas GNU nm marks them as "W".
  7618. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7619. 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'
  7620. else
  7621. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7622. fi
  7623. aix_use_runtimelinking=no
  7624. # Test if we are trying to use run time linking or normal
  7625. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7626. # need to do runtime linking.
  7627. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7628. for ld_flag in $LDFLAGS; do
  7629. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7630. aix_use_runtimelinking=yes
  7631. break
  7632. fi
  7633. done
  7634. ;;
  7635. esac
  7636. exp_sym_flag='-bexport'
  7637. no_entry_flag='-bnoentry'
  7638. fi
  7639. # When large executables or shared objects are built, AIX ld can
  7640. # have problems creating the table of contents. If linking a library
  7641. # or program results in "error TOC overflow" add -mminimal-toc to
  7642. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7643. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7644. archive_cmds=''
  7645. hardcode_direct=yes
  7646. hardcode_direct_absolute=yes
  7647. hardcode_libdir_separator=':'
  7648. link_all_deplibs=yes
  7649. file_list_spec='${wl}-f,'
  7650. if test "$GCC" = yes; then
  7651. case $host_os in aix4.[012]|aix4.[012].*)
  7652. # We only want to do this on AIX 4.2 and lower, the check
  7653. # below for broken collect2 doesn't work under 4.3+
  7654. collect2name=`${CC} -print-prog-name=collect2`
  7655. if test -f "$collect2name" &&
  7656. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7657. then
  7658. # We have reworked collect2
  7659. :
  7660. else
  7661. # We have old collect2
  7662. hardcode_direct=unsupported
  7663. # It fails to find uninstalled libraries when the uninstalled
  7664. # path is not listed in the libpath. Setting hardcode_minus_L
  7665. # to unsupported forces relinking
  7666. hardcode_minus_L=yes
  7667. hardcode_libdir_flag_spec='-L$libdir'
  7668. hardcode_libdir_separator=
  7669. fi
  7670. ;;
  7671. esac
  7672. shared_flag='-shared'
  7673. if test "$aix_use_runtimelinking" = yes; then
  7674. shared_flag="$shared_flag "'${wl}-G'
  7675. fi
  7676. else
  7677. # not using gcc
  7678. if test "$host_cpu" = ia64; then
  7679. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7680. # chokes on -Wl,-G. The following line is correct:
  7681. shared_flag='-G'
  7682. else
  7683. if test "$aix_use_runtimelinking" = yes; then
  7684. shared_flag='${wl}-G'
  7685. else
  7686. shared_flag='${wl}-bM:SRE'
  7687. fi
  7688. fi
  7689. fi
  7690. export_dynamic_flag_spec='${wl}-bexpall'
  7691. # It seems that -bexpall does not export symbols beginning with
  7692. # underscore (_), so it is better to generate a list of symbols to export.
  7693. always_export_symbols=yes
  7694. if test "$aix_use_runtimelinking" = yes; then
  7695. # Warning - without using the other runtime loading flags (-brtl),
  7696. # -berok will link without error, but may produce a broken library.
  7697. allow_undefined_flag='-berok'
  7698. # Determine the default libpath from the value encoded in an
  7699. # empty executable.
  7700. if test x$gcc_no_link = xyes; then
  7701. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7702. fi
  7703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7704. /* end confdefs.h. */
  7705. int
  7706. main ()
  7707. {
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. if ac_fn_c_try_link "$LINENO"; then :
  7713. lt_aix_libpath_sed='
  7714. /Import File Strings/,/^$/ {
  7715. /^0/ {
  7716. s/^0 *\(.*\)$/\1/
  7717. p
  7718. }
  7719. }'
  7720. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7721. # Check for a 64-bit object if we didn't find anything.
  7722. if test -z "$aix_libpath"; then
  7723. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7724. fi
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext \
  7727. conftest$ac_exeext conftest.$ac_ext
  7728. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7729. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7730. 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"
  7731. else
  7732. if test "$host_cpu" = ia64; then
  7733. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7734. allow_undefined_flag="-z nodefs"
  7735. 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"
  7736. else
  7737. # Determine the default libpath from the value encoded in an
  7738. # empty executable.
  7739. if test x$gcc_no_link = xyes; then
  7740. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7741. fi
  7742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7743. /* end confdefs.h. */
  7744. int
  7745. main ()
  7746. {
  7747. ;
  7748. return 0;
  7749. }
  7750. _ACEOF
  7751. if ac_fn_c_try_link "$LINENO"; then :
  7752. lt_aix_libpath_sed='
  7753. /Import File Strings/,/^$/ {
  7754. /^0/ {
  7755. s/^0 *\(.*\)$/\1/
  7756. p
  7757. }
  7758. }'
  7759. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7760. # Check for a 64-bit object if we didn't find anything.
  7761. if test -z "$aix_libpath"; then
  7762. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7763. fi
  7764. fi
  7765. rm -f core conftest.err conftest.$ac_objext \
  7766. conftest$ac_exeext conftest.$ac_ext
  7767. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7768. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7769. # Warning - without using the other run time loading flags,
  7770. # -berok will link without error, but may produce a broken library.
  7771. no_undefined_flag=' ${wl}-bernotok'
  7772. allow_undefined_flag=' ${wl}-berok'
  7773. if test "$with_gnu_ld" = yes; then
  7774. # We only use this code for GNU lds that support --whole-archive.
  7775. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7776. else
  7777. # Exported symbols can be pulled into shared objects from archives
  7778. whole_archive_flag_spec='$convenience'
  7779. fi
  7780. archive_cmds_need_lc=yes
  7781. # This is similar to how AIX traditionally builds its shared libraries.
  7782. 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'
  7783. fi
  7784. fi
  7785. ;;
  7786. amigaos*)
  7787. case $host_cpu in
  7788. powerpc)
  7789. # see comment about AmigaOS4 .so support
  7790. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7791. archive_expsym_cmds=''
  7792. ;;
  7793. m68k)
  7794. 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)'
  7795. hardcode_libdir_flag_spec='-L$libdir'
  7796. hardcode_minus_L=yes
  7797. ;;
  7798. esac
  7799. ;;
  7800. bsdi[45]*)
  7801. export_dynamic_flag_spec=-rdynamic
  7802. ;;
  7803. cygwin* | mingw* | pw32* | cegcc*)
  7804. # When not using gcc, we currently assume that we are using
  7805. # Microsoft Visual C++.
  7806. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7807. # no search path for DLLs.
  7808. hardcode_libdir_flag_spec=' '
  7809. allow_undefined_flag=unsupported
  7810. # Tell ltmain to make .lib files, not .a files.
  7811. libext=lib
  7812. # Tell ltmain to make .dll files, not .so files.
  7813. shrext_cmds=".dll"
  7814. # FIXME: Setting linknames here is a bad hack.
  7815. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7816. # The linker will automatically build a .lib file if we build a DLL.
  7817. old_archive_from_new_cmds='true'
  7818. # FIXME: Should let the user specify the lib program.
  7819. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7820. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7821. enable_shared_with_static_runtimes=yes
  7822. ;;
  7823. darwin* | rhapsody*)
  7824. archive_cmds_need_lc=no
  7825. hardcode_direct=no
  7826. hardcode_automatic=yes
  7827. hardcode_shlibpath_var=unsupported
  7828. if test "$lt_cv_ld_force_load" = "yes"; then
  7829. 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\"`'
  7830. else
  7831. whole_archive_flag_spec=''
  7832. fi
  7833. link_all_deplibs=yes
  7834. allow_undefined_flag="$_lt_dar_allow_undefined"
  7835. case $cc_basename in
  7836. ifort*) _lt_dar_can_shared=yes ;;
  7837. *) _lt_dar_can_shared=$GCC ;;
  7838. esac
  7839. if test "$_lt_dar_can_shared" = "yes"; then
  7840. output_verbose_link_cmd=func_echo_all
  7841. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7842. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7843. 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}"
  7844. 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}"
  7845. else
  7846. ld_shlibs=no
  7847. fi
  7848. ;;
  7849. dgux*)
  7850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7851. hardcode_libdir_flag_spec='-L$libdir'
  7852. hardcode_shlibpath_var=no
  7853. ;;
  7854. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7855. # support. Future versions do this automatically, but an explicit c++rt0.o
  7856. # does not break anything, and helps significantly (at the cost of a little
  7857. # extra space).
  7858. freebsd2.2*)
  7859. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7860. hardcode_libdir_flag_spec='-R$libdir'
  7861. hardcode_direct=yes
  7862. hardcode_shlibpath_var=no
  7863. ;;
  7864. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7865. freebsd2.*)
  7866. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7867. hardcode_direct=yes
  7868. hardcode_minus_L=yes
  7869. hardcode_shlibpath_var=no
  7870. ;;
  7871. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7872. freebsd* | dragonfly*)
  7873. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7874. hardcode_libdir_flag_spec='-R$libdir'
  7875. hardcode_direct=yes
  7876. hardcode_shlibpath_var=no
  7877. ;;
  7878. hpux9*)
  7879. if test "$GCC" = yes; then
  7880. 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'
  7881. else
  7882. 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'
  7883. fi
  7884. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7885. hardcode_libdir_separator=:
  7886. hardcode_direct=yes
  7887. # hardcode_minus_L: Not really in the search PATH,
  7888. # but as the default location of the library.
  7889. hardcode_minus_L=yes
  7890. export_dynamic_flag_spec='${wl}-E'
  7891. ;;
  7892. hpux10*)
  7893. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7894. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7895. else
  7896. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7897. fi
  7898. if test "$with_gnu_ld" = no; then
  7899. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7900. hardcode_libdir_flag_spec_ld='+b $libdir'
  7901. hardcode_libdir_separator=:
  7902. hardcode_direct=yes
  7903. hardcode_direct_absolute=yes
  7904. export_dynamic_flag_spec='${wl}-E'
  7905. # hardcode_minus_L: Not really in the search PATH,
  7906. # but as the default location of the library.
  7907. hardcode_minus_L=yes
  7908. fi
  7909. ;;
  7910. hpux11*)
  7911. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7912. case $host_cpu in
  7913. hppa*64*)
  7914. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7915. ;;
  7916. ia64*)
  7917. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7918. ;;
  7919. *)
  7920. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7921. ;;
  7922. esac
  7923. else
  7924. case $host_cpu in
  7925. hppa*64*)
  7926. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7927. ;;
  7928. ia64*)
  7929. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7930. ;;
  7931. *)
  7932. # Older versions of the 11.00 compiler do not understand -b yet
  7933. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7935. $as_echo_n "checking if $CC understands -b... " >&6; }
  7936. if ${lt_cv_prog_compiler__b+:} false; then :
  7937. $as_echo_n "(cached) " >&6
  7938. else
  7939. lt_cv_prog_compiler__b=no
  7940. save_LDFLAGS="$LDFLAGS"
  7941. LDFLAGS="$LDFLAGS -b"
  7942. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7943. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7944. # The linker can only warn and ignore the option if not recognized
  7945. # So say no if there are warnings
  7946. if test -s conftest.err; then
  7947. # Append any errors to the config.log.
  7948. cat conftest.err 1>&5
  7949. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7950. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7951. if diff conftest.exp conftest.er2 >/dev/null; then
  7952. lt_cv_prog_compiler__b=yes
  7953. fi
  7954. else
  7955. lt_cv_prog_compiler__b=yes
  7956. fi
  7957. fi
  7958. $RM -r conftest*
  7959. LDFLAGS="$save_LDFLAGS"
  7960. fi
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7962. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7963. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7964. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7965. else
  7966. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7967. fi
  7968. ;;
  7969. esac
  7970. fi
  7971. if test "$with_gnu_ld" = no; then
  7972. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7973. hardcode_libdir_separator=:
  7974. case $host_cpu in
  7975. hppa*64*|ia64*)
  7976. hardcode_direct=no
  7977. hardcode_shlibpath_var=no
  7978. ;;
  7979. *)
  7980. hardcode_direct=yes
  7981. hardcode_direct_absolute=yes
  7982. export_dynamic_flag_spec='${wl}-E'
  7983. # hardcode_minus_L: Not really in the search PATH,
  7984. # but as the default location of the library.
  7985. hardcode_minus_L=yes
  7986. ;;
  7987. esac
  7988. fi
  7989. ;;
  7990. irix5* | irix6* | nonstopux*)
  7991. if test "$GCC" = yes; then
  7992. 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'
  7993. # Try to use the -exported_symbol ld option, if it does not
  7994. # work, assume that -exports_file does not work either and
  7995. # implicitly export all symbols.
  7996. save_LDFLAGS="$LDFLAGS"
  7997. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7998. if test x$gcc_no_link = xyes; then
  7999. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8000. fi
  8001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8002. /* end confdefs.h. */
  8003. int foo(void) {}
  8004. _ACEOF
  8005. if ac_fn_c_try_link "$LINENO"; then :
  8006. 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'
  8007. fi
  8008. rm -f core conftest.err conftest.$ac_objext \
  8009. conftest$ac_exeext conftest.$ac_ext
  8010. LDFLAGS="$save_LDFLAGS"
  8011. else
  8012. 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'
  8013. 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'
  8014. fi
  8015. archive_cmds_need_lc='no'
  8016. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8017. hardcode_libdir_separator=:
  8018. inherit_rpath=yes
  8019. link_all_deplibs=yes
  8020. ;;
  8021. netbsd*)
  8022. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8023. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8024. else
  8025. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8026. fi
  8027. hardcode_libdir_flag_spec='-R$libdir'
  8028. hardcode_direct=yes
  8029. hardcode_shlibpath_var=no
  8030. ;;
  8031. newsos6)
  8032. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8033. hardcode_direct=yes
  8034. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8035. hardcode_libdir_separator=:
  8036. hardcode_shlibpath_var=no
  8037. ;;
  8038. *nto* | *qnx*)
  8039. ;;
  8040. openbsd*)
  8041. if test -f /usr/libexec/ld.so; then
  8042. hardcode_direct=yes
  8043. hardcode_shlibpath_var=no
  8044. hardcode_direct_absolute=yes
  8045. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8046. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8047. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8048. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8049. export_dynamic_flag_spec='${wl}-E'
  8050. else
  8051. case $host_os in
  8052. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8054. hardcode_libdir_flag_spec='-R$libdir'
  8055. ;;
  8056. *)
  8057. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8058. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8059. ;;
  8060. esac
  8061. fi
  8062. else
  8063. ld_shlibs=no
  8064. fi
  8065. ;;
  8066. os2*)
  8067. hardcode_libdir_flag_spec='-L$libdir'
  8068. hardcode_minus_L=yes
  8069. allow_undefined_flag=unsupported
  8070. 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'
  8071. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8072. ;;
  8073. osf3*)
  8074. if test "$GCC" = yes; then
  8075. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8076. 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'
  8077. else
  8078. allow_undefined_flag=' -expect_unresolved \*'
  8079. 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'
  8080. fi
  8081. archive_cmds_need_lc='no'
  8082. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8083. hardcode_libdir_separator=:
  8084. ;;
  8085. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8086. if test "$GCC" = yes; then
  8087. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8088. 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'
  8089. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8090. else
  8091. allow_undefined_flag=' -expect_unresolved \*'
  8092. 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'
  8093. 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~
  8094. $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'
  8095. # Both c and cxx compiler support -rpath directly
  8096. hardcode_libdir_flag_spec='-rpath $libdir'
  8097. fi
  8098. archive_cmds_need_lc='no'
  8099. hardcode_libdir_separator=:
  8100. ;;
  8101. solaris*)
  8102. no_undefined_flag=' -z defs'
  8103. if test "$GCC" = yes; then
  8104. wlarc='${wl}'
  8105. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8106. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8107. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8108. else
  8109. case `$CC -V 2>&1` in
  8110. *"Compilers 5.0"*)
  8111. wlarc=''
  8112. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8113. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8114. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8115. ;;
  8116. *)
  8117. wlarc='${wl}'
  8118. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8119. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8120. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8121. ;;
  8122. esac
  8123. fi
  8124. hardcode_libdir_flag_spec='-R$libdir'
  8125. hardcode_shlibpath_var=no
  8126. case $host_os in
  8127. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8128. *)
  8129. # The compiler driver will combine and reorder linker options,
  8130. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8131. # but is careful enough not to reorder.
  8132. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8133. if test "$GCC" = yes; then
  8134. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8135. else
  8136. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8137. fi
  8138. ;;
  8139. esac
  8140. link_all_deplibs=yes
  8141. ;;
  8142. sunos4*)
  8143. if test "x$host_vendor" = xsequent; then
  8144. # Use $CC to link under sequent, because it throws in some extra .o
  8145. # files that make .init and .fini sections work.
  8146. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8147. else
  8148. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8149. fi
  8150. hardcode_libdir_flag_spec='-L$libdir'
  8151. hardcode_direct=yes
  8152. hardcode_minus_L=yes
  8153. hardcode_shlibpath_var=no
  8154. ;;
  8155. sysv4)
  8156. case $host_vendor in
  8157. sni)
  8158. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8159. hardcode_direct=yes # is this really true???
  8160. ;;
  8161. siemens)
  8162. ## LD is ld it makes a PLAMLIB
  8163. ## CC just makes a GrossModule.
  8164. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8165. reload_cmds='$CC -r -o $output$reload_objs'
  8166. hardcode_direct=no
  8167. ;;
  8168. motorola)
  8169. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8170. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8171. ;;
  8172. esac
  8173. runpath_var='LD_RUN_PATH'
  8174. hardcode_shlibpath_var=no
  8175. ;;
  8176. sysv4.3*)
  8177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8178. hardcode_shlibpath_var=no
  8179. export_dynamic_flag_spec='-Bexport'
  8180. ;;
  8181. sysv4*MP*)
  8182. if test -d /usr/nec; then
  8183. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8184. hardcode_shlibpath_var=no
  8185. runpath_var=LD_RUN_PATH
  8186. hardcode_runpath_var=yes
  8187. ld_shlibs=yes
  8188. fi
  8189. ;;
  8190. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8191. no_undefined_flag='${wl}-z,text'
  8192. archive_cmds_need_lc=no
  8193. hardcode_shlibpath_var=no
  8194. runpath_var='LD_RUN_PATH'
  8195. if test "$GCC" = yes; then
  8196. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8197. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8198. else
  8199. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8200. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8201. fi
  8202. ;;
  8203. sysv5* | sco3.2v5* | sco5v6*)
  8204. # Note: We can NOT use -z defs as we might desire, because we do not
  8205. # link with -lc, and that would cause any symbols used from libc to
  8206. # always be unresolved, which means just about no library would
  8207. # ever link correctly. If we're not using GNU ld we use -z text
  8208. # though, which does catch some bad symbols but isn't as heavy-handed
  8209. # as -z defs.
  8210. no_undefined_flag='${wl}-z,text'
  8211. allow_undefined_flag='${wl}-z,nodefs'
  8212. archive_cmds_need_lc=no
  8213. hardcode_shlibpath_var=no
  8214. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8215. hardcode_libdir_separator=':'
  8216. link_all_deplibs=yes
  8217. export_dynamic_flag_spec='${wl}-Bexport'
  8218. runpath_var='LD_RUN_PATH'
  8219. if test "$GCC" = yes; then
  8220. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8221. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8222. else
  8223. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8224. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8225. fi
  8226. ;;
  8227. uts4*)
  8228. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8229. hardcode_libdir_flag_spec='-L$libdir'
  8230. hardcode_shlibpath_var=no
  8231. ;;
  8232. *)
  8233. ld_shlibs=no
  8234. ;;
  8235. esac
  8236. if test x$host_vendor = xsni; then
  8237. case $host in
  8238. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8239. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8240. ;;
  8241. esac
  8242. fi
  8243. fi
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8245. $as_echo "$ld_shlibs" >&6; }
  8246. test "$ld_shlibs" = no && can_build_shared=no
  8247. with_gnu_ld=$with_gnu_ld
  8248. #
  8249. # Do we need to explicitly link libc?
  8250. #
  8251. case "x$archive_cmds_need_lc" in
  8252. x|xyes)
  8253. # Assume -lc should be added
  8254. archive_cmds_need_lc=yes
  8255. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8256. case $archive_cmds in
  8257. *'~'*)
  8258. # FIXME: we may have to deal with multi-command sequences.
  8259. ;;
  8260. '$CC '*)
  8261. # Test whether the compiler implicitly links with -lc since on some
  8262. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8263. # to ld, don't add -lc before -lgcc.
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8265. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8266. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8267. $as_echo_n "(cached) " >&6
  8268. else
  8269. $RM conftest*
  8270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8271. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8272. (eval $ac_compile) 2>&5
  8273. ac_status=$?
  8274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8275. test $ac_status = 0; } 2>conftest.err; then
  8276. soname=conftest
  8277. lib=conftest
  8278. libobjs=conftest.$ac_objext
  8279. deplibs=
  8280. wl=$lt_prog_compiler_wl
  8281. pic_flag=$lt_prog_compiler_pic
  8282. compiler_flags=-v
  8283. linker_flags=-v
  8284. verstring=
  8285. output_objdir=.
  8286. libname=conftest
  8287. lt_save_allow_undefined_flag=$allow_undefined_flag
  8288. allow_undefined_flag=
  8289. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8290. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8291. ac_status=$?
  8292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8293. test $ac_status = 0; }
  8294. then
  8295. lt_cv_archive_cmds_need_lc=no
  8296. else
  8297. lt_cv_archive_cmds_need_lc=yes
  8298. fi
  8299. allow_undefined_flag=$lt_save_allow_undefined_flag
  8300. else
  8301. cat conftest.err 1>&5
  8302. fi
  8303. $RM conftest*
  8304. fi
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8306. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8307. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8308. ;;
  8309. esac
  8310. fi
  8311. ;;
  8312. esac
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8314. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8315. if test "$GCC" = yes; then
  8316. case $host_os in
  8317. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8318. *) lt_awk_arg="/^libraries:/" ;;
  8319. esac
  8320. case $host_os in
  8321. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8322. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8323. esac
  8324. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8325. case $lt_search_path_spec in
  8326. *\;*)
  8327. # if the path contains ";" then we assume it to be the separator
  8328. # otherwise default to the standard path separator (i.e. ":") - it is
  8329. # assumed that no part of a normal pathname contains ";" but that should
  8330. # okay in the real world where ";" in dirpaths is itself problematic.
  8331. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8332. ;;
  8333. *)
  8334. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8335. ;;
  8336. esac
  8337. # Ok, now we have the path, separated by spaces, we can step through it
  8338. # and add multilib dir if necessary.
  8339. lt_tmp_lt_search_path_spec=
  8340. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8341. for lt_sys_path in $lt_search_path_spec; do
  8342. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8343. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8344. else
  8345. test -d "$lt_sys_path" && \
  8346. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8347. fi
  8348. done
  8349. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8350. BEGIN {RS=" "; FS="/|\n";} {
  8351. lt_foo="";
  8352. lt_count=0;
  8353. for (lt_i = NF; lt_i > 0; lt_i--) {
  8354. if ($lt_i != "" && $lt_i != ".") {
  8355. if ($lt_i == "..") {
  8356. lt_count++;
  8357. } else {
  8358. if (lt_count == 0) {
  8359. lt_foo="/" $lt_i lt_foo;
  8360. } else {
  8361. lt_count--;
  8362. }
  8363. }
  8364. }
  8365. }
  8366. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8367. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8368. }'`
  8369. # AWK program above erroneously prepends '/' to C:/dos/paths
  8370. # for these hosts.
  8371. case $host_os in
  8372. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8373. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8374. esac
  8375. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8376. else
  8377. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8378. fi
  8379. library_names_spec=
  8380. libname_spec='lib$name'
  8381. soname_spec=
  8382. shrext_cmds=".so"
  8383. postinstall_cmds=
  8384. postuninstall_cmds=
  8385. finish_cmds=
  8386. finish_eval=
  8387. shlibpath_var=
  8388. shlibpath_overrides_runpath=unknown
  8389. version_type=none
  8390. dynamic_linker="$host_os ld.so"
  8391. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8392. need_lib_prefix=unknown
  8393. hardcode_into_libs=no
  8394. # when you set need_version to no, make sure it does not cause -set_version
  8395. # flags to be left without arguments
  8396. need_version=unknown
  8397. case $host_os in
  8398. aix3*)
  8399. version_type=linux
  8400. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8401. shlibpath_var=LIBPATH
  8402. # AIX 3 has no versioning support, so we append a major version to the name.
  8403. soname_spec='${libname}${release}${shared_ext}$major'
  8404. ;;
  8405. aix[4-9]*)
  8406. version_type=linux
  8407. need_lib_prefix=no
  8408. need_version=no
  8409. hardcode_into_libs=yes
  8410. if test "$host_cpu" = ia64; then
  8411. # AIX 5 supports IA64
  8412. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8413. shlibpath_var=LD_LIBRARY_PATH
  8414. else
  8415. # With GCC up to 2.95.x, collect2 would create an import file
  8416. # for dependence libraries. The import file would start with
  8417. # the line `#! .'. This would cause the generated library to
  8418. # depend on `.', always an invalid library. This was fixed in
  8419. # development snapshots of GCC prior to 3.0.
  8420. case $host_os in
  8421. aix4 | aix4.[01] | aix4.[01].*)
  8422. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8423. echo ' yes '
  8424. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8425. :
  8426. else
  8427. can_build_shared=no
  8428. fi
  8429. ;;
  8430. esac
  8431. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8432. # soname into executable. Probably we can add versioning support to
  8433. # collect2, so additional links can be useful in future.
  8434. if test "$aix_use_runtimelinking" = yes; then
  8435. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8436. # instead of lib<name>.a to let people know that these are not
  8437. # typical AIX shared libraries.
  8438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8439. else
  8440. # We preserve .a as extension for shared libraries through AIX4.2
  8441. # and later when we are not doing run time linking.
  8442. library_names_spec='${libname}${release}.a $libname.a'
  8443. soname_spec='${libname}${release}${shared_ext}$major'
  8444. fi
  8445. shlibpath_var=LIBPATH
  8446. fi
  8447. ;;
  8448. amigaos*)
  8449. case $host_cpu in
  8450. powerpc)
  8451. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8452. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8454. ;;
  8455. m68k)
  8456. library_names_spec='$libname.ixlibrary $libname.a'
  8457. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8458. 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'
  8459. ;;
  8460. esac
  8461. ;;
  8462. beos*)
  8463. library_names_spec='${libname}${shared_ext}'
  8464. dynamic_linker="$host_os ld.so"
  8465. shlibpath_var=LIBRARY_PATH
  8466. ;;
  8467. bsdi[45]*)
  8468. version_type=linux
  8469. need_version=no
  8470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8471. soname_spec='${libname}${release}${shared_ext}$major'
  8472. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8473. shlibpath_var=LD_LIBRARY_PATH
  8474. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8475. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8476. # the default ld.so.conf also contains /usr/contrib/lib and
  8477. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8478. # libtool to hard-code these into programs
  8479. ;;
  8480. cygwin* | mingw* | pw32* | cegcc*)
  8481. version_type=windows
  8482. shrext_cmds=".dll"
  8483. need_version=no
  8484. need_lib_prefix=no
  8485. case $GCC,$host_os in
  8486. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8487. library_names_spec='$libname.dll.a'
  8488. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8489. postinstall_cmds='base_file=`basename \${file}`~
  8490. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8491. dldir=$destdir/`dirname \$dlpath`~
  8492. test -d \$dldir || mkdir -p \$dldir~
  8493. $install_prog $dir/$dlname \$dldir/$dlname~
  8494. chmod a+x \$dldir/$dlname~
  8495. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8496. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8497. fi'
  8498. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8499. dlpath=$dir/\$dldll~
  8500. $RM \$dlpath'
  8501. shlibpath_overrides_runpath=yes
  8502. case $host_os in
  8503. cygwin*)
  8504. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8505. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8506. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8507. ;;
  8508. mingw* | cegcc*)
  8509. # MinGW DLLs use traditional 'lib' prefix
  8510. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8511. ;;
  8512. pw32*)
  8513. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8514. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8515. ;;
  8516. esac
  8517. ;;
  8518. *)
  8519. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8520. ;;
  8521. esac
  8522. dynamic_linker='Win32 ld.exe'
  8523. # FIXME: first we should search . and the directory the executable is in
  8524. shlibpath_var=PATH
  8525. ;;
  8526. darwin* | rhapsody*)
  8527. dynamic_linker="$host_os dyld"
  8528. version_type=darwin
  8529. need_lib_prefix=no
  8530. need_version=no
  8531. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8532. soname_spec='${libname}${release}${major}$shared_ext'
  8533. shlibpath_overrides_runpath=yes
  8534. shlibpath_var=DYLD_LIBRARY_PATH
  8535. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8536. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8537. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8538. ;;
  8539. dgux*)
  8540. version_type=linux
  8541. need_lib_prefix=no
  8542. need_version=no
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8544. soname_spec='${libname}${release}${shared_ext}$major'
  8545. shlibpath_var=LD_LIBRARY_PATH
  8546. ;;
  8547. freebsd* | dragonfly*)
  8548. # DragonFly does not have aout. When/if they implement a new
  8549. # versioning mechanism, adjust this.
  8550. if test -x /usr/bin/objformat; then
  8551. objformat=`/usr/bin/objformat`
  8552. else
  8553. case $host_os in
  8554. freebsd[23].*) objformat=aout ;;
  8555. *) objformat=elf ;;
  8556. esac
  8557. fi
  8558. version_type=freebsd-$objformat
  8559. case $version_type in
  8560. freebsd-elf*)
  8561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8562. need_version=no
  8563. need_lib_prefix=no
  8564. ;;
  8565. freebsd-*)
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8567. need_version=yes
  8568. ;;
  8569. esac
  8570. shlibpath_var=LD_LIBRARY_PATH
  8571. case $host_os in
  8572. freebsd2.*)
  8573. shlibpath_overrides_runpath=yes
  8574. ;;
  8575. freebsd3.[01]* | freebsdelf3.[01]*)
  8576. shlibpath_overrides_runpath=yes
  8577. hardcode_into_libs=yes
  8578. ;;
  8579. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8580. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8581. shlibpath_overrides_runpath=no
  8582. hardcode_into_libs=yes
  8583. ;;
  8584. *) # from 4.6 on, and DragonFly
  8585. shlibpath_overrides_runpath=yes
  8586. hardcode_into_libs=yes
  8587. ;;
  8588. esac
  8589. ;;
  8590. haiku*)
  8591. version_type=linux
  8592. need_lib_prefix=no
  8593. need_version=no
  8594. dynamic_linker="$host_os runtime_loader"
  8595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8596. soname_spec='${libname}${release}${shared_ext}$major'
  8597. shlibpath_var=LIBRARY_PATH
  8598. shlibpath_overrides_runpath=yes
  8599. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8600. hardcode_into_libs=yes
  8601. ;;
  8602. hpux9* | hpux10* | hpux11*)
  8603. # Give a soname corresponding to the major version so that dld.sl refuses to
  8604. # link against other versions.
  8605. version_type=sunos
  8606. need_lib_prefix=no
  8607. need_version=no
  8608. case $host_cpu in
  8609. ia64*)
  8610. shrext_cmds='.so'
  8611. hardcode_into_libs=yes
  8612. dynamic_linker="$host_os dld.so"
  8613. shlibpath_var=LD_LIBRARY_PATH
  8614. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8616. soname_spec='${libname}${release}${shared_ext}$major'
  8617. if test "X$HPUX_IA64_MODE" = X32; then
  8618. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8619. else
  8620. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8621. fi
  8622. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8623. ;;
  8624. hppa*64*)
  8625. shrext_cmds='.sl'
  8626. hardcode_into_libs=yes
  8627. dynamic_linker="$host_os dld.sl"
  8628. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8629. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8631. soname_spec='${libname}${release}${shared_ext}$major'
  8632. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8633. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8634. ;;
  8635. *)
  8636. shrext_cmds='.sl'
  8637. dynamic_linker="$host_os dld.sl"
  8638. shlibpath_var=SHLIB_PATH
  8639. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8641. soname_spec='${libname}${release}${shared_ext}$major'
  8642. ;;
  8643. esac
  8644. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8645. postinstall_cmds='chmod 555 $lib'
  8646. # or fails outright, so override atomically:
  8647. install_override_mode=555
  8648. ;;
  8649. interix[3-9]*)
  8650. version_type=linux
  8651. need_lib_prefix=no
  8652. need_version=no
  8653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8654. soname_spec='${libname}${release}${shared_ext}$major'
  8655. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. shlibpath_overrides_runpath=no
  8658. hardcode_into_libs=yes
  8659. ;;
  8660. irix5* | irix6* | nonstopux*)
  8661. case $host_os in
  8662. nonstopux*) version_type=nonstopux ;;
  8663. *)
  8664. if test "$lt_cv_prog_gnu_ld" = yes; then
  8665. version_type=linux
  8666. else
  8667. version_type=irix
  8668. fi ;;
  8669. esac
  8670. need_lib_prefix=no
  8671. need_version=no
  8672. soname_spec='${libname}${release}${shared_ext}$major'
  8673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8674. case $host_os in
  8675. irix5* | nonstopux*)
  8676. libsuff= shlibsuff=
  8677. ;;
  8678. *)
  8679. case $LD in # libtool.m4 will add one of these switches to LD
  8680. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8681. libsuff= shlibsuff= libmagic=32-bit;;
  8682. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8683. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8684. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8685. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8686. *) libsuff= shlibsuff= libmagic=never-match;;
  8687. esac
  8688. ;;
  8689. esac
  8690. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8691. shlibpath_overrides_runpath=no
  8692. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8693. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8694. hardcode_into_libs=yes
  8695. ;;
  8696. # No shared lib support for Linux oldld, aout, or coff.
  8697. linux*oldld* | linux*aout* | linux*coff*)
  8698. dynamic_linker=no
  8699. ;;
  8700. # This must be Linux ELF.
  8701. # uclinux* changes (here and below) have been submitted to the libtool
  8702. # project, but have not yet been accepted: they are GCC-local changes
  8703. # for the time being. (See
  8704. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8705. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8706. version_type=linux
  8707. need_lib_prefix=no
  8708. need_version=no
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8710. soname_spec='${libname}${release}${shared_ext}$major'
  8711. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. shlibpath_overrides_runpath=no
  8714. # Some binutils ld are patched to set DT_RUNPATH
  8715. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8716. $as_echo_n "(cached) " >&6
  8717. else
  8718. lt_cv_shlibpath_overrides_runpath=no
  8719. save_LDFLAGS=$LDFLAGS
  8720. save_libdir=$libdir
  8721. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8722. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8723. if test x$gcc_no_link = xyes; then
  8724. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8725. fi
  8726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8727. /* end confdefs.h. */
  8728. int
  8729. main ()
  8730. {
  8731. ;
  8732. return 0;
  8733. }
  8734. _ACEOF
  8735. if ac_fn_c_try_link "$LINENO"; then :
  8736. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8737. lt_cv_shlibpath_overrides_runpath=yes
  8738. fi
  8739. fi
  8740. rm -f core conftest.err conftest.$ac_objext \
  8741. conftest$ac_exeext conftest.$ac_ext
  8742. LDFLAGS=$save_LDFLAGS
  8743. libdir=$save_libdir
  8744. fi
  8745. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8746. # This implies no fast_install, which is unacceptable.
  8747. # Some rework will be needed to allow for fast_install
  8748. # before this can be enabled.
  8749. hardcode_into_libs=yes
  8750. # Append ld.so.conf contents to the search path
  8751. if test -f /etc/ld.so.conf; then
  8752. 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' ' '`
  8753. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8754. fi
  8755. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8756. # powerpc, because MkLinux only supported shared libraries with the
  8757. # GNU dynamic linker. Since this was broken with cross compilers,
  8758. # most powerpc-linux boxes support dynamic linking these days and
  8759. # people can always --disable-shared, the test was removed, and we
  8760. # assume the GNU/Linux dynamic linker is in use.
  8761. dynamic_linker='GNU/Linux ld.so'
  8762. ;;
  8763. netbsd*)
  8764. version_type=sunos
  8765. need_lib_prefix=no
  8766. need_version=no
  8767. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8769. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8770. dynamic_linker='NetBSD (a.out) ld.so'
  8771. else
  8772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8773. soname_spec='${libname}${release}${shared_ext}$major'
  8774. dynamic_linker='NetBSD ld.elf_so'
  8775. fi
  8776. shlibpath_var=LD_LIBRARY_PATH
  8777. shlibpath_overrides_runpath=yes
  8778. hardcode_into_libs=yes
  8779. ;;
  8780. newsos6)
  8781. version_type=linux
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. shlibpath_var=LD_LIBRARY_PATH
  8784. shlibpath_overrides_runpath=yes
  8785. ;;
  8786. *nto* | *qnx*)
  8787. version_type=qnx
  8788. need_lib_prefix=no
  8789. need_version=no
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. shlibpath_var=LD_LIBRARY_PATH
  8793. shlibpath_overrides_runpath=no
  8794. hardcode_into_libs=yes
  8795. dynamic_linker='ldqnx.so'
  8796. ;;
  8797. openbsd*)
  8798. version_type=sunos
  8799. sys_lib_dlsearch_path_spec="/usr/lib"
  8800. need_lib_prefix=no
  8801. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8802. case $host_os in
  8803. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8804. *) need_version=no ;;
  8805. esac
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8807. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8808. shlibpath_var=LD_LIBRARY_PATH
  8809. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8810. case $host_os in
  8811. openbsd2.[89] | openbsd2.[89].*)
  8812. shlibpath_overrides_runpath=no
  8813. ;;
  8814. *)
  8815. shlibpath_overrides_runpath=yes
  8816. ;;
  8817. esac
  8818. else
  8819. shlibpath_overrides_runpath=yes
  8820. fi
  8821. ;;
  8822. os2*)
  8823. libname_spec='$name'
  8824. shrext_cmds=".dll"
  8825. need_lib_prefix=no
  8826. library_names_spec='$libname${shared_ext} $libname.a'
  8827. dynamic_linker='OS/2 ld.exe'
  8828. shlibpath_var=LIBPATH
  8829. ;;
  8830. osf3* | osf4* | osf5*)
  8831. version_type=osf
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. soname_spec='${libname}${release}${shared_ext}$major'
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8836. shlibpath_var=LD_LIBRARY_PATH
  8837. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8838. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8839. ;;
  8840. rdos*)
  8841. dynamic_linker=no
  8842. ;;
  8843. solaris*)
  8844. version_type=linux
  8845. need_lib_prefix=no
  8846. need_version=no
  8847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8848. soname_spec='${libname}${release}${shared_ext}$major'
  8849. shlibpath_var=LD_LIBRARY_PATH
  8850. shlibpath_overrides_runpath=yes
  8851. hardcode_into_libs=yes
  8852. # ldd complains unless libraries are executable
  8853. postinstall_cmds='chmod +x $lib'
  8854. ;;
  8855. sunos4*)
  8856. version_type=sunos
  8857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8858. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. shlibpath_overrides_runpath=yes
  8861. if test "$with_gnu_ld" = yes; then
  8862. need_lib_prefix=no
  8863. fi
  8864. need_version=yes
  8865. ;;
  8866. sysv4 | sysv4.3*)
  8867. version_type=linux
  8868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8869. soname_spec='${libname}${release}${shared_ext}$major'
  8870. shlibpath_var=LD_LIBRARY_PATH
  8871. case $host_vendor in
  8872. sni)
  8873. shlibpath_overrides_runpath=no
  8874. need_lib_prefix=no
  8875. runpath_var=LD_RUN_PATH
  8876. ;;
  8877. siemens)
  8878. need_lib_prefix=no
  8879. ;;
  8880. motorola)
  8881. need_lib_prefix=no
  8882. need_version=no
  8883. shlibpath_overrides_runpath=no
  8884. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8885. ;;
  8886. esac
  8887. ;;
  8888. sysv4*MP*)
  8889. if test -d /usr/nec ;then
  8890. version_type=linux
  8891. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8892. soname_spec='$libname${shared_ext}.$major'
  8893. shlibpath_var=LD_LIBRARY_PATH
  8894. fi
  8895. ;;
  8896. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8897. version_type=freebsd-elf
  8898. need_lib_prefix=no
  8899. need_version=no
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. shlibpath_overrides_runpath=yes
  8904. hardcode_into_libs=yes
  8905. if test "$with_gnu_ld" = yes; then
  8906. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8907. else
  8908. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8909. case $host_os in
  8910. sco3.2v5*)
  8911. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8912. ;;
  8913. esac
  8914. fi
  8915. sys_lib_dlsearch_path_spec='/usr/lib'
  8916. ;;
  8917. tpf*)
  8918. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8919. version_type=linux
  8920. need_lib_prefix=no
  8921. need_version=no
  8922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8923. shlibpath_var=LD_LIBRARY_PATH
  8924. shlibpath_overrides_runpath=no
  8925. hardcode_into_libs=yes
  8926. ;;
  8927. uts4*)
  8928. version_type=linux
  8929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8930. soname_spec='${libname}${release}${shared_ext}$major'
  8931. shlibpath_var=LD_LIBRARY_PATH
  8932. ;;
  8933. *)
  8934. dynamic_linker=no
  8935. ;;
  8936. esac
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8938. $as_echo "$dynamic_linker" >&6; }
  8939. test "$dynamic_linker" = no && can_build_shared=no
  8940. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8941. if test "$GCC" = yes; then
  8942. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8943. fi
  8944. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8945. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8946. fi
  8947. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8948. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8949. fi
  8950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8951. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8952. hardcode_action=
  8953. if test -n "$hardcode_libdir_flag_spec" ||
  8954. test -n "$runpath_var" ||
  8955. test "X$hardcode_automatic" = "Xyes" ; then
  8956. # We can hardcode non-existent directories.
  8957. if test "$hardcode_direct" != no &&
  8958. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8959. # have to relink, otherwise we might link with an installed library
  8960. # when we should be linking with a yet-to-be-installed one
  8961. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8962. test "$hardcode_minus_L" != no; then
  8963. # Linking always hardcodes the temporary library directory.
  8964. hardcode_action=relink
  8965. else
  8966. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8967. hardcode_action=immediate
  8968. fi
  8969. else
  8970. # We cannot hardcode anything, or else we can only hardcode existing
  8971. # directories.
  8972. hardcode_action=unsupported
  8973. fi
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8975. $as_echo "$hardcode_action" >&6; }
  8976. if test "$hardcode_action" = relink ||
  8977. test "$inherit_rpath" = yes; then
  8978. # Fast installation is not supported
  8979. enable_fast_install=no
  8980. elif test "$shlibpath_overrides_runpath" = yes ||
  8981. test "$enable_shared" = no; then
  8982. # Fast installation is not necessary
  8983. enable_fast_install=needless
  8984. fi
  8985. if test "x$enable_dlopen" != xyes; then
  8986. enable_dlopen=unknown
  8987. enable_dlopen_self=unknown
  8988. enable_dlopen_self_static=unknown
  8989. else
  8990. lt_cv_dlopen=no
  8991. lt_cv_dlopen_libs=
  8992. case $host_os in
  8993. beos*)
  8994. lt_cv_dlopen="load_add_on"
  8995. lt_cv_dlopen_libs=
  8996. lt_cv_dlopen_self=yes
  8997. ;;
  8998. mingw* | pw32* | cegcc*)
  8999. lt_cv_dlopen="LoadLibrary"
  9000. lt_cv_dlopen_libs=
  9001. ;;
  9002. cygwin*)
  9003. lt_cv_dlopen="dlopen"
  9004. lt_cv_dlopen_libs=
  9005. ;;
  9006. darwin*)
  9007. # if libdl is installed we need to link against it
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9009. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9010. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9011. $as_echo_n "(cached) " >&6
  9012. else
  9013. ac_check_lib_save_LIBS=$LIBS
  9014. LIBS="-ldl $LIBS"
  9015. if test x$gcc_no_link = xyes; then
  9016. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9017. fi
  9018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9019. /* end confdefs.h. */
  9020. /* Override any GCC internal prototype to avoid an error.
  9021. Use char because int might match the return type of a GCC
  9022. builtin and then its argument prototype would still apply. */
  9023. #ifdef __cplusplus
  9024. extern "C"
  9025. #endif
  9026. char dlopen ();
  9027. int
  9028. main ()
  9029. {
  9030. return dlopen ();
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_c_try_link "$LINENO"; then :
  9036. ac_cv_lib_dl_dlopen=yes
  9037. else
  9038. ac_cv_lib_dl_dlopen=no
  9039. fi
  9040. rm -f core conftest.err conftest.$ac_objext \
  9041. conftest$ac_exeext conftest.$ac_ext
  9042. LIBS=$ac_check_lib_save_LIBS
  9043. fi
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9045. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9046. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9047. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9048. else
  9049. lt_cv_dlopen="dyld"
  9050. lt_cv_dlopen_libs=
  9051. lt_cv_dlopen_self=yes
  9052. fi
  9053. ;;
  9054. *)
  9055. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9056. if test "x$ac_cv_func_shl_load" = xyes; then :
  9057. lt_cv_dlopen="shl_load"
  9058. else
  9059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9060. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9061. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9062. $as_echo_n "(cached) " >&6
  9063. else
  9064. ac_check_lib_save_LIBS=$LIBS
  9065. LIBS="-ldld $LIBS"
  9066. if test x$gcc_no_link = xyes; then
  9067. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9068. fi
  9069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9070. /* end confdefs.h. */
  9071. /* Override any GCC internal prototype to avoid an error.
  9072. Use char because int might match the return type of a GCC
  9073. builtin and then its argument prototype would still apply. */
  9074. #ifdef __cplusplus
  9075. extern "C"
  9076. #endif
  9077. char shl_load ();
  9078. int
  9079. main ()
  9080. {
  9081. return shl_load ();
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. if ac_fn_c_try_link "$LINENO"; then :
  9087. ac_cv_lib_dld_shl_load=yes
  9088. else
  9089. ac_cv_lib_dld_shl_load=no
  9090. fi
  9091. rm -f core conftest.err conftest.$ac_objext \
  9092. conftest$ac_exeext conftest.$ac_ext
  9093. LIBS=$ac_check_lib_save_LIBS
  9094. fi
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9096. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9097. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9098. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9099. else
  9100. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9101. if test "x$ac_cv_func_dlopen" = xyes; then :
  9102. lt_cv_dlopen="dlopen"
  9103. else
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9105. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9106. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9107. $as_echo_n "(cached) " >&6
  9108. else
  9109. ac_check_lib_save_LIBS=$LIBS
  9110. LIBS="-ldl $LIBS"
  9111. if test x$gcc_no_link = xyes; then
  9112. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9113. fi
  9114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9115. /* end confdefs.h. */
  9116. /* Override any GCC internal prototype to avoid an error.
  9117. Use char because int might match the return type of a GCC
  9118. builtin and then its argument prototype would still apply. */
  9119. #ifdef __cplusplus
  9120. extern "C"
  9121. #endif
  9122. char dlopen ();
  9123. int
  9124. main ()
  9125. {
  9126. return dlopen ();
  9127. ;
  9128. return 0;
  9129. }
  9130. _ACEOF
  9131. if ac_fn_c_try_link "$LINENO"; then :
  9132. ac_cv_lib_dl_dlopen=yes
  9133. else
  9134. ac_cv_lib_dl_dlopen=no
  9135. fi
  9136. rm -f core conftest.err conftest.$ac_objext \
  9137. conftest$ac_exeext conftest.$ac_ext
  9138. LIBS=$ac_check_lib_save_LIBS
  9139. fi
  9140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9141. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9142. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9143. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9144. else
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9146. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9147. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. ac_check_lib_save_LIBS=$LIBS
  9151. LIBS="-lsvld $LIBS"
  9152. if test x$gcc_no_link = xyes; then
  9153. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9154. fi
  9155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9156. /* end confdefs.h. */
  9157. /* Override any GCC internal prototype to avoid an error.
  9158. Use char because int might match the return type of a GCC
  9159. builtin and then its argument prototype would still apply. */
  9160. #ifdef __cplusplus
  9161. extern "C"
  9162. #endif
  9163. char dlopen ();
  9164. int
  9165. main ()
  9166. {
  9167. return dlopen ();
  9168. ;
  9169. return 0;
  9170. }
  9171. _ACEOF
  9172. if ac_fn_c_try_link "$LINENO"; then :
  9173. ac_cv_lib_svld_dlopen=yes
  9174. else
  9175. ac_cv_lib_svld_dlopen=no
  9176. fi
  9177. rm -f core conftest.err conftest.$ac_objext \
  9178. conftest$ac_exeext conftest.$ac_ext
  9179. LIBS=$ac_check_lib_save_LIBS
  9180. fi
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9182. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9183. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9184. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9185. else
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9187. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9188. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9189. $as_echo_n "(cached) " >&6
  9190. else
  9191. ac_check_lib_save_LIBS=$LIBS
  9192. LIBS="-ldld $LIBS"
  9193. if test x$gcc_no_link = xyes; then
  9194. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9195. fi
  9196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9197. /* end confdefs.h. */
  9198. /* Override any GCC internal prototype to avoid an error.
  9199. Use char because int might match the return type of a GCC
  9200. builtin and then its argument prototype would still apply. */
  9201. #ifdef __cplusplus
  9202. extern "C"
  9203. #endif
  9204. char dld_link ();
  9205. int
  9206. main ()
  9207. {
  9208. return dld_link ();
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. if ac_fn_c_try_link "$LINENO"; then :
  9214. ac_cv_lib_dld_dld_link=yes
  9215. else
  9216. ac_cv_lib_dld_dld_link=no
  9217. fi
  9218. rm -f core conftest.err conftest.$ac_objext \
  9219. conftest$ac_exeext conftest.$ac_ext
  9220. LIBS=$ac_check_lib_save_LIBS
  9221. fi
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9223. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9224. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9225. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9226. fi
  9227. fi
  9228. fi
  9229. fi
  9230. fi
  9231. fi
  9232. ;;
  9233. esac
  9234. if test "x$lt_cv_dlopen" != xno; then
  9235. enable_dlopen=yes
  9236. else
  9237. enable_dlopen=no
  9238. fi
  9239. case $lt_cv_dlopen in
  9240. dlopen)
  9241. save_CPPFLAGS="$CPPFLAGS"
  9242. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9243. save_LDFLAGS="$LDFLAGS"
  9244. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9245. save_LIBS="$LIBS"
  9246. LIBS="$lt_cv_dlopen_libs $LIBS"
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9248. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9249. if ${lt_cv_dlopen_self+:} false; then :
  9250. $as_echo_n "(cached) " >&6
  9251. else
  9252. if test "$cross_compiling" = yes; then :
  9253. lt_cv_dlopen_self=cross
  9254. else
  9255. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9256. lt_status=$lt_dlunknown
  9257. cat > conftest.$ac_ext <<_LT_EOF
  9258. #line 10819 "configure"
  9259. #include "confdefs.h"
  9260. #if HAVE_DLFCN_H
  9261. #include <dlfcn.h>
  9262. #endif
  9263. #include <stdio.h>
  9264. #ifdef RTLD_GLOBAL
  9265. # define LT_DLGLOBAL RTLD_GLOBAL
  9266. #else
  9267. # ifdef DL_GLOBAL
  9268. # define LT_DLGLOBAL DL_GLOBAL
  9269. # else
  9270. # define LT_DLGLOBAL 0
  9271. # endif
  9272. #endif
  9273. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9274. find out it does not work in some platform. */
  9275. #ifndef LT_DLLAZY_OR_NOW
  9276. # ifdef RTLD_LAZY
  9277. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9278. # else
  9279. # ifdef DL_LAZY
  9280. # define LT_DLLAZY_OR_NOW DL_LAZY
  9281. # else
  9282. # ifdef RTLD_NOW
  9283. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9284. # else
  9285. # ifdef DL_NOW
  9286. # define LT_DLLAZY_OR_NOW DL_NOW
  9287. # else
  9288. # define LT_DLLAZY_OR_NOW 0
  9289. # endif
  9290. # endif
  9291. # endif
  9292. # endif
  9293. #endif
  9294. /* When -fvisbility=hidden is used, assume the code has been annotated
  9295. correspondingly for the symbols needed. */
  9296. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9297. void fnord () __attribute__((visibility("default")));
  9298. #endif
  9299. void fnord () { int i=42; }
  9300. int main ()
  9301. {
  9302. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9303. int status = $lt_dlunknown;
  9304. if (self)
  9305. {
  9306. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9307. else
  9308. {
  9309. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9310. else puts (dlerror ());
  9311. }
  9312. /* dlclose (self); */
  9313. }
  9314. else
  9315. puts (dlerror ());
  9316. return status;
  9317. }
  9318. _LT_EOF
  9319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9320. (eval $ac_link) 2>&5
  9321. ac_status=$?
  9322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9323. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9324. (./conftest; exit; ) >&5 2>/dev/null
  9325. lt_status=$?
  9326. case x$lt_status in
  9327. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9328. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9329. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9330. esac
  9331. else :
  9332. # compilation failed
  9333. lt_cv_dlopen_self=no
  9334. fi
  9335. fi
  9336. rm -fr conftest*
  9337. fi
  9338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9339. $as_echo "$lt_cv_dlopen_self" >&6; }
  9340. if test "x$lt_cv_dlopen_self" = xyes; then
  9341. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9343. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9344. if ${lt_cv_dlopen_self_static+:} false; then :
  9345. $as_echo_n "(cached) " >&6
  9346. else
  9347. if test "$cross_compiling" = yes; then :
  9348. lt_cv_dlopen_self_static=cross
  9349. else
  9350. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9351. lt_status=$lt_dlunknown
  9352. cat > conftest.$ac_ext <<_LT_EOF
  9353. #line 10925 "configure"
  9354. #include "confdefs.h"
  9355. #if HAVE_DLFCN_H
  9356. #include <dlfcn.h>
  9357. #endif
  9358. #include <stdio.h>
  9359. #ifdef RTLD_GLOBAL
  9360. # define LT_DLGLOBAL RTLD_GLOBAL
  9361. #else
  9362. # ifdef DL_GLOBAL
  9363. # define LT_DLGLOBAL DL_GLOBAL
  9364. # else
  9365. # define LT_DLGLOBAL 0
  9366. # endif
  9367. #endif
  9368. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9369. find out it does not work in some platform. */
  9370. #ifndef LT_DLLAZY_OR_NOW
  9371. # ifdef RTLD_LAZY
  9372. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9373. # else
  9374. # ifdef DL_LAZY
  9375. # define LT_DLLAZY_OR_NOW DL_LAZY
  9376. # else
  9377. # ifdef RTLD_NOW
  9378. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9379. # else
  9380. # ifdef DL_NOW
  9381. # define LT_DLLAZY_OR_NOW DL_NOW
  9382. # else
  9383. # define LT_DLLAZY_OR_NOW 0
  9384. # endif
  9385. # endif
  9386. # endif
  9387. # endif
  9388. #endif
  9389. /* When -fvisbility=hidden is used, assume the code has been annotated
  9390. correspondingly for the symbols needed. */
  9391. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9392. void fnord () __attribute__((visibility("default")));
  9393. #endif
  9394. void fnord () { int i=42; }
  9395. int main ()
  9396. {
  9397. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9398. int status = $lt_dlunknown;
  9399. if (self)
  9400. {
  9401. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9402. else
  9403. {
  9404. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9405. else puts (dlerror ());
  9406. }
  9407. /* dlclose (self); */
  9408. }
  9409. else
  9410. puts (dlerror ());
  9411. return status;
  9412. }
  9413. _LT_EOF
  9414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9415. (eval $ac_link) 2>&5
  9416. ac_status=$?
  9417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9418. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9419. (./conftest; exit; ) >&5 2>/dev/null
  9420. lt_status=$?
  9421. case x$lt_status in
  9422. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9423. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9424. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9425. esac
  9426. else :
  9427. # compilation failed
  9428. lt_cv_dlopen_self_static=no
  9429. fi
  9430. fi
  9431. rm -fr conftest*
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9434. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9435. fi
  9436. CPPFLAGS="$save_CPPFLAGS"
  9437. LDFLAGS="$save_LDFLAGS"
  9438. LIBS="$save_LIBS"
  9439. ;;
  9440. esac
  9441. case $lt_cv_dlopen_self in
  9442. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9443. *) enable_dlopen_self=unknown ;;
  9444. esac
  9445. case $lt_cv_dlopen_self_static in
  9446. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9447. *) enable_dlopen_self_static=unknown ;;
  9448. esac
  9449. fi
  9450. striplib=
  9451. old_striplib=
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9453. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9454. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9455. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9456. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9458. $as_echo "yes" >&6; }
  9459. else
  9460. # FIXME - insert some real tests, host_os isn't really good enough
  9461. case $host_os in
  9462. darwin*)
  9463. if test -n "$STRIP" ; then
  9464. striplib="$STRIP -x"
  9465. old_striplib="$STRIP -S"
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9467. $as_echo "yes" >&6; }
  9468. else
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9470. $as_echo "no" >&6; }
  9471. fi
  9472. ;;
  9473. *)
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9475. $as_echo "no" >&6; }
  9476. ;;
  9477. esac
  9478. fi
  9479. # Report which library types will actually be built
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9481. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9483. $as_echo "$can_build_shared" >&6; }
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9485. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9486. test "$can_build_shared" = "no" && enable_shared=no
  9487. # On AIX, shared libraries and static libraries use the same namespace, and
  9488. # are all built from PIC.
  9489. case $host_os in
  9490. aix3*)
  9491. test "$enable_shared" = yes && enable_static=no
  9492. if test -n "$RANLIB"; then
  9493. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9494. postinstall_cmds='$RANLIB $lib'
  9495. fi
  9496. ;;
  9497. aix[4-9]*)
  9498. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9499. test "$enable_shared" = yes && enable_static=no
  9500. fi
  9501. ;;
  9502. esac
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9504. $as_echo "$enable_shared" >&6; }
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9506. $as_echo_n "checking whether to build static libraries... " >&6; }
  9507. # Make sure either enable_shared or enable_static is yes.
  9508. test "$enable_shared" = yes || enable_static=yes
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9510. $as_echo "$enable_static" >&6; }
  9511. fi
  9512. ac_ext=c
  9513. ac_cpp='$CPP $CPPFLAGS'
  9514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9517. CC="$lt_save_CC"
  9518. ac_config_commands="$ac_config_commands libtool"
  9519. # Only expand once:
  9520. case $host in
  9521. *-cygwin* | *-mingw*)
  9522. # 'host' will be top-level target in the case of a target lib,
  9523. # we must compare to with_cross_host to decide if this is a native
  9524. # or cross-compiler and select where to install dlls appropriately.
  9525. if test -n "$with_cross_host" &&
  9526. test x"$with_cross_host" != x"no"; then
  9527. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9528. else
  9529. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9530. fi
  9531. ;;
  9532. *)
  9533. lt_host_flags=
  9534. ;;
  9535. esac
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9537. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9538. # Check whether --enable-maintainer-mode was given.
  9539. if test "${enable_maintainer_mode+set}" = set; then :
  9540. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9541. else
  9542. USE_MAINTAINER_MODE=no
  9543. fi
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9545. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9546. if test $USE_MAINTAINER_MODE = yes; then
  9547. MAINTAINER_MODE_TRUE=
  9548. MAINTAINER_MODE_FALSE='#'
  9549. else
  9550. MAINTAINER_MODE_TRUE='#'
  9551. MAINTAINER_MODE_FALSE=
  9552. fi
  9553. MAINT=$MAINTAINER_MODE_TRUE
  9554. ac_ext=c
  9555. ac_cpp='$CPP $CPPFLAGS'
  9556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9559. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  9560. # We must force CC to /not/ be precious variables; otherwise
  9561. # the wrong, non-multilib-adjusted value will be used in multilibs.
  9562. # As a side effect, we have to subst CFLAGS ourselves.
  9563. ac_ext=c
  9564. ac_cpp='$CPP $CPPFLAGS'
  9565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9568. if test -n "$ac_tool_prefix"; then
  9569. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9570. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9572. $as_echo_n "checking for $ac_word... " >&6; }
  9573. if ${ac_cv_prog_CC+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. if test -n "$CC"; then
  9577. ac_cv_prog_CC="$CC" # Let the user override the test.
  9578. else
  9579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9580. for as_dir in $PATH
  9581. do
  9582. IFS=$as_save_IFS
  9583. test -z "$as_dir" && as_dir=.
  9584. for ac_exec_ext in '' $ac_executable_extensions; do
  9585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9586. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9588. break 2
  9589. fi
  9590. done
  9591. done
  9592. IFS=$as_save_IFS
  9593. fi
  9594. fi
  9595. CC=$ac_cv_prog_CC
  9596. if test -n "$CC"; then
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9598. $as_echo "$CC" >&6; }
  9599. else
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9601. $as_echo "no" >&6; }
  9602. fi
  9603. fi
  9604. if test -z "$ac_cv_prog_CC"; then
  9605. ac_ct_CC=$CC
  9606. # Extract the first word of "gcc", so it can be a program name with args.
  9607. set dummy gcc; ac_word=$2
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9609. $as_echo_n "checking for $ac_word... " >&6; }
  9610. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9611. $as_echo_n "(cached) " >&6
  9612. else
  9613. if test -n "$ac_ct_CC"; then
  9614. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9615. else
  9616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9617. for as_dir in $PATH
  9618. do
  9619. IFS=$as_save_IFS
  9620. test -z "$as_dir" && as_dir=.
  9621. for ac_exec_ext in '' $ac_executable_extensions; do
  9622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9623. ac_cv_prog_ac_ct_CC="gcc"
  9624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9625. break 2
  9626. fi
  9627. done
  9628. done
  9629. IFS=$as_save_IFS
  9630. fi
  9631. fi
  9632. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9633. if test -n "$ac_ct_CC"; then
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9635. $as_echo "$ac_ct_CC" >&6; }
  9636. else
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9638. $as_echo "no" >&6; }
  9639. fi
  9640. if test "x$ac_ct_CC" = x; then
  9641. CC=""
  9642. else
  9643. case $cross_compiling:$ac_tool_warned in
  9644. yes:)
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9647. ac_tool_warned=yes ;;
  9648. esac
  9649. CC=$ac_ct_CC
  9650. fi
  9651. else
  9652. CC="$ac_cv_prog_CC"
  9653. fi
  9654. if test -z "$CC"; then
  9655. if test -n "$ac_tool_prefix"; then
  9656. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9657. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9659. $as_echo_n "checking for $ac_word... " >&6; }
  9660. if ${ac_cv_prog_CC+:} false; then :
  9661. $as_echo_n "(cached) " >&6
  9662. else
  9663. if test -n "$CC"; then
  9664. ac_cv_prog_CC="$CC" # Let the user override the test.
  9665. else
  9666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9667. for as_dir in $PATH
  9668. do
  9669. IFS=$as_save_IFS
  9670. test -z "$as_dir" && as_dir=.
  9671. for ac_exec_ext in '' $ac_executable_extensions; do
  9672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9673. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9675. break 2
  9676. fi
  9677. done
  9678. done
  9679. IFS=$as_save_IFS
  9680. fi
  9681. fi
  9682. CC=$ac_cv_prog_CC
  9683. if test -n "$CC"; then
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9685. $as_echo "$CC" >&6; }
  9686. else
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9688. $as_echo "no" >&6; }
  9689. fi
  9690. fi
  9691. fi
  9692. if test -z "$CC"; then
  9693. # Extract the first word of "cc", so it can be a program name with args.
  9694. set dummy cc; ac_word=$2
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9696. $as_echo_n "checking for $ac_word... " >&6; }
  9697. if ${ac_cv_prog_CC+:} false; then :
  9698. $as_echo_n "(cached) " >&6
  9699. else
  9700. if test -n "$CC"; then
  9701. ac_cv_prog_CC="$CC" # Let the user override the test.
  9702. else
  9703. ac_prog_rejected=no
  9704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9705. for as_dir in $PATH
  9706. do
  9707. IFS=$as_save_IFS
  9708. test -z "$as_dir" && as_dir=.
  9709. for ac_exec_ext in '' $ac_executable_extensions; do
  9710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9711. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9712. ac_prog_rejected=yes
  9713. continue
  9714. fi
  9715. ac_cv_prog_CC="cc"
  9716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9717. break 2
  9718. fi
  9719. done
  9720. done
  9721. IFS=$as_save_IFS
  9722. if test $ac_prog_rejected = yes; then
  9723. # We found a bogon in the path, so make sure we never use it.
  9724. set dummy $ac_cv_prog_CC
  9725. shift
  9726. if test $# != 0; then
  9727. # We chose a different compiler from the bogus one.
  9728. # However, it has the same basename, so the bogon will be chosen
  9729. # first if we set CC to just the basename; use the full file name.
  9730. shift
  9731. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9732. fi
  9733. fi
  9734. fi
  9735. fi
  9736. CC=$ac_cv_prog_CC
  9737. if test -n "$CC"; then
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9739. $as_echo "$CC" >&6; }
  9740. else
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9742. $as_echo "no" >&6; }
  9743. fi
  9744. fi
  9745. if test -z "$CC"; then
  9746. if test -n "$ac_tool_prefix"; then
  9747. for ac_prog in cl.exe
  9748. do
  9749. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9750. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9752. $as_echo_n "checking for $ac_word... " >&6; }
  9753. if ${ac_cv_prog_CC+:} false; then :
  9754. $as_echo_n "(cached) " >&6
  9755. else
  9756. if test -n "$CC"; then
  9757. ac_cv_prog_CC="$CC" # Let the user override the test.
  9758. else
  9759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9760. for as_dir in $PATH
  9761. do
  9762. IFS=$as_save_IFS
  9763. test -z "$as_dir" && as_dir=.
  9764. for ac_exec_ext in '' $ac_executable_extensions; do
  9765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9766. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9768. break 2
  9769. fi
  9770. done
  9771. done
  9772. IFS=$as_save_IFS
  9773. fi
  9774. fi
  9775. CC=$ac_cv_prog_CC
  9776. if test -n "$CC"; then
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9778. $as_echo "$CC" >&6; }
  9779. else
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9781. $as_echo "no" >&6; }
  9782. fi
  9783. test -n "$CC" && break
  9784. done
  9785. fi
  9786. if test -z "$CC"; then
  9787. ac_ct_CC=$CC
  9788. for ac_prog in cl.exe
  9789. do
  9790. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9791. set dummy $ac_prog; ac_word=$2
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9793. $as_echo_n "checking for $ac_word... " >&6; }
  9794. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9795. $as_echo_n "(cached) " >&6
  9796. else
  9797. if test -n "$ac_ct_CC"; then
  9798. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9799. else
  9800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9801. for as_dir in $PATH
  9802. do
  9803. IFS=$as_save_IFS
  9804. test -z "$as_dir" && as_dir=.
  9805. for ac_exec_ext in '' $ac_executable_extensions; do
  9806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9807. ac_cv_prog_ac_ct_CC="$ac_prog"
  9808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9809. break 2
  9810. fi
  9811. done
  9812. done
  9813. IFS=$as_save_IFS
  9814. fi
  9815. fi
  9816. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9817. if test -n "$ac_ct_CC"; then
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9819. $as_echo "$ac_ct_CC" >&6; }
  9820. else
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9822. $as_echo "no" >&6; }
  9823. fi
  9824. test -n "$ac_ct_CC" && break
  9825. done
  9826. if test "x$ac_ct_CC" = x; then
  9827. CC=""
  9828. else
  9829. case $cross_compiling:$ac_tool_warned in
  9830. yes:)
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9833. ac_tool_warned=yes ;;
  9834. esac
  9835. CC=$ac_ct_CC
  9836. fi
  9837. fi
  9838. fi
  9839. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9841. as_fn_error $? "no acceptable C compiler found in \$PATH
  9842. See \`config.log' for more details" "$LINENO" 5; }
  9843. # Provide some information about the compiler.
  9844. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9845. set X $ac_compile
  9846. ac_compiler=$2
  9847. for ac_option in --version -v -V -qversion; do
  9848. { { ac_try="$ac_compiler $ac_option >&5"
  9849. case "(($ac_try" in
  9850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9851. *) ac_try_echo=$ac_try;;
  9852. esac
  9853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9854. $as_echo "$ac_try_echo"; } >&5
  9855. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9856. ac_status=$?
  9857. if test -s conftest.err; then
  9858. sed '10a\
  9859. ... rest of stderr output deleted ...
  9860. 10q' conftest.err >conftest.er1
  9861. cat conftest.er1 >&5
  9862. fi
  9863. rm -f conftest.er1 conftest.err
  9864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9865. test $ac_status = 0; }
  9866. done
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9868. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9869. if ${ac_cv_c_compiler_gnu+:} false; then :
  9870. $as_echo_n "(cached) " >&6
  9871. else
  9872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9873. /* end confdefs.h. */
  9874. int
  9875. main ()
  9876. {
  9877. #ifndef __GNUC__
  9878. choke me
  9879. #endif
  9880. ;
  9881. return 0;
  9882. }
  9883. _ACEOF
  9884. if ac_fn_c_try_compile "$LINENO"; then :
  9885. ac_compiler_gnu=yes
  9886. else
  9887. ac_compiler_gnu=no
  9888. fi
  9889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9890. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9891. fi
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9893. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9894. if test $ac_compiler_gnu = yes; then
  9895. GCC=yes
  9896. else
  9897. GCC=
  9898. fi
  9899. ac_test_CFLAGS=${CFLAGS+set}
  9900. ac_save_CFLAGS=$CFLAGS
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9902. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9903. if ${ac_cv_prog_cc_g+:} false; then :
  9904. $as_echo_n "(cached) " >&6
  9905. else
  9906. ac_save_c_werror_flag=$ac_c_werror_flag
  9907. ac_c_werror_flag=yes
  9908. ac_cv_prog_cc_g=no
  9909. CFLAGS="-g"
  9910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9911. /* end confdefs.h. */
  9912. int
  9913. main ()
  9914. {
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_compile "$LINENO"; then :
  9920. ac_cv_prog_cc_g=yes
  9921. else
  9922. CFLAGS=""
  9923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9924. /* end confdefs.h. */
  9925. int
  9926. main ()
  9927. {
  9928. ;
  9929. return 0;
  9930. }
  9931. _ACEOF
  9932. if ac_fn_c_try_compile "$LINENO"; then :
  9933. else
  9934. ac_c_werror_flag=$ac_save_c_werror_flag
  9935. CFLAGS="-g"
  9936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9937. /* end confdefs.h. */
  9938. int
  9939. main ()
  9940. {
  9941. ;
  9942. return 0;
  9943. }
  9944. _ACEOF
  9945. if ac_fn_c_try_compile "$LINENO"; then :
  9946. ac_cv_prog_cc_g=yes
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9949. fi
  9950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9951. fi
  9952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9953. ac_c_werror_flag=$ac_save_c_werror_flag
  9954. fi
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9956. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9957. if test "$ac_test_CFLAGS" = set; then
  9958. CFLAGS=$ac_save_CFLAGS
  9959. elif test $ac_cv_prog_cc_g = yes; then
  9960. if test "$GCC" = yes; then
  9961. CFLAGS="-g -O2"
  9962. else
  9963. CFLAGS="-g"
  9964. fi
  9965. else
  9966. if test "$GCC" = yes; then
  9967. CFLAGS="-O2"
  9968. else
  9969. CFLAGS=
  9970. fi
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9973. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9974. if ${ac_cv_prog_cc_c89+:} false; then :
  9975. $as_echo_n "(cached) " >&6
  9976. else
  9977. ac_cv_prog_cc_c89=no
  9978. ac_save_CC=$CC
  9979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9980. /* end confdefs.h. */
  9981. #include <stdarg.h>
  9982. #include <stdio.h>
  9983. struct stat;
  9984. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9985. struct buf { int x; };
  9986. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9987. static char *e (p, i)
  9988. char **p;
  9989. int i;
  9990. {
  9991. return p[i];
  9992. }
  9993. static char *f (char * (*g) (char **, int), char **p, ...)
  9994. {
  9995. char *s;
  9996. va_list v;
  9997. va_start (v,p);
  9998. s = g (p, va_arg (v,int));
  9999. va_end (v);
  10000. return s;
  10001. }
  10002. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10003. function prototypes and stuff, but not '\xHH' hex character constants.
  10004. These don't provoke an error unfortunately, instead are silently treated
  10005. as 'x'. The following induces an error, until -std is added to get
  10006. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10007. array size at least. It's necessary to write '\x00'==0 to get something
  10008. that's true only with -std. */
  10009. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10010. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10011. inside strings and character constants. */
  10012. #define FOO(x) 'x'
  10013. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10014. int test (int i, double x);
  10015. struct s1 {int (*f) (int a);};
  10016. struct s2 {int (*f) (double a);};
  10017. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10018. int argc;
  10019. char **argv;
  10020. int
  10021. main ()
  10022. {
  10023. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10024. ;
  10025. return 0;
  10026. }
  10027. _ACEOF
  10028. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10029. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10030. do
  10031. CC="$ac_save_CC $ac_arg"
  10032. if ac_fn_c_try_compile "$LINENO"; then :
  10033. ac_cv_prog_cc_c89=$ac_arg
  10034. fi
  10035. rm -f core conftest.err conftest.$ac_objext
  10036. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10037. done
  10038. rm -f conftest.$ac_ext
  10039. CC=$ac_save_CC
  10040. fi
  10041. # AC_CACHE_VAL
  10042. case "x$ac_cv_prog_cc_c89" in
  10043. x)
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10045. $as_echo "none needed" >&6; } ;;
  10046. xno)
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10048. $as_echo "unsupported" >&6; } ;;
  10049. *)
  10050. CC="$CC $ac_cv_prog_cc_c89"
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10052. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10053. esac
  10054. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10055. fi
  10056. ac_ext=c
  10057. ac_cpp='$CPP $CPPFLAGS'
  10058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10061. ac_ext=c
  10062. ac_cpp='$CPP $CPPFLAGS'
  10063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  10067. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  10068. if ${am_cv_prog_cc_c_o+:} false; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10072. /* end confdefs.h. */
  10073. int
  10074. main ()
  10075. {
  10076. ;
  10077. return 0;
  10078. }
  10079. _ACEOF
  10080. # Make sure it works both with $CC and with simple cc.
  10081. # Following AC_PROG_CC_C_O, we do the test twice because some
  10082. # compilers refuse to overwrite an existing .o file with -o,
  10083. # though they will create one.
  10084. am_cv_prog_cc_c_o=yes
  10085. for am_i in 1 2; do
  10086. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  10087. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  10088. ac_status=$?
  10089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10090. (exit $ac_status); } \
  10091. && test -f conftest2.$ac_objext; then
  10092. : OK
  10093. else
  10094. am_cv_prog_cc_c_o=no
  10095. break
  10096. fi
  10097. done
  10098. rm -f core conftest*
  10099. unset am_i
  10100. fi
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  10102. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  10103. if test "$am_cv_prog_cc_c_o" != yes; then
  10104. # Losing compiler, so override with the script.
  10105. # FIXME: It is wrong to rewrite CC.
  10106. # But if we don't then we get into trouble of one sort or another.
  10107. # A longer-term fix would be to have automake use am__CC in this case,
  10108. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10109. CC="$am_aux_dir/compile $CC"
  10110. fi
  10111. ac_ext=c
  10112. ac_cpp='$CPP $CPPFLAGS'
  10113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10116. depcc="$CC" am_compiler_list=
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10118. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10119. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10120. $as_echo_n "(cached) " >&6
  10121. else
  10122. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10123. # We make a subdir and do the tests there. Otherwise we can end up
  10124. # making bogus files that we don't know about and never remove. For
  10125. # instance it was reported that on HP-UX the gcc test will end up
  10126. # making a dummy file named 'D' -- because '-MD' means "put the output
  10127. # in D".
  10128. rm -rf conftest.dir
  10129. mkdir conftest.dir
  10130. # Copy depcomp to subdir because otherwise we won't find it if we're
  10131. # using a relative directory.
  10132. cp "$am_depcomp" conftest.dir
  10133. cd conftest.dir
  10134. # We will build objects and dependencies in a subdirectory because
  10135. # it helps to detect inapplicable dependency modes. For instance
  10136. # both Tru64's cc and ICC support -MD to output dependencies as a
  10137. # side effect of compilation, but ICC will put the dependencies in
  10138. # the current directory while Tru64 will put them in the object
  10139. # directory.
  10140. mkdir sub
  10141. am_cv_CC_dependencies_compiler_type=none
  10142. if test "$am_compiler_list" = ""; then
  10143. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10144. fi
  10145. am__universal=false
  10146. case " $depcc " in #(
  10147. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10148. esac
  10149. for depmode in $am_compiler_list; do
  10150. # Setup a source with many dependencies, because some compilers
  10151. # like to wrap large dependency lists on column 80 (with \), and
  10152. # we should not choose a depcomp mode which is confused by this.
  10153. #
  10154. # We need to recreate these files for each test, as the compiler may
  10155. # overwrite some of them when testing with obscure command lines.
  10156. # This happens at least with the AIX C compiler.
  10157. : > sub/conftest.c
  10158. for i in 1 2 3 4 5 6; do
  10159. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10160. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10161. # Solaris 10 /bin/sh.
  10162. echo '/* dummy */' > sub/conftst$i.h
  10163. done
  10164. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10165. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10166. # mode. It turns out that the SunPro C++ compiler does not properly
  10167. # handle '-M -o', and we need to detect this. Also, some Intel
  10168. # versions had trouble with output in subdirs.
  10169. am__obj=sub/conftest.${OBJEXT-o}
  10170. am__minus_obj="-o $am__obj"
  10171. case $depmode in
  10172. gcc)
  10173. # This depmode causes a compiler race in universal mode.
  10174. test "$am__universal" = false || continue
  10175. ;;
  10176. nosideeffect)
  10177. # After this tag, mechanisms are not by side-effect, so they'll
  10178. # only be used when explicitly requested.
  10179. if test "x$enable_dependency_tracking" = xyes; then
  10180. continue
  10181. else
  10182. break
  10183. fi
  10184. ;;
  10185. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10186. # This compiler won't grok '-c -o', but also, the minuso test has
  10187. # not run yet. These depmodes are late enough in the game, and
  10188. # so weak that their functioning should not be impacted.
  10189. am__obj=conftest.${OBJEXT-o}
  10190. am__minus_obj=
  10191. ;;
  10192. none) break ;;
  10193. esac
  10194. if depmode=$depmode \
  10195. source=sub/conftest.c object=$am__obj \
  10196. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10197. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10198. >/dev/null 2>conftest.err &&
  10199. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10200. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10201. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10202. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10203. # icc doesn't choke on unknown options, it will just issue warnings
  10204. # or remarks (even with -Werror). So we grep stderr for any message
  10205. # that says an option was ignored or not supported.
  10206. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10207. # icc: Command line warning: ignoring option '-M'; no argument required
  10208. # The diagnosis changed in icc 8.0:
  10209. # icc: Command line remark: option '-MP' not supported
  10210. if (grep 'ignoring option' conftest.err ||
  10211. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10212. am_cv_CC_dependencies_compiler_type=$depmode
  10213. break
  10214. fi
  10215. fi
  10216. done
  10217. cd ..
  10218. rm -rf conftest.dir
  10219. else
  10220. am_cv_CC_dependencies_compiler_type=none
  10221. fi
  10222. fi
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10224. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10225. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10226. if
  10227. test "x$enable_dependency_tracking" != xno \
  10228. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10229. am__fastdepCC_TRUE=
  10230. am__fastdepCC_FALSE='#'
  10231. else
  10232. am__fastdepCC_TRUE='#'
  10233. am__fastdepCC_FALSE=
  10234. fi
  10235. if test "x$GCC" != "xyes"; then
  10236. as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
  10237. fi
  10238. ac_ext=c
  10239. ac_cpp='$CPP $CPPFLAGS'
  10240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  10244. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  10245. # On Suns, sometimes $CPP names a directory.
  10246. if test -n "$CPP" && test -d "$CPP"; then
  10247. CPP=
  10248. fi
  10249. if test -z "$CPP"; then
  10250. if ${ac_cv_prog_CPP+:} false; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. # Double quotes because CPP needs to be expanded
  10254. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  10255. do
  10256. ac_preproc_ok=false
  10257. for ac_c_preproc_warn_flag in '' yes
  10258. do
  10259. # Use a header file that comes with gcc, so configuring glibc
  10260. # with a fresh cross-compiler works.
  10261. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10262. # <limits.h> exists even on freestanding compilers.
  10263. # On the NeXT, cc -E runs the code through the compiler's parser,
  10264. # not just through cpp. "Syntax error" is here to catch this case.
  10265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10266. /* end confdefs.h. */
  10267. #ifdef __STDC__
  10268. # include <limits.h>
  10269. #else
  10270. # include <assert.h>
  10271. #endif
  10272. Syntax error
  10273. _ACEOF
  10274. if ac_fn_c_try_cpp "$LINENO"; then :
  10275. else
  10276. # Broken: fails on valid input.
  10277. continue
  10278. fi
  10279. rm -f conftest.err conftest.i conftest.$ac_ext
  10280. # OK, works on sane cases. Now check whether nonexistent headers
  10281. # can be detected and how.
  10282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10283. /* end confdefs.h. */
  10284. #include <ac_nonexistent.h>
  10285. _ACEOF
  10286. if ac_fn_c_try_cpp "$LINENO"; then :
  10287. # Broken: success on invalid input.
  10288. continue
  10289. else
  10290. # Passes both tests.
  10291. ac_preproc_ok=:
  10292. break
  10293. fi
  10294. rm -f conftest.err conftest.i conftest.$ac_ext
  10295. done
  10296. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10297. rm -f conftest.i conftest.err conftest.$ac_ext
  10298. if $ac_preproc_ok; then :
  10299. break
  10300. fi
  10301. done
  10302. ac_cv_prog_CPP=$CPP
  10303. fi
  10304. CPP=$ac_cv_prog_CPP
  10305. else
  10306. ac_cv_prog_CPP=$CPP
  10307. fi
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  10309. $as_echo "$CPP" >&6; }
  10310. ac_preproc_ok=false
  10311. for ac_c_preproc_warn_flag in '' yes
  10312. do
  10313. # Use a header file that comes with gcc, so configuring glibc
  10314. # with a fresh cross-compiler works.
  10315. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10316. # <limits.h> exists even on freestanding compilers.
  10317. # On the NeXT, cc -E runs the code through the compiler's parser,
  10318. # not just through cpp. "Syntax error" is here to catch this case.
  10319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10320. /* end confdefs.h. */
  10321. #ifdef __STDC__
  10322. # include <limits.h>
  10323. #else
  10324. # include <assert.h>
  10325. #endif
  10326. Syntax error
  10327. _ACEOF
  10328. if ac_fn_c_try_cpp "$LINENO"; then :
  10329. else
  10330. # Broken: fails on valid input.
  10331. continue
  10332. fi
  10333. rm -f conftest.err conftest.i conftest.$ac_ext
  10334. # OK, works on sane cases. Now check whether nonexistent headers
  10335. # can be detected and how.
  10336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10337. /* end confdefs.h. */
  10338. #include <ac_nonexistent.h>
  10339. _ACEOF
  10340. if ac_fn_c_try_cpp "$LINENO"; then :
  10341. # Broken: success on invalid input.
  10342. continue
  10343. else
  10344. # Passes both tests.
  10345. ac_preproc_ok=:
  10346. break
  10347. fi
  10348. rm -f conftest.err conftest.i conftest.$ac_ext
  10349. done
  10350. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10351. rm -f conftest.i conftest.err conftest.$ac_ext
  10352. if $ac_preproc_ok; then :
  10353. else
  10354. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10356. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  10357. See \`config.log' for more details" "$LINENO" 5; }
  10358. fi
  10359. ac_ext=c
  10360. ac_cpp='$CPP $CPPFLAGS'
  10361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10364. # Check whether --with-toolexeclibdir was given.
  10365. if test "${with_toolexeclibdir+set}" = set; then :
  10366. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  10367. /)
  10368. ;;
  10369. */)
  10370. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  10371. ;;
  10372. esac
  10373. else
  10374. with_toolexeclibdir=no
  10375. fi
  10376. # Calculate toolexeclibdir
  10377. # Also toolexecdir, though it's only used in toolexeclibdir
  10378. case ${version_specific_libs} in
  10379. yes)
  10380. # Need the gcc compiler version to know where to install libraries
  10381. # and header files if --enable-version-specific-runtime-libs option
  10382. # is selected.
  10383. toolexecdir='$(libdir)/gcc/$(target_alias)'
  10384. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  10385. ;;
  10386. no)
  10387. if test -n "$with_cross_host" &&
  10388. test x"$with_cross_host" != x"no"; then
  10389. # Install a library built with a cross compiler in tooldir, not libdir.
  10390. toolexecdir='$(exec_prefix)/$(target_alias)'
  10391. case ${with_toolexeclibdir} in
  10392. no)
  10393. toolexeclibdir='$(toolexecdir)/lib'
  10394. ;;
  10395. *)
  10396. toolexeclibdir=${with_toolexeclibdir}
  10397. ;;
  10398. esac
  10399. else
  10400. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  10401. toolexeclibdir='$(libdir)'
  10402. fi
  10403. multi_os_directory=`$CC -print-multi-os-directory`
  10404. case $multi_os_directory in
  10405. .) ;; # Avoid trailing /.
  10406. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  10407. esac
  10408. ;;
  10409. esac
  10410. for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
  10411. do :
  10412. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10413. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10414. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10415. cat >>confdefs.h <<_ACEOF
  10416. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10417. _ACEOF
  10418. fi
  10419. done
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
  10421. $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
  10422. if ${libgfor_cv_have_math_h_signgam+:} false; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. save_CFLAGS="$CFLAGS"
  10426. CFLAGS="$CFLAGS -Werror"
  10427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10428. /* end confdefs.h. */
  10429. #include <math.h>
  10430. void foo(void) { signgam = 1; }
  10431. int
  10432. main ()
  10433. {
  10434. ;
  10435. return 0;
  10436. }
  10437. _ACEOF
  10438. if ac_fn_c_try_compile "$LINENO"; then :
  10439. libgfor_cv_have_math_h_signgam=yes
  10440. else
  10441. libgfor_cv_have_math_h_signgam=no
  10442. fi
  10443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10444. CFLAGS="$save_CFLAGS"
  10445. fi
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
  10447. $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
  10448. if test $libgfor_cv_have_math_h_signgam = yes; then
  10449. $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
  10450. fi
  10451. # If available, sqrtl and cbrtl speed up the calculation -
  10452. # but they are not required
  10453. if test x$gcc_no_link != xyes; then
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
  10455. $as_echo_n "checking for sqrtl in -lm... " >&6; }
  10456. if ${ac_cv_lib_m_sqrtl+:} false; then :
  10457. $as_echo_n "(cached) " >&6
  10458. else
  10459. ac_check_lib_save_LIBS=$LIBS
  10460. LIBS="-lm $LIBS"
  10461. if test x$gcc_no_link = xyes; then
  10462. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10463. fi
  10464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10465. /* end confdefs.h. */
  10466. /* Override any GCC internal prototype to avoid an error.
  10467. Use char because int might match the return type of a GCC
  10468. builtin and then its argument prototype would still apply. */
  10469. #ifdef __cplusplus
  10470. extern "C"
  10471. #endif
  10472. char sqrtl ();
  10473. int
  10474. main ()
  10475. {
  10476. return sqrtl ();
  10477. ;
  10478. return 0;
  10479. }
  10480. _ACEOF
  10481. if ac_fn_c_try_link "$LINENO"; then :
  10482. ac_cv_lib_m_sqrtl=yes
  10483. else
  10484. ac_cv_lib_m_sqrtl=no
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext \
  10487. conftest$ac_exeext conftest.$ac_ext
  10488. LIBS=$ac_check_lib_save_LIBS
  10489. fi
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
  10491. $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
  10492. if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
  10493. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  10494. fi
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
  10496. $as_echo_n "checking for cbrtl in -lm... " >&6; }
  10497. if ${ac_cv_lib_m_cbrtl+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. ac_check_lib_save_LIBS=$LIBS
  10501. LIBS="-lm $LIBS"
  10502. if test x$gcc_no_link = xyes; then
  10503. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10504. fi
  10505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10506. /* end confdefs.h. */
  10507. /* Override any GCC internal prototype to avoid an error.
  10508. Use char because int might match the return type of a GCC
  10509. builtin and then its argument prototype would still apply. */
  10510. #ifdef __cplusplus
  10511. extern "C"
  10512. #endif
  10513. char cbrtl ();
  10514. int
  10515. main ()
  10516. {
  10517. return cbrtl ();
  10518. ;
  10519. return 0;
  10520. }
  10521. _ACEOF
  10522. if ac_fn_c_try_link "$LINENO"; then :
  10523. ac_cv_lib_m_cbrtl=yes
  10524. else
  10525. ac_cv_lib_m_cbrtl=no
  10526. fi
  10527. rm -f core conftest.err conftest.$ac_objext \
  10528. conftest$ac_exeext conftest.$ac_ext
  10529. LIBS=$ac_check_lib_save_LIBS
  10530. fi
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
  10532. $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
  10533. if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
  10534. $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
  10537. $as_echo_n "checking for feholdexcept in -lm... " >&6; }
  10538. if ${ac_cv_lib_m_feholdexcept+:} false; then :
  10539. $as_echo_n "(cached) " >&6
  10540. else
  10541. ac_check_lib_save_LIBS=$LIBS
  10542. LIBS="-lm $LIBS"
  10543. if test x$gcc_no_link = xyes; then
  10544. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10545. fi
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. /* Override any GCC internal prototype to avoid an error.
  10549. Use char because int might match the return type of a GCC
  10550. builtin and then its argument prototype would still apply. */
  10551. #ifdef __cplusplus
  10552. extern "C"
  10553. #endif
  10554. char feholdexcept ();
  10555. int
  10556. main ()
  10557. {
  10558. return feholdexcept ();
  10559. ;
  10560. return 0;
  10561. }
  10562. _ACEOF
  10563. if ac_fn_c_try_link "$LINENO"; then :
  10564. ac_cv_lib_m_feholdexcept=yes
  10565. else
  10566. ac_cv_lib_m_feholdexcept=no
  10567. fi
  10568. rm -f core conftest.err conftest.$ac_objext \
  10569. conftest$ac_exeext conftest.$ac_ext
  10570. LIBS=$ac_check_lib_save_LIBS
  10571. fi
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
  10573. $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
  10574. if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
  10575. $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
  10576. fi
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
  10578. $as_echo_n "checking for fesetround in -lm... " >&6; }
  10579. if ${ac_cv_lib_m_fesetround+:} false; then :
  10580. $as_echo_n "(cached) " >&6
  10581. else
  10582. ac_check_lib_save_LIBS=$LIBS
  10583. LIBS="-lm $LIBS"
  10584. if test x$gcc_no_link = xyes; then
  10585. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10586. fi
  10587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10588. /* end confdefs.h. */
  10589. /* Override any GCC internal prototype to avoid an error.
  10590. Use char because int might match the return type of a GCC
  10591. builtin and then its argument prototype would still apply. */
  10592. #ifdef __cplusplus
  10593. extern "C"
  10594. #endif
  10595. char fesetround ();
  10596. int
  10597. main ()
  10598. {
  10599. return fesetround ();
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. if ac_fn_c_try_link "$LINENO"; then :
  10605. ac_cv_lib_m_fesetround=yes
  10606. else
  10607. ac_cv_lib_m_fesetround=no
  10608. fi
  10609. rm -f core conftest.err conftest.$ac_objext \
  10610. conftest$ac_exeext conftest.$ac_ext
  10611. LIBS=$ac_check_lib_save_LIBS
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
  10614. $as_echo "$ac_cv_lib_m_fesetround" >&6; }
  10615. if test "x$ac_cv_lib_m_fesetround" = xyes; then :
  10616. $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
  10619. $as_echo_n "checking for feupdateenv in -lm... " >&6; }
  10620. if ${ac_cv_lib_m_feupdateenv+:} false; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. ac_check_lib_save_LIBS=$LIBS
  10624. LIBS="-lm $LIBS"
  10625. if test x$gcc_no_link = xyes; then
  10626. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10627. fi
  10628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10629. /* end confdefs.h. */
  10630. /* Override any GCC internal prototype to avoid an error.
  10631. Use char because int might match the return type of a GCC
  10632. builtin and then its argument prototype would still apply. */
  10633. #ifdef __cplusplus
  10634. extern "C"
  10635. #endif
  10636. char feupdateenv ();
  10637. int
  10638. main ()
  10639. {
  10640. return feupdateenv ();
  10641. ;
  10642. return 0;
  10643. }
  10644. _ACEOF
  10645. if ac_fn_c_try_link "$LINENO"; then :
  10646. ac_cv_lib_m_feupdateenv=yes
  10647. else
  10648. ac_cv_lib_m_feupdateenv=no
  10649. fi
  10650. rm -f core conftest.err conftest.$ac_objext \
  10651. conftest$ac_exeext conftest.$ac_ext
  10652. LIBS=$ac_check_lib_save_LIBS
  10653. fi
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
  10655. $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
  10656. if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
  10657. $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
  10660. $as_echo_n "checking for fesetenv in -lm... " >&6; }
  10661. if ${ac_cv_lib_m_fesetenv+:} false; then :
  10662. $as_echo_n "(cached) " >&6
  10663. else
  10664. ac_check_lib_save_LIBS=$LIBS
  10665. LIBS="-lm $LIBS"
  10666. if test x$gcc_no_link = xyes; then
  10667. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10668. fi
  10669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10670. /* end confdefs.h. */
  10671. /* Override any GCC internal prototype to avoid an error.
  10672. Use char because int might match the return type of a GCC
  10673. builtin and then its argument prototype would still apply. */
  10674. #ifdef __cplusplus
  10675. extern "C"
  10676. #endif
  10677. char fesetenv ();
  10678. int
  10679. main ()
  10680. {
  10681. return fesetenv ();
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_link "$LINENO"; then :
  10687. ac_cv_lib_m_fesetenv=yes
  10688. else
  10689. ac_cv_lib_m_fesetenv=no
  10690. fi
  10691. rm -f core conftest.err conftest.$ac_objext \
  10692. conftest$ac_exeext conftest.$ac_ext
  10693. LIBS=$ac_check_lib_save_LIBS
  10694. fi
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
  10696. $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
  10697. if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
  10698. $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
  10699. fi
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
  10701. $as_echo_n "checking for fetestexcept in -lm... " >&6; }
  10702. if ${ac_cv_lib_m_fetestexcept+:} false; then :
  10703. $as_echo_n "(cached) " >&6
  10704. else
  10705. ac_check_lib_save_LIBS=$LIBS
  10706. LIBS="-lm $LIBS"
  10707. if test x$gcc_no_link = xyes; then
  10708. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10709. fi
  10710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10711. /* end confdefs.h. */
  10712. /* Override any GCC internal prototype to avoid an error.
  10713. Use char because int might match the return type of a GCC
  10714. builtin and then its argument prototype would still apply. */
  10715. #ifdef __cplusplus
  10716. extern "C"
  10717. #endif
  10718. char fetestexcept ();
  10719. int
  10720. main ()
  10721. {
  10722. return fetestexcept ();
  10723. ;
  10724. return 0;
  10725. }
  10726. _ACEOF
  10727. if ac_fn_c_try_link "$LINENO"; then :
  10728. ac_cv_lib_m_fetestexcept=yes
  10729. else
  10730. ac_cv_lib_m_fetestexcept=no
  10731. fi
  10732. rm -f core conftest.err conftest.$ac_objext \
  10733. conftest$ac_exeext conftest.$ac_ext
  10734. LIBS=$ac_check_lib_save_LIBS
  10735. fi
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
  10737. $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
  10738. if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
  10739. $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
  10740. fi
  10741. for ac_func in strtoull
  10742. do :
  10743. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  10744. if test "x$ac_cv_func_strtoull" = xyes; then :
  10745. cat >>confdefs.h <<_ACEOF
  10746. #define HAVE_STRTOULL 1
  10747. _ACEOF
  10748. fi
  10749. done
  10750. else
  10751. if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
  10752. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  10753. fi
  10754. if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
  10755. $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
  10756. fi
  10757. if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
  10758. $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
  10759. fi
  10760. if test "x$ac_cv_lib_m_fesetround" = x""yes; then
  10761. $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
  10762. fi
  10763. if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
  10764. $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
  10765. fi
  10766. if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
  10767. $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
  10768. fi
  10769. if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
  10770. $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
  10771. fi
  10772. fi
  10773. # Check for hidden visibility (copied from libssp).
  10774. saved_CFLAGS="$CFLAGS"
  10775. CFLAGS="$CFLAGS -Werror"
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
  10777. $as_echo_n "checking whether hidden visibility is supported... " >&6; }
  10778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10779. /* end confdefs.h. */
  10780. void __attribute__((visibility ("hidden"))) bar (void) {}
  10781. int
  10782. main ()
  10783. {
  10784. ;
  10785. return 0;
  10786. }
  10787. _ACEOF
  10788. if ac_fn_c_try_compile "$LINENO"; then :
  10789. quadmath_hidden=yes
  10790. else
  10791. quadmath_hidden=no
  10792. fi
  10793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
  10795. $as_echo "$quadmath_hidden" >&6; }
  10796. if test x$quadmath_hidden = xyes; then
  10797. $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
  10798. fi
  10799. CFLAGS="$saved_CFLAGS"
  10800. # Check for symbol versioning (copied from libssp).
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  10802. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  10803. # Check whether --enable-symvers was given.
  10804. if test "${enable_symvers+set}" = set; then :
  10805. enableval=$enable_symvers; quadmath_use_symver=$enableval
  10806. else
  10807. quadmath_use_symver=yes
  10808. fi
  10809. if test "x$quadmath_use_symver" != xno; then
  10810. if test x$gcc_no_link = xyes; then
  10811. # If we cannot link, we cannot build shared libraries, so do not use
  10812. # symbol versioning.
  10813. quadmath_use_symver=no
  10814. else
  10815. save_LDFLAGS="$LDFLAGS"
  10816. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  10817. cat > conftest.map <<EOF
  10818. FOO_1.0 {
  10819. global: *foo*; bar; local: *;
  10820. };
  10821. EOF
  10822. if test x$gcc_no_link = xyes; then
  10823. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10824. fi
  10825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10826. /* end confdefs.h. */
  10827. int foo;
  10828. int
  10829. main ()
  10830. {
  10831. ;
  10832. return 0;
  10833. }
  10834. _ACEOF
  10835. if ac_fn_c_try_link "$LINENO"; then :
  10836. quadmath_use_symver=gnu
  10837. else
  10838. quadmath_use_symver=no
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext \
  10841. conftest$ac_exeext conftest.$ac_ext
  10842. if test x$quadmath_use_symver = xno; then
  10843. case "$target_os" in
  10844. solaris2*)
  10845. LDFLAGS="$save_LDFLAGS"
  10846. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
  10847. # Sun ld cannot handle wildcards and treats all entries as undefined.
  10848. cat > conftest.map <<EOF
  10849. FOO_1.0 {
  10850. global: foo; local: *;
  10851. };
  10852. EOF
  10853. if test x$gcc_no_link = xyes; then
  10854. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10855. fi
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. int foo;
  10859. int
  10860. main ()
  10861. {
  10862. ;
  10863. return 0;
  10864. }
  10865. _ACEOF
  10866. if ac_fn_c_try_link "$LINENO"; then :
  10867. quadmath_use_symver=sun
  10868. else
  10869. quadmath_use_symver=no
  10870. fi
  10871. rm -f core conftest.err conftest.$ac_objext \
  10872. conftest$ac_exeext conftest.$ac_ext
  10873. ;;
  10874. esac
  10875. fi
  10876. LDFLAGS="$save_LDFLAGS"
  10877. fi
  10878. fi
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
  10880. $as_echo "$quadmath_use_symver" >&6; }
  10881. if test "x$quadmath_use_symver" != xno; then
  10882. LIBQUAD_USE_SYMVER_TRUE=
  10883. LIBQUAD_USE_SYMVER_FALSE='#'
  10884. else
  10885. LIBQUAD_USE_SYMVER_TRUE='#'
  10886. LIBQUAD_USE_SYMVER_FALSE=
  10887. fi
  10888. if test "x$quadmath_use_symver" = xgnu; then
  10889. LIBQUAD_USE_SYMVER_GNU_TRUE=
  10890. LIBQUAD_USE_SYMVER_GNU_FALSE='#'
  10891. else
  10892. LIBQUAD_USE_SYMVER_GNU_TRUE='#'
  10893. LIBQUAD_USE_SYMVER_GNU_FALSE=
  10894. fi
  10895. if test "x$quadmath_use_symver" = xsun; then
  10896. LIBQUAD_USE_SYMVER_SUN_TRUE=
  10897. LIBQUAD_USE_SYMVER_SUN_FALSE='#'
  10898. else
  10899. LIBQUAD_USE_SYMVER_SUN_TRUE='#'
  10900. LIBQUAD_USE_SYMVER_SUN_FALSE=
  10901. fi
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
  10903. $as_echo_n "checking whether __float128 is supported... " >&6; }
  10904. if ${libquad_cv_have_float128+:} false; then :
  10905. $as_echo_n "(cached) " >&6
  10906. else
  10907. if test x$gcc_no_link = xyes; then
  10908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10909. /* end confdefs.h. */
  10910. #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
  10911. typedef _Complex float __attribute__((mode(TC))) __complex128;
  10912. #else
  10913. typedef _Complex float __attribute__((mode(KC))) __complex128;
  10914. #endif
  10915. __float128 foo (__float128 x)
  10916. {
  10917. __complex128 z1, z2;
  10918. z1 = x;
  10919. z2 = x / 7.Q;
  10920. z2 /= z1;
  10921. return (__float128) z2;
  10922. }
  10923. __float128 bar (__float128 x)
  10924. {
  10925. return x * __builtin_huge_valq ();
  10926. }
  10927. int
  10928. main ()
  10929. {
  10930. foo (1.2Q);
  10931. bar (1.2Q);
  10932. ;
  10933. return 0;
  10934. }
  10935. _ACEOF
  10936. if ac_fn_c_try_compile "$LINENO"; then :
  10937. libquad_cv_have_float128=yes
  10938. else
  10939. libquad_cv_have_float128=no
  10940. fi
  10941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10942. else
  10943. if test x$gcc_no_link = xyes; then
  10944. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10945. fi
  10946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10947. /* end confdefs.h. */
  10948. #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
  10949. typedef _Complex float __attribute__((mode(TC))) __complex128;
  10950. #else
  10951. typedef _Complex float __attribute__((mode(KC))) __complex128;
  10952. #endif
  10953. __float128 foo (__float128 x)
  10954. {
  10955. __complex128 z1, z2;
  10956. z1 = x;
  10957. z2 = x / 7.Q;
  10958. z2 /= z1;
  10959. return (__float128) z2;
  10960. }
  10961. __float128 bar (__float128 x)
  10962. {
  10963. return x * __builtin_huge_valq ();
  10964. }
  10965. int
  10966. main ()
  10967. {
  10968. foo (1.2Q);
  10969. bar (1.2Q);
  10970. ;
  10971. return 0;
  10972. }
  10973. _ACEOF
  10974. if ac_fn_c_try_link "$LINENO"; then :
  10975. libquad_cv_have_float128=yes
  10976. else
  10977. libquad_cv_have_float128=no
  10978. fi
  10979. rm -f core conftest.err conftest.$ac_objext \
  10980. conftest$ac_exeext conftest.$ac_ext
  10981. fi
  10982. fi
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
  10984. $as_echo "$libquad_cv_have_float128" >&6; }
  10985. if test "x$libquad_cv_have_float128" = xyes; then
  10986. BUILD_LIBQUADMATH_TRUE=
  10987. BUILD_LIBQUADMATH_FALSE='#'
  10988. else
  10989. BUILD_LIBQUADMATH_TRUE='#'
  10990. BUILD_LIBQUADMATH_FALSE=
  10991. fi
  10992. # Check for printf hook support.
  10993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
  10994. $as_echo_n "checking whether printf hooks are supported... " >&6; }
  10995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10996. /* end confdefs.h. */
  10997. #include <printf.h>
  10998. #include <stdarg.h>
  10999. #include <stdlib.h>
  11000. extern void flt128_va (void *, va_list *);
  11001. extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
  11002. extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
  11003. int
  11004. main ()
  11005. {
  11006. int pa_flt128 = register_printf_type (flt128_va);
  11007. int mod_Q = register_printf_modifier (L"Q");
  11008. int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
  11009. struct printf_info info = { .user = -1 };
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if ac_fn_c_try_compile "$LINENO"; then :
  11015. quadmath_printf_hooks=yes
  11016. else
  11017. quadmath_printf_hooks=no
  11018. fi
  11019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
  11021. $as_echo "$quadmath_printf_hooks" >&6; }
  11022. if test x$quadmath_printf_hooks = xyes; then
  11023. $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
  11024. fi
  11025. # Check for whether locale support for quadmath_snprintf or Q printf hooks
  11026. # should be provided.
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
  11028. $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
  11029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11030. /* end confdefs.h. */
  11031. #include <langinfo.h>
  11032. int
  11033. main ()
  11034. {
  11035. const char *s;
  11036. s = nl_langinfo (DECIMAL_POINT);
  11037. s = nl_langinfo (MON_DECIMAL_POINT);
  11038. s = nl_langinfo (GROUPING);
  11039. s = nl_langinfo (MON_GROUPING);
  11040. s = nl_langinfo (THOUSANDS_SEP);
  11041. s = nl_langinfo (MON_THOUSANDS_SEP);
  11042. (void) s;
  11043. ;
  11044. return 0;
  11045. }
  11046. _ACEOF
  11047. if ac_fn_c_try_compile "$LINENO"; then :
  11048. quadmath_use_nl_langinfo=yes
  11049. else
  11050. quadmath_use_nl_langinfo=no
  11051. fi
  11052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
  11054. $as_echo "$quadmath_use_nl_langinfo" >&6; }
  11055. if test x$quadmath_use_nl_langinfo = xyes; then
  11056. $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
  11057. fi
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
  11059. $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
  11060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11061. /* end confdefs.h. */
  11062. #include <langinfo.h>
  11063. int
  11064. main ()
  11065. {
  11066. const char *s;
  11067. s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
  11068. s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
  11069. s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
  11070. s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
  11071. (void) s;
  11072. ;
  11073. return 0;
  11074. }
  11075. _ACEOF
  11076. if ac_fn_c_try_compile "$LINENO"; then :
  11077. quadmath_use_nl_langinfo_wc=yes
  11078. else
  11079. quadmath_use_nl_langinfo_wc=no
  11080. fi
  11081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
  11083. $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
  11084. if test x$quadmath_use_nl_langinfo_wc = xyes; then
  11085. $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
  11086. fi
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
  11088. $as_echo_n "checking whether localeconv should be used... " >&6; }
  11089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11090. /* end confdefs.h. */
  11091. #include <locale.h>
  11092. int
  11093. main ()
  11094. {
  11095. const struct lconv *l = localeconv ();
  11096. const char *s;
  11097. s = l->decimal_point;
  11098. s = l->mon_decimal_point;
  11099. s = l->grouping;
  11100. s = l->mon_grouping;
  11101. s = l->thousands_sep;
  11102. s = l->mon_thousands_sep;
  11103. (void) s;
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. if ac_fn_c_try_compile "$LINENO"; then :
  11109. quadmath_use_localeconv=yes
  11110. else
  11111. quadmath_use_localeconv=no
  11112. fi
  11113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
  11115. $as_echo "$quadmath_use_localeconv" >&6; }
  11116. if test x$quadmath_use_localeconv = xyes; then
  11117. $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
  11118. fi
  11119. # Check for whether i18n number rewriting support for quadmath_snprintf
  11120. # or Q printf hooks should be provided.
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
  11122. $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
  11123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11124. /* end confdefs.h. */
  11125. #include <langinfo.h>
  11126. #include <limits.h>
  11127. #include <string.h>
  11128. #include <wchar.h>
  11129. #include <wctype.h>
  11130. int
  11131. main ()
  11132. {
  11133. const char *s;
  11134. char decimal[MB_LEN_MAX];
  11135. wctrans_t map = wctrans ("to_outpunct");
  11136. wint_t wdecimal = towctrans (L'.', map);
  11137. mbstate_t state;
  11138. memset (&state, '\0', sizeof (state));
  11139. wcrtomb (decimal, wdecimal, &state);
  11140. s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
  11141. s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
  11142. s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
  11143. (void) s;
  11144. ;
  11145. return 0;
  11146. }
  11147. _ACEOF
  11148. if ac_fn_c_try_compile "$LINENO"; then :
  11149. quadmath_use_i18n_number_h=yes
  11150. else
  11151. quadmath_use_i18n_number_h=no
  11152. fi
  11153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
  11155. $as_echo "$quadmath_use_i18n_number_h" >&6; }
  11156. if test x$quadmath_use_i18n_number_h = xyes; then
  11157. $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
  11158. fi
  11159. # Add CET specific flags if CET is enabled
  11160. # Check whether --enable-cet was given.
  11161. if test "${enable_cet+set}" = set; then :
  11162. enableval=$enable_cet;
  11163. case "$enableval" in
  11164. yes|no|auto) ;;
  11165. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  11166. esac
  11167. else
  11168. enable_cet=auto
  11169. fi
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  11171. $as_echo_n "checking for CET support... " >&6; }
  11172. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  11173. case "$host" in
  11174. i[34567]86-*-linux* | x86_64-*-linux*)
  11175. case "$enable_cet" in
  11176. auto)
  11177. # Check if target supports multi-byte NOPs
  11178. # and if assembler supports CET insn.
  11179. cet_save_CFLAGS="$CFLAGS"
  11180. CFLAGS="$CFLAGS -fcf-protection"
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. int
  11184. main ()
  11185. {
  11186. #if !defined(__SSE2__)
  11187. #error target does not support multi-byte NOPs
  11188. #else
  11189. asm ("setssbsy");
  11190. #endif
  11191. ;
  11192. return 0;
  11193. }
  11194. _ACEOF
  11195. if ac_fn_c_try_compile "$LINENO"; then :
  11196. enable_cet=yes
  11197. else
  11198. enable_cet=no
  11199. fi
  11200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11201. CFLAGS="$cet_save_CFLAGS"
  11202. ;;
  11203. yes)
  11204. # Check if assembler supports CET.
  11205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11206. /* end confdefs.h. */
  11207. int
  11208. main ()
  11209. {
  11210. asm ("setssbsy");
  11211. ;
  11212. return 0;
  11213. }
  11214. _ACEOF
  11215. if ac_fn_c_try_compile "$LINENO"; then :
  11216. else
  11217. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  11218. fi
  11219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11220. ;;
  11221. esac
  11222. ;;
  11223. *)
  11224. enable_cet=no
  11225. ;;
  11226. esac
  11227. if test x$enable_cet = xyes; then
  11228. CET_FLAGS="-fcf-protection -mshstk"
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11230. $as_echo "yes" >&6; }
  11231. else
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11233. $as_echo "no" >&6; }
  11234. fi
  11235. XCFLAGS="$XCFLAGS $CET_FLAGS"
  11236. case x$target in
  11237. xpowerpc64le*-linux*)
  11238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11239. /* end confdefs.h. */
  11240. #if __SIZEOF_LONG_DOUBLE__ != 16
  11241. #error long double is double
  11242. #endif
  11243. int
  11244. main ()
  11245. {
  11246. (void) 0;
  11247. ;
  11248. return 0;
  11249. }
  11250. _ACEOF
  11251. if ac_fn_c_try_cpp "$LINENO"; then :
  11252. XCFLAGS="$XCFLAGS -mno-gnu-attribute"
  11253. fi
  11254. rm -f conftest.err conftest.i conftest.$ac_ext
  11255. ;;
  11256. *)
  11257. ;;
  11258. esac
  11259. cat >confcache <<\_ACEOF
  11260. # This file is a shell script that caches the results of configure
  11261. # tests run on this system so they can be shared between configure
  11262. # scripts and configure runs, see configure's option --config-cache.
  11263. # It is not useful on other systems. If it contains results you don't
  11264. # want to keep, you may remove or edit it.
  11265. #
  11266. # config.status only pays attention to the cache file if you give it
  11267. # the --recheck option to rerun configure.
  11268. #
  11269. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11270. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11271. # following values.
  11272. _ACEOF
  11273. # The following way of writing the cache mishandles newlines in values,
  11274. # but we know of no workaround that is simple, portable, and efficient.
  11275. # So, we kill variables containing newlines.
  11276. # Ultrix sh set writes to stderr and can't be redirected directly,
  11277. # and sets the high bit in the cache file unless we assign to the vars.
  11278. (
  11279. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11280. eval ac_val=\$$ac_var
  11281. case $ac_val in #(
  11282. *${as_nl}*)
  11283. case $ac_var in #(
  11284. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11285. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11286. esac
  11287. case $ac_var in #(
  11288. _ | IFS | as_nl) ;; #(
  11289. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11290. *) { eval $ac_var=; unset $ac_var;} ;;
  11291. esac ;;
  11292. esac
  11293. done
  11294. (set) 2>&1 |
  11295. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11296. *${as_nl}ac_space=\ *)
  11297. # `set' does not quote correctly, so add quotes: double-quote
  11298. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11299. sed -n \
  11300. "s/'/'\\\\''/g;
  11301. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11302. ;; #(
  11303. *)
  11304. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11305. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11306. ;;
  11307. esac |
  11308. sort
  11309. ) |
  11310. sed '
  11311. /^ac_cv_env_/b end
  11312. t clear
  11313. :clear
  11314. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11315. t end
  11316. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11317. :end' >>confcache
  11318. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11319. if test -w "$cache_file"; then
  11320. if test "x$cache_file" != "x/dev/null"; then
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11322. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11323. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11324. cat confcache >"$cache_file"
  11325. else
  11326. case $cache_file in #(
  11327. */* | ?:*)
  11328. mv -f confcache "$cache_file"$$ &&
  11329. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11330. *)
  11331. mv -f confcache "$cache_file" ;;
  11332. esac
  11333. fi
  11334. fi
  11335. else
  11336. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11337. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11338. fi
  11339. fi
  11340. rm -f confcache
  11341. if test ${multilib} = yes; then
  11342. multilib_arg="--enable-multilib"
  11343. else
  11344. multilib_arg=
  11345. fi
  11346. # We would like our source tree to be readonly. However when releases or
  11347. # pre-releases are generated, the flex/bison generated files as well as the
  11348. # various formats of manuals need to be included along with the rest of the
  11349. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  11350. # just that.
  11351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
  11352. $as_echo_n "checking generated-files-in-srcdir... " >&6; }
  11353. # Check whether --enable-generated-files-in-srcdir was given.
  11354. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  11355. enableval=$enable_generated_files_in_srcdir; case "$enableval" in
  11356. yes) enable_generated_files_in_srcdir=yes ;;
  11357. no) enable_generated_files_in_srcdir=no ;;
  11358. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  11359. esac
  11360. else
  11361. enable_generated_files_in_srcdir=no
  11362. fi
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  11364. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  11365. if test "$enable_generated_files_in_srcdir" = yes; then
  11366. GENINSRC_TRUE=
  11367. GENINSRC_FALSE='#'
  11368. else
  11369. GENINSRC_TRUE='#'
  11370. GENINSRC_FALSE=
  11371. fi
  11372. # Determine what GCC version number to use in filesystem paths.
  11373. get_gcc_base_ver="cat"
  11374. # Check whether --with-gcc-major-version-only was given.
  11375. if test "${with_gcc_major_version_only+set}" = set; then :
  11376. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  11377. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  11378. fi
  11379. fi
  11380. ac_config_files="$ac_config_files Makefile"
  11381. cat >confcache <<\_ACEOF
  11382. # This file is a shell script that caches the results of configure
  11383. # tests run on this system so they can be shared between configure
  11384. # scripts and configure runs, see configure's option --config-cache.
  11385. # It is not useful on other systems. If it contains results you don't
  11386. # want to keep, you may remove or edit it.
  11387. #
  11388. # config.status only pays attention to the cache file if you give it
  11389. # the --recheck option to rerun configure.
  11390. #
  11391. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11392. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11393. # following values.
  11394. _ACEOF
  11395. # The following way of writing the cache mishandles newlines in values,
  11396. # but we know of no workaround that is simple, portable, and efficient.
  11397. # So, we kill variables containing newlines.
  11398. # Ultrix sh set writes to stderr and can't be redirected directly,
  11399. # and sets the high bit in the cache file unless we assign to the vars.
  11400. (
  11401. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11402. eval ac_val=\$$ac_var
  11403. case $ac_val in #(
  11404. *${as_nl}*)
  11405. case $ac_var in #(
  11406. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11407. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11408. esac
  11409. case $ac_var in #(
  11410. _ | IFS | as_nl) ;; #(
  11411. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11412. *) { eval $ac_var=; unset $ac_var;} ;;
  11413. esac ;;
  11414. esac
  11415. done
  11416. (set) 2>&1 |
  11417. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11418. *${as_nl}ac_space=\ *)
  11419. # `set' does not quote correctly, so add quotes: double-quote
  11420. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11421. sed -n \
  11422. "s/'/'\\\\''/g;
  11423. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11424. ;; #(
  11425. *)
  11426. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11427. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11428. ;;
  11429. esac |
  11430. sort
  11431. ) |
  11432. sed '
  11433. /^ac_cv_env_/b end
  11434. t clear
  11435. :clear
  11436. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11437. t end
  11438. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11439. :end' >>confcache
  11440. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11441. if test -w "$cache_file"; then
  11442. if test "x$cache_file" != "x/dev/null"; then
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11444. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11445. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11446. cat confcache >"$cache_file"
  11447. else
  11448. case $cache_file in #(
  11449. */* | ?:*)
  11450. mv -f confcache "$cache_file"$$ &&
  11451. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11452. *)
  11453. mv -f confcache "$cache_file" ;;
  11454. esac
  11455. fi
  11456. fi
  11457. else
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11459. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11460. fi
  11461. fi
  11462. rm -f confcache
  11463. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11464. # Let make expand exec_prefix.
  11465. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11466. DEFS=-DHAVE_CONFIG_H
  11467. ac_libobjs=
  11468. ac_ltlibobjs=
  11469. U=
  11470. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11471. # 1. Remove the extension, and $U if already installed.
  11472. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11473. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11474. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11475. # will be set to the directory where LIBOBJS objects are built.
  11476. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11477. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11478. done
  11479. LIBOBJS=$ac_libobjs
  11480. LTLIBOBJS=$ac_ltlibobjs
  11481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11482. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11483. if test -n "$am_sleep_pid"; then
  11484. # Hide warnings about reused PIDs.
  11485. wait $am_sleep_pid 2>/dev/null
  11486. fi
  11487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11488. $as_echo "done" >&6; }
  11489. if test -n "$EXEEXT"; then
  11490. am__EXEEXT_TRUE=
  11491. am__EXEEXT_FALSE='#'
  11492. else
  11493. am__EXEEXT_TRUE='#'
  11494. am__EXEEXT_FALSE=
  11495. fi
  11496. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11497. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11498. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11499. fi
  11500. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11501. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11502. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11503. fi
  11504. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  11505. as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
  11506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11507. fi
  11508. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11509. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11511. fi
  11512. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11513. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11515. fi
  11516. if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
  11517. as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
  11518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11519. fi
  11520. if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
  11521. as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
  11522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11523. fi
  11524. if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
  11525. as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
  11526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11527. fi
  11528. if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
  11529. as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
  11530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11531. fi
  11532. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  11533. as_fn_error $? "conditional \"GENINSRC\" was never defined.
  11534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11535. fi
  11536. : "${CONFIG_STATUS=./config.status}"
  11537. ac_write_fail=0
  11538. ac_clean_files_save=$ac_clean_files
  11539. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11541. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11542. as_write_fail=0
  11543. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11544. #! $SHELL
  11545. # Generated by $as_me.
  11546. # Run this file to recreate the current configuration.
  11547. # Compiler output produced by configure, useful for debugging
  11548. # configure, is in config.log if it exists.
  11549. debug=false
  11550. ac_cs_recheck=false
  11551. ac_cs_silent=false
  11552. SHELL=\${CONFIG_SHELL-$SHELL}
  11553. export SHELL
  11554. _ASEOF
  11555. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11556. ## -------------------- ##
  11557. ## M4sh Initialization. ##
  11558. ## -------------------- ##
  11559. # Be more Bourne compatible
  11560. DUALCASE=1; export DUALCASE # for MKS sh
  11561. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11562. emulate sh
  11563. NULLCMD=:
  11564. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11565. # is contrary to our usage. Disable this feature.
  11566. alias -g '${1+"$@"}'='"$@"'
  11567. setopt NO_GLOB_SUBST
  11568. else
  11569. case `(set -o) 2>/dev/null` in #(
  11570. *posix*) :
  11571. set -o posix ;; #(
  11572. *) :
  11573. ;;
  11574. esac
  11575. fi
  11576. as_nl='
  11577. '
  11578. export as_nl
  11579. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11580. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11581. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11582. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11583. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11584. # but without wasting forks for bash or zsh.
  11585. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11586. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11587. as_echo='print -r --'
  11588. as_echo_n='print -rn --'
  11589. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11590. as_echo='printf %s\n'
  11591. as_echo_n='printf %s'
  11592. else
  11593. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11594. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11595. as_echo_n='/usr/ucb/echo -n'
  11596. else
  11597. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11598. as_echo_n_body='eval
  11599. arg=$1;
  11600. case $arg in #(
  11601. *"$as_nl"*)
  11602. expr "X$arg" : "X\\(.*\\)$as_nl";
  11603. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11604. esac;
  11605. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11606. '
  11607. export as_echo_n_body
  11608. as_echo_n='sh -c $as_echo_n_body as_echo'
  11609. fi
  11610. export as_echo_body
  11611. as_echo='sh -c $as_echo_body as_echo'
  11612. fi
  11613. # The user is always right.
  11614. if test "${PATH_SEPARATOR+set}" != set; then
  11615. PATH_SEPARATOR=:
  11616. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11617. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11618. PATH_SEPARATOR=';'
  11619. }
  11620. fi
  11621. # IFS
  11622. # We need space, tab and new line, in precisely that order. Quoting is
  11623. # there to prevent editors from complaining about space-tab.
  11624. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11625. # splitting by setting IFS to empty value.)
  11626. IFS=" "" $as_nl"
  11627. # Find who we are. Look in the path if we contain no directory separator.
  11628. as_myself=
  11629. case $0 in #((
  11630. *[\\/]* ) as_myself=$0 ;;
  11631. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11632. for as_dir in $PATH
  11633. do
  11634. IFS=$as_save_IFS
  11635. test -z "$as_dir" && as_dir=.
  11636. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11637. done
  11638. IFS=$as_save_IFS
  11639. ;;
  11640. esac
  11641. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11642. # in which case we are not to be found in the path.
  11643. if test "x$as_myself" = x; then
  11644. as_myself=$0
  11645. fi
  11646. if test ! -f "$as_myself"; then
  11647. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11648. exit 1
  11649. fi
  11650. # Unset variables that we do not need and which cause bugs (e.g. in
  11651. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11652. # suppresses any "Segmentation fault" message there. '((' could
  11653. # trigger a bug in pdksh 5.2.14.
  11654. for as_var in BASH_ENV ENV MAIL MAILPATH
  11655. do eval test x\${$as_var+set} = xset \
  11656. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11657. done
  11658. PS1='$ '
  11659. PS2='> '
  11660. PS4='+ '
  11661. # NLS nuisances.
  11662. LC_ALL=C
  11663. export LC_ALL
  11664. LANGUAGE=C
  11665. export LANGUAGE
  11666. # CDPATH.
  11667. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11668. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11669. # ----------------------------------------
  11670. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11671. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11672. # script with STATUS, using 1 if that was 0.
  11673. as_fn_error ()
  11674. {
  11675. as_status=$1; test $as_status -eq 0 && as_status=1
  11676. if test "$4"; then
  11677. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11678. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11679. fi
  11680. $as_echo "$as_me: error: $2" >&2
  11681. as_fn_exit $as_status
  11682. } # as_fn_error
  11683. # as_fn_set_status STATUS
  11684. # -----------------------
  11685. # Set $? to STATUS, without forking.
  11686. as_fn_set_status ()
  11687. {
  11688. return $1
  11689. } # as_fn_set_status
  11690. # as_fn_exit STATUS
  11691. # -----------------
  11692. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11693. as_fn_exit ()
  11694. {
  11695. set +e
  11696. as_fn_set_status $1
  11697. exit $1
  11698. } # as_fn_exit
  11699. # as_fn_unset VAR
  11700. # ---------------
  11701. # Portably unset VAR.
  11702. as_fn_unset ()
  11703. {
  11704. { eval $1=; unset $1;}
  11705. }
  11706. as_unset=as_fn_unset
  11707. # as_fn_append VAR VALUE
  11708. # ----------------------
  11709. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11710. # advantage of any shell optimizations that allow amortized linear growth over
  11711. # repeated appends, instead of the typical quadratic growth present in naive
  11712. # implementations.
  11713. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11714. eval 'as_fn_append ()
  11715. {
  11716. eval $1+=\$2
  11717. }'
  11718. else
  11719. as_fn_append ()
  11720. {
  11721. eval $1=\$$1\$2
  11722. }
  11723. fi # as_fn_append
  11724. # as_fn_arith ARG...
  11725. # ------------------
  11726. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11727. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11728. # must be portable across $(()) and expr.
  11729. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11730. eval 'as_fn_arith ()
  11731. {
  11732. as_val=$(( $* ))
  11733. }'
  11734. else
  11735. as_fn_arith ()
  11736. {
  11737. as_val=`expr "$@" || test $? -eq 1`
  11738. }
  11739. fi # as_fn_arith
  11740. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11741. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11742. as_expr=expr
  11743. else
  11744. as_expr=false
  11745. fi
  11746. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11747. as_basename=basename
  11748. else
  11749. as_basename=false
  11750. fi
  11751. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11752. as_dirname=dirname
  11753. else
  11754. as_dirname=false
  11755. fi
  11756. as_me=`$as_basename -- "$0" ||
  11757. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11758. X"$0" : 'X\(//\)$' \| \
  11759. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11760. $as_echo X/"$0" |
  11761. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11762. s//\1/
  11763. q
  11764. }
  11765. /^X\/\(\/\/\)$/{
  11766. s//\1/
  11767. q
  11768. }
  11769. /^X\/\(\/\).*/{
  11770. s//\1/
  11771. q
  11772. }
  11773. s/.*/./; q'`
  11774. # Avoid depending upon Character Ranges.
  11775. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11776. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11777. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11778. as_cr_digits='0123456789'
  11779. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11780. ECHO_C= ECHO_N= ECHO_T=
  11781. case `echo -n x` in #(((((
  11782. -n*)
  11783. case `echo 'xy\c'` in
  11784. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11785. xy) ECHO_C='\c';;
  11786. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11787. ECHO_T=' ';;
  11788. esac;;
  11789. *)
  11790. ECHO_N='-n';;
  11791. esac
  11792. rm -f conf$$ conf$$.exe conf$$.file
  11793. if test -d conf$$.dir; then
  11794. rm -f conf$$.dir/conf$$.file
  11795. else
  11796. rm -f conf$$.dir
  11797. mkdir conf$$.dir 2>/dev/null
  11798. fi
  11799. if (echo >conf$$.file) 2>/dev/null; then
  11800. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11801. as_ln_s='ln -s'
  11802. # ... but there are two gotchas:
  11803. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11804. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11805. # In both cases, we have to default to `cp -pR'.
  11806. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11807. as_ln_s='cp -pR'
  11808. elif ln conf$$.file conf$$ 2>/dev/null; then
  11809. as_ln_s=ln
  11810. else
  11811. as_ln_s='cp -pR'
  11812. fi
  11813. else
  11814. as_ln_s='cp -pR'
  11815. fi
  11816. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11817. rmdir conf$$.dir 2>/dev/null
  11818. # as_fn_mkdir_p
  11819. # -------------
  11820. # Create "$as_dir" as a directory, including parents if necessary.
  11821. as_fn_mkdir_p ()
  11822. {
  11823. case $as_dir in #(
  11824. -*) as_dir=./$as_dir;;
  11825. esac
  11826. test -d "$as_dir" || eval $as_mkdir_p || {
  11827. as_dirs=
  11828. while :; do
  11829. case $as_dir in #(
  11830. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11831. *) as_qdir=$as_dir;;
  11832. esac
  11833. as_dirs="'$as_qdir' $as_dirs"
  11834. as_dir=`$as_dirname -- "$as_dir" ||
  11835. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11836. X"$as_dir" : 'X\(//\)[^/]' \| \
  11837. X"$as_dir" : 'X\(//\)$' \| \
  11838. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11839. $as_echo X"$as_dir" |
  11840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11841. s//\1/
  11842. q
  11843. }
  11844. /^X\(\/\/\)[^/].*/{
  11845. s//\1/
  11846. q
  11847. }
  11848. /^X\(\/\/\)$/{
  11849. s//\1/
  11850. q
  11851. }
  11852. /^X\(\/\).*/{
  11853. s//\1/
  11854. q
  11855. }
  11856. s/.*/./; q'`
  11857. test -d "$as_dir" && break
  11858. done
  11859. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11860. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11861. } # as_fn_mkdir_p
  11862. if mkdir -p . 2>/dev/null; then
  11863. as_mkdir_p='mkdir -p "$as_dir"'
  11864. else
  11865. test -d ./-p && rmdir ./-p
  11866. as_mkdir_p=false
  11867. fi
  11868. # as_fn_executable_p FILE
  11869. # -----------------------
  11870. # Test if FILE is an executable regular file.
  11871. as_fn_executable_p ()
  11872. {
  11873. test -f "$1" && test -x "$1"
  11874. } # as_fn_executable_p
  11875. as_test_x='test -x'
  11876. as_executable_p=as_fn_executable_p
  11877. # Sed expression to map a string onto a valid CPP name.
  11878. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11879. # Sed expression to map a string onto a valid variable name.
  11880. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11881. exec 6>&1
  11882. ## ----------------------------------- ##
  11883. ## Main body of $CONFIG_STATUS script. ##
  11884. ## ----------------------------------- ##
  11885. _ASEOF
  11886. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11888. # Save the log message, to keep $0 and so on meaningful, and to
  11889. # report actual input values of CONFIG_FILES etc. instead of their
  11890. # values after options handling.
  11891. ac_log="
  11892. This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
  11893. generated by GNU Autoconf 2.69. Invocation command line was
  11894. CONFIG_FILES = $CONFIG_FILES
  11895. CONFIG_HEADERS = $CONFIG_HEADERS
  11896. CONFIG_LINKS = $CONFIG_LINKS
  11897. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11898. $ $0 $@
  11899. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11900. "
  11901. _ACEOF
  11902. case $ac_config_files in *"
  11903. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11904. esac
  11905. case $ac_config_headers in *"
  11906. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11907. esac
  11908. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11909. # Files that config.status was made for.
  11910. config_files="$ac_config_files"
  11911. config_headers="$ac_config_headers"
  11912. config_commands="$ac_config_commands"
  11913. _ACEOF
  11914. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11915. ac_cs_usage="\
  11916. \`$as_me' instantiates files and other configuration actions
  11917. from templates according to the current configuration. Unless the files
  11918. and actions are specified as TAGs, all are instantiated by default.
  11919. Usage: $0 [OPTION]... [TAG]...
  11920. -h, --help print this help, then exit
  11921. -V, --version print version number and configuration settings, then exit
  11922. --config print configuration, then exit
  11923. -q, --quiet, --silent
  11924. do not print progress messages
  11925. -d, --debug don't remove temporary files
  11926. --recheck update $as_me by reconfiguring in the same conditions
  11927. --file=FILE[:TEMPLATE]
  11928. instantiate the configuration file FILE
  11929. --header=FILE[:TEMPLATE]
  11930. instantiate the configuration header FILE
  11931. Configuration files:
  11932. $config_files
  11933. Configuration headers:
  11934. $config_headers
  11935. Configuration commands:
  11936. $config_commands
  11937. Report bugs to the package provider."
  11938. _ACEOF
  11939. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11940. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11941. ac_cs_version="\\
  11942. GCC Quad-precision Math Library config.status 0.1
  11943. configured by $0, generated by GNU Autoconf 2.69,
  11944. with options \\"\$ac_cs_config\\"
  11945. Copyright (C) 2012 Free Software Foundation, Inc.
  11946. This config.status script is free software; the Free Software Foundation
  11947. gives unlimited permission to copy, distribute and modify it."
  11948. ac_pwd='$ac_pwd'
  11949. srcdir='$srcdir'
  11950. INSTALL='$INSTALL'
  11951. MKDIR_P='$MKDIR_P'
  11952. AWK='$AWK'
  11953. test -n "\$AWK" || AWK=awk
  11954. _ACEOF
  11955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11956. # The default lists apply if the user does not specify any file.
  11957. ac_need_defaults=:
  11958. while test $# != 0
  11959. do
  11960. case $1 in
  11961. --*=?*)
  11962. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11963. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11964. ac_shift=:
  11965. ;;
  11966. --*=)
  11967. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11968. ac_optarg=
  11969. ac_shift=:
  11970. ;;
  11971. *)
  11972. ac_option=$1
  11973. ac_optarg=$2
  11974. ac_shift=shift
  11975. ;;
  11976. esac
  11977. case $ac_option in
  11978. # Handling of the options.
  11979. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11980. ac_cs_recheck=: ;;
  11981. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11982. $as_echo "$ac_cs_version"; exit ;;
  11983. --config | --confi | --conf | --con | --co | --c )
  11984. $as_echo "$ac_cs_config"; exit ;;
  11985. --debug | --debu | --deb | --de | --d | -d )
  11986. debug=: ;;
  11987. --file | --fil | --fi | --f )
  11988. $ac_shift
  11989. case $ac_optarg in
  11990. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11991. '') as_fn_error $? "missing file argument" ;;
  11992. esac
  11993. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11994. ac_need_defaults=false;;
  11995. --header | --heade | --head | --hea )
  11996. $ac_shift
  11997. case $ac_optarg in
  11998. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11999. esac
  12000. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12001. ac_need_defaults=false;;
  12002. --he | --h)
  12003. # Conflict between --help and --header
  12004. as_fn_error $? "ambiguous option: \`$1'
  12005. Try \`$0 --help' for more information.";;
  12006. --help | --hel | -h )
  12007. $as_echo "$ac_cs_usage"; exit ;;
  12008. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12009. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12010. ac_cs_silent=: ;;
  12011. # This is an error.
  12012. -*) as_fn_error $? "unrecognized option: \`$1'
  12013. Try \`$0 --help' for more information." ;;
  12014. *) as_fn_append ac_config_targets " $1"
  12015. ac_need_defaults=false ;;
  12016. esac
  12017. shift
  12018. done
  12019. ac_configure_extra_args=
  12020. if $ac_cs_silent; then
  12021. exec 6>/dev/null
  12022. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12023. fi
  12024. _ACEOF
  12025. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12026. if \$ac_cs_recheck; then
  12027. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12028. shift
  12029. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12030. CONFIG_SHELL='$SHELL'
  12031. export CONFIG_SHELL
  12032. exec "\$@"
  12033. fi
  12034. _ACEOF
  12035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12036. exec 5>>config.log
  12037. {
  12038. echo
  12039. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12040. ## Running $as_me. ##
  12041. _ASBOX
  12042. $as_echo "$ac_log"
  12043. } >&5
  12044. _ACEOF
  12045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12046. #
  12047. # INIT-COMMANDS
  12048. #
  12049. srcdir="$srcdir"
  12050. host="$host"
  12051. target="$target"
  12052. with_multisubdir="$with_multisubdir"
  12053. with_multisrctop="$with_multisrctop"
  12054. with_target_subdir="$with_target_subdir"
  12055. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  12056. multi_basedir="$multi_basedir"
  12057. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  12058. CC="$CC"
  12059. CXX="$CXX"
  12060. GFORTRAN="$GFORTRAN"
  12061. GDC="$GDC"
  12062. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12063. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12064. # if CDPATH is set.
  12065. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12066. sed_quote_subst='$sed_quote_subst'
  12067. double_quote_subst='$double_quote_subst'
  12068. delay_variable_subst='$delay_variable_subst'
  12069. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12070. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12071. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12072. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12073. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12074. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12075. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12076. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12077. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12078. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12079. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12080. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12081. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12082. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12083. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12084. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12085. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12086. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12087. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12088. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12089. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12090. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12091. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12092. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12093. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12094. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12095. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12096. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12097. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12098. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12099. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12100. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12101. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12102. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12103. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12104. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12105. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12106. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12107. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12108. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12109. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12110. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12111. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12112. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12113. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12114. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12115. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12116. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12117. 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"`'
  12118. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12119. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12120. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12121. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12122. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12123. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12124. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12125. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12126. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12127. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12128. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12129. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12130. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12131. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12132. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12133. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12134. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12135. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12136. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12137. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12138. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12139. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12140. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12141. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12142. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12143. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12144. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12145. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12146. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12147. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12148. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12149. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12150. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12151. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12152. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12153. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12154. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12155. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12156. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12157. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12158. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12159. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12160. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12161. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12162. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12163. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12164. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12165. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12166. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12167. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12168. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12169. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12170. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12171. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12172. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12173. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12174. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12175. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12176. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12177. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12178. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12179. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12180. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12181. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12182. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12183. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12184. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12185. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12186. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12187. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12188. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12189. LTCC='$LTCC'
  12190. LTCFLAGS='$LTCFLAGS'
  12191. compiler='$compiler_DEFAULT'
  12192. # A function that is used when there is no print builtin or printf.
  12193. func_fallback_echo ()
  12194. {
  12195. eval 'cat <<_LTECHO_EOF
  12196. \$1
  12197. _LTECHO_EOF'
  12198. }
  12199. # Quote evaled strings.
  12200. for var in SHELL \
  12201. ECHO \
  12202. SED \
  12203. GREP \
  12204. EGREP \
  12205. FGREP \
  12206. LD \
  12207. NM \
  12208. LN_S \
  12209. lt_SP2NL \
  12210. lt_NL2SP \
  12211. reload_flag \
  12212. OBJDUMP \
  12213. deplibs_check_method \
  12214. file_magic_cmd \
  12215. AR \
  12216. AR_FLAGS \
  12217. STRIP \
  12218. RANLIB \
  12219. CC \
  12220. CFLAGS \
  12221. compiler \
  12222. lt_cv_sys_global_symbol_pipe \
  12223. lt_cv_sys_global_symbol_to_cdecl \
  12224. lt_cv_sys_global_symbol_to_c_name_address \
  12225. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12226. lt_prog_compiler_no_builtin_flag \
  12227. lt_prog_compiler_wl \
  12228. lt_prog_compiler_pic \
  12229. lt_prog_compiler_static \
  12230. lt_cv_prog_compiler_c_o \
  12231. need_locks \
  12232. DSYMUTIL \
  12233. NMEDIT \
  12234. LIPO \
  12235. OTOOL \
  12236. OTOOL64 \
  12237. shrext_cmds \
  12238. export_dynamic_flag_spec \
  12239. whole_archive_flag_spec \
  12240. compiler_needs_object \
  12241. with_gnu_ld \
  12242. allow_undefined_flag \
  12243. no_undefined_flag \
  12244. hardcode_libdir_flag_spec \
  12245. hardcode_libdir_flag_spec_ld \
  12246. hardcode_libdir_separator \
  12247. fix_srcfile_path \
  12248. exclude_expsyms \
  12249. include_expsyms \
  12250. file_list_spec \
  12251. variables_saved_for_relink \
  12252. libname_spec \
  12253. library_names_spec \
  12254. soname_spec \
  12255. install_override_mode \
  12256. finish_eval \
  12257. old_striplib \
  12258. striplib; do
  12259. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12260. *[\\\\\\\`\\"\\\$]*)
  12261. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12262. ;;
  12263. *)
  12264. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12265. ;;
  12266. esac
  12267. done
  12268. # Double-quote double-evaled strings.
  12269. for var in reload_cmds \
  12270. old_postinstall_cmds \
  12271. old_postuninstall_cmds \
  12272. old_archive_cmds \
  12273. extract_expsyms_cmds \
  12274. old_archive_from_new_cmds \
  12275. old_archive_from_expsyms_cmds \
  12276. archive_cmds \
  12277. archive_expsym_cmds \
  12278. module_cmds \
  12279. module_expsym_cmds \
  12280. export_symbols_cmds \
  12281. prelink_cmds \
  12282. postinstall_cmds \
  12283. postuninstall_cmds \
  12284. finish_cmds \
  12285. sys_lib_search_path_spec \
  12286. sys_lib_dlsearch_path_spec; do
  12287. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12288. *[\\\\\\\`\\"\\\$]*)
  12289. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12290. ;;
  12291. *)
  12292. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12293. ;;
  12294. esac
  12295. done
  12296. ac_aux_dir='$ac_aux_dir'
  12297. xsi_shell='$xsi_shell'
  12298. lt_shell_append='$lt_shell_append'
  12299. # See if we are running on zsh, and set the options which allow our
  12300. # commands through without removal of \ escapes INIT.
  12301. if test -n "\${ZSH_VERSION+set}" ; then
  12302. setopt NO_GLOB_SUBST
  12303. fi
  12304. PACKAGE='$PACKAGE'
  12305. VERSION='$VERSION'
  12306. TIMESTAMP='$TIMESTAMP'
  12307. RM='$RM'
  12308. ofile='$ofile'
  12309. _ACEOF
  12310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12311. # Handling of arguments.
  12312. for ac_config_target in $ac_config_targets
  12313. do
  12314. case $ac_config_target in
  12315. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12316. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12317. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12318. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12319. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12320. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12321. esac
  12322. done
  12323. # If the user did not use the arguments to specify the items to instantiate,
  12324. # then the envvar interface is used. Set only those that are not.
  12325. # We use the long form for the default assignment because of an extremely
  12326. # bizarre bug on SunOS 4.1.3.
  12327. if $ac_need_defaults; then
  12328. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12329. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12330. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12331. fi
  12332. # Have a temporary directory for convenience. Make it in the build tree
  12333. # simply because there is no reason against having it here, and in addition,
  12334. # creating and moving files from /tmp can sometimes cause problems.
  12335. # Hook for its removal unless debugging.
  12336. # Note that there is a small window in which the directory will not be cleaned:
  12337. # after its creation but before its name has been assigned to `$tmp'.
  12338. $debug ||
  12339. {
  12340. tmp= ac_tmp=
  12341. trap 'exit_status=$?
  12342. : "${ac_tmp:=$tmp}"
  12343. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12344. ' 0
  12345. trap 'as_fn_exit 1' 1 2 13 15
  12346. }
  12347. # Create a (secure) tmp directory for tmp files.
  12348. {
  12349. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12350. test -d "$tmp"
  12351. } ||
  12352. {
  12353. tmp=./conf$$-$RANDOM
  12354. (umask 077 && mkdir "$tmp")
  12355. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12356. ac_tmp=$tmp
  12357. # Set up the scripts for CONFIG_FILES section.
  12358. # No need to generate them if there are no CONFIG_FILES.
  12359. # This happens for instance with `./config.status config.h'.
  12360. if test -n "$CONFIG_FILES"; then
  12361. ac_cr=`echo X | tr X '\015'`
  12362. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12363. # But we know of no other shell where ac_cr would be empty at this
  12364. # point, so we can use a bashism as a fallback.
  12365. if test "x$ac_cr" = x; then
  12366. eval ac_cr=\$\'\\r\'
  12367. fi
  12368. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12369. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12370. ac_cs_awk_cr='\\r'
  12371. else
  12372. ac_cs_awk_cr=$ac_cr
  12373. fi
  12374. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12375. _ACEOF
  12376. {
  12377. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12378. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12379. echo "_ACEOF"
  12380. } >conf$$subs.sh ||
  12381. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12382. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12383. ac_delim='%!_!# '
  12384. for ac_last_try in false false false false false :; do
  12385. . ./conf$$subs.sh ||
  12386. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12387. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12388. if test $ac_delim_n = $ac_delim_num; then
  12389. break
  12390. elif $ac_last_try; then
  12391. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12392. else
  12393. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12394. fi
  12395. done
  12396. rm -f conf$$subs.sh
  12397. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12398. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12399. _ACEOF
  12400. sed -n '
  12401. h
  12402. s/^/S["/; s/!.*/"]=/
  12403. p
  12404. g
  12405. s/^[^!]*!//
  12406. :repl
  12407. t repl
  12408. s/'"$ac_delim"'$//
  12409. t delim
  12410. :nl
  12411. h
  12412. s/\(.\{148\}\)..*/\1/
  12413. t more1
  12414. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12415. p
  12416. n
  12417. b repl
  12418. :more1
  12419. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12420. p
  12421. g
  12422. s/.\{148\}//
  12423. t nl
  12424. :delim
  12425. h
  12426. s/\(.\{148\}\)..*/\1/
  12427. t more2
  12428. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12429. p
  12430. b
  12431. :more2
  12432. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12433. p
  12434. g
  12435. s/.\{148\}//
  12436. t delim
  12437. ' <conf$$subs.awk | sed '
  12438. /^[^""]/{
  12439. N
  12440. s/\n//
  12441. }
  12442. ' >>$CONFIG_STATUS || ac_write_fail=1
  12443. rm -f conf$$subs.awk
  12444. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12445. _ACAWK
  12446. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12447. for (key in S) S_is_set[key] = 1
  12448. FS = ""
  12449. }
  12450. {
  12451. line = $ 0
  12452. nfields = split(line, field, "@")
  12453. substed = 0
  12454. len = length(field[1])
  12455. for (i = 2; i < nfields; i++) {
  12456. key = field[i]
  12457. keylen = length(key)
  12458. if (S_is_set[key]) {
  12459. value = S[key]
  12460. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12461. len += length(value) + length(field[++i])
  12462. substed = 1
  12463. } else
  12464. len += 1 + keylen
  12465. }
  12466. print line
  12467. }
  12468. _ACAWK
  12469. _ACEOF
  12470. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12471. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12472. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12473. else
  12474. cat
  12475. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12476. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12477. _ACEOF
  12478. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12479. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12480. # trailing colons and then remove the whole line if VPATH becomes empty
  12481. # (actually we leave an empty line to preserve line numbers).
  12482. if test "x$srcdir" = x.; then
  12483. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12484. h
  12485. s///
  12486. s/^/:/
  12487. s/[ ]*$/:/
  12488. s/:\$(srcdir):/:/g
  12489. s/:\${srcdir}:/:/g
  12490. s/:@srcdir@:/:/g
  12491. s/^:*//
  12492. s/:*$//
  12493. x
  12494. s/\(=[ ]*\).*/\1/
  12495. G
  12496. s/\n//
  12497. s/^[^=]*=[ ]*$//
  12498. }'
  12499. fi
  12500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12501. fi # test -n "$CONFIG_FILES"
  12502. # Set up the scripts for CONFIG_HEADERS section.
  12503. # No need to generate them if there are no CONFIG_HEADERS.
  12504. # This happens for instance with `./config.status Makefile'.
  12505. if test -n "$CONFIG_HEADERS"; then
  12506. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12507. BEGIN {
  12508. _ACEOF
  12509. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12510. # here-document in config.status, that substitutes the proper values into
  12511. # config.h.in to produce config.h.
  12512. # Create a delimiter string that does not exist in confdefs.h, to ease
  12513. # handling of long lines.
  12514. ac_delim='%!_!# '
  12515. for ac_last_try in false false :; do
  12516. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12517. if test -z "$ac_tt"; then
  12518. break
  12519. elif $ac_last_try; then
  12520. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12521. else
  12522. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12523. fi
  12524. done
  12525. # For the awk script, D is an array of macro values keyed by name,
  12526. # likewise P contains macro parameters if any. Preserve backslash
  12527. # newline sequences.
  12528. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12529. sed -n '
  12530. s/.\{148\}/&'"$ac_delim"'/g
  12531. t rset
  12532. :rset
  12533. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12534. t def
  12535. d
  12536. :def
  12537. s/\\$//
  12538. t bsnl
  12539. s/["\\]/\\&/g
  12540. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12541. D["\1"]=" \3"/p
  12542. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12543. d
  12544. :bsnl
  12545. s/["\\]/\\&/g
  12546. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12547. D["\1"]=" \3\\\\\\n"\\/p
  12548. t cont
  12549. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12550. t cont
  12551. d
  12552. :cont
  12553. n
  12554. s/.\{148\}/&'"$ac_delim"'/g
  12555. t clear
  12556. :clear
  12557. s/\\$//
  12558. t bsnlc
  12559. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12560. d
  12561. :bsnlc
  12562. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12563. b cont
  12564. ' <confdefs.h | sed '
  12565. s/'"$ac_delim"'/"\\\
  12566. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12567. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12568. for (key in D) D_is_set[key] = 1
  12569. FS = ""
  12570. }
  12571. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12572. line = \$ 0
  12573. split(line, arg, " ")
  12574. if (arg[1] == "#") {
  12575. defundef = arg[2]
  12576. mac1 = arg[3]
  12577. } else {
  12578. defundef = substr(arg[1], 2)
  12579. mac1 = arg[2]
  12580. }
  12581. split(mac1, mac2, "(") #)
  12582. macro = mac2[1]
  12583. prefix = substr(line, 1, index(line, defundef) - 1)
  12584. if (D_is_set[macro]) {
  12585. # Preserve the white space surrounding the "#".
  12586. print prefix "define", macro P[macro] D[macro]
  12587. next
  12588. } else {
  12589. # Replace #undef with comments. This is necessary, for example,
  12590. # in the case of _POSIX_SOURCE, which is predefined and required
  12591. # on some systems where configure will not decide to define it.
  12592. if (defundef == "undef") {
  12593. print "/*", prefix defundef, macro, "*/"
  12594. next
  12595. }
  12596. }
  12597. }
  12598. { print }
  12599. _ACAWK
  12600. _ACEOF
  12601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12602. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12603. fi # test -n "$CONFIG_HEADERS"
  12604. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12605. shift
  12606. for ac_tag
  12607. do
  12608. case $ac_tag in
  12609. :[FHLC]) ac_mode=$ac_tag; continue;;
  12610. esac
  12611. case $ac_mode$ac_tag in
  12612. :[FHL]*:*);;
  12613. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12614. :[FH]-) ac_tag=-:-;;
  12615. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12616. esac
  12617. ac_save_IFS=$IFS
  12618. IFS=:
  12619. set x $ac_tag
  12620. IFS=$ac_save_IFS
  12621. shift
  12622. ac_file=$1
  12623. shift
  12624. case $ac_mode in
  12625. :L) ac_source=$1;;
  12626. :[FH])
  12627. ac_file_inputs=
  12628. for ac_f
  12629. do
  12630. case $ac_f in
  12631. -) ac_f="$ac_tmp/stdin";;
  12632. *) # Look for the file first in the build tree, then in the source tree
  12633. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12634. # because $ac_f cannot contain `:'.
  12635. test -f "$ac_f" ||
  12636. case $ac_f in
  12637. [\\/$]*) false;;
  12638. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12639. esac ||
  12640. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12641. esac
  12642. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12643. as_fn_append ac_file_inputs " '$ac_f'"
  12644. done
  12645. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12646. # use $as_me), people would be surprised to read:
  12647. # /* config.h. Generated by config.status. */
  12648. configure_input='Generated from '`
  12649. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12650. `' by configure.'
  12651. if test x"$ac_file" != x-; then
  12652. configure_input="$ac_file. $configure_input"
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12654. $as_echo "$as_me: creating $ac_file" >&6;}
  12655. fi
  12656. # Neutralize special characters interpreted by sed in replacement strings.
  12657. case $configure_input in #(
  12658. *\&* | *\|* | *\\* )
  12659. ac_sed_conf_input=`$as_echo "$configure_input" |
  12660. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12661. *) ac_sed_conf_input=$configure_input;;
  12662. esac
  12663. case $ac_tag in
  12664. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12665. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12666. esac
  12667. ;;
  12668. esac
  12669. ac_dir=`$as_dirname -- "$ac_file" ||
  12670. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12671. X"$ac_file" : 'X\(//\)[^/]' \| \
  12672. X"$ac_file" : 'X\(//\)$' \| \
  12673. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12674. $as_echo X"$ac_file" |
  12675. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12676. s//\1/
  12677. q
  12678. }
  12679. /^X\(\/\/\)[^/].*/{
  12680. s//\1/
  12681. q
  12682. }
  12683. /^X\(\/\/\)$/{
  12684. s//\1/
  12685. q
  12686. }
  12687. /^X\(\/\).*/{
  12688. s//\1/
  12689. q
  12690. }
  12691. s/.*/./; q'`
  12692. as_dir="$ac_dir"; as_fn_mkdir_p
  12693. ac_builddir=.
  12694. case "$ac_dir" in
  12695. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12696. *)
  12697. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12698. # A ".." for each directory in $ac_dir_suffix.
  12699. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12700. case $ac_top_builddir_sub in
  12701. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12702. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12703. esac ;;
  12704. esac
  12705. ac_abs_top_builddir=$ac_pwd
  12706. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12707. # for backward compatibility:
  12708. ac_top_builddir=$ac_top_build_prefix
  12709. case $srcdir in
  12710. .) # We are building in place.
  12711. ac_srcdir=.
  12712. ac_top_srcdir=$ac_top_builddir_sub
  12713. ac_abs_top_srcdir=$ac_pwd ;;
  12714. [\\/]* | ?:[\\/]* ) # Absolute name.
  12715. ac_srcdir=$srcdir$ac_dir_suffix;
  12716. ac_top_srcdir=$srcdir
  12717. ac_abs_top_srcdir=$srcdir ;;
  12718. *) # Relative name.
  12719. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12720. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12721. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12722. esac
  12723. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12724. case $ac_mode in
  12725. :F)
  12726. #
  12727. # CONFIG_FILE
  12728. #
  12729. case $INSTALL in
  12730. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12731. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12732. esac
  12733. ac_MKDIR_P=$MKDIR_P
  12734. case $MKDIR_P in
  12735. [\\/$]* | ?:[\\/]* ) ;;
  12736. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12737. esac
  12738. _ACEOF
  12739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12740. # If the template does not know about datarootdir, expand it.
  12741. # FIXME: This hack should be removed a few years after 2.60.
  12742. ac_datarootdir_hack=; ac_datarootdir_seen=
  12743. ac_sed_dataroot='
  12744. /datarootdir/ {
  12745. p
  12746. q
  12747. }
  12748. /@datadir@/p
  12749. /@docdir@/p
  12750. /@infodir@/p
  12751. /@localedir@/p
  12752. /@mandir@/p'
  12753. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12754. *datarootdir*) ac_datarootdir_seen=yes;;
  12755. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12757. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12758. _ACEOF
  12759. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12760. ac_datarootdir_hack='
  12761. s&@datadir@&$datadir&g
  12762. s&@docdir@&$docdir&g
  12763. s&@infodir@&$infodir&g
  12764. s&@localedir@&$localedir&g
  12765. s&@mandir@&$mandir&g
  12766. s&\\\${datarootdir}&$datarootdir&g' ;;
  12767. esac
  12768. _ACEOF
  12769. # Neutralize VPATH when `$srcdir' = `.'.
  12770. # Shell code in configure.ac might set extrasub.
  12771. # FIXME: do we really want to maintain this feature?
  12772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12773. ac_sed_extra="$ac_vpsub
  12774. $extrasub
  12775. _ACEOF
  12776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12777. :t
  12778. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12779. s|@configure_input@|$ac_sed_conf_input|;t t
  12780. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12781. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12782. s&@srcdir@&$ac_srcdir&;t t
  12783. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12784. s&@top_srcdir@&$ac_top_srcdir&;t t
  12785. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12786. s&@builddir@&$ac_builddir&;t t
  12787. s&@abs_builddir@&$ac_abs_builddir&;t t
  12788. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12789. s&@INSTALL@&$ac_INSTALL&;t t
  12790. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12791. $ac_datarootdir_hack
  12792. "
  12793. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12794. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12795. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12796. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12797. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12798. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12800. which seems to be undefined. Please make sure it is defined" >&5
  12801. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12802. which seems to be undefined. Please make sure it is defined" >&2;}
  12803. rm -f "$ac_tmp/stdin"
  12804. case $ac_file in
  12805. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12806. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12807. esac \
  12808. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12809. ;;
  12810. :H)
  12811. #
  12812. # CONFIG_HEADER
  12813. #
  12814. if test x"$ac_file" != x-; then
  12815. {
  12816. $as_echo "/* $configure_input */" \
  12817. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12818. } >"$ac_tmp/config.h" \
  12819. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12820. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12822. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12823. else
  12824. rm -f "$ac_file"
  12825. mv "$ac_tmp/config.h" "$ac_file" \
  12826. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12827. fi
  12828. else
  12829. $as_echo "/* $configure_input */" \
  12830. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12831. || as_fn_error $? "could not create -" "$LINENO" 5
  12832. fi
  12833. # Compute "$ac_file"'s index in $config_headers.
  12834. _am_arg="$ac_file"
  12835. _am_stamp_count=1
  12836. for _am_header in $config_headers :; do
  12837. case $_am_header in
  12838. $_am_arg | $_am_arg:* )
  12839. break ;;
  12840. * )
  12841. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12842. esac
  12843. done
  12844. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12845. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12846. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12847. X"$_am_arg" : 'X\(//\)$' \| \
  12848. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12849. $as_echo X"$_am_arg" |
  12850. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12851. s//\1/
  12852. q
  12853. }
  12854. /^X\(\/\/\)[^/].*/{
  12855. s//\1/
  12856. q
  12857. }
  12858. /^X\(\/\/\)$/{
  12859. s//\1/
  12860. q
  12861. }
  12862. /^X\(\/\).*/{
  12863. s//\1/
  12864. q
  12865. }
  12866. s/.*/./; q'`/stamp-h$_am_stamp_count
  12867. ;;
  12868. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12869. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12870. ;;
  12871. esac
  12872. case $ac_file$ac_mode in
  12873. "default-1":C)
  12874. # Only add multilib support code if we just rebuilt the top-level
  12875. # Makefile.
  12876. case " $CONFIG_FILES " in
  12877. *" Makefile "*)
  12878. ac_file=Makefile . ${multi_basedir}/config-ml.in
  12879. ;;
  12880. esac ;;
  12881. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12882. # Older Autoconf quotes --file arguments for eval, but not when files
  12883. # are listed without --file. Let's play safe and only enable the eval
  12884. # if we detect the quoting.
  12885. case $CONFIG_FILES in
  12886. *\'*) eval set x "$CONFIG_FILES" ;;
  12887. *) set x $CONFIG_FILES ;;
  12888. esac
  12889. shift
  12890. for mf
  12891. do
  12892. # Strip MF so we end up with the name of the file.
  12893. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12894. # Check whether this is an Automake generated Makefile or not.
  12895. # We used to match only the files named 'Makefile.in', but
  12896. # some people rename them; so instead we look at the file content.
  12897. # Grep'ing the first line is not enough: some people post-process
  12898. # each Makefile.in and add a new line on top of each file to say so.
  12899. # Grep'ing the whole file is not good either: AIX grep has a line
  12900. # limit of 2048, but all sed's we know have understand at least 4000.
  12901. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12902. dirpart=`$as_dirname -- "$mf" ||
  12903. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12904. X"$mf" : 'X\(//\)[^/]' \| \
  12905. X"$mf" : 'X\(//\)$' \| \
  12906. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12907. $as_echo X"$mf" |
  12908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12909. s//\1/
  12910. q
  12911. }
  12912. /^X\(\/\/\)[^/].*/{
  12913. s//\1/
  12914. q
  12915. }
  12916. /^X\(\/\/\)$/{
  12917. s//\1/
  12918. q
  12919. }
  12920. /^X\(\/\).*/{
  12921. s//\1/
  12922. q
  12923. }
  12924. s/.*/./; q'`
  12925. else
  12926. continue
  12927. fi
  12928. # Extract the definition of DEPDIR, am__include, and am__quote
  12929. # from the Makefile without running 'make'.
  12930. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12931. test -z "$DEPDIR" && continue
  12932. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12933. test -z "$am__include" && continue
  12934. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12935. # Find all dependency output files, they are included files with
  12936. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12937. # simplest approach to changing $(DEPDIR) to its actual value in the
  12938. # expansion.
  12939. for file in `sed -n "
  12940. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12941. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12942. # Make sure the directory exists.
  12943. test -f "$dirpart/$file" && continue
  12944. fdir=`$as_dirname -- "$file" ||
  12945. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12946. X"$file" : 'X\(//\)[^/]' \| \
  12947. X"$file" : 'X\(//\)$' \| \
  12948. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12949. $as_echo X"$file" |
  12950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12951. s//\1/
  12952. q
  12953. }
  12954. /^X\(\/\/\)[^/].*/{
  12955. s//\1/
  12956. q
  12957. }
  12958. /^X\(\/\/\)$/{
  12959. s//\1/
  12960. q
  12961. }
  12962. /^X\(\/\).*/{
  12963. s//\1/
  12964. q
  12965. }
  12966. s/.*/./; q'`
  12967. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12968. # echo "creating $dirpart/$file"
  12969. echo '# dummy' > "$dirpart/$file"
  12970. done
  12971. done
  12972. }
  12973. ;;
  12974. "libtool":C)
  12975. # See if we are running on zsh, and set the options which allow our
  12976. # commands through without removal of \ escapes.
  12977. if test -n "${ZSH_VERSION+set}" ; then
  12978. setopt NO_GLOB_SUBST
  12979. fi
  12980. cfgfile="${ofile}T"
  12981. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12982. $RM "$cfgfile"
  12983. cat <<_LT_EOF >> "$cfgfile"
  12984. #! $SHELL
  12985. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12986. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12987. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12988. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12989. #
  12990. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12991. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12992. # Written by Gordon Matzigkeit, 1996
  12993. #
  12994. # This file is part of GNU Libtool.
  12995. #
  12996. # GNU Libtool is free software; you can redistribute it and/or
  12997. # modify it under the terms of the GNU General Public License as
  12998. # published by the Free Software Foundation; either version 2 of
  12999. # the License, or (at your option) any later version.
  13000. #
  13001. # As a special exception to the GNU General Public License,
  13002. # if you distribute this file as part of a program or library that
  13003. # is built using GNU Libtool, you may include this file under the
  13004. # same distribution terms that you use for the rest of that program.
  13005. #
  13006. # GNU Libtool is distributed in the hope that it will be useful,
  13007. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13008. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13009. # GNU General Public License for more details.
  13010. #
  13011. # You should have received a copy of the GNU General Public License
  13012. # along with GNU Libtool; see the file COPYING. If not, a copy
  13013. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13014. # obtained by writing to the Free Software Foundation, Inc.,
  13015. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13016. # The names of the tagged configurations supported by this script.
  13017. available_tags=""
  13018. # ### BEGIN LIBTOOL CONFIG
  13019. # Which release of libtool.m4 was used?
  13020. macro_version=$macro_version
  13021. macro_revision=$macro_revision
  13022. # Whether or not to build shared libraries.
  13023. build_libtool_libs=$enable_shared
  13024. # Whether or not to build static libraries.
  13025. build_old_libs=$enable_static
  13026. # What type of objects to build.
  13027. pic_mode=$pic_mode
  13028. # Whether or not to optimize for fast installation.
  13029. fast_install=$enable_fast_install
  13030. # Shell to use when invoking shell scripts.
  13031. SHELL=$lt_SHELL
  13032. # An echo program that protects backslashes.
  13033. ECHO=$lt_ECHO
  13034. # The host system.
  13035. host_alias=$host_alias
  13036. host=$host
  13037. host_os=$host_os
  13038. # The build system.
  13039. build_alias=$build_alias
  13040. build=$build
  13041. build_os=$build_os
  13042. # A sed program that does not truncate output.
  13043. SED=$lt_SED
  13044. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13045. Xsed="\$SED -e 1s/^X//"
  13046. # A grep program that handles long lines.
  13047. GREP=$lt_GREP
  13048. # An ERE matcher.
  13049. EGREP=$lt_EGREP
  13050. # A literal string matcher.
  13051. FGREP=$lt_FGREP
  13052. # A BSD- or MS-compatible name lister.
  13053. NM=$lt_NM
  13054. # Whether we need soft or hard links.
  13055. LN_S=$lt_LN_S
  13056. # What is the maximum length of a command?
  13057. max_cmd_len=$max_cmd_len
  13058. # Object file suffix (normally "o").
  13059. objext=$ac_objext
  13060. # Executable file suffix (normally "").
  13061. exeext=$exeext
  13062. # whether the shell understands "unset".
  13063. lt_unset=$lt_unset
  13064. # turn spaces into newlines.
  13065. SP2NL=$lt_lt_SP2NL
  13066. # turn newlines into spaces.
  13067. NL2SP=$lt_lt_NL2SP
  13068. # An object symbol dumper.
  13069. OBJDUMP=$lt_OBJDUMP
  13070. # Method to check whether dependent libraries are shared objects.
  13071. deplibs_check_method=$lt_deplibs_check_method
  13072. # Command to use when deplibs_check_method == "file_magic".
  13073. file_magic_cmd=$lt_file_magic_cmd
  13074. # The archiver.
  13075. AR=$lt_AR
  13076. AR_FLAGS=$lt_AR_FLAGS
  13077. # A symbol stripping program.
  13078. STRIP=$lt_STRIP
  13079. # Commands used to install an old-style archive.
  13080. RANLIB=$lt_RANLIB
  13081. old_postinstall_cmds=$lt_old_postinstall_cmds
  13082. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13083. # Whether to use a lock for old archive extraction.
  13084. lock_old_archive_extraction=$lock_old_archive_extraction
  13085. # A C compiler.
  13086. LTCC=$lt_CC
  13087. # LTCC compiler flags.
  13088. LTCFLAGS=$lt_CFLAGS
  13089. # Take the output of nm and produce a listing of raw symbols and C names.
  13090. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13091. # Transform the output of nm in a proper C declaration.
  13092. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13093. # Transform the output of nm in a C name address pair.
  13094. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13095. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13096. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13097. # The name of the directory that contains temporary libtool files.
  13098. objdir=$objdir
  13099. # Used to examine libraries when file_magic_cmd begins with "file".
  13100. MAGIC_CMD=$MAGIC_CMD
  13101. # Must we lock files when doing compilation?
  13102. need_locks=$lt_need_locks
  13103. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13104. DSYMUTIL=$lt_DSYMUTIL
  13105. # Tool to change global to local symbols on Mac OS X.
  13106. NMEDIT=$lt_NMEDIT
  13107. # Tool to manipulate fat objects and archives on Mac OS X.
  13108. LIPO=$lt_LIPO
  13109. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13110. OTOOL=$lt_OTOOL
  13111. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13112. OTOOL64=$lt_OTOOL64
  13113. # Old archive suffix (normally "a").
  13114. libext=$libext
  13115. # Shared library suffix (normally ".so").
  13116. shrext_cmds=$lt_shrext_cmds
  13117. # The commands to extract the exported symbol list from a shared archive.
  13118. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13119. # Variables whose values should be saved in libtool wrapper scripts and
  13120. # restored at link time.
  13121. variables_saved_for_relink=$lt_variables_saved_for_relink
  13122. # Do we need the "lib" prefix for modules?
  13123. need_lib_prefix=$need_lib_prefix
  13124. # Do we need a version for libraries?
  13125. need_version=$need_version
  13126. # Library versioning type.
  13127. version_type=$version_type
  13128. # Shared library runtime path variable.
  13129. runpath_var=$runpath_var
  13130. # Shared library path variable.
  13131. shlibpath_var=$shlibpath_var
  13132. # Is shlibpath searched before the hard-coded library search path?
  13133. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13134. # Format of library name prefix.
  13135. libname_spec=$lt_libname_spec
  13136. # List of archive names. First name is the real one, the rest are links.
  13137. # The last name is the one that the linker finds with -lNAME
  13138. library_names_spec=$lt_library_names_spec
  13139. # The coded name of the library, if different from the real name.
  13140. soname_spec=$lt_soname_spec
  13141. # Permission mode override for installation of shared libraries.
  13142. install_override_mode=$lt_install_override_mode
  13143. # Command to use after installation of a shared archive.
  13144. postinstall_cmds=$lt_postinstall_cmds
  13145. # Command to use after uninstallation of a shared archive.
  13146. postuninstall_cmds=$lt_postuninstall_cmds
  13147. # Commands used to finish a libtool library installation in a directory.
  13148. finish_cmds=$lt_finish_cmds
  13149. # As "finish_cmds", except a single script fragment to be evaled but
  13150. # not shown.
  13151. finish_eval=$lt_finish_eval
  13152. # Whether we should hardcode library paths into libraries.
  13153. hardcode_into_libs=$hardcode_into_libs
  13154. # Compile-time system search path for libraries.
  13155. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13156. # Run-time system search path for libraries.
  13157. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13158. # Whether dlopen is supported.
  13159. dlopen_support=$enable_dlopen
  13160. # Whether dlopen of programs is supported.
  13161. dlopen_self=$enable_dlopen_self
  13162. # Whether dlopen of statically linked programs is supported.
  13163. dlopen_self_static=$enable_dlopen_self_static
  13164. # Commands to strip libraries.
  13165. old_striplib=$lt_old_striplib
  13166. striplib=$lt_striplib
  13167. # The linker used to build libraries.
  13168. LD=$lt_LD
  13169. # How to create reloadable object files.
  13170. reload_flag=$lt_reload_flag
  13171. reload_cmds=$lt_reload_cmds
  13172. # Commands used to build an old-style archive.
  13173. old_archive_cmds=$lt_old_archive_cmds
  13174. # A language specific compiler.
  13175. CC=$lt_compiler
  13176. # Is the compiler the GNU compiler?
  13177. with_gcc=$GCC
  13178. # Compiler flag to turn off builtin functions.
  13179. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13180. # How to pass a linker flag through the compiler.
  13181. wl=$lt_lt_prog_compiler_wl
  13182. # Additional compiler flags for building library objects.
  13183. pic_flag=$lt_lt_prog_compiler_pic
  13184. # Compiler flag to prevent dynamic linking.
  13185. link_static_flag=$lt_lt_prog_compiler_static
  13186. # Does compiler simultaneously support -c and -o options?
  13187. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13188. # Whether or not to add -lc for building shared libraries.
  13189. build_libtool_need_lc=$archive_cmds_need_lc
  13190. # Whether or not to disallow shared libs when runtime libs are static.
  13191. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13192. # Compiler flag to allow reflexive dlopens.
  13193. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13194. # Compiler flag to generate shared objects directly from archives.
  13195. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13196. # Whether the compiler copes with passing no objects directly.
  13197. compiler_needs_object=$lt_compiler_needs_object
  13198. # Create an old-style archive from a shared archive.
  13199. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13200. # Create a temporary old-style archive to link instead of a shared archive.
  13201. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13202. # Commands used to build a shared archive.
  13203. archive_cmds=$lt_archive_cmds
  13204. archive_expsym_cmds=$lt_archive_expsym_cmds
  13205. # Commands used to build a loadable module if different from building
  13206. # a shared archive.
  13207. module_cmds=$lt_module_cmds
  13208. module_expsym_cmds=$lt_module_expsym_cmds
  13209. # Whether we are building with GNU ld or not.
  13210. with_gnu_ld=$lt_with_gnu_ld
  13211. # Flag that allows shared libraries with undefined symbols to be built.
  13212. allow_undefined_flag=$lt_allow_undefined_flag
  13213. # Flag that enforces no undefined symbols.
  13214. no_undefined_flag=$lt_no_undefined_flag
  13215. # Flag to hardcode \$libdir into a binary during linking.
  13216. # This must work even if \$libdir does not exist
  13217. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13218. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13219. # during linking. This must work even if \$libdir does not exist.
  13220. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13221. # Whether we need a single "-rpath" flag with a separated argument.
  13222. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13223. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13224. # DIR into the resulting binary.
  13225. hardcode_direct=$hardcode_direct
  13226. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13227. # DIR into the resulting binary and the resulting library dependency is
  13228. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13229. # library is relocated.
  13230. hardcode_direct_absolute=$hardcode_direct_absolute
  13231. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13232. # into the resulting binary.
  13233. hardcode_minus_L=$hardcode_minus_L
  13234. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13235. # into the resulting binary.
  13236. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13237. # Set to "yes" if building a shared library automatically hardcodes DIR
  13238. # into the library and all subsequent libraries and executables linked
  13239. # against it.
  13240. hardcode_automatic=$hardcode_automatic
  13241. # Set to yes if linker adds runtime paths of dependent libraries
  13242. # to runtime path list.
  13243. inherit_rpath=$inherit_rpath
  13244. # Whether libtool must link a program against all its dependency libraries.
  13245. link_all_deplibs=$link_all_deplibs
  13246. # Fix the shell variable \$srcfile for the compiler.
  13247. fix_srcfile_path=$lt_fix_srcfile_path
  13248. # Set to "yes" if exported symbols are required.
  13249. always_export_symbols=$always_export_symbols
  13250. # The commands to list exported symbols.
  13251. export_symbols_cmds=$lt_export_symbols_cmds
  13252. # Symbols that should not be listed in the preloaded symbols.
  13253. exclude_expsyms=$lt_exclude_expsyms
  13254. # Symbols that must always be exported.
  13255. include_expsyms=$lt_include_expsyms
  13256. # Commands necessary for linking programs (against libraries) with templates.
  13257. prelink_cmds=$lt_prelink_cmds
  13258. # Specify filename containing input files.
  13259. file_list_spec=$lt_file_list_spec
  13260. # How to hardcode a shared library path into an executable.
  13261. hardcode_action=$hardcode_action
  13262. # ### END LIBTOOL CONFIG
  13263. _LT_EOF
  13264. case $host_os in
  13265. aix3*)
  13266. cat <<\_LT_EOF >> "$cfgfile"
  13267. # AIX sometimes has problems with the GCC collect2 program. For some
  13268. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13269. # vanish in a puff of smoke.
  13270. if test "X${COLLECT_NAMES+set}" != Xset; then
  13271. COLLECT_NAMES=
  13272. export COLLECT_NAMES
  13273. fi
  13274. _LT_EOF
  13275. ;;
  13276. esac
  13277. ltmain="$ac_aux_dir/ltmain.sh"
  13278. # We use sed instead of cat because bash on DJGPP gets confused if
  13279. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13280. # text mode, it properly converts lines to CR/LF. This bash problem
  13281. # is reportedly fixed, but why not run on old versions too?
  13282. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13283. || (rm -f "$cfgfile"; exit 1)
  13284. case $xsi_shell in
  13285. yes)
  13286. cat << \_LT_EOF >> "$cfgfile"
  13287. # func_dirname file append nondir_replacement
  13288. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13289. # otherwise set result to NONDIR_REPLACEMENT.
  13290. func_dirname ()
  13291. {
  13292. case ${1} in
  13293. */*) func_dirname_result="${1%/*}${2}" ;;
  13294. * ) func_dirname_result="${3}" ;;
  13295. esac
  13296. }
  13297. # func_basename file
  13298. func_basename ()
  13299. {
  13300. func_basename_result="${1##*/}"
  13301. }
  13302. # func_dirname_and_basename file append nondir_replacement
  13303. # perform func_basename and func_dirname in a single function
  13304. # call:
  13305. # dirname: Compute the dirname of FILE. If nonempty,
  13306. # add APPEND to the result, otherwise set result
  13307. # to NONDIR_REPLACEMENT.
  13308. # value returned in "$func_dirname_result"
  13309. # basename: Compute filename of FILE.
  13310. # value retuned in "$func_basename_result"
  13311. # Implementation must be kept synchronized with func_dirname
  13312. # and func_basename. For efficiency, we do not delegate to
  13313. # those functions but instead duplicate the functionality here.
  13314. func_dirname_and_basename ()
  13315. {
  13316. case ${1} in
  13317. */*) func_dirname_result="${1%/*}${2}" ;;
  13318. * ) func_dirname_result="${3}" ;;
  13319. esac
  13320. func_basename_result="${1##*/}"
  13321. }
  13322. # func_stripname prefix suffix name
  13323. # strip PREFIX and SUFFIX off of NAME.
  13324. # PREFIX and SUFFIX must not contain globbing or regex special
  13325. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13326. # dot (in which case that matches only a dot).
  13327. func_stripname ()
  13328. {
  13329. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13330. # positional parameters, so assign one to ordinary parameter first.
  13331. func_stripname_result=${3}
  13332. func_stripname_result=${func_stripname_result#"${1}"}
  13333. func_stripname_result=${func_stripname_result%"${2}"}
  13334. }
  13335. # func_opt_split
  13336. func_opt_split ()
  13337. {
  13338. func_opt_split_opt=${1%%=*}
  13339. func_opt_split_arg=${1#*=}
  13340. }
  13341. # func_lo2o object
  13342. func_lo2o ()
  13343. {
  13344. case ${1} in
  13345. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13346. *) func_lo2o_result=${1} ;;
  13347. esac
  13348. }
  13349. # func_xform libobj-or-source
  13350. func_xform ()
  13351. {
  13352. func_xform_result=${1%.*}.lo
  13353. }
  13354. # func_arith arithmetic-term...
  13355. func_arith ()
  13356. {
  13357. func_arith_result=$(( $* ))
  13358. }
  13359. # func_len string
  13360. # STRING may not start with a hyphen.
  13361. func_len ()
  13362. {
  13363. func_len_result=${#1}
  13364. }
  13365. _LT_EOF
  13366. ;;
  13367. *) # Bourne compatible functions.
  13368. cat << \_LT_EOF >> "$cfgfile"
  13369. # func_dirname file append nondir_replacement
  13370. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13371. # otherwise set result to NONDIR_REPLACEMENT.
  13372. func_dirname ()
  13373. {
  13374. # Extract subdirectory from the argument.
  13375. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  13376. if test "X$func_dirname_result" = "X${1}"; then
  13377. func_dirname_result="${3}"
  13378. else
  13379. func_dirname_result="$func_dirname_result${2}"
  13380. fi
  13381. }
  13382. # func_basename file
  13383. func_basename ()
  13384. {
  13385. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  13386. }
  13387. # func_stripname prefix suffix name
  13388. # strip PREFIX and SUFFIX off of NAME.
  13389. # PREFIX and SUFFIX must not contain globbing or regex special
  13390. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13391. # dot (in which case that matches only a dot).
  13392. # func_strip_suffix prefix name
  13393. func_stripname ()
  13394. {
  13395. case ${2} in
  13396. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13397. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13398. esac
  13399. }
  13400. # sed scripts:
  13401. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13402. my_sed_long_arg='1s/^-[^=]*=//'
  13403. # func_opt_split
  13404. func_opt_split ()
  13405. {
  13406. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  13407. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  13408. }
  13409. # func_lo2o object
  13410. func_lo2o ()
  13411. {
  13412. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  13413. }
  13414. # func_xform libobj-or-source
  13415. func_xform ()
  13416. {
  13417. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  13418. }
  13419. # func_arith arithmetic-term...
  13420. func_arith ()
  13421. {
  13422. func_arith_result=`expr "$@"`
  13423. }
  13424. # func_len string
  13425. # STRING may not start with a hyphen.
  13426. func_len ()
  13427. {
  13428. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13429. }
  13430. _LT_EOF
  13431. esac
  13432. case $lt_shell_append in
  13433. yes)
  13434. cat << \_LT_EOF >> "$cfgfile"
  13435. # func_append var value
  13436. # Append VALUE to the end of shell variable VAR.
  13437. func_append ()
  13438. {
  13439. eval "$1+=\$2"
  13440. }
  13441. _LT_EOF
  13442. ;;
  13443. *)
  13444. cat << \_LT_EOF >> "$cfgfile"
  13445. # func_append var value
  13446. # Append VALUE to the end of shell variable VAR.
  13447. func_append ()
  13448. {
  13449. eval "$1=\$$1\$2"
  13450. }
  13451. _LT_EOF
  13452. ;;
  13453. esac
  13454. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13455. || (rm -f "$cfgfile"; exit 1)
  13456. mv -f "$cfgfile" "$ofile" ||
  13457. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13458. chmod +x "$ofile"
  13459. ;;
  13460. esac
  13461. done # for ac_tag
  13462. as_fn_exit 0
  13463. _ACEOF
  13464. ac_clean_files=$ac_clean_files_save
  13465. test $ac_write_fail = 0 ||
  13466. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13467. # configure is writing to config.log, and then calls config.status.
  13468. # config.status does its own redirection, appending to config.log.
  13469. # Unfortunately, on DOS this fails, as config.log is still kept open
  13470. # by configure, so config.status won't be able to write to it; its
  13471. # output is simply discarded. So we exec the FD to /dev/null,
  13472. # effectively closing config.log, so it can be properly (re)opened and
  13473. # appended to by config.status. When coming back to configure, we
  13474. # need to make the FD available again.
  13475. if test "$no_create" != yes; then
  13476. ac_cs_success=:
  13477. ac_config_status_args=
  13478. test "$silent" = yes &&
  13479. ac_config_status_args="$ac_config_status_args --quiet"
  13480. exec 5>/dev/null
  13481. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13482. exec 5>>config.log
  13483. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13484. # would make configure fail if this is the last instruction.
  13485. $ac_cs_success || as_fn_exit 1
  13486. fi
  13487. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13489. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13490. fi