configure 440 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='GCC Quad-precision Math Library'
  509. PACKAGE_TARNAME='libquadmath'
  510. PACKAGE_VERSION='0.1'
  511. PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. GENINSRC_FALSE
  554. GENINSRC_TRUE
  555. BUILD_LIBQUADMATH_FALSE
  556. BUILD_LIBQUADMATH_TRUE
  557. LIBQUAD_USE_SYMVER_SUN_FALSE
  558. LIBQUAD_USE_SYMVER_SUN_TRUE
  559. LIBQUAD_USE_SYMVER_GNU_FALSE
  560. LIBQUAD_USE_SYMVER_GNU_TRUE
  561. LIBQUAD_USE_SYMVER_FALSE
  562. LIBQUAD_USE_SYMVER_TRUE
  563. toolexeclibdir
  564. toolexecdir
  565. MAINT
  566. MAINTAINER_MODE_FALSE
  567. MAINTAINER_MODE_TRUE
  568. enable_static
  569. enable_shared
  570. lt_host_flags
  571. OTOOL64
  572. OTOOL
  573. LIPO
  574. NMEDIT
  575. DSYMUTIL
  576. RANLIB
  577. AR
  578. OBJDUMP
  579. LN_S
  580. NM
  581. ac_ct_DUMPBIN
  582. DUMPBIN
  583. LD
  584. FGREP
  585. SED
  586. LIBTOOL
  587. REPORT_BUGS_TEXI
  588. REPORT_BUGS_TO
  589. BUILD_INFO_FALSE
  590. BUILD_INFO_TRUE
  591. EGREP
  592. GREP
  593. CPP
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. OBJEXT
  604. EXEEXT
  605. ac_ct_CC
  606. CPPFLAGS
  607. LDFLAGS
  608. CFLAGS
  609. CC
  610. am__untar
  611. am__tar
  612. AMTAR
  613. am__leading_dot
  614. SET_MAKE
  615. AWK
  616. mkdir_p
  617. MKDIR_P
  618. INSTALL_STRIP_PROGRAM
  619. STRIP
  620. install_sh
  621. MAKEINFO
  622. AUTOHEADER
  623. AUTOMAKE
  624. AUTOCONF
  625. ACLOCAL
  626. VERSION
  627. PACKAGE
  628. CYGPATH_W
  629. am__isrc
  630. INSTALL_DATA
  631. INSTALL_SCRIPT
  632. INSTALL_PROGRAM
  633. multi_basedir
  634. target_noncanonical
  635. target_os
  636. target_vendor
  637. target_cpu
  638. target
  639. host_os
  640. host_vendor
  641. host_cpu
  642. host
  643. build_os
  644. build_vendor
  645. build_cpu
  646. build
  647. target_alias
  648. host_alias
  649. build_alias
  650. LIBS
  651. ECHO_T
  652. ECHO_N
  653. ECHO_C
  654. DEFS
  655. mandir
  656. localedir
  657. libdir
  658. psdir
  659. pdfdir
  660. dvidir
  661. htmldir
  662. infodir
  663. docdir
  664. oldincludedir
  665. includedir
  666. localstatedir
  667. sharedstatedir
  668. sysconfdir
  669. datadir
  670. datarootdir
  671. libexecdir
  672. sbindir
  673. bindir
  674. program_transform_name
  675. prefix
  676. exec_prefix
  677. PACKAGE_URL
  678. PACKAGE_BUGREPORT
  679. PACKAGE_STRING
  680. PACKAGE_VERSION
  681. PACKAGE_TARNAME
  682. PACKAGE_NAME
  683. PATH_SEPARATOR
  684. SHELL'
  685. ac_subst_files=''
  686. ac_user_opts='
  687. enable_option_checking
  688. enable_multilib
  689. enable_version_specific_runtime_libs
  690. enable_dependency_tracking
  691. with_bugurl
  692. enable_shared
  693. enable_static
  694. with_pic
  695. enable_fast_install
  696. with_gnu_ld
  697. enable_libtool_lock
  698. enable_maintainer_mode
  699. enable_symvers
  700. enable_generated_files_in_srcdir
  701. '
  702. ac_precious_vars='build_alias
  703. host_alias
  704. target_alias
  705. CC
  706. CFLAGS
  707. LDFLAGS
  708. LIBS
  709. CPPFLAGS
  710. CPP'
  711. # Initialize some variables set by options.
  712. ac_init_help=
  713. ac_init_version=false
  714. ac_unrecognized_opts=
  715. ac_unrecognized_sep=
  716. # The variables have the same names as the options, with
  717. # dashes changed to underlines.
  718. cache_file=/dev/null
  719. exec_prefix=NONE
  720. no_create=
  721. no_recursion=
  722. prefix=NONE
  723. program_prefix=NONE
  724. program_suffix=NONE
  725. program_transform_name=s,x,x,
  726. silent=
  727. site=
  728. srcdir=
  729. verbose=
  730. x_includes=NONE
  731. x_libraries=NONE
  732. # Installation directory options.
  733. # These are left unexpanded so users can "make install exec_prefix=/foo"
  734. # and all the variables that are supposed to be based on exec_prefix
  735. # by default will actually change.
  736. # Use braces instead of parens because sh, perl, etc. also accept them.
  737. # (The list follows the same order as the GNU Coding Standards.)
  738. bindir='${exec_prefix}/bin'
  739. sbindir='${exec_prefix}/sbin'
  740. libexecdir='${exec_prefix}/libexec'
  741. datarootdir='${prefix}/share'
  742. datadir='${datarootdir}'
  743. sysconfdir='${prefix}/etc'
  744. sharedstatedir='${prefix}/com'
  745. localstatedir='${prefix}/var'
  746. includedir='${prefix}/include'
  747. oldincludedir='/usr/include'
  748. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  749. infodir='${datarootdir}/info'
  750. htmldir='${docdir}'
  751. dvidir='${docdir}'
  752. pdfdir='${docdir}'
  753. psdir='${docdir}'
  754. libdir='${exec_prefix}/lib'
  755. localedir='${datarootdir}/locale'
  756. mandir='${datarootdir}/man'
  757. ac_prev=
  758. ac_dashdash=
  759. for ac_option
  760. do
  761. # If the previous option needs an argument, assign it.
  762. if test -n "$ac_prev"; then
  763. eval $ac_prev=\$ac_option
  764. ac_prev=
  765. continue
  766. fi
  767. case $ac_option in
  768. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  769. *) ac_optarg=yes ;;
  770. esac
  771. # Accept the important Cygnus configure options, so we can diagnose typos.
  772. case $ac_dashdash$ac_option in
  773. --)
  774. ac_dashdash=yes ;;
  775. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  776. ac_prev=bindir ;;
  777. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  778. bindir=$ac_optarg ;;
  779. -build | --build | --buil | --bui | --bu)
  780. ac_prev=build_alias ;;
  781. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  782. build_alias=$ac_optarg ;;
  783. -cache-file | --cache-file | --cache-fil | --cache-fi \
  784. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  785. ac_prev=cache_file ;;
  786. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  787. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  788. cache_file=$ac_optarg ;;
  789. --config-cache | -C)
  790. cache_file=config.cache ;;
  791. -datadir | --datadir | --datadi | --datad)
  792. ac_prev=datadir ;;
  793. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  794. datadir=$ac_optarg ;;
  795. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  796. | --dataroo | --dataro | --datar)
  797. ac_prev=datarootdir ;;
  798. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  799. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  800. datarootdir=$ac_optarg ;;
  801. -disable-* | --disable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error "invalid feature name: $ac_useropt"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=no ;;
  816. -docdir | --docdir | --docdi | --doc | --do)
  817. ac_prev=docdir ;;
  818. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  819. docdir=$ac_optarg ;;
  820. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  821. ac_prev=dvidir ;;
  822. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  823. dvidir=$ac_optarg ;;
  824. -enable-* | --enable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=\$ac_optarg ;;
  839. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  840. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  841. | --exec | --exe | --ex)
  842. ac_prev=exec_prefix ;;
  843. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  844. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  845. | --exec=* | --exe=* | --ex=*)
  846. exec_prefix=$ac_optarg ;;
  847. -gas | --gas | --ga | --g)
  848. # Obsolete; use --with-gas.
  849. with_gas=yes ;;
  850. -help | --help | --hel | --he | -h)
  851. ac_init_help=long ;;
  852. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  853. ac_init_help=recursive ;;
  854. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  855. ac_init_help=short ;;
  856. -host | --host | --hos | --ho)
  857. ac_prev=host_alias ;;
  858. -host=* | --host=* | --hos=* | --ho=*)
  859. host_alias=$ac_optarg ;;
  860. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  861. ac_prev=htmldir ;;
  862. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  863. | --ht=*)
  864. htmldir=$ac_optarg ;;
  865. -includedir | --includedir | --includedi | --included | --include \
  866. | --includ | --inclu | --incl | --inc)
  867. ac_prev=includedir ;;
  868. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  869. | --includ=* | --inclu=* | --incl=* | --inc=*)
  870. includedir=$ac_optarg ;;
  871. -infodir | --infodir | --infodi | --infod | --info | --inf)
  872. ac_prev=infodir ;;
  873. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  874. infodir=$ac_optarg ;;
  875. -libdir | --libdir | --libdi | --libd)
  876. ac_prev=libdir ;;
  877. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  878. libdir=$ac_optarg ;;
  879. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  880. | --libexe | --libex | --libe)
  881. ac_prev=libexecdir ;;
  882. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  883. | --libexe=* | --libex=* | --libe=*)
  884. libexecdir=$ac_optarg ;;
  885. -localedir | --localedir | --localedi | --localed | --locale)
  886. ac_prev=localedir ;;
  887. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  888. localedir=$ac_optarg ;;
  889. -localstatedir | --localstatedir | --localstatedi | --localstated \
  890. | --localstate | --localstat | --localsta | --localst | --locals)
  891. ac_prev=localstatedir ;;
  892. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  893. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  894. localstatedir=$ac_optarg ;;
  895. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  896. ac_prev=mandir ;;
  897. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  898. mandir=$ac_optarg ;;
  899. -nfp | --nfp | --nf)
  900. # Obsolete; use --without-fp.
  901. with_fp=no ;;
  902. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  903. | --no-cr | --no-c | -n)
  904. no_create=yes ;;
  905. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  906. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  907. no_recursion=yes ;;
  908. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  909. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  910. | --oldin | --oldi | --old | --ol | --o)
  911. ac_prev=oldincludedir ;;
  912. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  913. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  914. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  915. oldincludedir=$ac_optarg ;;
  916. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  917. ac_prev=prefix ;;
  918. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  919. prefix=$ac_optarg ;;
  920. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  921. | --program-pre | --program-pr | --program-p)
  922. ac_prev=program_prefix ;;
  923. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  924. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  925. program_prefix=$ac_optarg ;;
  926. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  927. | --program-suf | --program-su | --program-s)
  928. ac_prev=program_suffix ;;
  929. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  930. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  931. program_suffix=$ac_optarg ;;
  932. -program-transform-name | --program-transform-name \
  933. | --program-transform-nam | --program-transform-na \
  934. | --program-transform-n | --program-transform- \
  935. | --program-transform | --program-transfor \
  936. | --program-transfo | --program-transf \
  937. | --program-trans | --program-tran \
  938. | --progr-tra | --program-tr | --program-t)
  939. ac_prev=program_transform_name ;;
  940. -program-transform-name=* | --program-transform-name=* \
  941. | --program-transform-nam=* | --program-transform-na=* \
  942. | --program-transform-n=* | --program-transform-=* \
  943. | --program-transform=* | --program-transfor=* \
  944. | --program-transfo=* | --program-transf=* \
  945. | --program-trans=* | --program-tran=* \
  946. | --progr-tra=* | --program-tr=* | --program-t=*)
  947. program_transform_name=$ac_optarg ;;
  948. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  949. ac_prev=pdfdir ;;
  950. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  951. pdfdir=$ac_optarg ;;
  952. -psdir | --psdir | --psdi | --psd | --ps)
  953. ac_prev=psdir ;;
  954. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  955. psdir=$ac_optarg ;;
  956. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  957. | -silent | --silent | --silen | --sile | --sil)
  958. silent=yes ;;
  959. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  960. ac_prev=sbindir ;;
  961. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  962. | --sbi=* | --sb=*)
  963. sbindir=$ac_optarg ;;
  964. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  965. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  966. | --sharedst | --shareds | --shared | --share | --shar \
  967. | --sha | --sh)
  968. ac_prev=sharedstatedir ;;
  969. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  970. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  971. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  972. | --sha=* | --sh=*)
  973. sharedstatedir=$ac_optarg ;;
  974. -site | --site | --sit)
  975. ac_prev=site ;;
  976. -site=* | --site=* | --sit=*)
  977. site=$ac_optarg ;;
  978. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  979. ac_prev=srcdir ;;
  980. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  981. srcdir=$ac_optarg ;;
  982. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  983. | --syscon | --sysco | --sysc | --sys | --sy)
  984. ac_prev=sysconfdir ;;
  985. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  986. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  987. sysconfdir=$ac_optarg ;;
  988. -target | --target | --targe | --targ | --tar | --ta | --t)
  989. ac_prev=target_alias ;;
  990. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  991. target_alias=$ac_optarg ;;
  992. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  993. verbose=yes ;;
  994. -version | --version | --versio | --versi | --vers | -V)
  995. ac_init_version=: ;;
  996. -with-* | --with-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error "invalid package name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=\$ac_optarg ;;
  1011. -without-* | --without-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error "invalid package name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "with_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval with_$ac_useropt=no ;;
  1026. --x)
  1027. # Obsolete; use --with-x.
  1028. with_x=yes ;;
  1029. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1030. | --x-incl | --x-inc | --x-in | --x-i)
  1031. ac_prev=x_includes ;;
  1032. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1033. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1034. x_includes=$ac_optarg ;;
  1035. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1036. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1037. ac_prev=x_libraries ;;
  1038. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1039. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1040. x_libraries=$ac_optarg ;;
  1041. -*) as_fn_error "unrecognized option: \`$ac_option'
  1042. Try \`$0 --help' for more information."
  1043. ;;
  1044. *=*)
  1045. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1046. # Reject names that are not valid shell variable names.
  1047. case $ac_envvar in #(
  1048. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1049. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1050. esac
  1051. eval $ac_envvar=\$ac_optarg
  1052. export $ac_envvar ;;
  1053. *)
  1054. # FIXME: should be removed in autoconf 3.0.
  1055. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1056. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1057. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1058. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1059. ;;
  1060. esac
  1061. done
  1062. if test -n "$ac_prev"; then
  1063. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1064. as_fn_error "missing argument to $ac_option"
  1065. fi
  1066. if test -n "$ac_unrecognized_opts"; then
  1067. case $enable_option_checking in
  1068. no) ;;
  1069. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1070. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1071. esac
  1072. fi
  1073. # Check all directory arguments for consistency.
  1074. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1075. datadir sysconfdir sharedstatedir localstatedir includedir \
  1076. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1077. libdir localedir mandir
  1078. do
  1079. eval ac_val=\$$ac_var
  1080. # Remove trailing slashes.
  1081. case $ac_val in
  1082. */ )
  1083. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1084. eval $ac_var=\$ac_val;;
  1085. esac
  1086. # Be sure to have absolute directory names.
  1087. case $ac_val in
  1088. [\\/$]* | ?:[\\/]* ) continue;;
  1089. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1090. esac
  1091. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1092. done
  1093. # There might be people who depend on the old broken behavior: `$host'
  1094. # used to hold the argument of --host etc.
  1095. # FIXME: To remove some day.
  1096. build=$build_alias
  1097. host=$host_alias
  1098. target=$target_alias
  1099. # FIXME: To remove some day.
  1100. if test "x$host_alias" != x; then
  1101. if test "x$build_alias" = x; then
  1102. cross_compiling=maybe
  1103. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1104. If a cross compiler is detected then cross compile mode will be used." >&2
  1105. elif test "x$build_alias" != "x$host_alias"; then
  1106. cross_compiling=yes
  1107. fi
  1108. fi
  1109. ac_tool_prefix=
  1110. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1111. test "$silent" = yes && exec 6>/dev/null
  1112. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1113. ac_ls_di=`ls -di .` &&
  1114. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1115. as_fn_error "working directory cannot be determined"
  1116. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1117. as_fn_error "pwd does not report name of working directory"
  1118. # Find the source files, if location was not specified.
  1119. if test -z "$srcdir"; then
  1120. ac_srcdir_defaulted=yes
  1121. # Try the directory containing this script, then the parent directory.
  1122. ac_confdir=`$as_dirname -- "$as_myself" ||
  1123. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1124. X"$as_myself" : 'X\(//\)[^/]' \| \
  1125. X"$as_myself" : 'X\(//\)$' \| \
  1126. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1127. $as_echo X"$as_myself" |
  1128. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\/\)[^/].*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\).*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. s/.*/./; q'`
  1145. srcdir=$ac_confdir
  1146. if test ! -r "$srcdir/$ac_unique_file"; then
  1147. srcdir=..
  1148. fi
  1149. else
  1150. ac_srcdir_defaulted=no
  1151. fi
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1154. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1155. fi
  1156. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1157. ac_abs_confdir=`(
  1158. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1159. pwd)`
  1160. # When building in place, set srcdir=.
  1161. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1162. srcdir=.
  1163. fi
  1164. # Remove unnecessary trailing slashes from srcdir.
  1165. # Double slashes in file names in object file debugging info
  1166. # mess up M-x gdb in Emacs.
  1167. case $srcdir in
  1168. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1169. esac
  1170. for ac_var in $ac_precious_vars; do
  1171. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1172. eval ac_env_${ac_var}_value=\$${ac_var}
  1173. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1174. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1175. done
  1176. #
  1177. # Report the --help message.
  1178. #
  1179. if test "$ac_init_help" = "long"; then
  1180. # Omit some internal or obsolete options to make the list less imposing.
  1181. # This message is too long to be a string in the A/UX 3.1 sh.
  1182. cat <<_ACEOF
  1183. \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
  1184. Usage: $0 [OPTION]... [VAR=VALUE]...
  1185. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1186. VAR=VALUE. See below for descriptions of some of the useful variables.
  1187. Defaults for the options are specified in brackets.
  1188. Configuration:
  1189. -h, --help display this help and exit
  1190. --help=short display options specific to this package
  1191. --help=recursive display the short help of all the included packages
  1192. -V, --version display version information and exit
  1193. -q, --quiet, --silent do not print \`checking...' messages
  1194. --cache-file=FILE cache test results in FILE [disabled]
  1195. -C, --config-cache alias for \`--cache-file=config.cache'
  1196. -n, --no-create do not create output files
  1197. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1198. Installation directories:
  1199. --prefix=PREFIX install architecture-independent files in PREFIX
  1200. [$ac_default_prefix]
  1201. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1202. [PREFIX]
  1203. By default, \`make install' will install all the files in
  1204. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1205. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1206. for instance \`--prefix=\$HOME'.
  1207. For better control, use the options below.
  1208. Fine tuning of the installation directories:
  1209. --bindir=DIR user executables [EPREFIX/bin]
  1210. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1211. --libexecdir=DIR program executables [EPREFIX/libexec]
  1212. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1213. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1214. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1215. --libdir=DIR object code libraries [EPREFIX/lib]
  1216. --includedir=DIR C header files [PREFIX/include]
  1217. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1218. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1219. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1220. --infodir=DIR info documentation [DATAROOTDIR/info]
  1221. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1222. --mandir=DIR man documentation [DATAROOTDIR/man]
  1223. --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
  1224. --htmldir=DIR html documentation [DOCDIR]
  1225. --dvidir=DIR dvi documentation [DOCDIR]
  1226. --pdfdir=DIR pdf documentation [DOCDIR]
  1227. --psdir=DIR ps documentation [DOCDIR]
  1228. _ACEOF
  1229. cat <<\_ACEOF
  1230. Program names:
  1231. --program-prefix=PREFIX prepend PREFIX to installed program names
  1232. --program-suffix=SUFFIX append SUFFIX to installed program names
  1233. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1234. System types:
  1235. --build=BUILD configure for building on BUILD [guessed]
  1236. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1237. --target=TARGET configure for building compilers for TARGET [HOST]
  1238. _ACEOF
  1239. fi
  1240. if test -n "$ac_init_help"; then
  1241. case $ac_init_help in
  1242. short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
  1243. esac
  1244. cat <<\_ACEOF
  1245. Optional Features:
  1246. --disable-option-checking ignore unrecognized --enable/--with options
  1247. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1248. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1249. --enable-multilib build many library versions (default)
  1250. --enable-version-specific-runtime-libs
  1251. specify that runtime libraries should be installed
  1252. in a compiler-specific directory
  1253. --disable-dependency-tracking speeds up one-time build
  1254. --enable-dependency-tracking do not reject slow dependency extractors
  1255. --enable-shared[=PKGS] build shared libraries [default=yes]
  1256. --enable-static[=PKGS] build static libraries [default=yes]
  1257. --enable-fast-install[=PKGS]
  1258. optimize for fast installation [default=yes]
  1259. --disable-libtool-lock avoid locking (might break parallel builds)
  1260. --enable-maintainer-mode enable make rules and dependencies not useful
  1261. (and sometimes confusing) to the casual installer
  1262. --disable-symvers disable symbol versioning for libquadmath
  1263. --enable-generated-files-in-srcdir
  1264. put copies of generated files in source dir intended
  1265. for creating source tarballs for users without
  1266. texinfo bison or flex
  1267. Optional Packages:
  1268. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1269. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1270. --with-bugurl=URL Direct users to URL to report a bug
  1271. --with-pic try to use only PIC/non-PIC objects [default=use
  1272. both]
  1273. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1274. Some influential environment variables:
  1275. CC C compiler command
  1276. CFLAGS C compiler flags
  1277. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1278. nonstandard directory <lib dir>
  1279. LIBS libraries to pass to the linker, e.g. -l<library>
  1280. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1281. you have headers in a nonstandard directory <include dir>
  1282. CPP C preprocessor
  1283. Use these variables to override the choices made by `configure' or to help
  1284. it to find libraries and programs with nonstandard names/locations.
  1285. Report bugs to the package provider.
  1286. _ACEOF
  1287. ac_status=$?
  1288. fi
  1289. if test "$ac_init_help" = "recursive"; then
  1290. # If there are subdirs, report their specific --help.
  1291. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1292. test -d "$ac_dir" ||
  1293. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1294. continue
  1295. ac_builddir=.
  1296. case "$ac_dir" in
  1297. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1298. *)
  1299. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1300. # A ".." for each directory in $ac_dir_suffix.
  1301. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1302. case $ac_top_builddir_sub in
  1303. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1305. esac ;;
  1306. esac
  1307. ac_abs_top_builddir=$ac_pwd
  1308. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1309. # for backward compatibility:
  1310. ac_top_builddir=$ac_top_build_prefix
  1311. case $srcdir in
  1312. .) # We are building in place.
  1313. ac_srcdir=.
  1314. ac_top_srcdir=$ac_top_builddir_sub
  1315. ac_abs_top_srcdir=$ac_pwd ;;
  1316. [\\/]* | ?:[\\/]* ) # Absolute name.
  1317. ac_srcdir=$srcdir$ac_dir_suffix;
  1318. ac_top_srcdir=$srcdir
  1319. ac_abs_top_srcdir=$srcdir ;;
  1320. *) # Relative name.
  1321. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1322. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1323. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1324. esac
  1325. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1326. cd "$ac_dir" || { ac_status=$?; continue; }
  1327. # Check for guested configure.
  1328. if test -f "$ac_srcdir/configure.gnu"; then
  1329. echo &&
  1330. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1331. elif test -f "$ac_srcdir/configure"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure" --help=recursive
  1334. else
  1335. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1336. fi || ac_status=$?
  1337. cd "$ac_pwd" || { ac_status=$?; break; }
  1338. done
  1339. fi
  1340. test -n "$ac_init_help" && exit $ac_status
  1341. if $ac_init_version; then
  1342. cat <<\_ACEOF
  1343. GCC Quad-precision Math Library configure 0.1
  1344. generated by GNU Autoconf 2.64
  1345. Copyright (C) 2009 Free Software Foundation, Inc.
  1346. This configure script is free software; the Free Software Foundation
  1347. gives unlimited permission to copy, distribute and modify it.
  1348. _ACEOF
  1349. exit
  1350. fi
  1351. ## ------------------------ ##
  1352. ## Autoconf initialization. ##
  1353. ## ------------------------ ##
  1354. # ac_fn_c_try_compile LINENO
  1355. # --------------------------
  1356. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1357. ac_fn_c_try_compile ()
  1358. {
  1359. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1360. rm -f conftest.$ac_objext
  1361. if { { ac_try="$ac_compile"
  1362. case "(($ac_try" in
  1363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1364. *) ac_try_echo=$ac_try;;
  1365. esac
  1366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1367. $as_echo "$ac_try_echo"; } >&5
  1368. (eval "$ac_compile") 2>conftest.err
  1369. ac_status=$?
  1370. if test -s conftest.err; then
  1371. grep -v '^ *+' conftest.err >conftest.er1
  1372. cat conftest.er1 >&5
  1373. mv -f conftest.er1 conftest.err
  1374. fi
  1375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1376. test $ac_status = 0; } && {
  1377. test -z "$ac_c_werror_flag" ||
  1378. test ! -s conftest.err
  1379. } && test -s conftest.$ac_objext; then :
  1380. ac_retval=0
  1381. else
  1382. $as_echo "$as_me: failed program was:" >&5
  1383. sed 's/^/| /' conftest.$ac_ext >&5
  1384. ac_retval=1
  1385. fi
  1386. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1387. return $ac_retval
  1388. } # ac_fn_c_try_compile
  1389. # ac_fn_c_try_cpp LINENO
  1390. # ----------------------
  1391. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1392. ac_fn_c_try_cpp ()
  1393. {
  1394. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1395. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1396. case "(($ac_try" in
  1397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1398. *) ac_try_echo=$ac_try;;
  1399. esac
  1400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1401. $as_echo "$ac_try_echo"; } >&5
  1402. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1403. ac_status=$?
  1404. if test -s conftest.err; then
  1405. grep -v '^ *+' conftest.err >conftest.er1
  1406. cat conftest.er1 >&5
  1407. mv -f conftest.er1 conftest.err
  1408. fi
  1409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1410. test $ac_status = 0; } >/dev/null && {
  1411. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1412. test ! -s conftest.err
  1413. }; then :
  1414. ac_retval=0
  1415. else
  1416. $as_echo "$as_me: failed program was:" >&5
  1417. sed 's/^/| /' conftest.$ac_ext >&5
  1418. ac_retval=1
  1419. fi
  1420. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1421. return $ac_retval
  1422. } # ac_fn_c_try_cpp
  1423. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1424. # -------------------------------------------------------
  1425. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1426. # the include files in INCLUDES and setting the cache variable VAR
  1427. # accordingly.
  1428. ac_fn_c_check_header_mongrel ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1433. $as_echo_n "checking for $2... " >&6; }
  1434. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1435. $as_echo_n "(cached) " >&6
  1436. fi
  1437. eval ac_res=\$$3
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1439. $as_echo "$ac_res" >&6; }
  1440. else
  1441. # Is the header compilable?
  1442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1443. $as_echo_n "checking $2 usability... " >&6; }
  1444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1445. /* end confdefs.h. */
  1446. $4
  1447. #include <$2>
  1448. _ACEOF
  1449. if ac_fn_c_try_compile "$LINENO"; then :
  1450. ac_header_compiler=yes
  1451. else
  1452. ac_header_compiler=no
  1453. fi
  1454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1456. $as_echo "$ac_header_compiler" >&6; }
  1457. # Is the header present?
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1459. $as_echo_n "checking $2 presence... " >&6; }
  1460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1461. /* end confdefs.h. */
  1462. #include <$2>
  1463. _ACEOF
  1464. if ac_fn_c_try_cpp "$LINENO"; then :
  1465. ac_header_preproc=yes
  1466. else
  1467. ac_header_preproc=no
  1468. fi
  1469. rm -f conftest.err conftest.$ac_ext
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1471. $as_echo "$ac_header_preproc" >&6; }
  1472. # So? What about this header?
  1473. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1474. yes:no: )
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1476. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1478. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1479. ;;
  1480. no:yes:* )
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1482. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1484. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1486. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1488. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1490. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1491. ;;
  1492. esac
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1494. $as_echo_n "checking for $2... " >&6; }
  1495. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1496. $as_echo_n "(cached) " >&6
  1497. else
  1498. eval "$3=\$ac_header_compiler"
  1499. fi
  1500. eval ac_res=\$$3
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1502. $as_echo "$ac_res" >&6; }
  1503. fi
  1504. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1505. } # ac_fn_c_check_header_mongrel
  1506. # ac_fn_c_try_run LINENO
  1507. # ----------------------
  1508. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1509. # that executables *can* be run.
  1510. ac_fn_c_try_run ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. if { { ac_try="$ac_link"
  1514. case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_link") 2>&5
  1521. ac_status=$?
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1524. { { case "(($ac_try" in
  1525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1526. *) ac_try_echo=$ac_try;;
  1527. esac
  1528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1529. $as_echo "$ac_try_echo"; } >&5
  1530. (eval "$ac_try") 2>&5
  1531. ac_status=$?
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; }; }; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: program exited with status $ac_status" >&5
  1537. $as_echo "$as_me: failed program was:" >&5
  1538. sed 's/^/| /' conftest.$ac_ext >&5
  1539. ac_retval=$ac_status
  1540. fi
  1541. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1542. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1543. return $ac_retval
  1544. } # ac_fn_c_try_run
  1545. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1546. # -------------------------------------------------------
  1547. # Tests whether HEADER exists and can be compiled using the include files in
  1548. # INCLUDES, setting the cache variable VAR accordingly.
  1549. ac_fn_c_check_header_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. $as_echo_n "checking for $2... " >&6; }
  1554. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1555. $as_echo_n "(cached) " >&6
  1556. else
  1557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1558. /* end confdefs.h. */
  1559. $4
  1560. #include <$2>
  1561. _ACEOF
  1562. if ac_fn_c_try_compile "$LINENO"; then :
  1563. eval "$3=yes"
  1564. else
  1565. eval "$3=no"
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1568. fi
  1569. eval ac_res=\$$3
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1571. $as_echo "$ac_res" >&6; }
  1572. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1573. } # ac_fn_c_check_header_compile
  1574. # ac_fn_c_try_link LINENO
  1575. # -----------------------
  1576. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1577. ac_fn_c_try_link ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. rm -f conftest.$ac_objext conftest$ac_exeext
  1581. if { { ac_try="$ac_link"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_link") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } && {
  1597. test -z "$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. } && test -s conftest$ac_exeext && {
  1600. test "$cross_compiling" = yes ||
  1601. $as_test_x conftest$ac_exeext
  1602. }; then :
  1603. ac_retval=0
  1604. else
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=1
  1608. fi
  1609. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1610. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1611. # interfere with the next link command; also delete a directory that is
  1612. # left behind by Apple's compiler. We do this before executing the actions.
  1613. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1614. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1615. return $ac_retval
  1616. } # ac_fn_c_try_link
  1617. # ac_fn_c_check_func LINENO FUNC VAR
  1618. # ----------------------------------
  1619. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1620. ac_fn_c_check_func ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1624. $as_echo_n "checking for $2... " >&6; }
  1625. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1626. $as_echo_n "(cached) " >&6
  1627. else
  1628. if test x$gcc_no_link = xyes; then
  1629. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1630. fi
  1631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end confdefs.h. */
  1633. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1634. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1635. #define $2 innocuous_$2
  1636. /* System header to define __stub macros and hopefully few prototypes,
  1637. which can conflict with char $2 (); below.
  1638. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1639. <limits.h> exists even on freestanding compilers. */
  1640. #ifdef __STDC__
  1641. # include <limits.h>
  1642. #else
  1643. # include <assert.h>
  1644. #endif
  1645. #undef $2
  1646. /* Override any GCC internal prototype to avoid an error.
  1647. Use char because int might match the return type of a GCC
  1648. builtin and then its argument prototype would still apply. */
  1649. #ifdef __cplusplus
  1650. extern "C"
  1651. #endif
  1652. char $2 ();
  1653. /* The GNU C library defines this for functions which it implements
  1654. to always fail with ENOSYS. Some functions are actually named
  1655. something starting with __ and the normal name is an alias. */
  1656. #if defined __stub_$2 || defined __stub___$2
  1657. choke me
  1658. #endif
  1659. int
  1660. main ()
  1661. {
  1662. return $2 ();
  1663. ;
  1664. return 0;
  1665. }
  1666. _ACEOF
  1667. if ac_fn_c_try_link "$LINENO"; then :
  1668. eval "$3=yes"
  1669. else
  1670. eval "$3=no"
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext \
  1673. conftest$ac_exeext conftest.$ac_ext
  1674. fi
  1675. eval ac_res=\$$3
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1677. $as_echo "$ac_res" >&6; }
  1678. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1679. } # ac_fn_c_check_func
  1680. cat >config.log <<_ACEOF
  1681. This file contains any messages produced by compilers while
  1682. running configure, to aid debugging if configure makes a mistake.
  1683. It was created by GCC Quad-precision Math Library $as_me 0.1, which was
  1684. generated by GNU Autoconf 2.64. Invocation command line was
  1685. $ $0 $@
  1686. _ACEOF
  1687. exec 5>>config.log
  1688. {
  1689. cat <<_ASUNAME
  1690. ## --------- ##
  1691. ## Platform. ##
  1692. ## --------- ##
  1693. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1694. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1695. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1696. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1697. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1698. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1699. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1700. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1701. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1702. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1703. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1704. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1705. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1706. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1707. _ASUNAME
  1708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1709. for as_dir in $PATH
  1710. do
  1711. IFS=$as_save_IFS
  1712. test -z "$as_dir" && as_dir=.
  1713. $as_echo "PATH: $as_dir"
  1714. done
  1715. IFS=$as_save_IFS
  1716. } >&5
  1717. cat >&5 <<_ACEOF
  1718. ## ----------- ##
  1719. ## Core tests. ##
  1720. ## ----------- ##
  1721. _ACEOF
  1722. # Keep a trace of the command line.
  1723. # Strip out --no-create and --no-recursion so they do not pile up.
  1724. # Strip out --silent because we don't want to record it for future runs.
  1725. # Also quote any args containing shell meta-characters.
  1726. # Make two passes to allow for proper duplicate-argument suppression.
  1727. ac_configure_args=
  1728. ac_configure_args0=
  1729. ac_configure_args1=
  1730. ac_must_keep_next=false
  1731. for ac_pass in 1 2
  1732. do
  1733. for ac_arg
  1734. do
  1735. case $ac_arg in
  1736. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1737. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1738. | -silent | --silent | --silen | --sile | --sil)
  1739. continue ;;
  1740. *\'*)
  1741. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1742. esac
  1743. case $ac_pass in
  1744. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1745. 2)
  1746. as_fn_append ac_configure_args1 " '$ac_arg'"
  1747. if test $ac_must_keep_next = true; then
  1748. ac_must_keep_next=false # Got value, back to normal.
  1749. else
  1750. case $ac_arg in
  1751. *=* | --config-cache | -C | -disable-* | --disable-* \
  1752. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1753. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1754. | -with-* | --with-* | -without-* | --without-* | --x)
  1755. case "$ac_configure_args0 " in
  1756. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1757. esac
  1758. ;;
  1759. -* ) ac_must_keep_next=true ;;
  1760. esac
  1761. fi
  1762. as_fn_append ac_configure_args " '$ac_arg'"
  1763. ;;
  1764. esac
  1765. done
  1766. done
  1767. { ac_configure_args0=; unset ac_configure_args0;}
  1768. { ac_configure_args1=; unset ac_configure_args1;}
  1769. # When interrupted or exit'd, cleanup temporary files, and complete
  1770. # config.log. We remove comments because anyway the quotes in there
  1771. # would cause problems or look ugly.
  1772. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1773. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1774. trap 'exit_status=$?
  1775. # Save into config.log some information that might help in debugging.
  1776. {
  1777. echo
  1778. cat <<\_ASBOX
  1779. ## ---------------- ##
  1780. ## Cache variables. ##
  1781. ## ---------------- ##
  1782. _ASBOX
  1783. echo
  1784. # The following way of writing the cache mishandles newlines in values,
  1785. (
  1786. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1787. eval ac_val=\$$ac_var
  1788. case $ac_val in #(
  1789. *${as_nl}*)
  1790. case $ac_var in #(
  1791. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1792. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1793. esac
  1794. case $ac_var in #(
  1795. _ | IFS | as_nl) ;; #(
  1796. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1797. *) { eval $ac_var=; unset $ac_var;} ;;
  1798. esac ;;
  1799. esac
  1800. done
  1801. (set) 2>&1 |
  1802. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1803. *${as_nl}ac_space=\ *)
  1804. sed -n \
  1805. "s/'\''/'\''\\\\'\'''\''/g;
  1806. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1807. ;; #(
  1808. *)
  1809. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1810. ;;
  1811. esac |
  1812. sort
  1813. )
  1814. echo
  1815. cat <<\_ASBOX
  1816. ## ----------------- ##
  1817. ## Output variables. ##
  1818. ## ----------------- ##
  1819. _ASBOX
  1820. echo
  1821. for ac_var in $ac_subst_vars
  1822. do
  1823. eval ac_val=\$$ac_var
  1824. case $ac_val in
  1825. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1826. esac
  1827. $as_echo "$ac_var='\''$ac_val'\''"
  1828. done | sort
  1829. echo
  1830. if test -n "$ac_subst_files"; then
  1831. cat <<\_ASBOX
  1832. ## ------------------- ##
  1833. ## File substitutions. ##
  1834. ## ------------------- ##
  1835. _ASBOX
  1836. echo
  1837. for ac_var in $ac_subst_files
  1838. do
  1839. eval ac_val=\$$ac_var
  1840. case $ac_val in
  1841. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1842. esac
  1843. $as_echo "$ac_var='\''$ac_val'\''"
  1844. done | sort
  1845. echo
  1846. fi
  1847. if test -s confdefs.h; then
  1848. cat <<\_ASBOX
  1849. ## ----------- ##
  1850. ## confdefs.h. ##
  1851. ## ----------- ##
  1852. _ASBOX
  1853. echo
  1854. cat confdefs.h
  1855. echo
  1856. fi
  1857. test "$ac_signal" != 0 &&
  1858. $as_echo "$as_me: caught signal $ac_signal"
  1859. $as_echo "$as_me: exit $exit_status"
  1860. } >&5
  1861. rm -f core *.core core.conftest.* &&
  1862. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1863. exit $exit_status
  1864. ' 0
  1865. for ac_signal in 1 2 13 15; do
  1866. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1867. done
  1868. ac_signal=0
  1869. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1870. rm -f -r conftest* confdefs.h
  1871. $as_echo "/* confdefs.h */" > confdefs.h
  1872. # Predefined preprocessor variables.
  1873. cat >>confdefs.h <<_ACEOF
  1874. #define PACKAGE_NAME "$PACKAGE_NAME"
  1875. _ACEOF
  1876. cat >>confdefs.h <<_ACEOF
  1877. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1878. _ACEOF
  1879. cat >>confdefs.h <<_ACEOF
  1880. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1881. _ACEOF
  1882. cat >>confdefs.h <<_ACEOF
  1883. #define PACKAGE_STRING "$PACKAGE_STRING"
  1884. _ACEOF
  1885. cat >>confdefs.h <<_ACEOF
  1886. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1887. _ACEOF
  1888. cat >>confdefs.h <<_ACEOF
  1889. #define PACKAGE_URL "$PACKAGE_URL"
  1890. _ACEOF
  1891. # Let the site file select an alternate cache file if it wants to.
  1892. # Prefer an explicitly selected file to automatically selected ones.
  1893. ac_site_file1=NONE
  1894. ac_site_file2=NONE
  1895. if test -n "$CONFIG_SITE"; then
  1896. ac_site_file1=$CONFIG_SITE
  1897. elif test "x$prefix" != xNONE; then
  1898. ac_site_file1=$prefix/share/config.site
  1899. ac_site_file2=$prefix/etc/config.site
  1900. else
  1901. ac_site_file1=$ac_default_prefix/share/config.site
  1902. ac_site_file2=$ac_default_prefix/etc/config.site
  1903. fi
  1904. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1905. do
  1906. test "x$ac_site_file" = xNONE && continue
  1907. if test -r "$ac_site_file"; then
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1909. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1910. sed 's/^/| /' "$ac_site_file" >&5
  1911. . "$ac_site_file"
  1912. fi
  1913. done
  1914. if test -r "$cache_file"; then
  1915. # Some versions of bash will fail to source /dev/null (special
  1916. # files actually), so we avoid doing that.
  1917. if test -f "$cache_file"; then
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1919. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1920. case $cache_file in
  1921. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1922. *) . "./$cache_file";;
  1923. esac
  1924. fi
  1925. else
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1927. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1928. >$cache_file
  1929. fi
  1930. # Check that the precious variables saved in the cache have kept the same
  1931. # value.
  1932. ac_cache_corrupted=false
  1933. for ac_var in $ac_precious_vars; do
  1934. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1935. eval ac_new_set=\$ac_env_${ac_var}_set
  1936. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1937. eval ac_new_val=\$ac_env_${ac_var}_value
  1938. case $ac_old_set,$ac_new_set in
  1939. set,)
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1941. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1942. ac_cache_corrupted=: ;;
  1943. ,set)
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1945. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1946. ac_cache_corrupted=: ;;
  1947. ,);;
  1948. *)
  1949. if test "x$ac_old_val" != "x$ac_new_val"; then
  1950. # differences in whitespace do not lead to failure.
  1951. ac_old_val_w=`echo x $ac_old_val`
  1952. ac_new_val_w=`echo x $ac_new_val`
  1953. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1955. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1956. ac_cache_corrupted=:
  1957. else
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1959. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1960. eval $ac_var=\$ac_old_val
  1961. fi
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1963. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1965. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1966. fi;;
  1967. esac
  1968. # Pass precious variables to config.status.
  1969. if test "$ac_new_set" = set; then
  1970. case $ac_new_val in
  1971. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1972. *) ac_arg=$ac_var=$ac_new_val ;;
  1973. esac
  1974. case " $ac_configure_args " in
  1975. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1976. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1977. esac
  1978. fi
  1979. done
  1980. if $ac_cache_corrupted; then
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1984. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1985. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1986. fi
  1987. ## -------------------- ##
  1988. ## Main body of script. ##
  1989. ## -------------------- ##
  1990. ac_ext=c
  1991. ac_cpp='$CPP $CPPFLAGS'
  1992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1995. ac_config_headers="$ac_config_headers config.h"
  1996. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  1997. #
  1998. # You will slowly go insane if you do not grok the following fact: when
  1999. # building this library, the top-level /target/ becomes the library's /host/.
  2000. #
  2001. # configure then causes --target to default to --host, exactly like any
  2002. # other package using autoconf. Therefore, 'target' and 'host' will
  2003. # always be the same. This makes sense both for native and cross compilers
  2004. # just think about it for a little while. :-)
  2005. #
  2006. # Also, if this library is being configured as part of a cross compiler, the
  2007. # top-level configure script will pass the "real" host as $with_cross_host.
  2008. #
  2009. # Do not delete or change the following two lines. For why, see
  2010. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2011. ac_aux_dir=
  2012. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2013. for ac_t in install-sh install.sh shtool; do
  2014. if test -f "$ac_dir/$ac_t"; then
  2015. ac_aux_dir=$ac_dir
  2016. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2017. break 2
  2018. fi
  2019. done
  2020. done
  2021. if test -z "$ac_aux_dir"; then
  2022. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2023. fi
  2024. # These three variables are undocumented and unsupported,
  2025. # and are intended to be withdrawn in a future Autoconf release.
  2026. # They can cause serious problems if a builder's source tree is in a directory
  2027. # whose full name contains unusual characters.
  2028. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2029. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2030. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2031. # Make sure we can run config.sub.
  2032. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2033. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2035. $as_echo_n "checking build system type... " >&6; }
  2036. if test "${ac_cv_build+set}" = set; then :
  2037. $as_echo_n "(cached) " >&6
  2038. else
  2039. ac_build_alias=$build_alias
  2040. test "x$ac_build_alias" = x &&
  2041. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2042. test "x$ac_build_alias" = x &&
  2043. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2044. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2045. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2046. fi
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2048. $as_echo "$ac_cv_build" >&6; }
  2049. case $ac_cv_build in
  2050. *-*-*) ;;
  2051. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2052. esac
  2053. build=$ac_cv_build
  2054. ac_save_IFS=$IFS; IFS='-'
  2055. set x $ac_cv_build
  2056. shift
  2057. build_cpu=$1
  2058. build_vendor=$2
  2059. shift; shift
  2060. # Remember, the first character of IFS is used to create $*,
  2061. # except with old shells:
  2062. build_os=$*
  2063. IFS=$ac_save_IFS
  2064. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2066. $as_echo_n "checking host system type... " >&6; }
  2067. if test "${ac_cv_host+set}" = set; then :
  2068. $as_echo_n "(cached) " >&6
  2069. else
  2070. if test "x$host_alias" = x; then
  2071. ac_cv_host=$ac_cv_build
  2072. else
  2073. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2074. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2075. fi
  2076. fi
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2078. $as_echo "$ac_cv_host" >&6; }
  2079. case $ac_cv_host in
  2080. *-*-*) ;;
  2081. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2082. esac
  2083. host=$ac_cv_host
  2084. ac_save_IFS=$IFS; IFS='-'
  2085. set x $ac_cv_host
  2086. shift
  2087. host_cpu=$1
  2088. host_vendor=$2
  2089. shift; shift
  2090. # Remember, the first character of IFS is used to create $*,
  2091. # except with old shells:
  2092. host_os=$*
  2093. IFS=$ac_save_IFS
  2094. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2096. $as_echo_n "checking target system type... " >&6; }
  2097. if test "${ac_cv_target+set}" = set; then :
  2098. $as_echo_n "(cached) " >&6
  2099. else
  2100. if test "x$target_alias" = x; then
  2101. ac_cv_target=$ac_cv_host
  2102. else
  2103. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2104. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2105. fi
  2106. fi
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2108. $as_echo "$ac_cv_target" >&6; }
  2109. case $ac_cv_target in
  2110. *-*-*) ;;
  2111. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2112. esac
  2113. target=$ac_cv_target
  2114. ac_save_IFS=$IFS; IFS='-'
  2115. set x $ac_cv_target
  2116. shift
  2117. target_cpu=$1
  2118. target_vendor=$2
  2119. shift; shift
  2120. # Remember, the first character of IFS is used to create $*,
  2121. # except with old shells:
  2122. target_os=$*
  2123. IFS=$ac_save_IFS
  2124. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2125. # The aliases save the names the user supplied, while $host etc.
  2126. # will get canonicalized.
  2127. test -n "$target_alias" &&
  2128. test "$program_prefix$program_suffix$program_transform_name" = \
  2129. NONENONEs,x,x, &&
  2130. program_prefix=${target_alias}-
  2131. case ${build_alias} in
  2132. "") build_noncanonical=${build} ;;
  2133. *) build_noncanonical=${build_alias} ;;
  2134. esac
  2135. case ${host_alias} in
  2136. "") host_noncanonical=${build_noncanonical} ;;
  2137. *) host_noncanonical=${host_alias} ;;
  2138. esac
  2139. case ${target_alias} in
  2140. "") target_noncanonical=${host_noncanonical} ;;
  2141. *) target_noncanonical=${target_alias} ;;
  2142. esac
  2143. # Default to --enable-multilib
  2144. # Check whether --enable-multilib was given.
  2145. if test "${enable_multilib+set}" = set; then :
  2146. enableval=$enable_multilib; case "$enableval" in
  2147. yes) multilib=yes ;;
  2148. no) multilib=no ;;
  2149. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2150. esac
  2151. else
  2152. multilib=yes
  2153. fi
  2154. # We may get other options which we leave undocumented:
  2155. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2156. # See config-ml.in if you want the gory details.
  2157. if test "$srcdir" = "."; then
  2158. if test "$with_target_subdir" != "."; then
  2159. multi_basedir="$srcdir/$with_multisrctop../.."
  2160. else
  2161. multi_basedir="$srcdir/$with_multisrctop.."
  2162. fi
  2163. else
  2164. multi_basedir="$srcdir/.."
  2165. fi
  2166. # Even if the default multilib is not a cross compilation,
  2167. # it may be that some of the other multilibs are.
  2168. if test $cross_compiling = no && test $multilib = yes \
  2169. && test "x${with_multisubdir}" != x ; then
  2170. cross_compiling=maybe
  2171. fi
  2172. ac_config_commands="$ac_config_commands default-1"
  2173. target_alias=${target_alias-$host_alias}
  2174. am__api_version='1.11'
  2175. # Find a good install program. We prefer a C program (faster),
  2176. # so one script is as good as another. But avoid the broken or
  2177. # incompatible versions:
  2178. # SysV /etc/install, /usr/sbin/install
  2179. # SunOS /usr/etc/install
  2180. # IRIX /sbin/install
  2181. # AIX /bin/install
  2182. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2183. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2184. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2185. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2186. # OS/2's system install, which has a completely different semantic
  2187. # ./install, which can be erroneously created by make from ./install.sh.
  2188. # Reject install programs that cannot install multiple files.
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2190. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2191. if test -z "$INSTALL"; then
  2192. if test "${ac_cv_path_install+set}" = set; then :
  2193. $as_echo_n "(cached) " >&6
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. # Account for people who put trailing slashes in PATH elements.
  2201. case $as_dir/ in #((
  2202. ./ | .// | /[cC]/* | \
  2203. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2204. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2205. /usr/ucb/* ) ;;
  2206. *)
  2207. # OSF1 and SCO ODT 3.0 have their own names for install.
  2208. # Don't use installbsd from OSF since it installs stuff as root
  2209. # by default.
  2210. for ac_prog in ginstall scoinst install; do
  2211. for ac_exec_ext in '' $ac_executable_extensions; do
  2212. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2213. if test $ac_prog = install &&
  2214. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2215. # AIX install. It has an incompatible calling convention.
  2216. :
  2217. elif test $ac_prog = install &&
  2218. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2219. # program-specific install script used by HP pwplus--don't use.
  2220. :
  2221. else
  2222. rm -rf conftest.one conftest.two conftest.dir
  2223. echo one > conftest.one
  2224. echo two > conftest.two
  2225. mkdir conftest.dir
  2226. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2227. test -s conftest.one && test -s conftest.two &&
  2228. test -s conftest.dir/conftest.one &&
  2229. test -s conftest.dir/conftest.two
  2230. then
  2231. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2232. break 3
  2233. fi
  2234. fi
  2235. fi
  2236. done
  2237. done
  2238. ;;
  2239. esac
  2240. done
  2241. IFS=$as_save_IFS
  2242. rm -rf conftest.one conftest.two conftest.dir
  2243. fi
  2244. if test "${ac_cv_path_install+set}" = set; then
  2245. INSTALL=$ac_cv_path_install
  2246. else
  2247. # As a last resort, use the slow shell script. Don't cache a
  2248. # value for INSTALL within a source directory, because that will
  2249. # break other packages using the cache if that directory is
  2250. # removed, or if the value is a relative name.
  2251. INSTALL=$ac_install_sh
  2252. fi
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2255. $as_echo "$INSTALL" >&6; }
  2256. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2257. # It thinks the first close brace ends the variable substitution.
  2258. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2259. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2260. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2262. $as_echo_n "checking whether build environment is sane... " >&6; }
  2263. # Just in case
  2264. sleep 1
  2265. echo timestamp > conftest.file
  2266. # Reject unsafe characters in $srcdir or the absolute working directory
  2267. # name. Accept space and tab only in the latter.
  2268. am_lf='
  2269. '
  2270. case `pwd` in
  2271. *[\\\"\#\$\&\'\`$am_lf]*)
  2272. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2273. esac
  2274. case $srcdir in
  2275. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2276. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2277. esac
  2278. # Do `set' in a subshell so we don't clobber the current shell's
  2279. # arguments. Must try -L first in case configure is actually a
  2280. # symlink; some systems play weird games with the mod time of symlinks
  2281. # (eg FreeBSD returns the mod time of the symlink's containing
  2282. # directory).
  2283. if (
  2284. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2285. if test "$*" = "X"; then
  2286. # -L didn't work.
  2287. set X `ls -t "$srcdir/configure" conftest.file`
  2288. fi
  2289. rm -f conftest.file
  2290. if test "$*" != "X $srcdir/configure conftest.file" \
  2291. && test "$*" != "X conftest.file $srcdir/configure"; then
  2292. # If neither matched, then we have a broken ls. This can happen
  2293. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2294. # broken ls alias from the environment. This has actually
  2295. # happened. Such a system could not be considered "sane".
  2296. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2297. alias in your environment" "$LINENO" 5
  2298. fi
  2299. test "$2" = conftest.file
  2300. )
  2301. then
  2302. # Ok.
  2303. :
  2304. else
  2305. as_fn_error "newly created file is older than distributed files!
  2306. Check your system clock" "$LINENO" 5
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2309. $as_echo "yes" >&6; }
  2310. test "$program_prefix" != NONE &&
  2311. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2312. # Use a double $ so make ignores it.
  2313. test "$program_suffix" != NONE &&
  2314. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2315. # Double any \ or $.
  2316. # By default was `s,x,x', remove it if useless.
  2317. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2318. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2319. # expand $ac_aux_dir to an absolute path
  2320. am_aux_dir=`cd $ac_aux_dir && pwd`
  2321. if test x"${MISSING+set}" != xset; then
  2322. case $am_aux_dir in
  2323. *\ * | *\ *)
  2324. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2325. *)
  2326. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2327. esac
  2328. fi
  2329. # Use eval to expand $SHELL
  2330. if eval "$MISSING --run true"; then
  2331. am_missing_run="$MISSING --run "
  2332. else
  2333. am_missing_run=
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2335. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2336. fi
  2337. if test x"${install_sh}" != xset; then
  2338. case $am_aux_dir in
  2339. *\ * | *\ *)
  2340. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2341. *)
  2342. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2343. esac
  2344. fi
  2345. # Installed binaries are usually stripped using `strip' when the user
  2346. # run `make install-strip'. However `strip' might not be the right
  2347. # tool to use in cross-compilation environments, therefore Automake
  2348. # will honor the `STRIP' environment variable to overrule this program.
  2349. if test "$cross_compiling" != no; then
  2350. if test -n "$ac_tool_prefix"; then
  2351. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2352. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2354. $as_echo_n "checking for $ac_word... " >&6; }
  2355. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2356. $as_echo_n "(cached) " >&6
  2357. else
  2358. if test -n "$STRIP"; then
  2359. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2360. else
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. test -z "$as_dir" && as_dir=.
  2366. for ac_exec_ext in '' $ac_executable_extensions; do
  2367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2368. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2370. break 2
  2371. fi
  2372. done
  2373. done
  2374. IFS=$as_save_IFS
  2375. fi
  2376. fi
  2377. STRIP=$ac_cv_prog_STRIP
  2378. if test -n "$STRIP"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2380. $as_echo "$STRIP" >&6; }
  2381. else
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2383. $as_echo "no" >&6; }
  2384. fi
  2385. fi
  2386. if test -z "$ac_cv_prog_STRIP"; then
  2387. ac_ct_STRIP=$STRIP
  2388. # Extract the first word of "strip", so it can be a program name with args.
  2389. set dummy strip; ac_word=$2
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2391. $as_echo_n "checking for $ac_word... " >&6; }
  2392. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. if test -n "$ac_ct_STRIP"; then
  2396. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2405. ac_cv_prog_ac_ct_STRIP="strip"
  2406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2407. break 2
  2408. fi
  2409. done
  2410. done
  2411. IFS=$as_save_IFS
  2412. fi
  2413. fi
  2414. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2415. if test -n "$ac_ct_STRIP"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2417. $as_echo "$ac_ct_STRIP" >&6; }
  2418. else
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2420. $as_echo "no" >&6; }
  2421. fi
  2422. if test "x$ac_ct_STRIP" = x; then
  2423. STRIP=":"
  2424. else
  2425. case $cross_compiling:$ac_tool_warned in
  2426. yes:)
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2429. ac_tool_warned=yes ;;
  2430. esac
  2431. STRIP=$ac_ct_STRIP
  2432. fi
  2433. else
  2434. STRIP="$ac_cv_prog_STRIP"
  2435. fi
  2436. fi
  2437. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2439. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2440. if test -z "$MKDIR_P"; then
  2441. if test "${ac_cv_path_mkdir+set}" = set; then :
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_prog in mkdir gmkdir; do
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2452. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2453. 'mkdir (GNU coreutils) '* | \
  2454. 'mkdir (coreutils) '* | \
  2455. 'mkdir (fileutils) '4.1*)
  2456. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2457. break 3;;
  2458. esac
  2459. done
  2460. done
  2461. done
  2462. IFS=$as_save_IFS
  2463. fi
  2464. if test "${ac_cv_path_mkdir+set}" = set; then
  2465. MKDIR_P="$ac_cv_path_mkdir -p"
  2466. else
  2467. # As a last resort, use the slow shell script. Don't cache a
  2468. # value for MKDIR_P within a source directory, because that will
  2469. # break other packages using the cache if that directory is
  2470. # removed, or if the value is a relative name.
  2471. test -d ./--version && rmdir ./--version
  2472. MKDIR_P="$ac_install_sh -d"
  2473. fi
  2474. fi
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2476. $as_echo "$MKDIR_P" >&6; }
  2477. mkdir_p="$MKDIR_P"
  2478. case $mkdir_p in
  2479. [\\/$]* | ?:[\\/]*) ;;
  2480. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2481. esac
  2482. for ac_prog in gawk mawk nawk awk
  2483. do
  2484. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2485. set dummy $ac_prog; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if test "${ac_cv_prog_AWK+set}" = set; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$AWK"; then
  2492. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2501. ac_cv_prog_AWK="$ac_prog"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. AWK=$ac_cv_prog_AWK
  2511. if test -n "$AWK"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2513. $as_echo "$AWK" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. test -n "$AWK" && break
  2519. done
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2521. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2522. set x ${MAKE-make}
  2523. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2524. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2525. $as_echo_n "(cached) " >&6
  2526. else
  2527. cat >conftest.make <<\_ACEOF
  2528. SHELL = /bin/sh
  2529. all:
  2530. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2531. _ACEOF
  2532. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2533. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2534. *@@@%%%=?*=@@@%%%*)
  2535. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2536. *)
  2537. eval ac_cv_prog_make_${ac_make}_set=no;;
  2538. esac
  2539. rm -f conftest.make
  2540. fi
  2541. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2543. $as_echo "yes" >&6; }
  2544. SET_MAKE=
  2545. else
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2547. $as_echo "no" >&6; }
  2548. SET_MAKE="MAKE=${MAKE-make}"
  2549. fi
  2550. rm -rf .tst 2>/dev/null
  2551. mkdir .tst 2>/dev/null
  2552. if test -d .tst; then
  2553. am__leading_dot=.
  2554. else
  2555. am__leading_dot=_
  2556. fi
  2557. rmdir .tst 2>/dev/null
  2558. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2559. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2560. # is not polluted with repeated "-I."
  2561. am__isrc=' -I$(srcdir)'
  2562. # test to see if srcdir already configured
  2563. if test -f $srcdir/config.status; then
  2564. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2565. fi
  2566. fi
  2567. # test whether we have cygpath
  2568. if test -z "$CYGPATH_W"; then
  2569. if (cygpath --version) >/dev/null 2>/dev/null; then
  2570. CYGPATH_W='cygpath -w'
  2571. else
  2572. CYGPATH_W=echo
  2573. fi
  2574. fi
  2575. # Define the identity of the package.
  2576. PACKAGE='libquadmath'
  2577. VERSION='0.1'
  2578. cat >>confdefs.h <<_ACEOF
  2579. #define PACKAGE "$PACKAGE"
  2580. _ACEOF
  2581. cat >>confdefs.h <<_ACEOF
  2582. #define VERSION "$VERSION"
  2583. _ACEOF
  2584. # Some tools Automake needs.
  2585. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2586. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2587. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2588. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2589. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2590. # We need awk for the "check" target. The system "awk" is bad on
  2591. # some platforms.
  2592. # Always define AMTAR for backward compatibility.
  2593. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2594. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2596. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2597. # Check whether --enable-version-specific-runtime-libs was given.
  2598. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2599. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2600. yes) version_specific_libs=yes ;;
  2601. no) version_specific_libs=no ;;
  2602. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2603. esac
  2604. else
  2605. version_specific_libs=no
  2606. fi
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2608. $as_echo "$version_specific_libs" >&6; }
  2609. DEPDIR="${am__leading_dot}deps"
  2610. ac_config_commands="$ac_config_commands depfiles"
  2611. am_make=${MAKE-make}
  2612. cat > confinc << 'END'
  2613. am__doit:
  2614. @echo this is the am__doit target
  2615. .PHONY: am__doit
  2616. END
  2617. # If we don't find an include directive, just comment out the code.
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2619. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2620. am__include="#"
  2621. am__quote=
  2622. _am_result=none
  2623. # First try GNU make style include.
  2624. echo "include confinc" > confmf
  2625. # Ignore all kinds of additional output from `make'.
  2626. case `$am_make -s -f confmf 2> /dev/null` in #(
  2627. *the\ am__doit\ target*)
  2628. am__include=include
  2629. am__quote=
  2630. _am_result=GNU
  2631. ;;
  2632. esac
  2633. # Now try BSD make style include.
  2634. if test "$am__include" = "#"; then
  2635. echo '.include "confinc"' > confmf
  2636. case `$am_make -s -f confmf 2> /dev/null` in #(
  2637. *the\ am__doit\ target*)
  2638. am__include=.include
  2639. am__quote="\""
  2640. _am_result=BSD
  2641. ;;
  2642. esac
  2643. fi
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2645. $as_echo "$_am_result" >&6; }
  2646. rm -f confinc confmf
  2647. # Check whether --enable-dependency-tracking was given.
  2648. if test "${enable_dependency_tracking+set}" = set; then :
  2649. enableval=$enable_dependency_tracking;
  2650. fi
  2651. if test "x$enable_dependency_tracking" != xno; then
  2652. am_depcomp="$ac_aux_dir/depcomp"
  2653. AMDEPBACKSLASH='\'
  2654. fi
  2655. if test "x$enable_dependency_tracking" != xno; then
  2656. AMDEP_TRUE=
  2657. AMDEP_FALSE='#'
  2658. else
  2659. AMDEP_TRUE='#'
  2660. AMDEP_FALSE=
  2661. fi
  2662. ac_ext=c
  2663. ac_cpp='$CPP $CPPFLAGS'
  2664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2667. if test -n "$ac_tool_prefix"; then
  2668. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2669. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2671. $as_echo_n "checking for $ac_word... " >&6; }
  2672. if test "${ac_cv_prog_CC+set}" = set; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. if test -n "$CC"; then
  2676. ac_cv_prog_CC="$CC" # Let the user override the test.
  2677. else
  2678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2679. for as_dir in $PATH
  2680. do
  2681. IFS=$as_save_IFS
  2682. test -z "$as_dir" && as_dir=.
  2683. for ac_exec_ext in '' $ac_executable_extensions; do
  2684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2685. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2687. break 2
  2688. fi
  2689. done
  2690. done
  2691. IFS=$as_save_IFS
  2692. fi
  2693. fi
  2694. CC=$ac_cv_prog_CC
  2695. if test -n "$CC"; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2697. $as_echo "$CC" >&6; }
  2698. else
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2700. $as_echo "no" >&6; }
  2701. fi
  2702. fi
  2703. if test -z "$ac_cv_prog_CC"; then
  2704. ac_ct_CC=$CC
  2705. # Extract the first word of "gcc", so it can be a program name with args.
  2706. set dummy gcc; ac_word=$2
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2708. $as_echo_n "checking for $ac_word... " >&6; }
  2709. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. if test -n "$ac_ct_CC"; then
  2713. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2714. else
  2715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2716. for as_dir in $PATH
  2717. do
  2718. IFS=$as_save_IFS
  2719. test -z "$as_dir" && as_dir=.
  2720. for ac_exec_ext in '' $ac_executable_extensions; do
  2721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2722. ac_cv_prog_ac_ct_CC="gcc"
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2724. break 2
  2725. fi
  2726. done
  2727. done
  2728. IFS=$as_save_IFS
  2729. fi
  2730. fi
  2731. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2732. if test -n "$ac_ct_CC"; then
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2734. $as_echo "$ac_ct_CC" >&6; }
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2737. $as_echo "no" >&6; }
  2738. fi
  2739. if test "x$ac_ct_CC" = x; then
  2740. CC=""
  2741. else
  2742. case $cross_compiling:$ac_tool_warned in
  2743. yes:)
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2746. ac_tool_warned=yes ;;
  2747. esac
  2748. CC=$ac_ct_CC
  2749. fi
  2750. else
  2751. CC="$ac_cv_prog_CC"
  2752. fi
  2753. if test -z "$CC"; then
  2754. if test -n "$ac_tool_prefix"; then
  2755. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2756. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if test "${ac_cv_prog_CC+set}" = set; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$CC"; then
  2763. ac_cv_prog_CC="$CC" # Let the user override the test.
  2764. else
  2765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766. for as_dir in $PATH
  2767. do
  2768. IFS=$as_save_IFS
  2769. test -z "$as_dir" && as_dir=.
  2770. for ac_exec_ext in '' $ac_executable_extensions; do
  2771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2772. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. break 2
  2775. fi
  2776. done
  2777. done
  2778. IFS=$as_save_IFS
  2779. fi
  2780. fi
  2781. CC=$ac_cv_prog_CC
  2782. if test -n "$CC"; then
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2784. $as_echo "$CC" >&6; }
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. fi
  2789. fi
  2790. fi
  2791. if test -z "$CC"; then
  2792. # Extract the first word of "cc", so it can be a program name with args.
  2793. set dummy cc; ac_word=$2
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2795. $as_echo_n "checking for $ac_word... " >&6; }
  2796. if test "${ac_cv_prog_CC+set}" = set; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. if test -n "$CC"; then
  2800. ac_cv_prog_CC="$CC" # Let the user override the test.
  2801. else
  2802. ac_prog_rejected=no
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2810. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2811. ac_prog_rejected=yes
  2812. continue
  2813. fi
  2814. ac_cv_prog_CC="cc"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821. if test $ac_prog_rejected = yes; then
  2822. # We found a bogon in the path, so make sure we never use it.
  2823. set dummy $ac_cv_prog_CC
  2824. shift
  2825. if test $# != 0; then
  2826. # We chose a different compiler from the bogus one.
  2827. # However, it has the same basename, so the bogon will be chosen
  2828. # first if we set CC to just the basename; use the full file name.
  2829. shift
  2830. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2831. fi
  2832. fi
  2833. fi
  2834. fi
  2835. CC=$ac_cv_prog_CC
  2836. if test -n "$CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2838. $as_echo "$CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. fi
  2844. if test -z "$CC"; then
  2845. if test -n "$ac_tool_prefix"; then
  2846. for ac_prog in cl.exe
  2847. do
  2848. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2849. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2851. $as_echo_n "checking for $ac_word... " >&6; }
  2852. if test "${ac_cv_prog_CC+set}" = set; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -n "$CC"; then
  2856. ac_cv_prog_CC="$CC" # Let the user override the test.
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2865. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. fi
  2873. fi
  2874. CC=$ac_cv_prog_CC
  2875. if test -n "$CC"; then
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2877. $as_echo "$CC" >&6; }
  2878. else
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2880. $as_echo "no" >&6; }
  2881. fi
  2882. test -n "$CC" && break
  2883. done
  2884. fi
  2885. if test -z "$CC"; then
  2886. ac_ct_CC=$CC
  2887. for ac_prog in cl.exe
  2888. do
  2889. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2890. set dummy $ac_prog; ac_word=$2
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2892. $as_echo_n "checking for $ac_word... " >&6; }
  2893. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test -n "$ac_ct_CC"; then
  2897. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2898. else
  2899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. for as_dir in $PATH
  2901. do
  2902. IFS=$as_save_IFS
  2903. test -z "$as_dir" && as_dir=.
  2904. for ac_exec_ext in '' $ac_executable_extensions; do
  2905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2906. ac_cv_prog_ac_ct_CC="$ac_prog"
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2908. break 2
  2909. fi
  2910. done
  2911. done
  2912. IFS=$as_save_IFS
  2913. fi
  2914. fi
  2915. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2916. if test -n "$ac_ct_CC"; then
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2918. $as_echo "$ac_ct_CC" >&6; }
  2919. else
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2921. $as_echo "no" >&6; }
  2922. fi
  2923. test -n "$ac_ct_CC" && break
  2924. done
  2925. if test "x$ac_ct_CC" = x; then
  2926. CC=""
  2927. else
  2928. case $cross_compiling:$ac_tool_warned in
  2929. yes:)
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2932. ac_tool_warned=yes ;;
  2933. esac
  2934. CC=$ac_ct_CC
  2935. fi
  2936. fi
  2937. fi
  2938. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2940. as_fn_error "no acceptable C compiler found in \$PATH
  2941. See \`config.log' for more details." "$LINENO" 5; }
  2942. # Provide some information about the compiler.
  2943. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2944. set X $ac_compile
  2945. ac_compiler=$2
  2946. for ac_option in --version -v -V -qversion; do
  2947. { { ac_try="$ac_compiler $ac_option >&5"
  2948. case "(($ac_try" in
  2949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2950. *) ac_try_echo=$ac_try;;
  2951. esac
  2952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2953. $as_echo "$ac_try_echo"; } >&5
  2954. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2955. ac_status=$?
  2956. if test -s conftest.err; then
  2957. sed '10a\
  2958. ... rest of stderr output deleted ...
  2959. 10q' conftest.err >conftest.er1
  2960. cat conftest.er1 >&5
  2961. rm -f conftest.er1 conftest.err
  2962. fi
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2964. test $ac_status = 0; }
  2965. done
  2966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. ;
  2972. return 0;
  2973. }
  2974. _ACEOF
  2975. # FIXME: Cleanup?
  2976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2977. (eval $ac_link) 2>&5
  2978. ac_status=$?
  2979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2980. test $ac_status = 0; }; then :
  2981. gcc_no_link=no
  2982. else
  2983. gcc_no_link=yes
  2984. fi
  2985. if test x$gcc_no_link = xyes; then
  2986. # Setting cross_compile will disable run tests; it will
  2987. # also disable AC_CHECK_FILE but that's generally
  2988. # correct if we can't link.
  2989. cross_compiling=yes
  2990. EXEEXT=
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. ac_clean_files_save=$ac_clean_files
  3002. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3003. # Try to create an executable without -o first, disregard a.out.
  3004. # It will help us diagnose broken compilers, and finding out an intuition
  3005. # of exeext.
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3007. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3008. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3009. # The possible output files:
  3010. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3011. ac_rmfiles=
  3012. for ac_file in $ac_files
  3013. do
  3014. case $ac_file in
  3015. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3016. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3017. esac
  3018. done
  3019. rm -f $ac_rmfiles
  3020. if { { ac_try="$ac_link_default"
  3021. case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo"; } >&5
  3027. (eval "$ac_link_default") 2>&5
  3028. ac_status=$?
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3030. test $ac_status = 0; }; then :
  3031. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3032. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3033. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3034. # so that the user can short-circuit this test for compilers unknown to
  3035. # Autoconf.
  3036. for ac_file in $ac_files ''
  3037. do
  3038. test -f "$ac_file" || continue
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3041. ;;
  3042. [ab].out )
  3043. # We found the default executable, but exeext='' is most
  3044. # certainly right.
  3045. break;;
  3046. *.* )
  3047. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3048. then :; else
  3049. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3050. fi
  3051. # We set ac_cv_exeext here because the later test for it is not
  3052. # safe: cross compilers may not add the suffix if given an `-o'
  3053. # argument, so we may need to know it at that point already.
  3054. # Even if this section looks crufty: it has the advantage of
  3055. # actually working.
  3056. break;;
  3057. * )
  3058. break;;
  3059. esac
  3060. done
  3061. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3062. else
  3063. ac_file=''
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3066. $as_echo "$ac_file" >&6; }
  3067. if test -z "$ac_file"; then :
  3068. $as_echo "$as_me: failed program was:" >&5
  3069. sed 's/^/| /' conftest.$ac_ext >&5
  3070. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3071. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3072. { as_fn_set_status 77
  3073. as_fn_error "C compiler cannot create executables
  3074. See \`config.log' for more details." "$LINENO" 5; }; }
  3075. fi
  3076. ac_exeext=$ac_cv_exeext
  3077. # Check that the compiler produces executables we can run. If not, either
  3078. # the compiler is broken, or we cross compile.
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3080. $as_echo_n "checking whether the C compiler works... " >&6; }
  3081. # If not cross compiling, check that we can run a simple program.
  3082. if test "$cross_compiling" != yes; then
  3083. if { ac_try='./$ac_file'
  3084. { { case "(($ac_try" in
  3085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3086. *) ac_try_echo=$ac_try;;
  3087. esac
  3088. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3089. $as_echo "$ac_try_echo"; } >&5
  3090. (eval "$ac_try") 2>&5
  3091. ac_status=$?
  3092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3093. test $ac_status = 0; }; }; then
  3094. cross_compiling=no
  3095. else
  3096. if test "$cross_compiling" = maybe; then
  3097. cross_compiling=yes
  3098. else
  3099. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3101. as_fn_error "cannot run C compiled programs.
  3102. If you meant to cross compile, use \`--host'.
  3103. See \`config.log' for more details." "$LINENO" 5; }
  3104. fi
  3105. fi
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3108. $as_echo "yes" >&6; }
  3109. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3110. ac_clean_files=$ac_clean_files_save
  3111. # Check that the compiler produces executables we can run. If not, either
  3112. # the compiler is broken, or we cross compile.
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3114. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3116. $as_echo "$cross_compiling" >&6; }
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3118. $as_echo_n "checking for suffix of executables... " >&6; }
  3119. if { { ac_try="$ac_link"
  3120. case "(($ac_try" in
  3121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3122. *) ac_try_echo=$ac_try;;
  3123. esac
  3124. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3125. $as_echo "$ac_try_echo"; } >&5
  3126. (eval "$ac_link") 2>&5
  3127. ac_status=$?
  3128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3129. test $ac_status = 0; }; then :
  3130. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3131. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3132. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3133. # `rm'.
  3134. for ac_file in conftest.exe conftest conftest.*; do
  3135. test -f "$ac_file" || continue
  3136. case $ac_file in
  3137. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3138. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3139. break;;
  3140. * ) break;;
  3141. esac
  3142. done
  3143. else
  3144. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3146. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3147. See \`config.log' for more details." "$LINENO" 5; }
  3148. fi
  3149. rm -f conftest$ac_cv_exeext
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3151. $as_echo "$ac_cv_exeext" >&6; }
  3152. rm -f conftest.$ac_ext
  3153. EXEEXT=$ac_cv_exeext
  3154. ac_exeext=$EXEEXT
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3157. $as_echo_n "checking for suffix of object files... " >&6; }
  3158. if test "${ac_cv_objext+set}" = set; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3162. /* end confdefs.h. */
  3163. int
  3164. main ()
  3165. {
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. rm -f conftest.o conftest.obj
  3171. if { { ac_try="$ac_compile"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo"; } >&5
  3178. (eval "$ac_compile") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3181. test $ac_status = 0; }; then :
  3182. for ac_file in conftest.o conftest.obj conftest.*; do
  3183. test -f "$ac_file" || continue;
  3184. case $ac_file in
  3185. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3186. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3187. break;;
  3188. esac
  3189. done
  3190. else
  3191. $as_echo "$as_me: failed program was:" >&5
  3192. sed 's/^/| /' conftest.$ac_ext >&5
  3193. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3195. as_fn_error "cannot compute suffix of object files: cannot compile
  3196. See \`config.log' for more details." "$LINENO" 5; }
  3197. fi
  3198. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3201. $as_echo "$ac_cv_objext" >&6; }
  3202. OBJEXT=$ac_cv_objext
  3203. ac_objext=$OBJEXT
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3205. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3206. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. #ifndef __GNUC__
  3215. choke me
  3216. #endif
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. if ac_fn_c_try_compile "$LINENO"; then :
  3222. ac_compiler_gnu=yes
  3223. else
  3224. ac_compiler_gnu=no
  3225. fi
  3226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3230. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3231. if test $ac_compiler_gnu = yes; then
  3232. GCC=yes
  3233. else
  3234. GCC=
  3235. fi
  3236. ac_test_CFLAGS=${CFLAGS+set}
  3237. ac_save_CFLAGS=$CFLAGS
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3239. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3240. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3241. $as_echo_n "(cached) " >&6
  3242. else
  3243. ac_save_c_werror_flag=$ac_c_werror_flag
  3244. ac_c_werror_flag=yes
  3245. ac_cv_prog_cc_g=no
  3246. CFLAGS="-g"
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. int
  3250. main ()
  3251. {
  3252. ;
  3253. return 0;
  3254. }
  3255. _ACEOF
  3256. if ac_fn_c_try_compile "$LINENO"; then :
  3257. ac_cv_prog_cc_g=yes
  3258. else
  3259. CFLAGS=""
  3260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. /* end confdefs.h. */
  3262. int
  3263. main ()
  3264. {
  3265. ;
  3266. return 0;
  3267. }
  3268. _ACEOF
  3269. if ac_fn_c_try_compile "$LINENO"; then :
  3270. else
  3271. ac_c_werror_flag=$ac_save_c_werror_flag
  3272. CFLAGS="-g"
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. int
  3276. main ()
  3277. {
  3278. ;
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. if ac_fn_c_try_compile "$LINENO"; then :
  3283. ac_cv_prog_cc_g=yes
  3284. fi
  3285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3286. fi
  3287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. ac_c_werror_flag=$ac_save_c_werror_flag
  3291. fi
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3293. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3294. if test "$ac_test_CFLAGS" = set; then
  3295. CFLAGS=$ac_save_CFLAGS
  3296. elif test $ac_cv_prog_cc_g = yes; then
  3297. if test "$GCC" = yes; then
  3298. CFLAGS="-g -O2"
  3299. else
  3300. CFLAGS="-g"
  3301. fi
  3302. else
  3303. if test "$GCC" = yes; then
  3304. CFLAGS="-O2"
  3305. else
  3306. CFLAGS=
  3307. fi
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3310. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3311. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. ac_cv_prog_cc_c89=no
  3315. ac_save_CC=$CC
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. #include <stdarg.h>
  3319. #include <stdio.h>
  3320. #include <sys/types.h>
  3321. #include <sys/stat.h>
  3322. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3323. struct buf { int x; };
  3324. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3325. static char *e (p, i)
  3326. char **p;
  3327. int i;
  3328. {
  3329. return p[i];
  3330. }
  3331. static char *f (char * (*g) (char **, int), char **p, ...)
  3332. {
  3333. char *s;
  3334. va_list v;
  3335. va_start (v,p);
  3336. s = g (p, va_arg (v,int));
  3337. va_end (v);
  3338. return s;
  3339. }
  3340. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3341. function prototypes and stuff, but not '\xHH' hex character constants.
  3342. These don't provoke an error unfortunately, instead are silently treated
  3343. as 'x'. The following induces an error, until -std is added to get
  3344. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3345. array size at least. It's necessary to write '\x00'==0 to get something
  3346. that's true only with -std. */
  3347. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3348. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3349. inside strings and character constants. */
  3350. #define FOO(x) 'x'
  3351. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3352. int test (int i, double x);
  3353. struct s1 {int (*f) (int a);};
  3354. struct s2 {int (*f) (double a);};
  3355. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3356. int argc;
  3357. char **argv;
  3358. int
  3359. main ()
  3360. {
  3361. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3362. ;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3367. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3368. do
  3369. CC="$ac_save_CC $ac_arg"
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. ac_cv_prog_cc_c89=$ac_arg
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext
  3374. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3375. done
  3376. rm -f conftest.$ac_ext
  3377. CC=$ac_save_CC
  3378. fi
  3379. # AC_CACHE_VAL
  3380. case "x$ac_cv_prog_cc_c89" in
  3381. x)
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3383. $as_echo "none needed" >&6; } ;;
  3384. xno)
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3386. $as_echo "unsupported" >&6; } ;;
  3387. *)
  3388. CC="$CC $ac_cv_prog_cc_c89"
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3390. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3391. esac
  3392. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3393. fi
  3394. ac_ext=c
  3395. ac_cpp='$CPP $CPPFLAGS'
  3396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3399. depcc="$CC" am_compiler_list=
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3401. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3402. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3406. # We make a subdir and do the tests there. Otherwise we can end up
  3407. # making bogus files that we don't know about and never remove. For
  3408. # instance it was reported that on HP-UX the gcc test will end up
  3409. # making a dummy file named `D' -- because `-MD' means `put the output
  3410. # in D'.
  3411. mkdir conftest.dir
  3412. # Copy depcomp to subdir because otherwise we won't find it if we're
  3413. # using a relative directory.
  3414. cp "$am_depcomp" conftest.dir
  3415. cd conftest.dir
  3416. # We will build objects and dependencies in a subdirectory because
  3417. # it helps to detect inapplicable dependency modes. For instance
  3418. # both Tru64's cc and ICC support -MD to output dependencies as a
  3419. # side effect of compilation, but ICC will put the dependencies in
  3420. # the current directory while Tru64 will put them in the object
  3421. # directory.
  3422. mkdir sub
  3423. am_cv_CC_dependencies_compiler_type=none
  3424. if test "$am_compiler_list" = ""; then
  3425. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3426. fi
  3427. am__universal=false
  3428. case " $depcc " in #(
  3429. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3430. esac
  3431. for depmode in $am_compiler_list; do
  3432. # Setup a source with many dependencies, because some compilers
  3433. # like to wrap large dependency lists on column 80 (with \), and
  3434. # we should not choose a depcomp mode which is confused by this.
  3435. #
  3436. # We need to recreate these files for each test, as the compiler may
  3437. # overwrite some of them when testing with obscure command lines.
  3438. # This happens at least with the AIX C compiler.
  3439. : > sub/conftest.c
  3440. for i in 1 2 3 4 5 6; do
  3441. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3442. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3443. # Solaris 8's {/usr,}/bin/sh.
  3444. touch sub/conftst$i.h
  3445. done
  3446. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3447. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3448. # mode. It turns out that the SunPro C++ compiler does not properly
  3449. # handle `-M -o', and we need to detect this. Also, some Intel
  3450. # versions had trouble with output in subdirs
  3451. am__obj=sub/conftest.${OBJEXT-o}
  3452. am__minus_obj="-o $am__obj"
  3453. case $depmode in
  3454. gcc)
  3455. # This depmode causes a compiler race in universal mode.
  3456. test "$am__universal" = false || continue
  3457. ;;
  3458. nosideeffect)
  3459. # after this tag, mechanisms are not by side-effect, so they'll
  3460. # only be used when explicitly requested
  3461. if test "x$enable_dependency_tracking" = xyes; then
  3462. continue
  3463. else
  3464. break
  3465. fi
  3466. ;;
  3467. msvisualcpp | msvcmsys)
  3468. # This compiler won't grok `-c -o', but also, the minuso test has
  3469. # not run yet. These depmodes are late enough in the game, and
  3470. # so weak that their functioning should not be impacted.
  3471. am__obj=conftest.${OBJEXT-o}
  3472. am__minus_obj=
  3473. ;;
  3474. none) break ;;
  3475. esac
  3476. if depmode=$depmode \
  3477. source=sub/conftest.c object=$am__obj \
  3478. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3479. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3480. >/dev/null 2>conftest.err &&
  3481. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3482. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3483. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3484. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3485. # icc doesn't choke on unknown options, it will just issue warnings
  3486. # or remarks (even with -Werror). So we grep stderr for any message
  3487. # that says an option was ignored or not supported.
  3488. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3489. # icc: Command line warning: ignoring option '-M'; no argument required
  3490. # The diagnosis changed in icc 8.0:
  3491. # icc: Command line remark: option '-MP' not supported
  3492. if (grep 'ignoring option' conftest.err ||
  3493. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3494. am_cv_CC_dependencies_compiler_type=$depmode
  3495. break
  3496. fi
  3497. fi
  3498. done
  3499. cd ..
  3500. rm -rf conftest.dir
  3501. else
  3502. am_cv_CC_dependencies_compiler_type=none
  3503. fi
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3506. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3507. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3508. if
  3509. test "x$enable_dependency_tracking" != xno \
  3510. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3511. am__fastdepCC_TRUE=
  3512. am__fastdepCC_FALSE='#'
  3513. else
  3514. am__fastdepCC_TRUE='#'
  3515. am__fastdepCC_FALSE=
  3516. fi
  3517. ac_ext=c
  3518. ac_cpp='$CPP $CPPFLAGS'
  3519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3523. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3524. # On Suns, sometimes $CPP names a directory.
  3525. if test -n "$CPP" && test -d "$CPP"; then
  3526. CPP=
  3527. fi
  3528. if test -z "$CPP"; then
  3529. if test "${ac_cv_prog_CPP+set}" = set; then :
  3530. $as_echo_n "(cached) " >&6
  3531. else
  3532. # Double quotes because CPP needs to be expanded
  3533. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3534. do
  3535. ac_preproc_ok=false
  3536. for ac_c_preproc_warn_flag in '' yes
  3537. do
  3538. # Use a header file that comes with gcc, so configuring glibc
  3539. # with a fresh cross-compiler works.
  3540. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3541. # <limits.h> exists even on freestanding compilers.
  3542. # On the NeXT, cc -E runs the code through the compiler's parser,
  3543. # not just through cpp. "Syntax error" is here to catch this case.
  3544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3545. /* end confdefs.h. */
  3546. #ifdef __STDC__
  3547. # include <limits.h>
  3548. #else
  3549. # include <assert.h>
  3550. #endif
  3551. Syntax error
  3552. _ACEOF
  3553. if ac_fn_c_try_cpp "$LINENO"; then :
  3554. else
  3555. # Broken: fails on valid input.
  3556. continue
  3557. fi
  3558. rm -f conftest.err conftest.$ac_ext
  3559. # OK, works on sane cases. Now check whether nonexistent headers
  3560. # can be detected and how.
  3561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3562. /* end confdefs.h. */
  3563. #include <ac_nonexistent.h>
  3564. _ACEOF
  3565. if ac_fn_c_try_cpp "$LINENO"; then :
  3566. # Broken: success on invalid input.
  3567. continue
  3568. else
  3569. # Passes both tests.
  3570. ac_preproc_ok=:
  3571. break
  3572. fi
  3573. rm -f conftest.err conftest.$ac_ext
  3574. done
  3575. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3576. rm -f conftest.err conftest.$ac_ext
  3577. if $ac_preproc_ok; then :
  3578. break
  3579. fi
  3580. done
  3581. ac_cv_prog_CPP=$CPP
  3582. fi
  3583. CPP=$ac_cv_prog_CPP
  3584. else
  3585. ac_cv_prog_CPP=$CPP
  3586. fi
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3588. $as_echo "$CPP" >&6; }
  3589. ac_preproc_ok=false
  3590. for ac_c_preproc_warn_flag in '' yes
  3591. do
  3592. # Use a header file that comes with gcc, so configuring glibc
  3593. # with a fresh cross-compiler works.
  3594. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3595. # <limits.h> exists even on freestanding compilers.
  3596. # On the NeXT, cc -E runs the code through the compiler's parser,
  3597. # not just through cpp. "Syntax error" is here to catch this case.
  3598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3599. /* end confdefs.h. */
  3600. #ifdef __STDC__
  3601. # include <limits.h>
  3602. #else
  3603. # include <assert.h>
  3604. #endif
  3605. Syntax error
  3606. _ACEOF
  3607. if ac_fn_c_try_cpp "$LINENO"; then :
  3608. else
  3609. # Broken: fails on valid input.
  3610. continue
  3611. fi
  3612. rm -f conftest.err conftest.$ac_ext
  3613. # OK, works on sane cases. Now check whether nonexistent headers
  3614. # can be detected and how.
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. #include <ac_nonexistent.h>
  3618. _ACEOF
  3619. if ac_fn_c_try_cpp "$LINENO"; then :
  3620. # Broken: success on invalid input.
  3621. continue
  3622. else
  3623. # Passes both tests.
  3624. ac_preproc_ok=:
  3625. break
  3626. fi
  3627. rm -f conftest.err conftest.$ac_ext
  3628. done
  3629. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3630. rm -f conftest.err conftest.$ac_ext
  3631. if $ac_preproc_ok; then :
  3632. else
  3633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3636. See \`config.log' for more details." "$LINENO" 5; }
  3637. fi
  3638. ac_ext=c
  3639. ac_cpp='$CPP $CPPFLAGS'
  3640. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3641. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3642. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3644. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3645. if test "${ac_cv_path_GREP+set}" = set; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if test -z "$GREP"; then
  3649. ac_path_GREP_found=false
  3650. # Loop through the user's path and test for each of PROGNAME-LIST
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3653. do
  3654. IFS=$as_save_IFS
  3655. test -z "$as_dir" && as_dir=.
  3656. for ac_prog in grep ggrep; do
  3657. for ac_exec_ext in '' $ac_executable_extensions; do
  3658. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3659. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3660. # Check for GNU ac_path_GREP and select it if it is found.
  3661. # Check for GNU $ac_path_GREP
  3662. case `"$ac_path_GREP" --version 2>&1` in
  3663. *GNU*)
  3664. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3665. *)
  3666. ac_count=0
  3667. $as_echo_n 0123456789 >"conftest.in"
  3668. while :
  3669. do
  3670. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3671. mv "conftest.tmp" "conftest.in"
  3672. cp "conftest.in" "conftest.nl"
  3673. $as_echo 'GREP' >> "conftest.nl"
  3674. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3675. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3676. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3677. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3678. # Best one so far, save it but keep looking for a better one
  3679. ac_cv_path_GREP="$ac_path_GREP"
  3680. ac_path_GREP_max=$ac_count
  3681. fi
  3682. # 10*(2^10) chars as input seems more than enough
  3683. test $ac_count -gt 10 && break
  3684. done
  3685. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3686. esac
  3687. $ac_path_GREP_found && break 3
  3688. done
  3689. done
  3690. done
  3691. IFS=$as_save_IFS
  3692. if test -z "$ac_cv_path_GREP"; then
  3693. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3694. fi
  3695. else
  3696. ac_cv_path_GREP=$GREP
  3697. fi
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3700. $as_echo "$ac_cv_path_GREP" >&6; }
  3701. GREP="$ac_cv_path_GREP"
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3703. $as_echo_n "checking for egrep... " >&6; }
  3704. if test "${ac_cv_path_EGREP+set}" = set; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3708. then ac_cv_path_EGREP="$GREP -E"
  3709. else
  3710. if test -z "$EGREP"; then
  3711. ac_path_EGREP_found=false
  3712. # Loop through the user's path and test for each of PROGNAME-LIST
  3713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3714. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3715. do
  3716. IFS=$as_save_IFS
  3717. test -z "$as_dir" && as_dir=.
  3718. for ac_prog in egrep; do
  3719. for ac_exec_ext in '' $ac_executable_extensions; do
  3720. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3721. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3722. # Check for GNU ac_path_EGREP and select it if it is found.
  3723. # Check for GNU $ac_path_EGREP
  3724. case `"$ac_path_EGREP" --version 2>&1` in
  3725. *GNU*)
  3726. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3727. *)
  3728. ac_count=0
  3729. $as_echo_n 0123456789 >"conftest.in"
  3730. while :
  3731. do
  3732. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3733. mv "conftest.tmp" "conftest.in"
  3734. cp "conftest.in" "conftest.nl"
  3735. $as_echo 'EGREP' >> "conftest.nl"
  3736. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3737. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3738. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3739. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3740. # Best one so far, save it but keep looking for a better one
  3741. ac_cv_path_EGREP="$ac_path_EGREP"
  3742. ac_path_EGREP_max=$ac_count
  3743. fi
  3744. # 10*(2^10) chars as input seems more than enough
  3745. test $ac_count -gt 10 && break
  3746. done
  3747. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3748. esac
  3749. $ac_path_EGREP_found && break 3
  3750. done
  3751. done
  3752. done
  3753. IFS=$as_save_IFS
  3754. if test -z "$ac_cv_path_EGREP"; then
  3755. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3756. fi
  3757. else
  3758. ac_cv_path_EGREP=$EGREP
  3759. fi
  3760. fi
  3761. fi
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3763. $as_echo "$ac_cv_path_EGREP" >&6; }
  3764. EGREP="$ac_cv_path_EGREP"
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3766. $as_echo_n "checking for ANSI C header files... " >&6; }
  3767. if test "${ac_cv_header_stdc+set}" = set; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. #include <stdlib.h>
  3773. #include <stdarg.h>
  3774. #include <string.h>
  3775. #include <float.h>
  3776. int
  3777. main ()
  3778. {
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. if ac_fn_c_try_compile "$LINENO"; then :
  3784. ac_cv_header_stdc=yes
  3785. else
  3786. ac_cv_header_stdc=no
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. if test $ac_cv_header_stdc = yes; then
  3790. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. #include <string.h>
  3794. _ACEOF
  3795. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3796. $EGREP "memchr" >/dev/null 2>&1; then :
  3797. else
  3798. ac_cv_header_stdc=no
  3799. fi
  3800. rm -f conftest*
  3801. fi
  3802. if test $ac_cv_header_stdc = yes; then
  3803. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3805. /* end confdefs.h. */
  3806. #include <stdlib.h>
  3807. _ACEOF
  3808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3809. $EGREP "free" >/dev/null 2>&1; then :
  3810. else
  3811. ac_cv_header_stdc=no
  3812. fi
  3813. rm -f conftest*
  3814. fi
  3815. if test $ac_cv_header_stdc = yes; then
  3816. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3817. if test "$cross_compiling" = yes; then :
  3818. :
  3819. else
  3820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3821. /* end confdefs.h. */
  3822. #include <ctype.h>
  3823. #include <stdlib.h>
  3824. #if ((' ' & 0x0FF) == 0x020)
  3825. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3826. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3827. #else
  3828. # define ISLOWER(c) \
  3829. (('a' <= (c) && (c) <= 'i') \
  3830. || ('j' <= (c) && (c) <= 'r') \
  3831. || ('s' <= (c) && (c) <= 'z'))
  3832. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3833. #endif
  3834. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3835. int
  3836. main ()
  3837. {
  3838. int i;
  3839. for (i = 0; i < 256; i++)
  3840. if (XOR (islower (i), ISLOWER (i))
  3841. || toupper (i) != TOUPPER (i))
  3842. return 2;
  3843. return 0;
  3844. }
  3845. _ACEOF
  3846. if ac_fn_c_try_run "$LINENO"; then :
  3847. else
  3848. ac_cv_header_stdc=no
  3849. fi
  3850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3851. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3852. fi
  3853. fi
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3856. $as_echo "$ac_cv_header_stdc" >&6; }
  3857. if test $ac_cv_header_stdc = yes; then
  3858. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3859. fi
  3860. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3861. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3862. inttypes.h stdint.h unistd.h
  3863. do :
  3864. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3865. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3866. "
  3867. eval as_val=\$$as_ac_Header
  3868. if test "x$as_val" = x""yes; then :
  3869. cat >>confdefs.h <<_ACEOF
  3870. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3871. _ACEOF
  3872. fi
  3873. done
  3874. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3875. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3876. MINIX=yes
  3877. else
  3878. MINIX=
  3879. fi
  3880. if test "$MINIX" = yes; then
  3881. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3882. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3883. $as_echo "#define _MINIX 1" >>confdefs.h
  3884. fi
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3886. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3887. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3888. $as_echo_n "(cached) " >&6
  3889. else
  3890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3891. /* end confdefs.h. */
  3892. # define __EXTENSIONS__ 1
  3893. $ac_includes_default
  3894. int
  3895. main ()
  3896. {
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. if ac_fn_c_try_compile "$LINENO"; then :
  3902. ac_cv_safe_to_define___extensions__=yes
  3903. else
  3904. ac_cv_safe_to_define___extensions__=no
  3905. fi
  3906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3909. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3910. test $ac_cv_safe_to_define___extensions__ = yes &&
  3911. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3912. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3913. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3914. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3915. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3916. # See if makeinfo has been installed and is modern enough
  3917. # that we can use it.
  3918. # Extract the first word of "makeinfo", so it can be a program name with args.
  3919. set dummy makeinfo; ac_word=$2
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3921. $as_echo_n "checking for $ac_word... " >&6; }
  3922. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. if test -n "$MAKEINFO"; then
  3926. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  3927. else
  3928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3929. for as_dir in $PATH
  3930. do
  3931. IFS=$as_save_IFS
  3932. test -z "$as_dir" && as_dir=.
  3933. for ac_exec_ext in '' $ac_executable_extensions; do
  3934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3935. ac_cv_prog_MAKEINFO="makeinfo"
  3936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3937. break 2
  3938. fi
  3939. done
  3940. done
  3941. IFS=$as_save_IFS
  3942. fi
  3943. fi
  3944. MAKEINFO=$ac_cv_prog_MAKEINFO
  3945. if test -n "$MAKEINFO"; then
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  3947. $as_echo "$MAKEINFO" >&6; }
  3948. else
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3950. $as_echo "no" >&6; }
  3951. fi
  3952. if test -n "$MAKEINFO"; then
  3953. # Found it, now check the version.
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  3955. $as_echo_n "checking for modern makeinfo... " >&6; }
  3956. if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  3960. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  3961. case $ac_prog_version in
  3962. '') gcc_cv_prog_makeinfo_modern=no;;
  3963. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  3964. *) gcc_cv_prog_makeinfo_modern=no;;
  3965. esac
  3966. fi
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  3968. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  3969. else
  3970. gcc_cv_prog_makeinfo_modern=no
  3971. fi
  3972. if test $gcc_cv_prog_makeinfo_modern = no; then
  3973. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  3974. fi
  3975. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  3976. BUILD_INFO_TRUE=
  3977. BUILD_INFO_FALSE='#'
  3978. else
  3979. BUILD_INFO_TRUE='#'
  3980. BUILD_INFO_FALSE=
  3981. fi
  3982. # Check whether --with-bugurl was given.
  3983. if test "${with_bugurl+set}" = set; then :
  3984. withval=$with_bugurl; case "$withval" in
  3985. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  3986. no) BUGURL=
  3987. ;;
  3988. *) BUGURL="$withval"
  3989. ;;
  3990. esac
  3991. else
  3992. BUGURL="http://gcc.gnu.org/bugs.html"
  3993. fi
  3994. case ${BUGURL} in
  3995. "")
  3996. REPORT_BUGS_TO=
  3997. REPORT_BUGS_TEXI=
  3998. ;;
  3999. *)
  4000. REPORT_BUGS_TO="<$BUGURL>"
  4001. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  4002. ;;
  4003. esac;
  4004. # Configure libtool
  4005. case `pwd` in
  4006. *\ * | *\ *)
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4008. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4009. esac
  4010. macro_version='2.2.7a'
  4011. macro_revision='1.3134'
  4012. ltmain="$ac_aux_dir/ltmain.sh"
  4013. # Backslashify metacharacters that are still active within
  4014. # double-quoted strings.
  4015. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4016. # Same as above, but do not quote variable references.
  4017. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4018. # Sed substitution to delay expansion of an escaped shell variable in a
  4019. # double_quote_subst'ed string.
  4020. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4021. # Sed substitution to delay expansion of an escaped single quote.
  4022. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4023. # Sed substitution to avoid accidental globbing in evaled expressions
  4024. no_glob_subst='s/\*/\\\*/g'
  4025. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4026. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4027. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4029. $as_echo_n "checking how to print strings... " >&6; }
  4030. # Test print first, because it will be a builtin if present.
  4031. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4032. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4033. ECHO='print -r --'
  4034. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4035. ECHO='printf %s\n'
  4036. else
  4037. # Use this function as a fallback that always works.
  4038. func_fallback_echo ()
  4039. {
  4040. eval 'cat <<_LTECHO_EOF
  4041. $1
  4042. _LTECHO_EOF'
  4043. }
  4044. ECHO='func_fallback_echo'
  4045. fi
  4046. # func_echo_all arg...
  4047. # Invoke $ECHO with all args, space-separated.
  4048. func_echo_all ()
  4049. {
  4050. $ECHO ""
  4051. }
  4052. case "$ECHO" in
  4053. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4054. $as_echo "printf" >&6; } ;;
  4055. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4056. $as_echo "print -r" >&6; } ;;
  4057. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4058. $as_echo "cat" >&6; } ;;
  4059. esac
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4061. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4062. if test "${ac_cv_path_SED+set}" = set; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4066. for ac_i in 1 2 3 4 5 6 7; do
  4067. ac_script="$ac_script$as_nl$ac_script"
  4068. done
  4069. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4070. { ac_script=; unset ac_script;}
  4071. if test -z "$SED"; then
  4072. ac_path_SED_found=false
  4073. # Loop through the user's path and test for each of PROGNAME-LIST
  4074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4075. for as_dir in $PATH
  4076. do
  4077. IFS=$as_save_IFS
  4078. test -z "$as_dir" && as_dir=.
  4079. for ac_prog in sed gsed; do
  4080. for ac_exec_ext in '' $ac_executable_extensions; do
  4081. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4082. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4083. # Check for GNU ac_path_SED and select it if it is found.
  4084. # Check for GNU $ac_path_SED
  4085. case `"$ac_path_SED" --version 2>&1` in
  4086. *GNU*)
  4087. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4088. *)
  4089. ac_count=0
  4090. $as_echo_n 0123456789 >"conftest.in"
  4091. while :
  4092. do
  4093. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4094. mv "conftest.tmp" "conftest.in"
  4095. cp "conftest.in" "conftest.nl"
  4096. $as_echo '' >> "conftest.nl"
  4097. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4098. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4099. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4100. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4101. # Best one so far, save it but keep looking for a better one
  4102. ac_cv_path_SED="$ac_path_SED"
  4103. ac_path_SED_max=$ac_count
  4104. fi
  4105. # 10*(2^10) chars as input seems more than enough
  4106. test $ac_count -gt 10 && break
  4107. done
  4108. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4109. esac
  4110. $ac_path_SED_found && break 3
  4111. done
  4112. done
  4113. done
  4114. IFS=$as_save_IFS
  4115. if test -z "$ac_cv_path_SED"; then
  4116. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4117. fi
  4118. else
  4119. ac_cv_path_SED=$SED
  4120. fi
  4121. fi
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4123. $as_echo "$ac_cv_path_SED" >&6; }
  4124. SED="$ac_cv_path_SED"
  4125. rm -f conftest.sed
  4126. test -z "$SED" && SED=sed
  4127. Xsed="$SED -e 1s/^X//"
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4129. $as_echo_n "checking for fgrep... " >&6; }
  4130. if test "${ac_cv_path_FGREP+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4134. then ac_cv_path_FGREP="$GREP -F"
  4135. else
  4136. if test -z "$FGREP"; then
  4137. ac_path_FGREP_found=false
  4138. # Loop through the user's path and test for each of PROGNAME-LIST
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4141. do
  4142. IFS=$as_save_IFS
  4143. test -z "$as_dir" && as_dir=.
  4144. for ac_prog in fgrep; do
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4147. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4148. # Check for GNU ac_path_FGREP and select it if it is found.
  4149. # Check for GNU $ac_path_FGREP
  4150. case `"$ac_path_FGREP" --version 2>&1` in
  4151. *GNU*)
  4152. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4153. *)
  4154. ac_count=0
  4155. $as_echo_n 0123456789 >"conftest.in"
  4156. while :
  4157. do
  4158. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4159. mv "conftest.tmp" "conftest.in"
  4160. cp "conftest.in" "conftest.nl"
  4161. $as_echo 'FGREP' >> "conftest.nl"
  4162. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4163. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4164. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4165. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4166. # Best one so far, save it but keep looking for a better one
  4167. ac_cv_path_FGREP="$ac_path_FGREP"
  4168. ac_path_FGREP_max=$ac_count
  4169. fi
  4170. # 10*(2^10) chars as input seems more than enough
  4171. test $ac_count -gt 10 && break
  4172. done
  4173. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4174. esac
  4175. $ac_path_FGREP_found && break 3
  4176. done
  4177. done
  4178. done
  4179. IFS=$as_save_IFS
  4180. if test -z "$ac_cv_path_FGREP"; then
  4181. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4182. fi
  4183. else
  4184. ac_cv_path_FGREP=$FGREP
  4185. fi
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4189. $as_echo "$ac_cv_path_FGREP" >&6; }
  4190. FGREP="$ac_cv_path_FGREP"
  4191. test -z "$GREP" && GREP=grep
  4192. # Check whether --with-gnu-ld was given.
  4193. if test "${with_gnu_ld+set}" = set; then :
  4194. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4195. else
  4196. with_gnu_ld=no
  4197. fi
  4198. ac_prog=ld
  4199. if test "$GCC" = yes; then
  4200. # Check if gcc -print-prog-name=ld gives a path.
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4202. $as_echo_n "checking for ld used by $CC... " >&6; }
  4203. case $host in
  4204. *-*-mingw*)
  4205. # gcc leaves a trailing carriage return which upsets mingw
  4206. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4207. *)
  4208. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4209. esac
  4210. case $ac_prog in
  4211. # Accept absolute paths.
  4212. [\\/]* | ?:[\\/]*)
  4213. re_direlt='/[^/][^/]*/\.\./'
  4214. # Canonicalize the pathname of ld
  4215. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4216. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4217. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4218. done
  4219. test -z "$LD" && LD="$ac_prog"
  4220. ;;
  4221. "")
  4222. # If it fails, then pretend we aren't using GCC.
  4223. ac_prog=ld
  4224. ;;
  4225. *)
  4226. # If it is relative, then search for the first ld in PATH.
  4227. with_gnu_ld=unknown
  4228. ;;
  4229. esac
  4230. elif test "$with_gnu_ld" = yes; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4232. $as_echo_n "checking for GNU ld... " >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4235. $as_echo_n "checking for non-GNU ld... " >&6; }
  4236. fi
  4237. if test "${lt_cv_path_LD+set}" = set; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. if test -z "$LD"; then
  4241. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4242. for ac_dir in $PATH; do
  4243. IFS="$lt_save_ifs"
  4244. test -z "$ac_dir" && ac_dir=.
  4245. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4246. lt_cv_path_LD="$ac_dir/$ac_prog"
  4247. # Check to see if the program is GNU ld. I'd rather use --version,
  4248. # but apparently some variants of GNU ld only accept -v.
  4249. # Break only if it was the GNU/non-GNU ld that we prefer.
  4250. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4251. *GNU* | *'with BFD'*)
  4252. test "$with_gnu_ld" != no && break
  4253. ;;
  4254. *)
  4255. test "$with_gnu_ld" != yes && break
  4256. ;;
  4257. esac
  4258. fi
  4259. done
  4260. IFS="$lt_save_ifs"
  4261. else
  4262. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4263. fi
  4264. fi
  4265. LD="$lt_cv_path_LD"
  4266. if test -n "$LD"; then
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4268. $as_echo "$LD" >&6; }
  4269. else
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4271. $as_echo "no" >&6; }
  4272. fi
  4273. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4275. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4276. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4277. $as_echo_n "(cached) " >&6
  4278. else
  4279. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4280. case `$LD -v 2>&1 </dev/null` in
  4281. *GNU* | *'with BFD'*)
  4282. lt_cv_prog_gnu_ld=yes
  4283. ;;
  4284. *)
  4285. lt_cv_prog_gnu_ld=no
  4286. ;;
  4287. esac
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4290. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4291. with_gnu_ld=$lt_cv_prog_gnu_ld
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4293. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4294. if test "${lt_cv_path_NM+set}" = set; then :
  4295. $as_echo_n "(cached) " >&6
  4296. else
  4297. if test -n "$NM"; then
  4298. # Let the user override the test.
  4299. lt_cv_path_NM="$NM"
  4300. else
  4301. lt_nm_to_check="${ac_tool_prefix}nm"
  4302. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4303. lt_nm_to_check="$lt_nm_to_check nm"
  4304. fi
  4305. for lt_tmp_nm in $lt_nm_to_check; do
  4306. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4307. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4308. IFS="$lt_save_ifs"
  4309. test -z "$ac_dir" && ac_dir=.
  4310. tmp_nm="$ac_dir/$lt_tmp_nm"
  4311. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4312. # Check to see if the nm accepts a BSD-compat flag.
  4313. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4314. # nm: unknown option "B" ignored
  4315. # Tru64's nm complains that /dev/null is an invalid object file
  4316. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4317. */dev/null* | *'Invalid file or object type'*)
  4318. lt_cv_path_NM="$tmp_nm -B"
  4319. break
  4320. ;;
  4321. *)
  4322. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4323. */dev/null*)
  4324. lt_cv_path_NM="$tmp_nm -p"
  4325. break
  4326. ;;
  4327. *)
  4328. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4329. continue # so that we can try to find one that supports BSD flags
  4330. ;;
  4331. esac
  4332. ;;
  4333. esac
  4334. fi
  4335. done
  4336. IFS="$lt_save_ifs"
  4337. done
  4338. : ${lt_cv_path_NM=no}
  4339. fi
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4342. $as_echo "$lt_cv_path_NM" >&6; }
  4343. if test "$lt_cv_path_NM" != "no"; then
  4344. NM="$lt_cv_path_NM"
  4345. else
  4346. # Didn't find any BSD compatible name lister, look for dumpbin.
  4347. if test -n "$DUMPBIN"; then :
  4348. # Let the user override the test.
  4349. else
  4350. if test -n "$ac_tool_prefix"; then
  4351. for ac_prog in dumpbin "link -dump"
  4352. do
  4353. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4354. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4356. $as_echo_n "checking for $ac_word... " >&6; }
  4357. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4358. $as_echo_n "(cached) " >&6
  4359. else
  4360. if test -n "$DUMPBIN"; then
  4361. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4362. else
  4363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4364. for as_dir in $PATH
  4365. do
  4366. IFS=$as_save_IFS
  4367. test -z "$as_dir" && as_dir=.
  4368. for ac_exec_ext in '' $ac_executable_extensions; do
  4369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4370. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4372. break 2
  4373. fi
  4374. done
  4375. done
  4376. IFS=$as_save_IFS
  4377. fi
  4378. fi
  4379. DUMPBIN=$ac_cv_prog_DUMPBIN
  4380. if test -n "$DUMPBIN"; then
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4382. $as_echo "$DUMPBIN" >&6; }
  4383. else
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4385. $as_echo "no" >&6; }
  4386. fi
  4387. test -n "$DUMPBIN" && break
  4388. done
  4389. fi
  4390. if test -z "$DUMPBIN"; then
  4391. ac_ct_DUMPBIN=$DUMPBIN
  4392. for ac_prog in dumpbin "link -dump"
  4393. do
  4394. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4395. set dummy $ac_prog; ac_word=$2
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4397. $as_echo_n "checking for $ac_word... " >&6; }
  4398. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. if test -n "$ac_ct_DUMPBIN"; then
  4402. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4403. else
  4404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4405. for as_dir in $PATH
  4406. do
  4407. IFS=$as_save_IFS
  4408. test -z "$as_dir" && as_dir=.
  4409. for ac_exec_ext in '' $ac_executable_extensions; do
  4410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4411. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4413. break 2
  4414. fi
  4415. done
  4416. done
  4417. IFS=$as_save_IFS
  4418. fi
  4419. fi
  4420. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4421. if test -n "$ac_ct_DUMPBIN"; then
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4423. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4424. else
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4426. $as_echo "no" >&6; }
  4427. fi
  4428. test -n "$ac_ct_DUMPBIN" && break
  4429. done
  4430. if test "x$ac_ct_DUMPBIN" = x; then
  4431. DUMPBIN=":"
  4432. else
  4433. case $cross_compiling:$ac_tool_warned in
  4434. yes:)
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4436. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4437. ac_tool_warned=yes ;;
  4438. esac
  4439. DUMPBIN=$ac_ct_DUMPBIN
  4440. fi
  4441. fi
  4442. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4443. *COFF*)
  4444. DUMPBIN="$DUMPBIN -symbols"
  4445. ;;
  4446. *)
  4447. DUMPBIN=:
  4448. ;;
  4449. esac
  4450. fi
  4451. if test "$DUMPBIN" != ":"; then
  4452. NM="$DUMPBIN"
  4453. fi
  4454. fi
  4455. test -z "$NM" && NM=nm
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4457. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4458. if test "${lt_cv_nm_interface+set}" = set; then :
  4459. $as_echo_n "(cached) " >&6
  4460. else
  4461. lt_cv_nm_interface="BSD nm"
  4462. echo "int some_variable = 0;" > conftest.$ac_ext
  4463. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4464. (eval "$ac_compile" 2>conftest.err)
  4465. cat conftest.err >&5
  4466. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4467. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4468. cat conftest.err >&5
  4469. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4470. cat conftest.out >&5
  4471. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4472. lt_cv_nm_interface="MS dumpbin"
  4473. fi
  4474. rm -f conftest*
  4475. fi
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4477. $as_echo "$lt_cv_nm_interface" >&6; }
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4479. $as_echo_n "checking whether ln -s works... " >&6; }
  4480. LN_S=$as_ln_s
  4481. if test "$LN_S" = "ln -s"; then
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4483. $as_echo "yes" >&6; }
  4484. else
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4486. $as_echo "no, using $LN_S" >&6; }
  4487. fi
  4488. # find the maximum length of command line arguments
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4490. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4491. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4492. $as_echo_n "(cached) " >&6
  4493. else
  4494. i=0
  4495. teststring="ABCD"
  4496. case $build_os in
  4497. msdosdjgpp*)
  4498. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4499. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4500. # during glob expansion). Even if it were fixed, the result of this
  4501. # check would be larger than it should be.
  4502. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4503. ;;
  4504. gnu*)
  4505. # Under GNU Hurd, this test is not required because there is
  4506. # no limit to the length of command line arguments.
  4507. # Libtool will interpret -1 as no limit whatsoever
  4508. lt_cv_sys_max_cmd_len=-1;
  4509. ;;
  4510. cygwin* | mingw* | cegcc*)
  4511. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4512. # about 5 minutes as the teststring grows exponentially.
  4513. # Worse, since 9x/ME are not pre-emptively multitasking,
  4514. # you end up with a "frozen" computer, even though with patience
  4515. # the test eventually succeeds (with a max line length of 256k).
  4516. # Instead, let's just punt: use the minimum linelength reported by
  4517. # all of the supported platforms: 8192 (on NT/2K/XP).
  4518. lt_cv_sys_max_cmd_len=8192;
  4519. ;;
  4520. mint*)
  4521. # On MiNT this can take a long time and run out of memory.
  4522. lt_cv_sys_max_cmd_len=8192;
  4523. ;;
  4524. amigaos*)
  4525. # On AmigaOS with pdksh, this test takes hours, literally.
  4526. # So we just punt and use a minimum line length of 8192.
  4527. lt_cv_sys_max_cmd_len=8192;
  4528. ;;
  4529. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4530. # This has been around since 386BSD, at least. Likely further.
  4531. if test -x /sbin/sysctl; then
  4532. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4533. elif test -x /usr/sbin/sysctl; then
  4534. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4535. else
  4536. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4537. fi
  4538. # And add a safety zone
  4539. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4540. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4541. ;;
  4542. interix*)
  4543. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4544. lt_cv_sys_max_cmd_len=196608
  4545. ;;
  4546. osf*)
  4547. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4548. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4549. # nice to cause kernel panics so lets avoid the loop below.
  4550. # First set a reasonable default.
  4551. lt_cv_sys_max_cmd_len=16384
  4552. #
  4553. if test -x /sbin/sysconfig; then
  4554. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4555. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4556. esac
  4557. fi
  4558. ;;
  4559. sco3.2v5*)
  4560. lt_cv_sys_max_cmd_len=102400
  4561. ;;
  4562. sysv5* | sco5v6* | sysv4.2uw2*)
  4563. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4564. if test -n "$kargmax"; then
  4565. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4566. else
  4567. lt_cv_sys_max_cmd_len=32768
  4568. fi
  4569. ;;
  4570. *)
  4571. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4572. if test -n "$lt_cv_sys_max_cmd_len"; then
  4573. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4574. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4575. else
  4576. # Make teststring a little bigger before we do anything with it.
  4577. # a 1K string should be a reasonable start.
  4578. for i in 1 2 3 4 5 6 7 8 ; do
  4579. teststring=$teststring$teststring
  4580. done
  4581. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4582. # If test is not a shell built-in, we'll probably end up computing a
  4583. # maximum length that is only half of the actual maximum length, but
  4584. # we can't tell.
  4585. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4586. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4587. test $i != 17 # 1/2 MB should be enough
  4588. do
  4589. i=`expr $i + 1`
  4590. teststring=$teststring$teststring
  4591. done
  4592. # Only check the string length outside the loop.
  4593. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4594. teststring=
  4595. # Add a significant safety factor because C++ compilers can tack on
  4596. # massive amounts of additional arguments before passing them to the
  4597. # linker. It appears as though 1/2 is a usable value.
  4598. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4599. fi
  4600. ;;
  4601. esac
  4602. fi
  4603. if test -n $lt_cv_sys_max_cmd_len ; then
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4605. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4606. else
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4608. $as_echo "none" >&6; }
  4609. fi
  4610. max_cmd_len=$lt_cv_sys_max_cmd_len
  4611. : ${CP="cp -f"}
  4612. : ${MV="mv -f"}
  4613. : ${RM="rm -f"}
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4615. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4616. # Try some XSI features
  4617. xsi_shell=no
  4618. ( _lt_dummy="a/b/c"
  4619. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4620. = c,a/b,, \
  4621. && eval 'test $(( 1 + 1 )) -eq 2 \
  4622. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4623. && xsi_shell=yes
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4625. $as_echo "$xsi_shell" >&6; }
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4627. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4628. lt_shell_append=no
  4629. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4630. >/dev/null 2>&1 \
  4631. && lt_shell_append=yes
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4633. $as_echo "$lt_shell_append" >&6; }
  4634. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4635. lt_unset=unset
  4636. else
  4637. lt_unset=false
  4638. fi
  4639. # test EBCDIC or ASCII
  4640. case `echo X|tr X '\101'` in
  4641. A) # ASCII based system
  4642. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4643. lt_SP2NL='tr \040 \012'
  4644. lt_NL2SP='tr \015\012 \040\040'
  4645. ;;
  4646. *) # EBCDIC based system
  4647. lt_SP2NL='tr \100 \n'
  4648. lt_NL2SP='tr \r\n \100\100'
  4649. ;;
  4650. esac
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4652. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4653. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. lt_cv_ld_reload_flag='-r'
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4659. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4660. reload_flag=$lt_cv_ld_reload_flag
  4661. case $reload_flag in
  4662. "" | " "*) ;;
  4663. *) reload_flag=" $reload_flag" ;;
  4664. esac
  4665. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4666. case $host_os in
  4667. darwin*)
  4668. if test "$GCC" = yes; then
  4669. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4670. else
  4671. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4672. fi
  4673. ;;
  4674. esac
  4675. if test -n "$ac_tool_prefix"; then
  4676. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4677. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4679. $as_echo_n "checking for $ac_word... " >&6; }
  4680. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -n "$OBJDUMP"; then
  4684. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4685. else
  4686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4687. for as_dir in $PATH
  4688. do
  4689. IFS=$as_save_IFS
  4690. test -z "$as_dir" && as_dir=.
  4691. for ac_exec_ext in '' $ac_executable_extensions; do
  4692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4693. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4695. break 2
  4696. fi
  4697. done
  4698. done
  4699. IFS=$as_save_IFS
  4700. fi
  4701. fi
  4702. OBJDUMP=$ac_cv_prog_OBJDUMP
  4703. if test -n "$OBJDUMP"; then
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4705. $as_echo "$OBJDUMP" >&6; }
  4706. else
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4708. $as_echo "no" >&6; }
  4709. fi
  4710. fi
  4711. if test -z "$ac_cv_prog_OBJDUMP"; then
  4712. ac_ct_OBJDUMP=$OBJDUMP
  4713. # Extract the first word of "objdump", so it can be a program name with args.
  4714. set dummy objdump; ac_word=$2
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4716. $as_echo_n "checking for $ac_word... " >&6; }
  4717. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. if test -n "$ac_ct_OBJDUMP"; then
  4721. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4730. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. fi
  4738. fi
  4739. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4740. if test -n "$ac_ct_OBJDUMP"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4742. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. if test "x$ac_ct_OBJDUMP" = x; then
  4748. OBJDUMP="false"
  4749. else
  4750. case $cross_compiling:$ac_tool_warned in
  4751. yes:)
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4754. ac_tool_warned=yes ;;
  4755. esac
  4756. OBJDUMP=$ac_ct_OBJDUMP
  4757. fi
  4758. else
  4759. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4760. fi
  4761. test -z "$OBJDUMP" && OBJDUMP=objdump
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4763. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4764. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4765. $as_echo_n "(cached) " >&6
  4766. else
  4767. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4768. lt_cv_file_magic_test_file=
  4769. lt_cv_deplibs_check_method='unknown'
  4770. # Need to set the preceding variable on all platforms that support
  4771. # interlibrary dependencies.
  4772. # 'none' -- dependencies not supported.
  4773. # `unknown' -- same as none, but documents that we really don't know.
  4774. # 'pass_all' -- all dependencies passed with no checks.
  4775. # 'test_compile' -- check by making test program.
  4776. # 'file_magic [[regex]]' -- check by looking for files in library path
  4777. # which responds to the $file_magic_cmd with a given extended regex.
  4778. # If you have `file' or equivalent on your system and you're not sure
  4779. # whether `pass_all' will *always* work, you probably want this one.
  4780. case $host_os in
  4781. aix[4-9]*)
  4782. lt_cv_deplibs_check_method=pass_all
  4783. ;;
  4784. beos*)
  4785. lt_cv_deplibs_check_method=pass_all
  4786. ;;
  4787. bsdi[45]*)
  4788. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4789. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4790. lt_cv_file_magic_test_file=/shlib/libc.so
  4791. ;;
  4792. cygwin*)
  4793. # func_win32_libid is a shell function defined in ltmain.sh
  4794. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4795. lt_cv_file_magic_cmd='func_win32_libid'
  4796. ;;
  4797. mingw* | pw32*)
  4798. # Base MSYS/MinGW do not provide the 'file' command needed by
  4799. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4800. # unless we find 'file', for example because we are cross-compiling.
  4801. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4802. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4803. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4804. lt_cv_file_magic_cmd='func_win32_libid'
  4805. else
  4806. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4807. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4808. fi
  4809. ;;
  4810. cegcc*)
  4811. # use the weaker test based on 'objdump'. See mingw*.
  4812. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4813. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4814. ;;
  4815. darwin* | rhapsody*)
  4816. lt_cv_deplibs_check_method=pass_all
  4817. ;;
  4818. freebsd* | dragonfly*)
  4819. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4820. case $host_cpu in
  4821. i*86 )
  4822. # Not sure whether the presence of OpenBSD here was a mistake.
  4823. # Let's accept both of them until this is cleared up.
  4824. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4825. lt_cv_file_magic_cmd=/usr/bin/file
  4826. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4827. ;;
  4828. esac
  4829. else
  4830. lt_cv_deplibs_check_method=pass_all
  4831. fi
  4832. ;;
  4833. gnu*)
  4834. lt_cv_deplibs_check_method=pass_all
  4835. ;;
  4836. haiku*)
  4837. lt_cv_deplibs_check_method=pass_all
  4838. ;;
  4839. hpux10.20* | hpux11*)
  4840. lt_cv_file_magic_cmd=/usr/bin/file
  4841. case $host_cpu in
  4842. ia64*)
  4843. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4844. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4845. ;;
  4846. hppa*64*)
  4847. 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]'
  4848. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4849. ;;
  4850. *)
  4851. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4852. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4853. ;;
  4854. esac
  4855. ;;
  4856. interix[3-9]*)
  4857. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4858. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4859. ;;
  4860. irix5* | irix6* | nonstopux*)
  4861. case $LD in
  4862. *-32|*"-32 ") libmagic=32-bit;;
  4863. *-n32|*"-n32 ") libmagic=N32;;
  4864. *-64|*"-64 ") libmagic=64-bit;;
  4865. *) libmagic=never-match;;
  4866. esac
  4867. lt_cv_deplibs_check_method=pass_all
  4868. ;;
  4869. # This must be Linux ELF.
  4870. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4871. lt_cv_deplibs_check_method=pass_all
  4872. ;;
  4873. netbsd*)
  4874. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4875. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4876. else
  4877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4878. fi
  4879. ;;
  4880. newos6*)
  4881. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4882. lt_cv_file_magic_cmd=/usr/bin/file
  4883. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4884. ;;
  4885. *nto* | *qnx*)
  4886. lt_cv_deplibs_check_method=pass_all
  4887. ;;
  4888. openbsd*)
  4889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4890. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4891. else
  4892. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4893. fi
  4894. ;;
  4895. osf3* | osf4* | osf5*)
  4896. lt_cv_deplibs_check_method=pass_all
  4897. ;;
  4898. rdos*)
  4899. lt_cv_deplibs_check_method=pass_all
  4900. ;;
  4901. solaris*)
  4902. lt_cv_deplibs_check_method=pass_all
  4903. ;;
  4904. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4905. lt_cv_deplibs_check_method=pass_all
  4906. ;;
  4907. sysv4 | sysv4.3*)
  4908. case $host_vendor in
  4909. motorola)
  4910. 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]'
  4911. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4912. ;;
  4913. ncr)
  4914. lt_cv_deplibs_check_method=pass_all
  4915. ;;
  4916. sequent)
  4917. lt_cv_file_magic_cmd='/bin/file'
  4918. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4919. ;;
  4920. sni)
  4921. lt_cv_file_magic_cmd='/bin/file'
  4922. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4923. lt_cv_file_magic_test_file=/lib/libc.so
  4924. ;;
  4925. siemens)
  4926. lt_cv_deplibs_check_method=pass_all
  4927. ;;
  4928. pc)
  4929. lt_cv_deplibs_check_method=pass_all
  4930. ;;
  4931. esac
  4932. ;;
  4933. tpf*)
  4934. lt_cv_deplibs_check_method=pass_all
  4935. ;;
  4936. esac
  4937. fi
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4939. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4940. file_magic_cmd=$lt_cv_file_magic_cmd
  4941. deplibs_check_method=$lt_cv_deplibs_check_method
  4942. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4943. if test -n "$ac_tool_prefix"; then
  4944. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4945. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if test "${ac_cv_prog_AR+set}" = set; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$AR"; then
  4952. ac_cv_prog_AR="$AR" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4961. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. AR=$ac_cv_prog_AR
  4971. if test -n "$AR"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4973. $as_echo "$AR" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. fi
  4979. if test -z "$ac_cv_prog_AR"; then
  4980. ac_ct_AR=$AR
  4981. # Extract the first word of "ar", so it can be a program name with args.
  4982. set dummy ar; ac_word=$2
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4984. $as_echo_n "checking for $ac_word... " >&6; }
  4985. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4986. $as_echo_n "(cached) " >&6
  4987. else
  4988. if test -n "$ac_ct_AR"; then
  4989. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4990. else
  4991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4992. for as_dir in $PATH
  4993. do
  4994. IFS=$as_save_IFS
  4995. test -z "$as_dir" && as_dir=.
  4996. for ac_exec_ext in '' $ac_executable_extensions; do
  4997. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4998. ac_cv_prog_ac_ct_AR="ar"
  4999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5000. break 2
  5001. fi
  5002. done
  5003. done
  5004. IFS=$as_save_IFS
  5005. fi
  5006. fi
  5007. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5008. if test -n "$ac_ct_AR"; then
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5010. $as_echo "$ac_ct_AR" >&6; }
  5011. else
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5013. $as_echo "no" >&6; }
  5014. fi
  5015. if test "x$ac_ct_AR" = x; then
  5016. AR="false"
  5017. else
  5018. case $cross_compiling:$ac_tool_warned in
  5019. yes:)
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5022. ac_tool_warned=yes ;;
  5023. esac
  5024. AR=$ac_ct_AR
  5025. fi
  5026. else
  5027. AR="$ac_cv_prog_AR"
  5028. fi
  5029. test -z "$AR" && AR=ar
  5030. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5031. if test -n "$ac_tool_prefix"; then
  5032. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5033. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. $as_echo_n "checking for $ac_word... " >&6; }
  5036. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. if test -n "$STRIP"; then
  5040. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5041. else
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5049. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. STRIP=$ac_cv_prog_STRIP
  5059. if test -n "$STRIP"; then
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5061. $as_echo "$STRIP" >&6; }
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. $as_echo "no" >&6; }
  5065. fi
  5066. fi
  5067. if test -z "$ac_cv_prog_STRIP"; then
  5068. ac_ct_STRIP=$STRIP
  5069. # Extract the first word of "strip", so it can be a program name with args.
  5070. set dummy strip; ac_word=$2
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5072. $as_echo_n "checking for $ac_word... " >&6; }
  5073. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. if test -n "$ac_ct_STRIP"; then
  5077. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5078. else
  5079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5080. for as_dir in $PATH
  5081. do
  5082. IFS=$as_save_IFS
  5083. test -z "$as_dir" && as_dir=.
  5084. for ac_exec_ext in '' $ac_executable_extensions; do
  5085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5086. ac_cv_prog_ac_ct_STRIP="strip"
  5087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5088. break 2
  5089. fi
  5090. done
  5091. done
  5092. IFS=$as_save_IFS
  5093. fi
  5094. fi
  5095. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5096. if test -n "$ac_ct_STRIP"; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5098. $as_echo "$ac_ct_STRIP" >&6; }
  5099. else
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5101. $as_echo "no" >&6; }
  5102. fi
  5103. if test "x$ac_ct_STRIP" = x; then
  5104. STRIP=":"
  5105. else
  5106. case $cross_compiling:$ac_tool_warned in
  5107. yes:)
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5110. ac_tool_warned=yes ;;
  5111. esac
  5112. STRIP=$ac_ct_STRIP
  5113. fi
  5114. else
  5115. STRIP="$ac_cv_prog_STRIP"
  5116. fi
  5117. test -z "$STRIP" && STRIP=:
  5118. if test -n "$ac_tool_prefix"; then
  5119. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5120. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5122. $as_echo_n "checking for $ac_word... " >&6; }
  5123. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. if test -n "$RANLIB"; then
  5127. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5128. else
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5136. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. fi
  5144. fi
  5145. RANLIB=$ac_cv_prog_RANLIB
  5146. if test -n "$RANLIB"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5148. $as_echo "$RANLIB" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. fi
  5154. if test -z "$ac_cv_prog_RANLIB"; then
  5155. ac_ct_RANLIB=$RANLIB
  5156. # Extract the first word of "ranlib", so it can be a program name with args.
  5157. set dummy ranlib; ac_word=$2
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5159. $as_echo_n "checking for $ac_word... " >&6; }
  5160. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -n "$ac_ct_RANLIB"; then
  5164. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5165. else
  5166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5167. for as_dir in $PATH
  5168. do
  5169. IFS=$as_save_IFS
  5170. test -z "$as_dir" && as_dir=.
  5171. for ac_exec_ext in '' $ac_executable_extensions; do
  5172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5173. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5175. break 2
  5176. fi
  5177. done
  5178. done
  5179. IFS=$as_save_IFS
  5180. fi
  5181. fi
  5182. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5183. if test -n "$ac_ct_RANLIB"; then
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5185. $as_echo "$ac_ct_RANLIB" >&6; }
  5186. else
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5188. $as_echo "no" >&6; }
  5189. fi
  5190. if test "x$ac_ct_RANLIB" = x; then
  5191. RANLIB=":"
  5192. else
  5193. case $cross_compiling:$ac_tool_warned in
  5194. yes:)
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5197. ac_tool_warned=yes ;;
  5198. esac
  5199. RANLIB=$ac_ct_RANLIB
  5200. fi
  5201. else
  5202. RANLIB="$ac_cv_prog_RANLIB"
  5203. fi
  5204. test -z "$RANLIB" && RANLIB=:
  5205. # Determine commands to create old-style static archives.
  5206. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5207. old_postinstall_cmds='chmod 644 $oldlib'
  5208. old_postuninstall_cmds=
  5209. if test -n "$RANLIB"; then
  5210. case $host_os in
  5211. openbsd*)
  5212. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5213. ;;
  5214. *)
  5215. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5216. ;;
  5217. esac
  5218. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5219. fi
  5220. case $host_os in
  5221. darwin*)
  5222. lock_old_archive_extraction=yes ;;
  5223. *)
  5224. lock_old_archive_extraction=no ;;
  5225. esac
  5226. # If no C compiler was specified, use CC.
  5227. LTCC=${LTCC-"$CC"}
  5228. # If no C compiler flags were specified, use CFLAGS.
  5229. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5230. # Allow CC to be a program name with arguments.
  5231. compiler=$CC
  5232. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5234. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5235. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5236. $as_echo_n "(cached) " >&6
  5237. else
  5238. # These are sane defaults that work on at least a few old systems.
  5239. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5240. # Character class describing NM global symbol codes.
  5241. symcode='[BCDEGRST]'
  5242. # Regexp to match symbols that can be accessed directly from C.
  5243. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5244. # Define system-specific variables.
  5245. case $host_os in
  5246. aix*)
  5247. symcode='[BCDT]'
  5248. ;;
  5249. cygwin* | mingw* | pw32* | cegcc*)
  5250. symcode='[ABCDGISTW]'
  5251. ;;
  5252. hpux*)
  5253. if test "$host_cpu" = ia64; then
  5254. symcode='[ABCDEGRST]'
  5255. fi
  5256. ;;
  5257. irix* | nonstopux*)
  5258. symcode='[BCDEGRST]'
  5259. ;;
  5260. osf*)
  5261. symcode='[BCDEGQRST]'
  5262. ;;
  5263. solaris*)
  5264. symcode='[BDRT]'
  5265. ;;
  5266. sco3.2v5*)
  5267. symcode='[DT]'
  5268. ;;
  5269. sysv4.2uw2*)
  5270. symcode='[DT]'
  5271. ;;
  5272. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5273. symcode='[ABDT]'
  5274. ;;
  5275. sysv4)
  5276. symcode='[DFNSTU]'
  5277. ;;
  5278. esac
  5279. # If we're using GNU nm, then use its standard symbol codes.
  5280. case `$NM -V 2>&1` in
  5281. *GNU* | *'with BFD'*)
  5282. symcode='[ABCDGIRSTW]' ;;
  5283. esac
  5284. # Transform an extracted symbol line into a proper C declaration.
  5285. # Some systems (esp. on ia64) link data and code symbols differently,
  5286. # so use this general approach.
  5287. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5288. # Transform an extracted symbol line into symbol name and symbol address
  5289. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5290. 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'"
  5291. # Handle CRLF in mingw tool chain
  5292. opt_cr=
  5293. case $build_os in
  5294. mingw*)
  5295. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5296. ;;
  5297. esac
  5298. # Try without a prefix underscore, then with it.
  5299. for ac_symprfx in "" "_"; do
  5300. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5301. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5302. # Write the raw and C identifiers.
  5303. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5304. # Fake it for dumpbin and say T for any non-static function
  5305. # and D for any global variable.
  5306. # Also find C++ and __fastcall symbols from MSVC++,
  5307. # which start with @ or ?.
  5308. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5309. " {last_section=section; section=\$ 3};"\
  5310. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5311. " \$ 0!~/External *\|/{next};"\
  5312. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5313. " {if(hide[section]) next};"\
  5314. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5315. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5316. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5317. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5318. " ' prfx=^$ac_symprfx"
  5319. else
  5320. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5321. fi
  5322. # Check to see that the pipe works correctly.
  5323. pipe_works=no
  5324. rm -f conftest*
  5325. cat > conftest.$ac_ext <<_LT_EOF
  5326. #ifdef __cplusplus
  5327. extern "C" {
  5328. #endif
  5329. char nm_test_var;
  5330. void nm_test_func(void);
  5331. void nm_test_func(void){}
  5332. #ifdef __cplusplus
  5333. }
  5334. #endif
  5335. int main(){nm_test_var='a';nm_test_func();return(0);}
  5336. _LT_EOF
  5337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5338. (eval $ac_compile) 2>&5
  5339. ac_status=$?
  5340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5341. test $ac_status = 0; }; then
  5342. # Now try to grab the symbols.
  5343. nlist=conftest.nm
  5344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5345. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5346. ac_status=$?
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5348. test $ac_status = 0; } && test -s "$nlist"; then
  5349. # Try sorting and uniquifying the output.
  5350. if sort "$nlist" | uniq > "$nlist"T; then
  5351. mv -f "$nlist"T "$nlist"
  5352. else
  5353. rm -f "$nlist"T
  5354. fi
  5355. # Make sure that we snagged all the symbols we need.
  5356. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5357. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5358. cat <<_LT_EOF > conftest.$ac_ext
  5359. #ifdef __cplusplus
  5360. extern "C" {
  5361. #endif
  5362. _LT_EOF
  5363. # Now generate the symbol file.
  5364. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5365. cat <<_LT_EOF >> conftest.$ac_ext
  5366. /* The mapping between symbol names and symbols. */
  5367. const struct {
  5368. const char *name;
  5369. void *address;
  5370. }
  5371. lt__PROGRAM__LTX_preloaded_symbols[] =
  5372. {
  5373. { "@PROGRAM@", (void *) 0 },
  5374. _LT_EOF
  5375. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5376. cat <<\_LT_EOF >> conftest.$ac_ext
  5377. {0, (void *) 0}
  5378. };
  5379. /* This works around a problem in FreeBSD linker */
  5380. #ifdef FREEBSD_WORKAROUND
  5381. static const void *lt_preloaded_setup() {
  5382. return lt__PROGRAM__LTX_preloaded_symbols;
  5383. }
  5384. #endif
  5385. #ifdef __cplusplus
  5386. }
  5387. #endif
  5388. _LT_EOF
  5389. # Now try linking the two files.
  5390. mv conftest.$ac_objext conftstm.$ac_objext
  5391. lt_save_LIBS="$LIBS"
  5392. lt_save_CFLAGS="$CFLAGS"
  5393. LIBS="conftstm.$ac_objext"
  5394. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5396. (eval $ac_link) 2>&5
  5397. ac_status=$?
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5399. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5400. pipe_works=yes
  5401. fi
  5402. LIBS="$lt_save_LIBS"
  5403. CFLAGS="$lt_save_CFLAGS"
  5404. else
  5405. echo "cannot find nm_test_func in $nlist" >&5
  5406. fi
  5407. else
  5408. echo "cannot find nm_test_var in $nlist" >&5
  5409. fi
  5410. else
  5411. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5412. fi
  5413. else
  5414. echo "$progname: failed program was:" >&5
  5415. cat conftest.$ac_ext >&5
  5416. fi
  5417. rm -rf conftest* conftst*
  5418. # Do not use the global_symbol_pipe unless it works.
  5419. if test "$pipe_works" = yes; then
  5420. break
  5421. else
  5422. lt_cv_sys_global_symbol_pipe=
  5423. fi
  5424. done
  5425. fi
  5426. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5427. lt_cv_sys_global_symbol_to_cdecl=
  5428. fi
  5429. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5431. $as_echo "failed" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5434. $as_echo "ok" >&6; }
  5435. fi
  5436. # Check whether --enable-libtool-lock was given.
  5437. if test "${enable_libtool_lock+set}" = set; then :
  5438. enableval=$enable_libtool_lock;
  5439. fi
  5440. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5441. # Some flags need to be propagated to the compiler or linker for good
  5442. # libtool support.
  5443. case $host in
  5444. ia64-*-hpux*)
  5445. # Find out which ABI we are using.
  5446. echo 'int i;' > conftest.$ac_ext
  5447. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5448. (eval $ac_compile) 2>&5
  5449. ac_status=$?
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5451. test $ac_status = 0; }; then
  5452. case `/usr/bin/file conftest.$ac_objext` in
  5453. *ELF-32*)
  5454. HPUX_IA64_MODE="32"
  5455. ;;
  5456. *ELF-64*)
  5457. HPUX_IA64_MODE="64"
  5458. ;;
  5459. esac
  5460. fi
  5461. rm -rf conftest*
  5462. ;;
  5463. *-*-irix6*)
  5464. # Find out which ABI we are using.
  5465. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5466. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5467. (eval $ac_compile) 2>&5
  5468. ac_status=$?
  5469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5470. test $ac_status = 0; }; then
  5471. if test "$lt_cv_prog_gnu_ld" = yes; then
  5472. case `/usr/bin/file conftest.$ac_objext` in
  5473. *32-bit*)
  5474. LD="${LD-ld} -melf32bsmip"
  5475. ;;
  5476. *N32*)
  5477. LD="${LD-ld} -melf32bmipn32"
  5478. ;;
  5479. *64-bit*)
  5480. LD="${LD-ld} -melf64bmip"
  5481. ;;
  5482. esac
  5483. else
  5484. case `/usr/bin/file conftest.$ac_objext` in
  5485. *32-bit*)
  5486. LD="${LD-ld} -32"
  5487. ;;
  5488. *N32*)
  5489. LD="${LD-ld} -n32"
  5490. ;;
  5491. *64-bit*)
  5492. LD="${LD-ld} -64"
  5493. ;;
  5494. esac
  5495. fi
  5496. fi
  5497. rm -rf conftest*
  5498. ;;
  5499. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5500. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5501. # Find out which ABI we are using.
  5502. echo 'int i;' > conftest.$ac_ext
  5503. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5504. (eval $ac_compile) 2>&5
  5505. ac_status=$?
  5506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5507. test $ac_status = 0; }; then
  5508. case `/usr/bin/file conftest.o` in
  5509. *32-bit*)
  5510. case $host in
  5511. x86_64-*kfreebsd*-gnu)
  5512. LD="${LD-ld} -m elf_i386_fbsd"
  5513. ;;
  5514. x86_64-*linux*)
  5515. case `/usr/bin/file conftest.o` in
  5516. *x86-64*)
  5517. LD="${LD-ld} -m elf32_x86_64"
  5518. ;;
  5519. *)
  5520. LD="${LD-ld} -m elf_i386"
  5521. ;;
  5522. esac
  5523. ;;
  5524. powerpc64le-*linux*)
  5525. LD="${LD-ld} -m elf32lppclinux"
  5526. ;;
  5527. powerpc64-*linux*)
  5528. LD="${LD-ld} -m elf32ppclinux"
  5529. ;;
  5530. s390x-*linux*)
  5531. LD="${LD-ld} -m elf_s390"
  5532. ;;
  5533. sparc64-*linux*)
  5534. LD="${LD-ld} -m elf32_sparc"
  5535. ;;
  5536. esac
  5537. ;;
  5538. *64-bit*)
  5539. case $host in
  5540. x86_64-*kfreebsd*-gnu)
  5541. LD="${LD-ld} -m elf_x86_64_fbsd"
  5542. ;;
  5543. x86_64-*linux*)
  5544. LD="${LD-ld} -m elf_x86_64"
  5545. ;;
  5546. powerpcle-*linux*)
  5547. LD="${LD-ld} -m elf64lppc"
  5548. ;;
  5549. powerpc-*linux*)
  5550. LD="${LD-ld} -m elf64ppc"
  5551. ;;
  5552. s390*-*linux*|s390*-*tpf*)
  5553. LD="${LD-ld} -m elf64_s390"
  5554. ;;
  5555. sparc*-*linux*)
  5556. LD="${LD-ld} -m elf64_sparc"
  5557. ;;
  5558. esac
  5559. ;;
  5560. esac
  5561. fi
  5562. rm -rf conftest*
  5563. ;;
  5564. *-*-sco3.2v5*)
  5565. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5566. SAVE_CFLAGS="$CFLAGS"
  5567. CFLAGS="$CFLAGS -belf"
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5569. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5570. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. ac_ext=c
  5574. ac_cpp='$CPP $CPPFLAGS'
  5575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5578. if test x$gcc_no_link = xyes; then
  5579. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5580. fi
  5581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5582. /* end confdefs.h. */
  5583. int
  5584. main ()
  5585. {
  5586. ;
  5587. return 0;
  5588. }
  5589. _ACEOF
  5590. if ac_fn_c_try_link "$LINENO"; then :
  5591. lt_cv_cc_needs_belf=yes
  5592. else
  5593. lt_cv_cc_needs_belf=no
  5594. fi
  5595. rm -f core conftest.err conftest.$ac_objext \
  5596. conftest$ac_exeext conftest.$ac_ext
  5597. ac_ext=c
  5598. ac_cpp='$CPP $CPPFLAGS'
  5599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5602. fi
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5604. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5605. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5606. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5607. CFLAGS="$SAVE_CFLAGS"
  5608. fi
  5609. ;;
  5610. sparc*-*solaris*)
  5611. # Find out which ABI we are using.
  5612. echo 'int i;' > conftest.$ac_ext
  5613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5614. (eval $ac_compile) 2>&5
  5615. ac_status=$?
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5617. test $ac_status = 0; }; then
  5618. case `/usr/bin/file conftest.o` in
  5619. *64-bit*)
  5620. case $lt_cv_prog_gnu_ld in
  5621. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5622. *)
  5623. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5624. LD="${LD-ld} -64"
  5625. fi
  5626. ;;
  5627. esac
  5628. ;;
  5629. esac
  5630. fi
  5631. rm -rf conftest*
  5632. ;;
  5633. esac
  5634. need_locks="$enable_libtool_lock"
  5635. case $host_os in
  5636. rhapsody* | darwin*)
  5637. if test -n "$ac_tool_prefix"; then
  5638. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5639. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$DSYMUTIL"; then
  5646. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5655. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5665. if test -n "$DSYMUTIL"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5667. $as_echo "$DSYMUTIL" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. fi
  5673. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5674. ac_ct_DSYMUTIL=$DSYMUTIL
  5675. # Extract the first word of "dsymutil", so it can be a program name with args.
  5676. set dummy dsymutil; ac_word=$2
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5678. $as_echo_n "checking for $ac_word... " >&6; }
  5679. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. if test -n "$ac_ct_DSYMUTIL"; then
  5683. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5684. else
  5685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5686. for as_dir in $PATH
  5687. do
  5688. IFS=$as_save_IFS
  5689. test -z "$as_dir" && as_dir=.
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5692. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5702. if test -n "$ac_ct_DSYMUTIL"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5704. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5705. else
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. $as_echo "no" >&6; }
  5708. fi
  5709. if test "x$ac_ct_DSYMUTIL" = x; then
  5710. DSYMUTIL=":"
  5711. else
  5712. case $cross_compiling:$ac_tool_warned in
  5713. yes:)
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5716. ac_tool_warned=yes ;;
  5717. esac
  5718. DSYMUTIL=$ac_ct_DSYMUTIL
  5719. fi
  5720. else
  5721. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5722. fi
  5723. if test -n "$ac_tool_prefix"; then
  5724. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5725. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5727. $as_echo_n "checking for $ac_word... " >&6; }
  5728. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. if test -n "$NMEDIT"; then
  5732. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5733. else
  5734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5735. for as_dir in $PATH
  5736. do
  5737. IFS=$as_save_IFS
  5738. test -z "$as_dir" && as_dir=.
  5739. for ac_exec_ext in '' $ac_executable_extensions; do
  5740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5741. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5743. break 2
  5744. fi
  5745. done
  5746. done
  5747. IFS=$as_save_IFS
  5748. fi
  5749. fi
  5750. NMEDIT=$ac_cv_prog_NMEDIT
  5751. if test -n "$NMEDIT"; then
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5753. $as_echo "$NMEDIT" >&6; }
  5754. else
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5756. $as_echo "no" >&6; }
  5757. fi
  5758. fi
  5759. if test -z "$ac_cv_prog_NMEDIT"; then
  5760. ac_ct_NMEDIT=$NMEDIT
  5761. # Extract the first word of "nmedit", so it can be a program name with args.
  5762. set dummy nmedit; ac_word=$2
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5764. $as_echo_n "checking for $ac_word... " >&6; }
  5765. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. if test -n "$ac_ct_NMEDIT"; then
  5769. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5770. else
  5771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5772. for as_dir in $PATH
  5773. do
  5774. IFS=$as_save_IFS
  5775. test -z "$as_dir" && as_dir=.
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5778. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5788. if test -n "$ac_ct_NMEDIT"; then
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5790. $as_echo "$ac_ct_NMEDIT" >&6; }
  5791. else
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795. if test "x$ac_ct_NMEDIT" = x; then
  5796. NMEDIT=":"
  5797. else
  5798. case $cross_compiling:$ac_tool_warned in
  5799. yes:)
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5802. ac_tool_warned=yes ;;
  5803. esac
  5804. NMEDIT=$ac_ct_NMEDIT
  5805. fi
  5806. else
  5807. NMEDIT="$ac_cv_prog_NMEDIT"
  5808. fi
  5809. if test -n "$ac_tool_prefix"; then
  5810. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5811. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$LIPO"; then
  5818. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5827. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. LIPO=$ac_cv_prog_LIPO
  5837. if test -n "$LIPO"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5839. $as_echo "$LIPO" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. fi
  5845. if test -z "$ac_cv_prog_LIPO"; then
  5846. ac_ct_LIPO=$LIPO
  5847. # Extract the first word of "lipo", so it can be a program name with args.
  5848. set dummy lipo; ac_word=$2
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5850. $as_echo_n "checking for $ac_word... " >&6; }
  5851. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. if test -n "$ac_ct_LIPO"; then
  5855. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5856. else
  5857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5858. for as_dir in $PATH
  5859. do
  5860. IFS=$as_save_IFS
  5861. test -z "$as_dir" && as_dir=.
  5862. for ac_exec_ext in '' $ac_executable_extensions; do
  5863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5864. ac_cv_prog_ac_ct_LIPO="lipo"
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5866. break 2
  5867. fi
  5868. done
  5869. done
  5870. IFS=$as_save_IFS
  5871. fi
  5872. fi
  5873. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5874. if test -n "$ac_ct_LIPO"; then
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5876. $as_echo "$ac_ct_LIPO" >&6; }
  5877. else
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5879. $as_echo "no" >&6; }
  5880. fi
  5881. if test "x$ac_ct_LIPO" = x; then
  5882. LIPO=":"
  5883. else
  5884. case $cross_compiling:$ac_tool_warned in
  5885. yes:)
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5888. ac_tool_warned=yes ;;
  5889. esac
  5890. LIPO=$ac_ct_LIPO
  5891. fi
  5892. else
  5893. LIPO="$ac_cv_prog_LIPO"
  5894. fi
  5895. if test -n "$ac_tool_prefix"; then
  5896. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5897. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$OTOOL"; then
  5904. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5913. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. OTOOL=$ac_cv_prog_OTOOL
  5923. if test -n "$OTOOL"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5925. $as_echo "$OTOOL" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. fi
  5931. if test -z "$ac_cv_prog_OTOOL"; then
  5932. ac_ct_OTOOL=$OTOOL
  5933. # Extract the first word of "otool", so it can be a program name with args.
  5934. set dummy otool; ac_word=$2
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5936. $as_echo_n "checking for $ac_word... " >&6; }
  5937. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. if test -n "$ac_ct_OTOOL"; then
  5941. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. test -z "$as_dir" && as_dir=.
  5948. for ac_exec_ext in '' $ac_executable_extensions; do
  5949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5950. ac_cv_prog_ac_ct_OTOOL="otool"
  5951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5952. break 2
  5953. fi
  5954. done
  5955. done
  5956. IFS=$as_save_IFS
  5957. fi
  5958. fi
  5959. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5960. if test -n "$ac_ct_OTOOL"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5962. $as_echo "$ac_ct_OTOOL" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5965. $as_echo "no" >&6; }
  5966. fi
  5967. if test "x$ac_ct_OTOOL" = x; then
  5968. OTOOL=":"
  5969. else
  5970. case $cross_compiling:$ac_tool_warned in
  5971. yes:)
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5974. ac_tool_warned=yes ;;
  5975. esac
  5976. OTOOL=$ac_ct_OTOOL
  5977. fi
  5978. else
  5979. OTOOL="$ac_cv_prog_OTOOL"
  5980. fi
  5981. if test -n "$ac_tool_prefix"; then
  5982. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5983. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$OTOOL64"; then
  5990. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5999. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. OTOOL64=$ac_cv_prog_OTOOL64
  6009. if test -n "$OTOOL64"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6011. $as_echo "$OTOOL64" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. fi
  6017. if test -z "$ac_cv_prog_OTOOL64"; then
  6018. ac_ct_OTOOL64=$OTOOL64
  6019. # Extract the first word of "otool64", so it can be a program name with args.
  6020. set dummy otool64; ac_word=$2
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6022. $as_echo_n "checking for $ac_word... " >&6; }
  6023. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6024. $as_echo_n "(cached) " >&6
  6025. else
  6026. if test -n "$ac_ct_OTOOL64"; then
  6027. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6028. else
  6029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6030. for as_dir in $PATH
  6031. do
  6032. IFS=$as_save_IFS
  6033. test -z "$as_dir" && as_dir=.
  6034. for ac_exec_ext in '' $ac_executable_extensions; do
  6035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6036. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6038. break 2
  6039. fi
  6040. done
  6041. done
  6042. IFS=$as_save_IFS
  6043. fi
  6044. fi
  6045. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6046. if test -n "$ac_ct_OTOOL64"; then
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6048. $as_echo "$ac_ct_OTOOL64" >&6; }
  6049. else
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6051. $as_echo "no" >&6; }
  6052. fi
  6053. if test "x$ac_ct_OTOOL64" = x; then
  6054. OTOOL64=":"
  6055. else
  6056. case $cross_compiling:$ac_tool_warned in
  6057. yes:)
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6060. ac_tool_warned=yes ;;
  6061. esac
  6062. OTOOL64=$ac_ct_OTOOL64
  6063. fi
  6064. else
  6065. OTOOL64="$ac_cv_prog_OTOOL64"
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6068. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6069. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6070. $as_echo_n "(cached) " >&6
  6071. else
  6072. lt_cv_apple_cc_single_mod=no
  6073. if test -z "${LT_MULTI_MODULE}"; then
  6074. # By default we will add the -single_module flag. You can override
  6075. # by either setting the environment variable LT_MULTI_MODULE
  6076. # non-empty at configure time, or by adding -multi_module to the
  6077. # link flags.
  6078. rm -rf libconftest.dylib*
  6079. echo "int foo(void){return 1;}" > conftest.c
  6080. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6081. -dynamiclib -Wl,-single_module conftest.c" >&5
  6082. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6083. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6084. _lt_result=$?
  6085. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6086. lt_cv_apple_cc_single_mod=yes
  6087. else
  6088. cat conftest.err >&5
  6089. fi
  6090. rm -rf libconftest.dylib*
  6091. rm -f conftest.*
  6092. fi
  6093. fi
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6095. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6097. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6098. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6099. $as_echo_n "(cached) " >&6
  6100. else
  6101. lt_cv_ld_exported_symbols_list=no
  6102. save_LDFLAGS=$LDFLAGS
  6103. echo "_main" > conftest.sym
  6104. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6105. if test x$gcc_no_link = xyes; then
  6106. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6107. fi
  6108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6109. /* end confdefs.h. */
  6110. int
  6111. main ()
  6112. {
  6113. ;
  6114. return 0;
  6115. }
  6116. _ACEOF
  6117. if ac_fn_c_try_link "$LINENO"; then :
  6118. lt_cv_ld_exported_symbols_list=yes
  6119. else
  6120. lt_cv_ld_exported_symbols_list=no
  6121. fi
  6122. rm -f core conftest.err conftest.$ac_objext \
  6123. conftest$ac_exeext conftest.$ac_ext
  6124. LDFLAGS="$save_LDFLAGS"
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6127. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6129. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6130. if test "${lt_cv_ld_force_load+set}" = set; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. lt_cv_ld_force_load=no
  6134. cat > conftest.c << _LT_EOF
  6135. int forced_loaded() { return 2;}
  6136. _LT_EOF
  6137. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6138. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6139. echo "$AR cru libconftest.a conftest.o" >&5
  6140. $AR cru libconftest.a conftest.o 2>&5
  6141. cat > conftest.c << _LT_EOF
  6142. int main() { return 0;}
  6143. _LT_EOF
  6144. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6145. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6146. _lt_result=$?
  6147. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6148. lt_cv_ld_force_load=yes
  6149. else
  6150. cat conftest.err >&5
  6151. fi
  6152. rm -f conftest.err libconftest.a conftest conftest.c
  6153. rm -rf conftest.dSYM
  6154. fi
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6156. $as_echo "$lt_cv_ld_force_load" >&6; }
  6157. case $host_os in
  6158. rhapsody* | darwin1.[012])
  6159. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6160. darwin1.*)
  6161. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6162. darwin*) # darwin 5.x on
  6163. # if running on 10.5 or later, the deployment target defaults
  6164. # to the OS version, if on x86, and 10.4, the deployment
  6165. # target defaults to 10.4. Don't you love it?
  6166. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6167. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6168. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6169. 10.[012][,.]*)
  6170. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6171. 10.*)
  6172. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6173. esac
  6174. ;;
  6175. esac
  6176. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6177. _lt_dar_single_mod='$single_module'
  6178. fi
  6179. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6180. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6181. else
  6182. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6183. fi
  6184. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6185. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6186. else
  6187. _lt_dsymutil=
  6188. fi
  6189. ;;
  6190. esac
  6191. for ac_header in dlfcn.h
  6192. do :
  6193. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6194. "
  6195. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6196. cat >>confdefs.h <<_ACEOF
  6197. #define HAVE_DLFCN_H 1
  6198. _ACEOF
  6199. fi
  6200. done
  6201. # Set options
  6202. enable_dlopen=no
  6203. enable_win32_dll=no
  6204. # Check whether --enable-shared was given.
  6205. if test "${enable_shared+set}" = set; then :
  6206. enableval=$enable_shared; p=${PACKAGE-default}
  6207. case $enableval in
  6208. yes) enable_shared=yes ;;
  6209. no) enable_shared=no ;;
  6210. *)
  6211. enable_shared=no
  6212. # Look at the argument we got. We use all the common list separators.
  6213. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6214. for pkg in $enableval; do
  6215. IFS="$lt_save_ifs"
  6216. if test "X$pkg" = "X$p"; then
  6217. enable_shared=yes
  6218. fi
  6219. done
  6220. IFS="$lt_save_ifs"
  6221. ;;
  6222. esac
  6223. else
  6224. enable_shared=yes
  6225. fi
  6226. # Check whether --enable-static was given.
  6227. if test "${enable_static+set}" = set; then :
  6228. enableval=$enable_static; p=${PACKAGE-default}
  6229. case $enableval in
  6230. yes) enable_static=yes ;;
  6231. no) enable_static=no ;;
  6232. *)
  6233. enable_static=no
  6234. # Look at the argument we got. We use all the common list separators.
  6235. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6236. for pkg in $enableval; do
  6237. IFS="$lt_save_ifs"
  6238. if test "X$pkg" = "X$p"; then
  6239. enable_static=yes
  6240. fi
  6241. done
  6242. IFS="$lt_save_ifs"
  6243. ;;
  6244. esac
  6245. else
  6246. enable_static=yes
  6247. fi
  6248. # Check whether --with-pic was given.
  6249. if test "${with_pic+set}" = set; then :
  6250. withval=$with_pic; pic_mode="$withval"
  6251. else
  6252. pic_mode=default
  6253. fi
  6254. test -z "$pic_mode" && pic_mode=default
  6255. # Check whether --enable-fast-install was given.
  6256. if test "${enable_fast_install+set}" = set; then :
  6257. enableval=$enable_fast_install; p=${PACKAGE-default}
  6258. case $enableval in
  6259. yes) enable_fast_install=yes ;;
  6260. no) enable_fast_install=no ;;
  6261. *)
  6262. enable_fast_install=no
  6263. # Look at the argument we got. We use all the common list separators.
  6264. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6265. for pkg in $enableval; do
  6266. IFS="$lt_save_ifs"
  6267. if test "X$pkg" = "X$p"; then
  6268. enable_fast_install=yes
  6269. fi
  6270. done
  6271. IFS="$lt_save_ifs"
  6272. ;;
  6273. esac
  6274. else
  6275. enable_fast_install=yes
  6276. fi
  6277. # This can be used to rebuild libtool when needed
  6278. LIBTOOL_DEPS="$ltmain"
  6279. # Always use our own libtool.
  6280. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6281. test -z "$LN_S" && LN_S="ln -s"
  6282. if test -n "${ZSH_VERSION+set}" ; then
  6283. setopt NO_GLOB_SUBST
  6284. fi
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6286. $as_echo_n "checking for objdir... " >&6; }
  6287. if test "${lt_cv_objdir+set}" = set; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. rm -f .libs 2>/dev/null
  6291. mkdir .libs 2>/dev/null
  6292. if test -d .libs; then
  6293. lt_cv_objdir=.libs
  6294. else
  6295. # MS-DOS does not allow filenames that begin with a dot.
  6296. lt_cv_objdir=_libs
  6297. fi
  6298. rmdir .libs 2>/dev/null
  6299. fi
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6301. $as_echo "$lt_cv_objdir" >&6; }
  6302. objdir=$lt_cv_objdir
  6303. cat >>confdefs.h <<_ACEOF
  6304. #define LT_OBJDIR "$lt_cv_objdir/"
  6305. _ACEOF
  6306. case $host_os in
  6307. aix3*)
  6308. # AIX sometimes has problems with the GCC collect2 program. For some
  6309. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6310. # vanish in a puff of smoke.
  6311. if test "X${COLLECT_NAMES+set}" != Xset; then
  6312. COLLECT_NAMES=
  6313. export COLLECT_NAMES
  6314. fi
  6315. ;;
  6316. esac
  6317. # Global variables:
  6318. ofile=libtool
  6319. can_build_shared=yes
  6320. # All known linkers require a `.a' archive for static linking (except MSVC,
  6321. # which needs '.lib').
  6322. libext=a
  6323. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6324. old_CC="$CC"
  6325. old_CFLAGS="$CFLAGS"
  6326. # Set sane defaults for various variables
  6327. test -z "$CC" && CC=cc
  6328. test -z "$LTCC" && LTCC=$CC
  6329. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6330. test -z "$LD" && LD=ld
  6331. test -z "$ac_objext" && ac_objext=o
  6332. for cc_temp in $compiler""; do
  6333. case $cc_temp in
  6334. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6335. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6336. \-*) ;;
  6337. *) break;;
  6338. esac
  6339. done
  6340. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6341. # Only perform the check for file, if the check method requires it
  6342. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6343. case $deplibs_check_method in
  6344. file_magic*)
  6345. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6347. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6348. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. case $MAGIC_CMD in
  6352. [\\/*] | ?:[\\/]*)
  6353. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6354. ;;
  6355. *)
  6356. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6357. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6358. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6359. for ac_dir in $ac_dummy; do
  6360. IFS="$lt_save_ifs"
  6361. test -z "$ac_dir" && ac_dir=.
  6362. if test -f $ac_dir/${ac_tool_prefix}file; then
  6363. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6364. if test -n "$file_magic_test_file"; then
  6365. case $deplibs_check_method in
  6366. "file_magic "*)
  6367. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6368. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6369. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6370. $EGREP "$file_magic_regex" > /dev/null; then
  6371. :
  6372. else
  6373. cat <<_LT_EOF 1>&2
  6374. *** Warning: the command libtool uses to detect shared libraries,
  6375. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6376. *** The result is that libtool may fail to recognize shared libraries
  6377. *** as such. This will affect the creation of libtool libraries that
  6378. *** depend on shared libraries, but programs linked with such libtool
  6379. *** libraries will work regardless of this problem. Nevertheless, you
  6380. *** may want to report the problem to your system manager and/or to
  6381. *** bug-libtool@gnu.org
  6382. _LT_EOF
  6383. fi ;;
  6384. esac
  6385. fi
  6386. break
  6387. fi
  6388. done
  6389. IFS="$lt_save_ifs"
  6390. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6391. ;;
  6392. esac
  6393. fi
  6394. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6395. if test -n "$MAGIC_CMD"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6397. $as_echo "$MAGIC_CMD" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6403. if test -n "$ac_tool_prefix"; then
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6405. $as_echo_n "checking for file... " >&6; }
  6406. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. case $MAGIC_CMD in
  6410. [\\/*] | ?:[\\/]*)
  6411. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6412. ;;
  6413. *)
  6414. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6415. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6416. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6417. for ac_dir in $ac_dummy; do
  6418. IFS="$lt_save_ifs"
  6419. test -z "$ac_dir" && ac_dir=.
  6420. if test -f $ac_dir/file; then
  6421. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6422. if test -n "$file_magic_test_file"; then
  6423. case $deplibs_check_method in
  6424. "file_magic "*)
  6425. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6426. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6427. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6428. $EGREP "$file_magic_regex" > /dev/null; then
  6429. :
  6430. else
  6431. cat <<_LT_EOF 1>&2
  6432. *** Warning: the command libtool uses to detect shared libraries,
  6433. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6434. *** The result is that libtool may fail to recognize shared libraries
  6435. *** as such. This will affect the creation of libtool libraries that
  6436. *** depend on shared libraries, but programs linked with such libtool
  6437. *** libraries will work regardless of this problem. Nevertheless, you
  6438. *** may want to report the problem to your system manager and/or to
  6439. *** bug-libtool@gnu.org
  6440. _LT_EOF
  6441. fi ;;
  6442. esac
  6443. fi
  6444. break
  6445. fi
  6446. done
  6447. IFS="$lt_save_ifs"
  6448. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6449. ;;
  6450. esac
  6451. fi
  6452. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6453. if test -n "$MAGIC_CMD"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6455. $as_echo "$MAGIC_CMD" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. else
  6461. MAGIC_CMD=:
  6462. fi
  6463. fi
  6464. fi
  6465. ;;
  6466. esac
  6467. # Use C for the default configuration in the libtool script
  6468. lt_save_CC="$CC"
  6469. ac_ext=c
  6470. ac_cpp='$CPP $CPPFLAGS'
  6471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6474. # Source file extension for C test sources.
  6475. ac_ext=c
  6476. # Object file extension for compiled C test sources.
  6477. objext=o
  6478. objext=$objext
  6479. # Code to be used in simple compile tests
  6480. lt_simple_compile_test_code="int some_variable = 0;"
  6481. # Code to be used in simple link tests
  6482. lt_simple_link_test_code='int main(){return(0);}'
  6483. # If no C compiler was specified, use CC.
  6484. LTCC=${LTCC-"$CC"}
  6485. # If no C compiler flags were specified, use CFLAGS.
  6486. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6487. # Allow CC to be a program name with arguments.
  6488. compiler=$CC
  6489. # Save the default compiler, since it gets overwritten when the other
  6490. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6491. compiler_DEFAULT=$CC
  6492. # save warnings/boilerplate of simple test code
  6493. ac_outfile=conftest.$ac_objext
  6494. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6495. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6496. _lt_compiler_boilerplate=`cat conftest.err`
  6497. $RM conftest*
  6498. ac_outfile=conftest.$ac_objext
  6499. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6500. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6501. _lt_linker_boilerplate=`cat conftest.err`
  6502. $RM -r conftest*
  6503. ## CAVEAT EMPTOR:
  6504. ## There is no encapsulation within the following macros, do not change
  6505. ## the running order or otherwise move them around unless you know exactly
  6506. ## what you are doing...
  6507. if test -n "$compiler"; then
  6508. lt_prog_compiler_no_builtin_flag=
  6509. if test "$GCC" = yes; then
  6510. case $cc_basename in
  6511. nvcc*)
  6512. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6513. *)
  6514. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6515. esac
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6517. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6518. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. lt_cv_prog_compiler_rtti_exceptions=no
  6522. ac_outfile=conftest.$ac_objext
  6523. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6524. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6525. # Insert the option either (1) after the last *FLAGS variable, or
  6526. # (2) before a word containing "conftest.", or (3) at the end.
  6527. # Note that $ac_compile itself does not contain backslashes and begins
  6528. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6529. # The option is referenced via a variable to avoid confusing sed.
  6530. lt_compile=`echo "$ac_compile" | $SED \
  6531. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6532. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6533. -e 's:$: $lt_compiler_flag:'`
  6534. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6535. (eval "$lt_compile" 2>conftest.err)
  6536. ac_status=$?
  6537. cat conftest.err >&5
  6538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6539. if (exit $ac_status) && test -s "$ac_outfile"; then
  6540. # The compiler can only warn and ignore the option if not recognized
  6541. # So say no if there are warnings other than the usual output.
  6542. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6543. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6544. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6545. lt_cv_prog_compiler_rtti_exceptions=yes
  6546. fi
  6547. fi
  6548. $RM conftest*
  6549. fi
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6551. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6552. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6553. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6554. else
  6555. :
  6556. fi
  6557. fi
  6558. lt_prog_compiler_wl=
  6559. lt_prog_compiler_pic=
  6560. lt_prog_compiler_static=
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6562. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6563. if test "$GCC" = yes; then
  6564. lt_prog_compiler_wl='-Wl,'
  6565. lt_prog_compiler_static='-static'
  6566. case $host_os in
  6567. aix*)
  6568. # All AIX code is PIC.
  6569. if test "$host_cpu" = ia64; then
  6570. # AIX 5 now supports IA64 processor
  6571. lt_prog_compiler_static='-Bstatic'
  6572. fi
  6573. lt_prog_compiler_pic='-fPIC'
  6574. ;;
  6575. amigaos*)
  6576. case $host_cpu in
  6577. powerpc)
  6578. # see comment about AmigaOS4 .so support
  6579. lt_prog_compiler_pic='-fPIC'
  6580. ;;
  6581. m68k)
  6582. # FIXME: we need at least 68020 code to build shared libraries, but
  6583. # adding the `-m68020' flag to GCC prevents building anything better,
  6584. # like `-m68040'.
  6585. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6586. ;;
  6587. esac
  6588. ;;
  6589. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6590. # PIC is the default for these OSes.
  6591. ;;
  6592. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6593. # This hack is so that the source file can tell whether it is being
  6594. # built for inclusion in a dll (and should export symbols for example).
  6595. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6596. # (--disable-auto-import) libraries
  6597. lt_prog_compiler_pic='-DDLL_EXPORT'
  6598. ;;
  6599. darwin* | rhapsody*)
  6600. # PIC is the default on this platform
  6601. # Common symbols not allowed in MH_DYLIB files
  6602. lt_prog_compiler_pic='-fno-common'
  6603. ;;
  6604. haiku*)
  6605. # PIC is the default for Haiku.
  6606. # The "-static" flag exists, but is broken.
  6607. lt_prog_compiler_static=
  6608. ;;
  6609. hpux*)
  6610. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6611. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6612. # sets the default TLS model and affects inlining.
  6613. case $host_cpu in
  6614. hppa*64*)
  6615. # +Z the default
  6616. ;;
  6617. *)
  6618. lt_prog_compiler_pic='-fPIC'
  6619. ;;
  6620. esac
  6621. ;;
  6622. interix[3-9]*)
  6623. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6624. # Instead, we relocate shared libraries at runtime.
  6625. ;;
  6626. msdosdjgpp*)
  6627. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6628. # on systems that don't support them.
  6629. lt_prog_compiler_can_build_shared=no
  6630. enable_shared=no
  6631. ;;
  6632. *nto* | *qnx*)
  6633. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6634. # it will coredump.
  6635. lt_prog_compiler_pic='-fPIC -shared'
  6636. ;;
  6637. sysv4*MP*)
  6638. if test -d /usr/nec; then
  6639. lt_prog_compiler_pic=-Kconform_pic
  6640. fi
  6641. ;;
  6642. *)
  6643. lt_prog_compiler_pic='-fPIC'
  6644. ;;
  6645. esac
  6646. case $cc_basename in
  6647. nvcc*) # Cuda Compiler Driver 2.2
  6648. lt_prog_compiler_wl='-Xlinker '
  6649. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6650. ;;
  6651. esac
  6652. else
  6653. # PORTME Check for flag to pass linker flags through the system compiler.
  6654. case $host_os in
  6655. aix*)
  6656. lt_prog_compiler_wl='-Wl,'
  6657. if test "$host_cpu" = ia64; then
  6658. # AIX 5 now supports IA64 processor
  6659. lt_prog_compiler_static='-Bstatic'
  6660. else
  6661. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6662. fi
  6663. ;;
  6664. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6665. # This hack is so that the source file can tell whether it is being
  6666. # built for inclusion in a dll (and should export symbols for example).
  6667. lt_prog_compiler_pic='-DDLL_EXPORT'
  6668. ;;
  6669. hpux9* | hpux10* | hpux11*)
  6670. lt_prog_compiler_wl='-Wl,'
  6671. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6672. # not for PA HP-UX.
  6673. case $host_cpu in
  6674. hppa*64*|ia64*)
  6675. # +Z the default
  6676. ;;
  6677. *)
  6678. lt_prog_compiler_pic='+Z'
  6679. ;;
  6680. esac
  6681. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6682. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6683. ;;
  6684. irix5* | irix6* | nonstopux*)
  6685. lt_prog_compiler_wl='-Wl,'
  6686. # PIC (with -KPIC) is the default.
  6687. lt_prog_compiler_static='-non_shared'
  6688. ;;
  6689. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6690. case $cc_basename in
  6691. # old Intel for x86_64 which still supported -KPIC.
  6692. ecc*)
  6693. lt_prog_compiler_wl='-Wl,'
  6694. lt_prog_compiler_pic='-KPIC'
  6695. lt_prog_compiler_static='-static'
  6696. ;;
  6697. # icc used to be incompatible with GCC.
  6698. # ICC 10 doesn't accept -KPIC any more.
  6699. icc* | ifort*)
  6700. lt_prog_compiler_wl='-Wl,'
  6701. lt_prog_compiler_pic='-fPIC'
  6702. lt_prog_compiler_static='-static'
  6703. ;;
  6704. # Lahey Fortran 8.1.
  6705. lf95*)
  6706. lt_prog_compiler_wl='-Wl,'
  6707. lt_prog_compiler_pic='--shared'
  6708. lt_prog_compiler_static='--static'
  6709. ;;
  6710. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6711. # Portland Group compilers (*not* the Pentium gcc compiler,
  6712. # which looks to be a dead project)
  6713. lt_prog_compiler_wl='-Wl,'
  6714. lt_prog_compiler_pic='-fpic'
  6715. lt_prog_compiler_static='-Bstatic'
  6716. ;;
  6717. ccc*)
  6718. lt_prog_compiler_wl='-Wl,'
  6719. # All Alpha code is PIC.
  6720. lt_prog_compiler_static='-non_shared'
  6721. ;;
  6722. xl* | bgxl* | bgf* | mpixl*)
  6723. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6724. lt_prog_compiler_wl='-Wl,'
  6725. lt_prog_compiler_pic='-qpic'
  6726. lt_prog_compiler_static='-qstaticlink'
  6727. ;;
  6728. *)
  6729. case `$CC -V 2>&1 | sed 5q` in
  6730. *Sun\ F* | *Sun*Fortran*)
  6731. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6732. lt_prog_compiler_pic='-KPIC'
  6733. lt_prog_compiler_static='-Bstatic'
  6734. lt_prog_compiler_wl=''
  6735. ;;
  6736. *Sun\ C*)
  6737. # Sun C 5.9
  6738. lt_prog_compiler_pic='-KPIC'
  6739. lt_prog_compiler_static='-Bstatic'
  6740. lt_prog_compiler_wl='-Wl,'
  6741. ;;
  6742. esac
  6743. ;;
  6744. esac
  6745. ;;
  6746. newsos6)
  6747. lt_prog_compiler_pic='-KPIC'
  6748. lt_prog_compiler_static='-Bstatic'
  6749. ;;
  6750. *nto* | *qnx*)
  6751. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6752. # it will coredump.
  6753. lt_prog_compiler_pic='-fPIC -shared'
  6754. ;;
  6755. osf3* | osf4* | osf5*)
  6756. lt_prog_compiler_wl='-Wl,'
  6757. # All OSF/1 code is PIC.
  6758. lt_prog_compiler_static='-non_shared'
  6759. ;;
  6760. rdos*)
  6761. lt_prog_compiler_static='-non_shared'
  6762. ;;
  6763. solaris*)
  6764. lt_prog_compiler_pic='-KPIC'
  6765. lt_prog_compiler_static='-Bstatic'
  6766. case $cc_basename in
  6767. f77* | f90* | f95*)
  6768. lt_prog_compiler_wl='-Qoption ld ';;
  6769. *)
  6770. lt_prog_compiler_wl='-Wl,';;
  6771. esac
  6772. ;;
  6773. sunos4*)
  6774. lt_prog_compiler_wl='-Qoption ld '
  6775. lt_prog_compiler_pic='-PIC'
  6776. lt_prog_compiler_static='-Bstatic'
  6777. ;;
  6778. sysv4 | sysv4.2uw2* | sysv4.3*)
  6779. lt_prog_compiler_wl='-Wl,'
  6780. lt_prog_compiler_pic='-KPIC'
  6781. lt_prog_compiler_static='-Bstatic'
  6782. ;;
  6783. sysv4*MP*)
  6784. if test -d /usr/nec ;then
  6785. lt_prog_compiler_pic='-Kconform_pic'
  6786. lt_prog_compiler_static='-Bstatic'
  6787. fi
  6788. ;;
  6789. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6790. lt_prog_compiler_wl='-Wl,'
  6791. lt_prog_compiler_pic='-KPIC'
  6792. lt_prog_compiler_static='-Bstatic'
  6793. ;;
  6794. unicos*)
  6795. lt_prog_compiler_wl='-Wl,'
  6796. lt_prog_compiler_can_build_shared=no
  6797. ;;
  6798. uts4*)
  6799. lt_prog_compiler_pic='-pic'
  6800. lt_prog_compiler_static='-Bstatic'
  6801. ;;
  6802. *)
  6803. lt_prog_compiler_can_build_shared=no
  6804. ;;
  6805. esac
  6806. fi
  6807. case $host_os in
  6808. # For platforms which do not support PIC, -DPIC is meaningless:
  6809. *djgpp*)
  6810. lt_prog_compiler_pic=
  6811. ;;
  6812. *)
  6813. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6814. ;;
  6815. esac
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6817. $as_echo "$lt_prog_compiler_pic" >&6; }
  6818. #
  6819. # Check to make sure the PIC flag actually works.
  6820. #
  6821. if test -n "$lt_prog_compiler_pic"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6823. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6824. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. lt_cv_prog_compiler_pic_works=no
  6828. ac_outfile=conftest.$ac_objext
  6829. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6830. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6831. # Insert the option either (1) after the last *FLAGS variable, or
  6832. # (2) before a word containing "conftest.", or (3) at the end.
  6833. # Note that $ac_compile itself does not contain backslashes and begins
  6834. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6835. # The option is referenced via a variable to avoid confusing sed.
  6836. lt_compile=`echo "$ac_compile" | $SED \
  6837. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6838. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6839. -e 's:$: $lt_compiler_flag:'`
  6840. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6841. (eval "$lt_compile" 2>conftest.err)
  6842. ac_status=$?
  6843. cat conftest.err >&5
  6844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6845. if (exit $ac_status) && test -s "$ac_outfile"; then
  6846. # The compiler can only warn and ignore the option if not recognized
  6847. # So say no if there are warnings other than the usual output.
  6848. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6849. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6850. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6851. lt_cv_prog_compiler_pic_works=yes
  6852. fi
  6853. fi
  6854. $RM conftest*
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6857. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6858. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6859. case $lt_prog_compiler_pic in
  6860. "" | " "*) ;;
  6861. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6862. esac
  6863. else
  6864. lt_prog_compiler_pic=
  6865. lt_prog_compiler_can_build_shared=no
  6866. fi
  6867. fi
  6868. #
  6869. # Check to make sure the static flag actually works.
  6870. #
  6871. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6873. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6874. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. lt_cv_prog_compiler_static_works=no
  6878. save_LDFLAGS="$LDFLAGS"
  6879. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6880. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6881. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6882. # The linker can only warn and ignore the option if not recognized
  6883. # So say no if there are warnings
  6884. if test -s conftest.err; then
  6885. # Append any errors to the config.log.
  6886. cat conftest.err 1>&5
  6887. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6888. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6889. if diff conftest.exp conftest.er2 >/dev/null; then
  6890. lt_cv_prog_compiler_static_works=yes
  6891. fi
  6892. else
  6893. lt_cv_prog_compiler_static_works=yes
  6894. fi
  6895. fi
  6896. $RM -r conftest*
  6897. LDFLAGS="$save_LDFLAGS"
  6898. fi
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6900. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6901. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6902. :
  6903. else
  6904. lt_prog_compiler_static=
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6907. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6908. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. lt_cv_prog_compiler_c_o=no
  6912. $RM -r conftest 2>/dev/null
  6913. mkdir conftest
  6914. cd conftest
  6915. mkdir out
  6916. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6917. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6918. # Insert the option either (1) after the last *FLAGS variable, or
  6919. # (2) before a word containing "conftest.", or (3) at the end.
  6920. # Note that $ac_compile itself does not contain backslashes and begins
  6921. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6922. lt_compile=`echo "$ac_compile" | $SED \
  6923. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6924. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6925. -e 's:$: $lt_compiler_flag:'`
  6926. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6927. (eval "$lt_compile" 2>out/conftest.err)
  6928. ac_status=$?
  6929. cat out/conftest.err >&5
  6930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6931. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6932. then
  6933. # The compiler can only warn and ignore the option if not recognized
  6934. # So say no if there are warnings
  6935. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6936. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6937. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6938. lt_cv_prog_compiler_c_o=yes
  6939. fi
  6940. fi
  6941. chmod u+w . 2>&5
  6942. $RM conftest*
  6943. # SGI C++ compiler will create directory out/ii_files/ for
  6944. # template instantiation
  6945. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6946. $RM out/* && rmdir out
  6947. cd ..
  6948. $RM -r conftest
  6949. $RM conftest*
  6950. fi
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6952. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6954. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6955. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. lt_cv_prog_compiler_c_o=no
  6959. $RM -r conftest 2>/dev/null
  6960. mkdir conftest
  6961. cd conftest
  6962. mkdir out
  6963. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6964. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6965. # Insert the option either (1) after the last *FLAGS variable, or
  6966. # (2) before a word containing "conftest.", or (3) at the end.
  6967. # Note that $ac_compile itself does not contain backslashes and begins
  6968. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6969. lt_compile=`echo "$ac_compile" | $SED \
  6970. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6971. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6972. -e 's:$: $lt_compiler_flag:'`
  6973. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6974. (eval "$lt_compile" 2>out/conftest.err)
  6975. ac_status=$?
  6976. cat out/conftest.err >&5
  6977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6978. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6979. then
  6980. # The compiler can only warn and ignore the option if not recognized
  6981. # So say no if there are warnings
  6982. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6983. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6984. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6985. lt_cv_prog_compiler_c_o=yes
  6986. fi
  6987. fi
  6988. chmod u+w . 2>&5
  6989. $RM conftest*
  6990. # SGI C++ compiler will create directory out/ii_files/ for
  6991. # template instantiation
  6992. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6993. $RM out/* && rmdir out
  6994. cd ..
  6995. $RM -r conftest
  6996. $RM conftest*
  6997. fi
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6999. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7000. hard_links="nottested"
  7001. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7002. # do not overwrite the value of need_locks provided by the user
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7004. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7005. hard_links=yes
  7006. $RM conftest*
  7007. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7008. touch conftest.a
  7009. ln conftest.a conftest.b 2>&5 || hard_links=no
  7010. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7012. $as_echo "$hard_links" >&6; }
  7013. if test "$hard_links" = no; then
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7015. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7016. need_locks=warn
  7017. fi
  7018. else
  7019. need_locks=no
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7022. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7023. runpath_var=
  7024. allow_undefined_flag=
  7025. always_export_symbols=no
  7026. archive_cmds=
  7027. archive_expsym_cmds=
  7028. compiler_needs_object=no
  7029. enable_shared_with_static_runtimes=no
  7030. export_dynamic_flag_spec=
  7031. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7032. hardcode_automatic=no
  7033. hardcode_direct=no
  7034. hardcode_direct_absolute=no
  7035. hardcode_libdir_flag_spec=
  7036. hardcode_libdir_flag_spec_ld=
  7037. hardcode_libdir_separator=
  7038. hardcode_minus_L=no
  7039. hardcode_shlibpath_var=unsupported
  7040. inherit_rpath=no
  7041. link_all_deplibs=unknown
  7042. module_cmds=
  7043. module_expsym_cmds=
  7044. old_archive_from_new_cmds=
  7045. old_archive_from_expsyms_cmds=
  7046. thread_safe_flag_spec=
  7047. whole_archive_flag_spec=
  7048. # include_expsyms should be a list of space-separated symbols to be *always*
  7049. # included in the symbol list
  7050. include_expsyms=
  7051. # exclude_expsyms can be an extended regexp of symbols to exclude
  7052. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7053. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7054. # as well as any symbol that contains `d'.
  7055. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7056. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7057. # platforms (ab)use it in PIC code, but their linkers get confused if
  7058. # the symbol is explicitly referenced. Since portable code cannot
  7059. # rely on this symbol name, it's probably fine to never include it in
  7060. # preloaded symbol tables.
  7061. # Exclude shared library initialization/finalization symbols.
  7062. extract_expsyms_cmds=
  7063. case $host_os in
  7064. cygwin* | mingw* | pw32* | cegcc*)
  7065. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7066. # When not using gcc, we currently assume that we are using
  7067. # Microsoft Visual C++.
  7068. if test "$GCC" != yes; then
  7069. with_gnu_ld=no
  7070. fi
  7071. ;;
  7072. interix*)
  7073. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7074. with_gnu_ld=yes
  7075. ;;
  7076. openbsd*)
  7077. with_gnu_ld=no
  7078. ;;
  7079. esac
  7080. ld_shlibs=yes
  7081. # On some targets, GNU ld is compatible enough with the native linker
  7082. # that we're better off using the native interface for both.
  7083. lt_use_gnu_ld_interface=no
  7084. if test "$with_gnu_ld" = yes; then
  7085. case $host_os in
  7086. aix*)
  7087. # The AIX port of GNU ld has always aspired to compatibility
  7088. # with the native linker. However, as the warning in the GNU ld
  7089. # block says, versions before 2.19.5* couldn't really create working
  7090. # shared libraries, regardless of the interface used.
  7091. case `$LD -v 2>&1` in
  7092. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7093. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7094. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7095. *)
  7096. lt_use_gnu_ld_interface=yes
  7097. ;;
  7098. esac
  7099. ;;
  7100. *)
  7101. lt_use_gnu_ld_interface=yes
  7102. ;;
  7103. esac
  7104. fi
  7105. if test "$lt_use_gnu_ld_interface" = yes; then
  7106. # If archive_cmds runs LD, not CC, wlarc should be empty
  7107. wlarc='${wl}'
  7108. # Set some defaults for GNU ld with shared library support. These
  7109. # are reset later if shared libraries are not supported. Putting them
  7110. # here allows them to be overridden if necessary.
  7111. runpath_var=LD_RUN_PATH
  7112. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7113. export_dynamic_flag_spec='${wl}--export-dynamic'
  7114. # ancient GNU ld didn't support --whole-archive et. al.
  7115. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7116. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7117. else
  7118. whole_archive_flag_spec=
  7119. fi
  7120. supports_anon_versioning=no
  7121. case `$LD -v 2>&1` in
  7122. *GNU\ gold*) supports_anon_versioning=yes ;;
  7123. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7124. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7125. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7126. *\ 2.11.*) ;; # other 2.11 versions
  7127. *) supports_anon_versioning=yes ;;
  7128. esac
  7129. # See if GNU ld supports shared libraries.
  7130. case $host_os in
  7131. aix[3-9]*)
  7132. # On AIX/PPC, the GNU linker is very broken
  7133. if test "$host_cpu" != ia64; then
  7134. ld_shlibs=no
  7135. cat <<_LT_EOF 1>&2
  7136. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7137. *** to be unable to reliably create shared libraries on AIX.
  7138. *** Therefore, libtool is disabling shared libraries support. If you
  7139. *** really care for shared libraries, you may want to install binutils
  7140. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7141. *** You will then need to restart the configuration process.
  7142. _LT_EOF
  7143. fi
  7144. ;;
  7145. amigaos*)
  7146. case $host_cpu in
  7147. powerpc)
  7148. # see comment about AmigaOS4 .so support
  7149. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7150. archive_expsym_cmds=''
  7151. ;;
  7152. m68k)
  7153. 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)'
  7154. hardcode_libdir_flag_spec='-L$libdir'
  7155. hardcode_minus_L=yes
  7156. ;;
  7157. esac
  7158. ;;
  7159. beos*)
  7160. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7161. allow_undefined_flag=unsupported
  7162. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7163. # support --undefined. This deserves some investigation. FIXME
  7164. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7165. else
  7166. ld_shlibs=no
  7167. fi
  7168. ;;
  7169. cygwin* | mingw* | pw32* | cegcc*)
  7170. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7171. # as there is no search path for DLLs.
  7172. hardcode_libdir_flag_spec='-L$libdir'
  7173. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7174. allow_undefined_flag=unsupported
  7175. always_export_symbols=no
  7176. enable_shared_with_static_runtimes=yes
  7177. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7178. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7179. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7180. # If the export-symbols file already is a .def file (1st line
  7181. # is EXPORTS), use it as is; otherwise, prepend...
  7182. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7183. cp $export_symbols $output_objdir/$soname.def;
  7184. else
  7185. echo EXPORTS > $output_objdir/$soname.def;
  7186. cat $export_symbols >> $output_objdir/$soname.def;
  7187. fi~
  7188. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7189. else
  7190. ld_shlibs=no
  7191. fi
  7192. ;;
  7193. haiku*)
  7194. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7195. link_all_deplibs=yes
  7196. ;;
  7197. interix[3-9]*)
  7198. hardcode_direct=no
  7199. hardcode_shlibpath_var=no
  7200. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7201. export_dynamic_flag_spec='${wl}-E'
  7202. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7203. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7204. # default) and relocated if they conflict, which is a slow very memory
  7205. # consuming and fragmenting process. To avoid this, we pick a random,
  7206. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7207. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7208. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7209. 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'
  7210. ;;
  7211. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7212. tmp_diet=no
  7213. if test "$host_os" = linux-dietlibc; then
  7214. case $cc_basename in
  7215. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7216. esac
  7217. fi
  7218. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7219. && test "$tmp_diet" = no
  7220. then
  7221. tmp_addflag=' $pic_flag'
  7222. tmp_sharedflag='-shared'
  7223. case $cc_basename,$host_cpu in
  7224. pgcc*) # Portland Group C compiler
  7225. 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'
  7226. tmp_addflag=' $pic_flag'
  7227. ;;
  7228. pgf77* | pgf90* | pgf95* | pgfortran*)
  7229. # Portland Group f77 and f90 compilers
  7230. 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'
  7231. tmp_addflag=' $pic_flag -Mnomain' ;;
  7232. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7233. tmp_addflag=' -i_dynamic' ;;
  7234. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7235. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7236. ifc* | ifort*) # Intel Fortran compiler
  7237. tmp_addflag=' -nofor_main' ;;
  7238. lf95*) # Lahey Fortran 8.1
  7239. whole_archive_flag_spec=
  7240. tmp_sharedflag='--shared' ;;
  7241. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7242. tmp_sharedflag='-qmkshrobj'
  7243. tmp_addflag= ;;
  7244. nvcc*) # Cuda Compiler Driver 2.2
  7245. 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'
  7246. compiler_needs_object=yes
  7247. ;;
  7248. esac
  7249. case `$CC -V 2>&1 | sed 5q` in
  7250. *Sun\ C*) # Sun C 5.9
  7251. 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'
  7252. compiler_needs_object=yes
  7253. tmp_sharedflag='-G' ;;
  7254. *Sun\ F*) # Sun Fortran 8.3
  7255. tmp_sharedflag='-G' ;;
  7256. esac
  7257. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7258. if test "x$supports_anon_versioning" = xyes; then
  7259. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7260. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7261. echo "local: *; };" >> $output_objdir/$libname.ver~
  7262. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7263. fi
  7264. case $cc_basename in
  7265. xlf* | bgf* | bgxlf* | mpixlf*)
  7266. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7267. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7268. hardcode_libdir_flag_spec=
  7269. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7270. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7271. if test "x$supports_anon_versioning" = xyes; then
  7272. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7273. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7274. echo "local: *; };" >> $output_objdir/$libname.ver~
  7275. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7276. fi
  7277. ;;
  7278. esac
  7279. else
  7280. ld_shlibs=no
  7281. fi
  7282. ;;
  7283. netbsd*)
  7284. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7285. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7286. wlarc=
  7287. else
  7288. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7289. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7290. fi
  7291. ;;
  7292. solaris*)
  7293. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7294. ld_shlibs=no
  7295. cat <<_LT_EOF 1>&2
  7296. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7297. *** create shared libraries on Solaris systems. Therefore, libtool
  7298. *** is disabling shared libraries support. We urge you to upgrade GNU
  7299. *** binutils to release 2.9.1 or newer. Another option is to modify
  7300. *** your PATH or compiler configuration so that the native linker is
  7301. *** used, and then restart.
  7302. _LT_EOF
  7303. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7304. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7305. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7306. else
  7307. ld_shlibs=no
  7308. fi
  7309. ;;
  7310. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7311. case `$LD -v 2>&1` in
  7312. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7313. ld_shlibs=no
  7314. cat <<_LT_EOF 1>&2
  7315. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7316. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7317. *** is disabling shared libraries support. We urge you to upgrade GNU
  7318. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7319. *** your PATH or compiler configuration so that the native linker is
  7320. *** used, and then restart.
  7321. _LT_EOF
  7322. ;;
  7323. *)
  7324. # For security reasons, it is highly recommended that you always
  7325. # use absolute paths for naming shared libraries, and exclude the
  7326. # DT_RUNPATH tag from executables and libraries. But doing so
  7327. # requires that you compile everything twice, which is a pain.
  7328. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7329. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7330. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7331. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7332. else
  7333. ld_shlibs=no
  7334. fi
  7335. ;;
  7336. esac
  7337. ;;
  7338. sunos4*)
  7339. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7340. wlarc=
  7341. hardcode_direct=yes
  7342. hardcode_shlibpath_var=no
  7343. ;;
  7344. *)
  7345. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7347. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7348. else
  7349. ld_shlibs=no
  7350. fi
  7351. ;;
  7352. esac
  7353. if test "$ld_shlibs" = no; then
  7354. runpath_var=
  7355. hardcode_libdir_flag_spec=
  7356. export_dynamic_flag_spec=
  7357. whole_archive_flag_spec=
  7358. fi
  7359. else
  7360. # PORTME fill in a description of your system's linker (not GNU ld)
  7361. case $host_os in
  7362. aix3*)
  7363. allow_undefined_flag=unsupported
  7364. always_export_symbols=yes
  7365. 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'
  7366. # Note: this linker hardcodes the directories in LIBPATH if there
  7367. # are no directories specified by -L.
  7368. hardcode_minus_L=yes
  7369. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7370. # Neither direct hardcoding nor static linking is supported with a
  7371. # broken collect2.
  7372. hardcode_direct=unsupported
  7373. fi
  7374. ;;
  7375. aix[4-9]*)
  7376. if test "$host_cpu" = ia64; then
  7377. # On IA64, the linker does run time linking by default, so we don't
  7378. # have to do anything special.
  7379. aix_use_runtimelinking=no
  7380. exp_sym_flag='-Bexport'
  7381. no_entry_flag=""
  7382. else
  7383. # If we're using GNU nm, then we don't want the "-C" option.
  7384. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7385. # Also, AIX nm treats weak defined symbols like other global
  7386. # defined symbols, whereas GNU nm marks them as "W".
  7387. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7388. 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'
  7389. else
  7390. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7391. fi
  7392. aix_use_runtimelinking=no
  7393. # Test if we are trying to use run time linking or normal
  7394. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7395. # need to do runtime linking.
  7396. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7397. for ld_flag in $LDFLAGS; do
  7398. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7399. aix_use_runtimelinking=yes
  7400. break
  7401. fi
  7402. done
  7403. ;;
  7404. esac
  7405. exp_sym_flag='-bexport'
  7406. no_entry_flag='-bnoentry'
  7407. fi
  7408. # When large executables or shared objects are built, AIX ld can
  7409. # have problems creating the table of contents. If linking a library
  7410. # or program results in "error TOC overflow" add -mminimal-toc to
  7411. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7412. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7413. archive_cmds=''
  7414. hardcode_direct=yes
  7415. hardcode_direct_absolute=yes
  7416. hardcode_libdir_separator=':'
  7417. link_all_deplibs=yes
  7418. file_list_spec='${wl}-f,'
  7419. if test "$GCC" = yes; then
  7420. case $host_os in aix4.[012]|aix4.[012].*)
  7421. # We only want to do this on AIX 4.2 and lower, the check
  7422. # below for broken collect2 doesn't work under 4.3+
  7423. collect2name=`${CC} -print-prog-name=collect2`
  7424. if test -f "$collect2name" &&
  7425. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7426. then
  7427. # We have reworked collect2
  7428. :
  7429. else
  7430. # We have old collect2
  7431. hardcode_direct=unsupported
  7432. # It fails to find uninstalled libraries when the uninstalled
  7433. # path is not listed in the libpath. Setting hardcode_minus_L
  7434. # to unsupported forces relinking
  7435. hardcode_minus_L=yes
  7436. hardcode_libdir_flag_spec='-L$libdir'
  7437. hardcode_libdir_separator=
  7438. fi
  7439. ;;
  7440. esac
  7441. shared_flag='-shared'
  7442. if test "$aix_use_runtimelinking" = yes; then
  7443. shared_flag="$shared_flag "'${wl}-G'
  7444. fi
  7445. else
  7446. # not using gcc
  7447. if test "$host_cpu" = ia64; then
  7448. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7449. # chokes on -Wl,-G. The following line is correct:
  7450. shared_flag='-G'
  7451. else
  7452. if test "$aix_use_runtimelinking" = yes; then
  7453. shared_flag='${wl}-G'
  7454. else
  7455. shared_flag='${wl}-bM:SRE'
  7456. fi
  7457. fi
  7458. fi
  7459. export_dynamic_flag_spec='${wl}-bexpall'
  7460. # It seems that -bexpall does not export symbols beginning with
  7461. # underscore (_), so it is better to generate a list of symbols to export.
  7462. always_export_symbols=yes
  7463. if test "$aix_use_runtimelinking" = yes; then
  7464. # Warning - without using the other runtime loading flags (-brtl),
  7465. # -berok will link without error, but may produce a broken library.
  7466. allow_undefined_flag='-berok'
  7467. # Determine the default libpath from the value encoded in an
  7468. # empty executable.
  7469. if test x$gcc_no_link = xyes; then
  7470. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7471. fi
  7472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7473. /* end confdefs.h. */
  7474. int
  7475. main ()
  7476. {
  7477. ;
  7478. return 0;
  7479. }
  7480. _ACEOF
  7481. if ac_fn_c_try_link "$LINENO"; then :
  7482. lt_aix_libpath_sed='
  7483. /Import File Strings/,/^$/ {
  7484. /^0/ {
  7485. s/^0 *\(.*\)$/\1/
  7486. p
  7487. }
  7488. }'
  7489. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7490. # Check for a 64-bit object if we didn't find anything.
  7491. if test -z "$aix_libpath"; then
  7492. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7493. fi
  7494. fi
  7495. rm -f core conftest.err conftest.$ac_objext \
  7496. conftest$ac_exeext conftest.$ac_ext
  7497. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7498. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7499. 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"
  7500. else
  7501. if test "$host_cpu" = ia64; then
  7502. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7503. allow_undefined_flag="-z nodefs"
  7504. 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"
  7505. else
  7506. # Determine the default libpath from the value encoded in an
  7507. # empty executable.
  7508. if test x$gcc_no_link = xyes; then
  7509. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7510. fi
  7511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7512. /* end confdefs.h. */
  7513. int
  7514. main ()
  7515. {
  7516. ;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. if ac_fn_c_try_link "$LINENO"; then :
  7521. lt_aix_libpath_sed='
  7522. /Import File Strings/,/^$/ {
  7523. /^0/ {
  7524. s/^0 *\(.*\)$/\1/
  7525. p
  7526. }
  7527. }'
  7528. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7529. # Check for a 64-bit object if we didn't find anything.
  7530. if test -z "$aix_libpath"; then
  7531. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7532. fi
  7533. fi
  7534. rm -f core conftest.err conftest.$ac_objext \
  7535. conftest$ac_exeext conftest.$ac_ext
  7536. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7537. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7538. # Warning - without using the other run time loading flags,
  7539. # -berok will link without error, but may produce a broken library.
  7540. no_undefined_flag=' ${wl}-bernotok'
  7541. allow_undefined_flag=' ${wl}-berok'
  7542. if test "$with_gnu_ld" = yes; then
  7543. # We only use this code for GNU lds that support --whole-archive.
  7544. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7545. else
  7546. # Exported symbols can be pulled into shared objects from archives
  7547. whole_archive_flag_spec='$convenience'
  7548. fi
  7549. archive_cmds_need_lc=yes
  7550. # This is similar to how AIX traditionally builds its shared libraries.
  7551. 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'
  7552. fi
  7553. fi
  7554. ;;
  7555. amigaos*)
  7556. case $host_cpu in
  7557. powerpc)
  7558. # see comment about AmigaOS4 .so support
  7559. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7560. archive_expsym_cmds=''
  7561. ;;
  7562. m68k)
  7563. 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)'
  7564. hardcode_libdir_flag_spec='-L$libdir'
  7565. hardcode_minus_L=yes
  7566. ;;
  7567. esac
  7568. ;;
  7569. bsdi[45]*)
  7570. export_dynamic_flag_spec=-rdynamic
  7571. ;;
  7572. cygwin* | mingw* | pw32* | cegcc*)
  7573. # When not using gcc, we currently assume that we are using
  7574. # Microsoft Visual C++.
  7575. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7576. # no search path for DLLs.
  7577. hardcode_libdir_flag_spec=' '
  7578. allow_undefined_flag=unsupported
  7579. # Tell ltmain to make .lib files, not .a files.
  7580. libext=lib
  7581. # Tell ltmain to make .dll files, not .so files.
  7582. shrext_cmds=".dll"
  7583. # FIXME: Setting linknames here is a bad hack.
  7584. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7585. # The linker will automatically build a .lib file if we build a DLL.
  7586. old_archive_from_new_cmds='true'
  7587. # FIXME: Should let the user specify the lib program.
  7588. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7589. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7590. enable_shared_with_static_runtimes=yes
  7591. ;;
  7592. darwin* | rhapsody*)
  7593. archive_cmds_need_lc=no
  7594. hardcode_direct=no
  7595. hardcode_automatic=yes
  7596. hardcode_shlibpath_var=unsupported
  7597. if test "$lt_cv_ld_force_load" = "yes"; then
  7598. 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\"`'
  7599. else
  7600. whole_archive_flag_spec=''
  7601. fi
  7602. link_all_deplibs=yes
  7603. allow_undefined_flag="$_lt_dar_allow_undefined"
  7604. case $cc_basename in
  7605. ifort*) _lt_dar_can_shared=yes ;;
  7606. *) _lt_dar_can_shared=$GCC ;;
  7607. esac
  7608. if test "$_lt_dar_can_shared" = "yes"; then
  7609. output_verbose_link_cmd=func_echo_all
  7610. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7611. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7612. 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}"
  7613. 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}"
  7614. else
  7615. ld_shlibs=no
  7616. fi
  7617. ;;
  7618. dgux*)
  7619. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7620. hardcode_libdir_flag_spec='-L$libdir'
  7621. hardcode_shlibpath_var=no
  7622. ;;
  7623. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7624. # support. Future versions do this automatically, but an explicit c++rt0.o
  7625. # does not break anything, and helps significantly (at the cost of a little
  7626. # extra space).
  7627. freebsd2.2*)
  7628. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7629. hardcode_libdir_flag_spec='-R$libdir'
  7630. hardcode_direct=yes
  7631. hardcode_shlibpath_var=no
  7632. ;;
  7633. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7634. freebsd2.*)
  7635. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7636. hardcode_direct=yes
  7637. hardcode_minus_L=yes
  7638. hardcode_shlibpath_var=no
  7639. ;;
  7640. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7641. freebsd* | dragonfly*)
  7642. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7643. hardcode_libdir_flag_spec='-R$libdir'
  7644. hardcode_direct=yes
  7645. hardcode_shlibpath_var=no
  7646. ;;
  7647. hpux9*)
  7648. if test "$GCC" = yes; then
  7649. 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'
  7650. else
  7651. 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'
  7652. fi
  7653. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7654. hardcode_libdir_separator=:
  7655. hardcode_direct=yes
  7656. # hardcode_minus_L: Not really in the search PATH,
  7657. # but as the default location of the library.
  7658. hardcode_minus_L=yes
  7659. export_dynamic_flag_spec='${wl}-E'
  7660. ;;
  7661. hpux10*)
  7662. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7663. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7664. else
  7665. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7666. fi
  7667. if test "$with_gnu_ld" = no; then
  7668. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7669. hardcode_libdir_flag_spec_ld='+b $libdir'
  7670. hardcode_libdir_separator=:
  7671. hardcode_direct=yes
  7672. hardcode_direct_absolute=yes
  7673. export_dynamic_flag_spec='${wl}-E'
  7674. # hardcode_minus_L: Not really in the search PATH,
  7675. # but as the default location of the library.
  7676. hardcode_minus_L=yes
  7677. fi
  7678. ;;
  7679. hpux11*)
  7680. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7681. case $host_cpu in
  7682. hppa*64*)
  7683. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7684. ;;
  7685. ia64*)
  7686. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7687. ;;
  7688. *)
  7689. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7690. ;;
  7691. esac
  7692. else
  7693. case $host_cpu in
  7694. hppa*64*)
  7695. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7696. ;;
  7697. ia64*)
  7698. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7699. ;;
  7700. *)
  7701. # Older versions of the 11.00 compiler do not understand -b yet
  7702. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7704. $as_echo_n "checking if $CC understands -b... " >&6; }
  7705. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. lt_cv_prog_compiler__b=no
  7709. save_LDFLAGS="$LDFLAGS"
  7710. LDFLAGS="$LDFLAGS -b"
  7711. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7712. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7713. # The linker can only warn and ignore the option if not recognized
  7714. # So say no if there are warnings
  7715. if test -s conftest.err; then
  7716. # Append any errors to the config.log.
  7717. cat conftest.err 1>&5
  7718. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7719. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7720. if diff conftest.exp conftest.er2 >/dev/null; then
  7721. lt_cv_prog_compiler__b=yes
  7722. fi
  7723. else
  7724. lt_cv_prog_compiler__b=yes
  7725. fi
  7726. fi
  7727. $RM -r conftest*
  7728. LDFLAGS="$save_LDFLAGS"
  7729. fi
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7731. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7732. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7733. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7734. else
  7735. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7736. fi
  7737. ;;
  7738. esac
  7739. fi
  7740. if test "$with_gnu_ld" = no; then
  7741. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7742. hardcode_libdir_separator=:
  7743. case $host_cpu in
  7744. hppa*64*|ia64*)
  7745. hardcode_direct=no
  7746. hardcode_shlibpath_var=no
  7747. ;;
  7748. *)
  7749. hardcode_direct=yes
  7750. hardcode_direct_absolute=yes
  7751. export_dynamic_flag_spec='${wl}-E'
  7752. # hardcode_minus_L: Not really in the search PATH,
  7753. # but as the default location of the library.
  7754. hardcode_minus_L=yes
  7755. ;;
  7756. esac
  7757. fi
  7758. ;;
  7759. irix5* | irix6* | nonstopux*)
  7760. if test "$GCC" = yes; then
  7761. 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'
  7762. # Try to use the -exported_symbol ld option, if it does not
  7763. # work, assume that -exports_file does not work either and
  7764. # implicitly export all symbols.
  7765. save_LDFLAGS="$LDFLAGS"
  7766. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7767. if test x$gcc_no_link = xyes; then
  7768. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7769. fi
  7770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h. */
  7772. int foo(void) {}
  7773. _ACEOF
  7774. if ac_fn_c_try_link "$LINENO"; then :
  7775. 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'
  7776. fi
  7777. rm -f core conftest.err conftest.$ac_objext \
  7778. conftest$ac_exeext conftest.$ac_ext
  7779. LDFLAGS="$save_LDFLAGS"
  7780. else
  7781. 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'
  7782. 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'
  7783. fi
  7784. archive_cmds_need_lc='no'
  7785. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7786. hardcode_libdir_separator=:
  7787. inherit_rpath=yes
  7788. link_all_deplibs=yes
  7789. ;;
  7790. netbsd*)
  7791. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7792. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7793. else
  7794. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7795. fi
  7796. hardcode_libdir_flag_spec='-R$libdir'
  7797. hardcode_direct=yes
  7798. hardcode_shlibpath_var=no
  7799. ;;
  7800. newsos6)
  7801. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7802. hardcode_direct=yes
  7803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7804. hardcode_libdir_separator=:
  7805. hardcode_shlibpath_var=no
  7806. ;;
  7807. *nto* | *qnx*)
  7808. ;;
  7809. openbsd*)
  7810. if test -f /usr/libexec/ld.so; then
  7811. hardcode_direct=yes
  7812. hardcode_shlibpath_var=no
  7813. hardcode_direct_absolute=yes
  7814. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7815. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7816. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7817. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7818. export_dynamic_flag_spec='${wl}-E'
  7819. else
  7820. case $host_os in
  7821. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7822. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7823. hardcode_libdir_flag_spec='-R$libdir'
  7824. ;;
  7825. *)
  7826. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7827. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7828. ;;
  7829. esac
  7830. fi
  7831. else
  7832. ld_shlibs=no
  7833. fi
  7834. ;;
  7835. os2*)
  7836. hardcode_libdir_flag_spec='-L$libdir'
  7837. hardcode_minus_L=yes
  7838. allow_undefined_flag=unsupported
  7839. 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'
  7840. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7841. ;;
  7842. osf3*)
  7843. if test "$GCC" = yes; then
  7844. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7845. 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'
  7846. else
  7847. allow_undefined_flag=' -expect_unresolved \*'
  7848. 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'
  7849. fi
  7850. archive_cmds_need_lc='no'
  7851. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7852. hardcode_libdir_separator=:
  7853. ;;
  7854. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7855. if test "$GCC" = yes; then
  7856. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7857. 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'
  7858. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7859. else
  7860. allow_undefined_flag=' -expect_unresolved \*'
  7861. 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'
  7862. 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~
  7863. $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'
  7864. # Both c and cxx compiler support -rpath directly
  7865. hardcode_libdir_flag_spec='-rpath $libdir'
  7866. fi
  7867. archive_cmds_need_lc='no'
  7868. hardcode_libdir_separator=:
  7869. ;;
  7870. solaris*)
  7871. no_undefined_flag=' -z defs'
  7872. if test "$GCC" = yes; then
  7873. wlarc='${wl}'
  7874. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7875. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7876. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7877. else
  7878. case `$CC -V 2>&1` in
  7879. *"Compilers 5.0"*)
  7880. wlarc=''
  7881. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7882. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7883. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7884. ;;
  7885. *)
  7886. wlarc='${wl}'
  7887. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7888. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7889. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7890. ;;
  7891. esac
  7892. fi
  7893. hardcode_libdir_flag_spec='-R$libdir'
  7894. hardcode_shlibpath_var=no
  7895. case $host_os in
  7896. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7897. *)
  7898. # The compiler driver will combine and reorder linker options,
  7899. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7900. # but is careful enough not to reorder.
  7901. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7902. if test "$GCC" = yes; then
  7903. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7904. else
  7905. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7906. fi
  7907. ;;
  7908. esac
  7909. link_all_deplibs=yes
  7910. ;;
  7911. sunos4*)
  7912. if test "x$host_vendor" = xsequent; then
  7913. # Use $CC to link under sequent, because it throws in some extra .o
  7914. # files that make .init and .fini sections work.
  7915. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7916. else
  7917. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7918. fi
  7919. hardcode_libdir_flag_spec='-L$libdir'
  7920. hardcode_direct=yes
  7921. hardcode_minus_L=yes
  7922. hardcode_shlibpath_var=no
  7923. ;;
  7924. sysv4)
  7925. case $host_vendor in
  7926. sni)
  7927. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7928. hardcode_direct=yes # is this really true???
  7929. ;;
  7930. siemens)
  7931. ## LD is ld it makes a PLAMLIB
  7932. ## CC just makes a GrossModule.
  7933. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7934. reload_cmds='$CC -r -o $output$reload_objs'
  7935. hardcode_direct=no
  7936. ;;
  7937. motorola)
  7938. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7939. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7940. ;;
  7941. esac
  7942. runpath_var='LD_RUN_PATH'
  7943. hardcode_shlibpath_var=no
  7944. ;;
  7945. sysv4.3*)
  7946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7947. hardcode_shlibpath_var=no
  7948. export_dynamic_flag_spec='-Bexport'
  7949. ;;
  7950. sysv4*MP*)
  7951. if test -d /usr/nec; then
  7952. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7953. hardcode_shlibpath_var=no
  7954. runpath_var=LD_RUN_PATH
  7955. hardcode_runpath_var=yes
  7956. ld_shlibs=yes
  7957. fi
  7958. ;;
  7959. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7960. no_undefined_flag='${wl}-z,text'
  7961. archive_cmds_need_lc=no
  7962. hardcode_shlibpath_var=no
  7963. runpath_var='LD_RUN_PATH'
  7964. if test "$GCC" = yes; then
  7965. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7966. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7967. else
  7968. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7969. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7970. fi
  7971. ;;
  7972. sysv5* | sco3.2v5* | sco5v6*)
  7973. # Note: We can NOT use -z defs as we might desire, because we do not
  7974. # link with -lc, and that would cause any symbols used from libc to
  7975. # always be unresolved, which means just about no library would
  7976. # ever link correctly. If we're not using GNU ld we use -z text
  7977. # though, which does catch some bad symbols but isn't as heavy-handed
  7978. # as -z defs.
  7979. no_undefined_flag='${wl}-z,text'
  7980. allow_undefined_flag='${wl}-z,nodefs'
  7981. archive_cmds_need_lc=no
  7982. hardcode_shlibpath_var=no
  7983. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7984. hardcode_libdir_separator=':'
  7985. link_all_deplibs=yes
  7986. export_dynamic_flag_spec='${wl}-Bexport'
  7987. runpath_var='LD_RUN_PATH'
  7988. if test "$GCC" = yes; then
  7989. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7990. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7991. else
  7992. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7993. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7994. fi
  7995. ;;
  7996. uts4*)
  7997. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7998. hardcode_libdir_flag_spec='-L$libdir'
  7999. hardcode_shlibpath_var=no
  8000. ;;
  8001. *)
  8002. ld_shlibs=no
  8003. ;;
  8004. esac
  8005. if test x$host_vendor = xsni; then
  8006. case $host in
  8007. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8008. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8009. ;;
  8010. esac
  8011. fi
  8012. fi
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8014. $as_echo "$ld_shlibs" >&6; }
  8015. test "$ld_shlibs" = no && can_build_shared=no
  8016. with_gnu_ld=$with_gnu_ld
  8017. #
  8018. # Do we need to explicitly link libc?
  8019. #
  8020. case "x$archive_cmds_need_lc" in
  8021. x|xyes)
  8022. # Assume -lc should be added
  8023. archive_cmds_need_lc=yes
  8024. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8025. case $archive_cmds in
  8026. *'~'*)
  8027. # FIXME: we may have to deal with multi-command sequences.
  8028. ;;
  8029. '$CC '*)
  8030. # Test whether the compiler implicitly links with -lc since on some
  8031. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8032. # to ld, don't add -lc before -lgcc.
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8034. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8035. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8036. $as_echo_n "(cached) " >&6
  8037. else
  8038. $RM conftest*
  8039. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8041. (eval $ac_compile) 2>&5
  8042. ac_status=$?
  8043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8044. test $ac_status = 0; } 2>conftest.err; then
  8045. soname=conftest
  8046. lib=conftest
  8047. libobjs=conftest.$ac_objext
  8048. deplibs=
  8049. wl=$lt_prog_compiler_wl
  8050. pic_flag=$lt_prog_compiler_pic
  8051. compiler_flags=-v
  8052. linker_flags=-v
  8053. verstring=
  8054. output_objdir=.
  8055. libname=conftest
  8056. lt_save_allow_undefined_flag=$allow_undefined_flag
  8057. allow_undefined_flag=
  8058. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8059. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8060. ac_status=$?
  8061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8062. test $ac_status = 0; }
  8063. then
  8064. lt_cv_archive_cmds_need_lc=no
  8065. else
  8066. lt_cv_archive_cmds_need_lc=yes
  8067. fi
  8068. allow_undefined_flag=$lt_save_allow_undefined_flag
  8069. else
  8070. cat conftest.err 1>&5
  8071. fi
  8072. $RM conftest*
  8073. fi
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8075. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8076. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8077. ;;
  8078. esac
  8079. fi
  8080. ;;
  8081. esac
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8083. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8084. if test "$GCC" = yes; then
  8085. case $host_os in
  8086. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8087. *) lt_awk_arg="/^libraries:/" ;;
  8088. esac
  8089. case $host_os in
  8090. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8091. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8092. esac
  8093. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8094. case $lt_search_path_spec in
  8095. *\;*)
  8096. # if the path contains ";" then we assume it to be the separator
  8097. # otherwise default to the standard path separator (i.e. ":") - it is
  8098. # assumed that no part of a normal pathname contains ";" but that should
  8099. # okay in the real world where ";" in dirpaths is itself problematic.
  8100. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8101. ;;
  8102. *)
  8103. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8104. ;;
  8105. esac
  8106. # Ok, now we have the path, separated by spaces, we can step through it
  8107. # and add multilib dir if necessary.
  8108. lt_tmp_lt_search_path_spec=
  8109. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8110. for lt_sys_path in $lt_search_path_spec; do
  8111. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8112. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8113. else
  8114. test -d "$lt_sys_path" && \
  8115. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8116. fi
  8117. done
  8118. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8119. BEGIN {RS=" "; FS="/|\n";} {
  8120. lt_foo="";
  8121. lt_count=0;
  8122. for (lt_i = NF; lt_i > 0; lt_i--) {
  8123. if ($lt_i != "" && $lt_i != ".") {
  8124. if ($lt_i == "..") {
  8125. lt_count++;
  8126. } else {
  8127. if (lt_count == 0) {
  8128. lt_foo="/" $lt_i lt_foo;
  8129. } else {
  8130. lt_count--;
  8131. }
  8132. }
  8133. }
  8134. }
  8135. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8136. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8137. }'`
  8138. # AWK program above erroneously prepends '/' to C:/dos/paths
  8139. # for these hosts.
  8140. case $host_os in
  8141. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8142. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8143. esac
  8144. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8145. else
  8146. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8147. fi
  8148. library_names_spec=
  8149. libname_spec='lib$name'
  8150. soname_spec=
  8151. shrext_cmds=".so"
  8152. postinstall_cmds=
  8153. postuninstall_cmds=
  8154. finish_cmds=
  8155. finish_eval=
  8156. shlibpath_var=
  8157. shlibpath_overrides_runpath=unknown
  8158. version_type=none
  8159. dynamic_linker="$host_os ld.so"
  8160. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8161. need_lib_prefix=unknown
  8162. hardcode_into_libs=no
  8163. # when you set need_version to no, make sure it does not cause -set_version
  8164. # flags to be left without arguments
  8165. need_version=unknown
  8166. case $host_os in
  8167. aix3*)
  8168. version_type=linux
  8169. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8170. shlibpath_var=LIBPATH
  8171. # AIX 3 has no versioning support, so we append a major version to the name.
  8172. soname_spec='${libname}${release}${shared_ext}$major'
  8173. ;;
  8174. aix[4-9]*)
  8175. version_type=linux
  8176. need_lib_prefix=no
  8177. need_version=no
  8178. hardcode_into_libs=yes
  8179. if test "$host_cpu" = ia64; then
  8180. # AIX 5 supports IA64
  8181. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8182. shlibpath_var=LD_LIBRARY_PATH
  8183. else
  8184. # With GCC up to 2.95.x, collect2 would create an import file
  8185. # for dependence libraries. The import file would start with
  8186. # the line `#! .'. This would cause the generated library to
  8187. # depend on `.', always an invalid library. This was fixed in
  8188. # development snapshots of GCC prior to 3.0.
  8189. case $host_os in
  8190. aix4 | aix4.[01] | aix4.[01].*)
  8191. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8192. echo ' yes '
  8193. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8194. :
  8195. else
  8196. can_build_shared=no
  8197. fi
  8198. ;;
  8199. esac
  8200. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8201. # soname into executable. Probably we can add versioning support to
  8202. # collect2, so additional links can be useful in future.
  8203. if test "$aix_use_runtimelinking" = yes; then
  8204. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8205. # instead of lib<name>.a to let people know that these are not
  8206. # typical AIX shared libraries.
  8207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8208. else
  8209. # We preserve .a as extension for shared libraries through AIX4.2
  8210. # and later when we are not doing run time linking.
  8211. library_names_spec='${libname}${release}.a $libname.a'
  8212. soname_spec='${libname}${release}${shared_ext}$major'
  8213. fi
  8214. shlibpath_var=LIBPATH
  8215. fi
  8216. ;;
  8217. amigaos*)
  8218. case $host_cpu in
  8219. powerpc)
  8220. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8221. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8223. ;;
  8224. m68k)
  8225. library_names_spec='$libname.ixlibrary $libname.a'
  8226. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8227. 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'
  8228. ;;
  8229. esac
  8230. ;;
  8231. beos*)
  8232. library_names_spec='${libname}${shared_ext}'
  8233. dynamic_linker="$host_os ld.so"
  8234. shlibpath_var=LIBRARY_PATH
  8235. ;;
  8236. bsdi[45]*)
  8237. version_type=linux
  8238. need_version=no
  8239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8240. soname_spec='${libname}${release}${shared_ext}$major'
  8241. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8242. shlibpath_var=LD_LIBRARY_PATH
  8243. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8244. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8245. # the default ld.so.conf also contains /usr/contrib/lib and
  8246. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8247. # libtool to hard-code these into programs
  8248. ;;
  8249. cygwin* | mingw* | pw32* | cegcc*)
  8250. version_type=windows
  8251. shrext_cmds=".dll"
  8252. need_version=no
  8253. need_lib_prefix=no
  8254. case $GCC,$host_os in
  8255. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8256. library_names_spec='$libname.dll.a'
  8257. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8258. postinstall_cmds='base_file=`basename \${file}`~
  8259. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8260. dldir=$destdir/`dirname \$dlpath`~
  8261. test -d \$dldir || mkdir -p \$dldir~
  8262. $install_prog $dir/$dlname \$dldir/$dlname~
  8263. chmod a+x \$dldir/$dlname~
  8264. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8265. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8266. fi'
  8267. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8268. dlpath=$dir/\$dldll~
  8269. $RM \$dlpath'
  8270. shlibpath_overrides_runpath=yes
  8271. case $host_os in
  8272. cygwin*)
  8273. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8274. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8275. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8276. ;;
  8277. mingw* | cegcc*)
  8278. # MinGW DLLs use traditional 'lib' prefix
  8279. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8280. ;;
  8281. pw32*)
  8282. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8283. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8284. ;;
  8285. esac
  8286. ;;
  8287. *)
  8288. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8289. ;;
  8290. esac
  8291. dynamic_linker='Win32 ld.exe'
  8292. # FIXME: first we should search . and the directory the executable is in
  8293. shlibpath_var=PATH
  8294. ;;
  8295. darwin* | rhapsody*)
  8296. dynamic_linker="$host_os dyld"
  8297. version_type=darwin
  8298. need_lib_prefix=no
  8299. need_version=no
  8300. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8301. soname_spec='${libname}${release}${major}$shared_ext'
  8302. shlibpath_overrides_runpath=yes
  8303. shlibpath_var=DYLD_LIBRARY_PATH
  8304. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8305. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8306. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8307. ;;
  8308. dgux*)
  8309. version_type=linux
  8310. need_lib_prefix=no
  8311. need_version=no
  8312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8313. soname_spec='${libname}${release}${shared_ext}$major'
  8314. shlibpath_var=LD_LIBRARY_PATH
  8315. ;;
  8316. freebsd* | dragonfly*)
  8317. # DragonFly does not have aout. When/if they implement a new
  8318. # versioning mechanism, adjust this.
  8319. if test -x /usr/bin/objformat; then
  8320. objformat=`/usr/bin/objformat`
  8321. else
  8322. case $host_os in
  8323. freebsd[23].*) objformat=aout ;;
  8324. *) objformat=elf ;;
  8325. esac
  8326. fi
  8327. version_type=freebsd-$objformat
  8328. case $version_type in
  8329. freebsd-elf*)
  8330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8331. need_version=no
  8332. need_lib_prefix=no
  8333. ;;
  8334. freebsd-*)
  8335. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8336. need_version=yes
  8337. ;;
  8338. esac
  8339. shlibpath_var=LD_LIBRARY_PATH
  8340. case $host_os in
  8341. freebsd2.*)
  8342. shlibpath_overrides_runpath=yes
  8343. ;;
  8344. freebsd3.[01]* | freebsdelf3.[01]*)
  8345. shlibpath_overrides_runpath=yes
  8346. hardcode_into_libs=yes
  8347. ;;
  8348. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8349. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8350. shlibpath_overrides_runpath=no
  8351. hardcode_into_libs=yes
  8352. ;;
  8353. *) # from 4.6 on, and DragonFly
  8354. shlibpath_overrides_runpath=yes
  8355. hardcode_into_libs=yes
  8356. ;;
  8357. esac
  8358. ;;
  8359. gnu*)
  8360. version_type=linux
  8361. need_lib_prefix=no
  8362. need_version=no
  8363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8364. soname_spec='${libname}${release}${shared_ext}$major'
  8365. shlibpath_var=LD_LIBRARY_PATH
  8366. hardcode_into_libs=yes
  8367. ;;
  8368. haiku*)
  8369. version_type=linux
  8370. need_lib_prefix=no
  8371. need_version=no
  8372. dynamic_linker="$host_os runtime_loader"
  8373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8374. soname_spec='${libname}${release}${shared_ext}$major'
  8375. shlibpath_var=LIBRARY_PATH
  8376. shlibpath_overrides_runpath=yes
  8377. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8378. hardcode_into_libs=yes
  8379. ;;
  8380. hpux9* | hpux10* | hpux11*)
  8381. # Give a soname corresponding to the major version so that dld.sl refuses to
  8382. # link against other versions.
  8383. version_type=sunos
  8384. need_lib_prefix=no
  8385. need_version=no
  8386. case $host_cpu in
  8387. ia64*)
  8388. shrext_cmds='.so'
  8389. hardcode_into_libs=yes
  8390. dynamic_linker="$host_os dld.so"
  8391. shlibpath_var=LD_LIBRARY_PATH
  8392. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. if test "X$HPUX_IA64_MODE" = X32; then
  8396. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8397. else
  8398. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8399. fi
  8400. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8401. ;;
  8402. hppa*64*)
  8403. shrext_cmds='.sl'
  8404. hardcode_into_libs=yes
  8405. dynamic_linker="$host_os dld.sl"
  8406. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8407. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8409. soname_spec='${libname}${release}${shared_ext}$major'
  8410. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8411. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8412. ;;
  8413. *)
  8414. shrext_cmds='.sl'
  8415. dynamic_linker="$host_os dld.sl"
  8416. shlibpath_var=SHLIB_PATH
  8417. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8419. soname_spec='${libname}${release}${shared_ext}$major'
  8420. ;;
  8421. esac
  8422. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8423. postinstall_cmds='chmod 555 $lib'
  8424. # or fails outright, so override atomically:
  8425. install_override_mode=555
  8426. ;;
  8427. interix[3-9]*)
  8428. version_type=linux
  8429. need_lib_prefix=no
  8430. need_version=no
  8431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8432. soname_spec='${libname}${release}${shared_ext}$major'
  8433. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8434. shlibpath_var=LD_LIBRARY_PATH
  8435. shlibpath_overrides_runpath=no
  8436. hardcode_into_libs=yes
  8437. ;;
  8438. irix5* | irix6* | nonstopux*)
  8439. case $host_os in
  8440. nonstopux*) version_type=nonstopux ;;
  8441. *)
  8442. if test "$lt_cv_prog_gnu_ld" = yes; then
  8443. version_type=linux
  8444. else
  8445. version_type=irix
  8446. fi ;;
  8447. esac
  8448. need_lib_prefix=no
  8449. need_version=no
  8450. soname_spec='${libname}${release}${shared_ext}$major'
  8451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8452. case $host_os in
  8453. irix5* | nonstopux*)
  8454. libsuff= shlibsuff=
  8455. ;;
  8456. *)
  8457. case $LD in # libtool.m4 will add one of these switches to LD
  8458. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8459. libsuff= shlibsuff= libmagic=32-bit;;
  8460. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8461. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8462. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8463. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8464. *) libsuff= shlibsuff= libmagic=never-match;;
  8465. esac
  8466. ;;
  8467. esac
  8468. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8469. shlibpath_overrides_runpath=no
  8470. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8471. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8472. hardcode_into_libs=yes
  8473. ;;
  8474. # No shared lib support for Linux oldld, aout, or coff.
  8475. linux*oldld* | linux*aout* | linux*coff*)
  8476. dynamic_linker=no
  8477. ;;
  8478. # This must be Linux ELF.
  8479. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8480. version_type=linux
  8481. need_lib_prefix=no
  8482. need_version=no
  8483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8484. soname_spec='${libname}${release}${shared_ext}$major'
  8485. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8486. shlibpath_var=LD_LIBRARY_PATH
  8487. shlibpath_overrides_runpath=no
  8488. # Some binutils ld are patched to set DT_RUNPATH
  8489. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8490. $as_echo_n "(cached) " >&6
  8491. else
  8492. lt_cv_shlibpath_overrides_runpath=no
  8493. save_LDFLAGS=$LDFLAGS
  8494. save_libdir=$libdir
  8495. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8496. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8497. if test x$gcc_no_link = xyes; then
  8498. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8499. fi
  8500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h. */
  8502. int
  8503. main ()
  8504. {
  8505. ;
  8506. return 0;
  8507. }
  8508. _ACEOF
  8509. if ac_fn_c_try_link "$LINENO"; then :
  8510. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8511. lt_cv_shlibpath_overrides_runpath=yes
  8512. fi
  8513. fi
  8514. rm -f core conftest.err conftest.$ac_objext \
  8515. conftest$ac_exeext conftest.$ac_ext
  8516. LDFLAGS=$save_LDFLAGS
  8517. libdir=$save_libdir
  8518. fi
  8519. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8520. # This implies no fast_install, which is unacceptable.
  8521. # Some rework will be needed to allow for fast_install
  8522. # before this can be enabled.
  8523. hardcode_into_libs=yes
  8524. # Append ld.so.conf contents to the search path
  8525. if test -f /etc/ld.so.conf; then
  8526. 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' ' '`
  8527. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8528. fi
  8529. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8530. # powerpc, because MkLinux only supported shared libraries with the
  8531. # GNU dynamic linker. Since this was broken with cross compilers,
  8532. # most powerpc-linux boxes support dynamic linking these days and
  8533. # people can always --disable-shared, the test was removed, and we
  8534. # assume the GNU/Linux dynamic linker is in use.
  8535. dynamic_linker='GNU/Linux ld.so'
  8536. ;;
  8537. netbsd*)
  8538. version_type=sunos
  8539. need_lib_prefix=no
  8540. need_version=no
  8541. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8543. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8544. dynamic_linker='NetBSD (a.out) ld.so'
  8545. else
  8546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8547. soname_spec='${libname}${release}${shared_ext}$major'
  8548. dynamic_linker='NetBSD ld.elf_so'
  8549. fi
  8550. shlibpath_var=LD_LIBRARY_PATH
  8551. shlibpath_overrides_runpath=yes
  8552. hardcode_into_libs=yes
  8553. ;;
  8554. newsos6)
  8555. version_type=linux
  8556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8557. shlibpath_var=LD_LIBRARY_PATH
  8558. shlibpath_overrides_runpath=yes
  8559. ;;
  8560. *nto* | *qnx*)
  8561. version_type=qnx
  8562. need_lib_prefix=no
  8563. need_version=no
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. shlibpath_var=LD_LIBRARY_PATH
  8567. shlibpath_overrides_runpath=no
  8568. hardcode_into_libs=yes
  8569. dynamic_linker='ldqnx.so'
  8570. ;;
  8571. openbsd*)
  8572. version_type=sunos
  8573. sys_lib_dlsearch_path_spec="/usr/lib"
  8574. need_lib_prefix=no
  8575. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8576. case $host_os in
  8577. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8578. *) need_version=no ;;
  8579. esac
  8580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8581. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8582. shlibpath_var=LD_LIBRARY_PATH
  8583. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8584. case $host_os in
  8585. openbsd2.[89] | openbsd2.[89].*)
  8586. shlibpath_overrides_runpath=no
  8587. ;;
  8588. *)
  8589. shlibpath_overrides_runpath=yes
  8590. ;;
  8591. esac
  8592. else
  8593. shlibpath_overrides_runpath=yes
  8594. fi
  8595. ;;
  8596. os2*)
  8597. libname_spec='$name'
  8598. shrext_cmds=".dll"
  8599. need_lib_prefix=no
  8600. library_names_spec='$libname${shared_ext} $libname.a'
  8601. dynamic_linker='OS/2 ld.exe'
  8602. shlibpath_var=LIBPATH
  8603. ;;
  8604. osf3* | osf4* | osf5*)
  8605. version_type=osf
  8606. need_lib_prefix=no
  8607. need_version=no
  8608. soname_spec='${libname}${release}${shared_ext}$major'
  8609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8610. shlibpath_var=LD_LIBRARY_PATH
  8611. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8612. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8613. ;;
  8614. rdos*)
  8615. dynamic_linker=no
  8616. ;;
  8617. solaris*)
  8618. version_type=linux
  8619. need_lib_prefix=no
  8620. need_version=no
  8621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8622. soname_spec='${libname}${release}${shared_ext}$major'
  8623. shlibpath_var=LD_LIBRARY_PATH
  8624. shlibpath_overrides_runpath=yes
  8625. hardcode_into_libs=yes
  8626. # ldd complains unless libraries are executable
  8627. postinstall_cmds='chmod +x $lib'
  8628. ;;
  8629. sunos4*)
  8630. version_type=sunos
  8631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8632. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8633. shlibpath_var=LD_LIBRARY_PATH
  8634. shlibpath_overrides_runpath=yes
  8635. if test "$with_gnu_ld" = yes; then
  8636. need_lib_prefix=no
  8637. fi
  8638. need_version=yes
  8639. ;;
  8640. sysv4 | sysv4.3*)
  8641. version_type=linux
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. soname_spec='${libname}${release}${shared_ext}$major'
  8644. shlibpath_var=LD_LIBRARY_PATH
  8645. case $host_vendor in
  8646. sni)
  8647. shlibpath_overrides_runpath=no
  8648. need_lib_prefix=no
  8649. runpath_var=LD_RUN_PATH
  8650. ;;
  8651. siemens)
  8652. need_lib_prefix=no
  8653. ;;
  8654. motorola)
  8655. need_lib_prefix=no
  8656. need_version=no
  8657. shlibpath_overrides_runpath=no
  8658. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8659. ;;
  8660. esac
  8661. ;;
  8662. sysv4*MP*)
  8663. if test -d /usr/nec ;then
  8664. version_type=linux
  8665. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8666. soname_spec='$libname${shared_ext}.$major'
  8667. shlibpath_var=LD_LIBRARY_PATH
  8668. fi
  8669. ;;
  8670. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8671. version_type=freebsd-elf
  8672. need_lib_prefix=no
  8673. need_version=no
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8675. soname_spec='${libname}${release}${shared_ext}$major'
  8676. shlibpath_var=LD_LIBRARY_PATH
  8677. shlibpath_overrides_runpath=yes
  8678. hardcode_into_libs=yes
  8679. if test "$with_gnu_ld" = yes; then
  8680. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8681. else
  8682. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8683. case $host_os in
  8684. sco3.2v5*)
  8685. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8686. ;;
  8687. esac
  8688. fi
  8689. sys_lib_dlsearch_path_spec='/usr/lib'
  8690. ;;
  8691. tpf*)
  8692. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8693. version_type=linux
  8694. need_lib_prefix=no
  8695. need_version=no
  8696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8697. shlibpath_var=LD_LIBRARY_PATH
  8698. shlibpath_overrides_runpath=no
  8699. hardcode_into_libs=yes
  8700. ;;
  8701. uts4*)
  8702. version_type=linux
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8704. soname_spec='${libname}${release}${shared_ext}$major'
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. ;;
  8707. *)
  8708. dynamic_linker=no
  8709. ;;
  8710. esac
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8712. $as_echo "$dynamic_linker" >&6; }
  8713. test "$dynamic_linker" = no && can_build_shared=no
  8714. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8715. if test "$GCC" = yes; then
  8716. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8717. fi
  8718. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8719. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8720. fi
  8721. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8722. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8723. fi
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8725. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8726. hardcode_action=
  8727. if test -n "$hardcode_libdir_flag_spec" ||
  8728. test -n "$runpath_var" ||
  8729. test "X$hardcode_automatic" = "Xyes" ; then
  8730. # We can hardcode non-existent directories.
  8731. if test "$hardcode_direct" != no &&
  8732. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8733. # have to relink, otherwise we might link with an installed library
  8734. # when we should be linking with a yet-to-be-installed one
  8735. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8736. test "$hardcode_minus_L" != no; then
  8737. # Linking always hardcodes the temporary library directory.
  8738. hardcode_action=relink
  8739. else
  8740. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8741. hardcode_action=immediate
  8742. fi
  8743. else
  8744. # We cannot hardcode anything, or else we can only hardcode existing
  8745. # directories.
  8746. hardcode_action=unsupported
  8747. fi
  8748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8749. $as_echo "$hardcode_action" >&6; }
  8750. if test "$hardcode_action" = relink ||
  8751. test "$inherit_rpath" = yes; then
  8752. # Fast installation is not supported
  8753. enable_fast_install=no
  8754. elif test "$shlibpath_overrides_runpath" = yes ||
  8755. test "$enable_shared" = no; then
  8756. # Fast installation is not necessary
  8757. enable_fast_install=needless
  8758. fi
  8759. if test "x$enable_dlopen" != xyes; then
  8760. enable_dlopen=unknown
  8761. enable_dlopen_self=unknown
  8762. enable_dlopen_self_static=unknown
  8763. else
  8764. lt_cv_dlopen=no
  8765. lt_cv_dlopen_libs=
  8766. case $host_os in
  8767. beos*)
  8768. lt_cv_dlopen="load_add_on"
  8769. lt_cv_dlopen_libs=
  8770. lt_cv_dlopen_self=yes
  8771. ;;
  8772. mingw* | pw32* | cegcc*)
  8773. lt_cv_dlopen="LoadLibrary"
  8774. lt_cv_dlopen_libs=
  8775. ;;
  8776. cygwin*)
  8777. lt_cv_dlopen="dlopen"
  8778. lt_cv_dlopen_libs=
  8779. ;;
  8780. darwin*)
  8781. # if libdl is installed we need to link against it
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8783. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8784. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8785. $as_echo_n "(cached) " >&6
  8786. else
  8787. ac_check_lib_save_LIBS=$LIBS
  8788. LIBS="-ldl $LIBS"
  8789. if test x$gcc_no_link = xyes; then
  8790. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8791. fi
  8792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8793. /* end confdefs.h. */
  8794. /* Override any GCC internal prototype to avoid an error.
  8795. Use char because int might match the return type of a GCC
  8796. builtin and then its argument prototype would still apply. */
  8797. #ifdef __cplusplus
  8798. extern "C"
  8799. #endif
  8800. char dlopen ();
  8801. int
  8802. main ()
  8803. {
  8804. return dlopen ();
  8805. ;
  8806. return 0;
  8807. }
  8808. _ACEOF
  8809. if ac_fn_c_try_link "$LINENO"; then :
  8810. ac_cv_lib_dl_dlopen=yes
  8811. else
  8812. ac_cv_lib_dl_dlopen=no
  8813. fi
  8814. rm -f core conftest.err conftest.$ac_objext \
  8815. conftest$ac_exeext conftest.$ac_ext
  8816. LIBS=$ac_check_lib_save_LIBS
  8817. fi
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8819. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8820. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8821. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8822. else
  8823. lt_cv_dlopen="dyld"
  8824. lt_cv_dlopen_libs=
  8825. lt_cv_dlopen_self=yes
  8826. fi
  8827. ;;
  8828. *)
  8829. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8830. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8831. lt_cv_dlopen="shl_load"
  8832. else
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8834. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8835. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8836. $as_echo_n "(cached) " >&6
  8837. else
  8838. ac_check_lib_save_LIBS=$LIBS
  8839. LIBS="-ldld $LIBS"
  8840. if test x$gcc_no_link = xyes; then
  8841. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8842. fi
  8843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8844. /* end confdefs.h. */
  8845. /* Override any GCC internal prototype to avoid an error.
  8846. Use char because int might match the return type of a GCC
  8847. builtin and then its argument prototype would still apply. */
  8848. #ifdef __cplusplus
  8849. extern "C"
  8850. #endif
  8851. char shl_load ();
  8852. int
  8853. main ()
  8854. {
  8855. return shl_load ();
  8856. ;
  8857. return 0;
  8858. }
  8859. _ACEOF
  8860. if ac_fn_c_try_link "$LINENO"; then :
  8861. ac_cv_lib_dld_shl_load=yes
  8862. else
  8863. ac_cv_lib_dld_shl_load=no
  8864. fi
  8865. rm -f core conftest.err conftest.$ac_objext \
  8866. conftest$ac_exeext conftest.$ac_ext
  8867. LIBS=$ac_check_lib_save_LIBS
  8868. fi
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8870. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8871. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8872. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8873. else
  8874. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8875. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8876. lt_cv_dlopen="dlopen"
  8877. else
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8879. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8880. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8881. $as_echo_n "(cached) " >&6
  8882. else
  8883. ac_check_lib_save_LIBS=$LIBS
  8884. LIBS="-ldl $LIBS"
  8885. if test x$gcc_no_link = xyes; then
  8886. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8887. fi
  8888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8889. /* end confdefs.h. */
  8890. /* Override any GCC internal prototype to avoid an error.
  8891. Use char because int might match the return type of a GCC
  8892. builtin and then its argument prototype would still apply. */
  8893. #ifdef __cplusplus
  8894. extern "C"
  8895. #endif
  8896. char dlopen ();
  8897. int
  8898. main ()
  8899. {
  8900. return dlopen ();
  8901. ;
  8902. return 0;
  8903. }
  8904. _ACEOF
  8905. if ac_fn_c_try_link "$LINENO"; then :
  8906. ac_cv_lib_dl_dlopen=yes
  8907. else
  8908. ac_cv_lib_dl_dlopen=no
  8909. fi
  8910. rm -f core conftest.err conftest.$ac_objext \
  8911. conftest$ac_exeext conftest.$ac_ext
  8912. LIBS=$ac_check_lib_save_LIBS
  8913. fi
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8915. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8916. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8917. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8918. else
  8919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8920. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8921. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8922. $as_echo_n "(cached) " >&6
  8923. else
  8924. ac_check_lib_save_LIBS=$LIBS
  8925. LIBS="-lsvld $LIBS"
  8926. if test x$gcc_no_link = xyes; then
  8927. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8928. fi
  8929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8930. /* end confdefs.h. */
  8931. /* Override any GCC internal prototype to avoid an error.
  8932. Use char because int might match the return type of a GCC
  8933. builtin and then its argument prototype would still apply. */
  8934. #ifdef __cplusplus
  8935. extern "C"
  8936. #endif
  8937. char dlopen ();
  8938. int
  8939. main ()
  8940. {
  8941. return dlopen ();
  8942. ;
  8943. return 0;
  8944. }
  8945. _ACEOF
  8946. if ac_fn_c_try_link "$LINENO"; then :
  8947. ac_cv_lib_svld_dlopen=yes
  8948. else
  8949. ac_cv_lib_svld_dlopen=no
  8950. fi
  8951. rm -f core conftest.err conftest.$ac_objext \
  8952. conftest$ac_exeext conftest.$ac_ext
  8953. LIBS=$ac_check_lib_save_LIBS
  8954. fi
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8956. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8957. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8958. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8959. else
  8960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8961. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8962. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8963. $as_echo_n "(cached) " >&6
  8964. else
  8965. ac_check_lib_save_LIBS=$LIBS
  8966. LIBS="-ldld $LIBS"
  8967. if test x$gcc_no_link = xyes; then
  8968. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8969. fi
  8970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8971. /* end confdefs.h. */
  8972. /* Override any GCC internal prototype to avoid an error.
  8973. Use char because int might match the return type of a GCC
  8974. builtin and then its argument prototype would still apply. */
  8975. #ifdef __cplusplus
  8976. extern "C"
  8977. #endif
  8978. char dld_link ();
  8979. int
  8980. main ()
  8981. {
  8982. return dld_link ();
  8983. ;
  8984. return 0;
  8985. }
  8986. _ACEOF
  8987. if ac_fn_c_try_link "$LINENO"; then :
  8988. ac_cv_lib_dld_dld_link=yes
  8989. else
  8990. ac_cv_lib_dld_dld_link=no
  8991. fi
  8992. rm -f core conftest.err conftest.$ac_objext \
  8993. conftest$ac_exeext conftest.$ac_ext
  8994. LIBS=$ac_check_lib_save_LIBS
  8995. fi
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8997. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8998. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8999. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9000. fi
  9001. fi
  9002. fi
  9003. fi
  9004. fi
  9005. fi
  9006. ;;
  9007. esac
  9008. if test "x$lt_cv_dlopen" != xno; then
  9009. enable_dlopen=yes
  9010. else
  9011. enable_dlopen=no
  9012. fi
  9013. case $lt_cv_dlopen in
  9014. dlopen)
  9015. save_CPPFLAGS="$CPPFLAGS"
  9016. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9017. save_LDFLAGS="$LDFLAGS"
  9018. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9019. save_LIBS="$LIBS"
  9020. LIBS="$lt_cv_dlopen_libs $LIBS"
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9022. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9023. if test "${lt_cv_dlopen_self+set}" = set; then :
  9024. $as_echo_n "(cached) " >&6
  9025. else
  9026. if test "$cross_compiling" = yes; then :
  9027. lt_cv_dlopen_self=cross
  9028. else
  9029. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9030. lt_status=$lt_dlunknown
  9031. cat > conftest.$ac_ext <<_LT_EOF
  9032. #line 10568 "configure"
  9033. #include "confdefs.h"
  9034. #if HAVE_DLFCN_H
  9035. #include <dlfcn.h>
  9036. #endif
  9037. #include <stdio.h>
  9038. #ifdef RTLD_GLOBAL
  9039. # define LT_DLGLOBAL RTLD_GLOBAL
  9040. #else
  9041. # ifdef DL_GLOBAL
  9042. # define LT_DLGLOBAL DL_GLOBAL
  9043. # else
  9044. # define LT_DLGLOBAL 0
  9045. # endif
  9046. #endif
  9047. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9048. find out it does not work in some platform. */
  9049. #ifndef LT_DLLAZY_OR_NOW
  9050. # ifdef RTLD_LAZY
  9051. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9052. # else
  9053. # ifdef DL_LAZY
  9054. # define LT_DLLAZY_OR_NOW DL_LAZY
  9055. # else
  9056. # ifdef RTLD_NOW
  9057. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9058. # else
  9059. # ifdef DL_NOW
  9060. # define LT_DLLAZY_OR_NOW DL_NOW
  9061. # else
  9062. # define LT_DLLAZY_OR_NOW 0
  9063. # endif
  9064. # endif
  9065. # endif
  9066. # endif
  9067. #endif
  9068. /* When -fvisbility=hidden is used, assume the code has been annotated
  9069. correspondingly for the symbols needed. */
  9070. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9071. void fnord () __attribute__((visibility("default")));
  9072. #endif
  9073. void fnord () { int i=42; }
  9074. int main ()
  9075. {
  9076. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9077. int status = $lt_dlunknown;
  9078. if (self)
  9079. {
  9080. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9081. else
  9082. {
  9083. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9084. else puts (dlerror ());
  9085. }
  9086. /* dlclose (self); */
  9087. }
  9088. else
  9089. puts (dlerror ());
  9090. return status;
  9091. }
  9092. _LT_EOF
  9093. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9094. (eval $ac_link) 2>&5
  9095. ac_status=$?
  9096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9097. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9098. (./conftest; exit; ) >&5 2>/dev/null
  9099. lt_status=$?
  9100. case x$lt_status in
  9101. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9102. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9103. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9104. esac
  9105. else :
  9106. # compilation failed
  9107. lt_cv_dlopen_self=no
  9108. fi
  9109. fi
  9110. rm -fr conftest*
  9111. fi
  9112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9113. $as_echo "$lt_cv_dlopen_self" >&6; }
  9114. if test "x$lt_cv_dlopen_self" = xyes; then
  9115. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9117. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9118. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9119. $as_echo_n "(cached) " >&6
  9120. else
  9121. if test "$cross_compiling" = yes; then :
  9122. lt_cv_dlopen_self_static=cross
  9123. else
  9124. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9125. lt_status=$lt_dlunknown
  9126. cat > conftest.$ac_ext <<_LT_EOF
  9127. #line 10674 "configure"
  9128. #include "confdefs.h"
  9129. #if HAVE_DLFCN_H
  9130. #include <dlfcn.h>
  9131. #endif
  9132. #include <stdio.h>
  9133. #ifdef RTLD_GLOBAL
  9134. # define LT_DLGLOBAL RTLD_GLOBAL
  9135. #else
  9136. # ifdef DL_GLOBAL
  9137. # define LT_DLGLOBAL DL_GLOBAL
  9138. # else
  9139. # define LT_DLGLOBAL 0
  9140. # endif
  9141. #endif
  9142. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9143. find out it does not work in some platform. */
  9144. #ifndef LT_DLLAZY_OR_NOW
  9145. # ifdef RTLD_LAZY
  9146. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9147. # else
  9148. # ifdef DL_LAZY
  9149. # define LT_DLLAZY_OR_NOW DL_LAZY
  9150. # else
  9151. # ifdef RTLD_NOW
  9152. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9153. # else
  9154. # ifdef DL_NOW
  9155. # define LT_DLLAZY_OR_NOW DL_NOW
  9156. # else
  9157. # define LT_DLLAZY_OR_NOW 0
  9158. # endif
  9159. # endif
  9160. # endif
  9161. # endif
  9162. #endif
  9163. /* When -fvisbility=hidden is used, assume the code has been annotated
  9164. correspondingly for the symbols needed. */
  9165. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9166. void fnord () __attribute__((visibility("default")));
  9167. #endif
  9168. void fnord () { int i=42; }
  9169. int main ()
  9170. {
  9171. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9172. int status = $lt_dlunknown;
  9173. if (self)
  9174. {
  9175. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9176. else
  9177. {
  9178. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9179. else puts (dlerror ());
  9180. }
  9181. /* dlclose (self); */
  9182. }
  9183. else
  9184. puts (dlerror ());
  9185. return status;
  9186. }
  9187. _LT_EOF
  9188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9189. (eval $ac_link) 2>&5
  9190. ac_status=$?
  9191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9192. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9193. (./conftest; exit; ) >&5 2>/dev/null
  9194. lt_status=$?
  9195. case x$lt_status in
  9196. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9197. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9198. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9199. esac
  9200. else :
  9201. # compilation failed
  9202. lt_cv_dlopen_self_static=no
  9203. fi
  9204. fi
  9205. rm -fr conftest*
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9208. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9209. fi
  9210. CPPFLAGS="$save_CPPFLAGS"
  9211. LDFLAGS="$save_LDFLAGS"
  9212. LIBS="$save_LIBS"
  9213. ;;
  9214. esac
  9215. case $lt_cv_dlopen_self in
  9216. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9217. *) enable_dlopen_self=unknown ;;
  9218. esac
  9219. case $lt_cv_dlopen_self_static in
  9220. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9221. *) enable_dlopen_self_static=unknown ;;
  9222. esac
  9223. fi
  9224. striplib=
  9225. old_striplib=
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9227. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9228. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9229. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9230. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9232. $as_echo "yes" >&6; }
  9233. else
  9234. # FIXME - insert some real tests, host_os isn't really good enough
  9235. case $host_os in
  9236. darwin*)
  9237. if test -n "$STRIP" ; then
  9238. striplib="$STRIP -x"
  9239. old_striplib="$STRIP -S"
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9241. $as_echo "yes" >&6; }
  9242. else
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9244. $as_echo "no" >&6; }
  9245. fi
  9246. ;;
  9247. *)
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9249. $as_echo "no" >&6; }
  9250. ;;
  9251. esac
  9252. fi
  9253. # Report which library types will actually be built
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9255. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9257. $as_echo "$can_build_shared" >&6; }
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9259. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9260. test "$can_build_shared" = "no" && enable_shared=no
  9261. # On AIX, shared libraries and static libraries use the same namespace, and
  9262. # are all built from PIC.
  9263. case $host_os in
  9264. aix3*)
  9265. test "$enable_shared" = yes && enable_static=no
  9266. if test -n "$RANLIB"; then
  9267. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9268. postinstall_cmds='$RANLIB $lib'
  9269. fi
  9270. ;;
  9271. aix[4-9]*)
  9272. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9273. test "$enable_shared" = yes && enable_static=no
  9274. fi
  9275. ;;
  9276. esac
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9278. $as_echo "$enable_shared" >&6; }
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9280. $as_echo_n "checking whether to build static libraries... " >&6; }
  9281. # Make sure either enable_shared or enable_static is yes.
  9282. test "$enable_shared" = yes || enable_static=yes
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9284. $as_echo "$enable_static" >&6; }
  9285. fi
  9286. ac_ext=c
  9287. ac_cpp='$CPP $CPPFLAGS'
  9288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9291. CC="$lt_save_CC"
  9292. ac_config_commands="$ac_config_commands libtool"
  9293. # Only expand once:
  9294. case $host in
  9295. *-cygwin* | *-mingw*)
  9296. # 'host' will be top-level target in the case of a target lib,
  9297. # we must compare to with_cross_host to decide if this is a native
  9298. # or cross-compiler and select where to install dlls appropriately.
  9299. if test -n "$with_cross_host" &&
  9300. test x"$with_cross_host" != x"no"; then
  9301. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9302. else
  9303. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9304. fi
  9305. ;;
  9306. *)
  9307. lt_host_flags=
  9308. ;;
  9309. esac
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9311. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9312. # Check whether --enable-maintainer-mode was given.
  9313. if test "${enable_maintainer_mode+set}" = set; then :
  9314. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9315. else
  9316. USE_MAINTAINER_MODE=no
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9319. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9320. if test $USE_MAINTAINER_MODE = yes; then
  9321. MAINTAINER_MODE_TRUE=
  9322. MAINTAINER_MODE_FALSE='#'
  9323. else
  9324. MAINTAINER_MODE_TRUE='#'
  9325. MAINTAINER_MODE_FALSE=
  9326. fi
  9327. MAINT=$MAINTAINER_MODE_TRUE
  9328. ac_ext=c
  9329. ac_cpp='$CPP $CPPFLAGS'
  9330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9333. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  9334. # We must force CC to /not/ be precious variables; otherwise
  9335. # the wrong, non-multilib-adjusted value will be used in multilibs.
  9336. # As a side effect, we have to subst CFLAGS ourselves.
  9337. ac_ext=c
  9338. ac_cpp='$CPP $CPPFLAGS'
  9339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9342. if test -n "$ac_tool_prefix"; then
  9343. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9344. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9346. $as_echo_n "checking for $ac_word... " >&6; }
  9347. if test "${ac_cv_prog_CC+set}" = set; then :
  9348. $as_echo_n "(cached) " >&6
  9349. else
  9350. if test -n "$CC"; then
  9351. ac_cv_prog_CC="$CC" # Let the user override the test.
  9352. else
  9353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9354. for as_dir in $PATH
  9355. do
  9356. IFS=$as_save_IFS
  9357. test -z "$as_dir" && as_dir=.
  9358. for ac_exec_ext in '' $ac_executable_extensions; do
  9359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9360. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9362. break 2
  9363. fi
  9364. done
  9365. done
  9366. IFS=$as_save_IFS
  9367. fi
  9368. fi
  9369. CC=$ac_cv_prog_CC
  9370. if test -n "$CC"; then
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9372. $as_echo "$CC" >&6; }
  9373. else
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9375. $as_echo "no" >&6; }
  9376. fi
  9377. fi
  9378. if test -z "$ac_cv_prog_CC"; then
  9379. ac_ct_CC=$CC
  9380. # Extract the first word of "gcc", so it can be a program name with args.
  9381. set dummy gcc; ac_word=$2
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9383. $as_echo_n "checking for $ac_word... " >&6; }
  9384. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. if test -n "$ac_ct_CC"; then
  9388. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9389. else
  9390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9391. for as_dir in $PATH
  9392. do
  9393. IFS=$as_save_IFS
  9394. test -z "$as_dir" && as_dir=.
  9395. for ac_exec_ext in '' $ac_executable_extensions; do
  9396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9397. ac_cv_prog_ac_ct_CC="gcc"
  9398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9399. break 2
  9400. fi
  9401. done
  9402. done
  9403. IFS=$as_save_IFS
  9404. fi
  9405. fi
  9406. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9407. if test -n "$ac_ct_CC"; then
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9409. $as_echo "$ac_ct_CC" >&6; }
  9410. else
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9412. $as_echo "no" >&6; }
  9413. fi
  9414. if test "x$ac_ct_CC" = x; then
  9415. CC=""
  9416. else
  9417. case $cross_compiling:$ac_tool_warned in
  9418. yes:)
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9421. ac_tool_warned=yes ;;
  9422. esac
  9423. CC=$ac_ct_CC
  9424. fi
  9425. else
  9426. CC="$ac_cv_prog_CC"
  9427. fi
  9428. if test -z "$CC"; then
  9429. if test -n "$ac_tool_prefix"; then
  9430. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9431. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9433. $as_echo_n "checking for $ac_word... " >&6; }
  9434. if test "${ac_cv_prog_CC+set}" = set; then :
  9435. $as_echo_n "(cached) " >&6
  9436. else
  9437. if test -n "$CC"; then
  9438. ac_cv_prog_CC="$CC" # Let the user override the test.
  9439. else
  9440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9441. for as_dir in $PATH
  9442. do
  9443. IFS=$as_save_IFS
  9444. test -z "$as_dir" && as_dir=.
  9445. for ac_exec_ext in '' $ac_executable_extensions; do
  9446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9447. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9449. break 2
  9450. fi
  9451. done
  9452. done
  9453. IFS=$as_save_IFS
  9454. fi
  9455. fi
  9456. CC=$ac_cv_prog_CC
  9457. if test -n "$CC"; then
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9459. $as_echo "$CC" >&6; }
  9460. else
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9462. $as_echo "no" >&6; }
  9463. fi
  9464. fi
  9465. fi
  9466. if test -z "$CC"; then
  9467. # Extract the first word of "cc", so it can be a program name with args.
  9468. set dummy cc; ac_word=$2
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9470. $as_echo_n "checking for $ac_word... " >&6; }
  9471. if test "${ac_cv_prog_CC+set}" = set; then :
  9472. $as_echo_n "(cached) " >&6
  9473. else
  9474. if test -n "$CC"; then
  9475. ac_cv_prog_CC="$CC" # Let the user override the test.
  9476. else
  9477. ac_prog_rejected=no
  9478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9479. for as_dir in $PATH
  9480. do
  9481. IFS=$as_save_IFS
  9482. test -z "$as_dir" && as_dir=.
  9483. for ac_exec_ext in '' $ac_executable_extensions; do
  9484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9485. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9486. ac_prog_rejected=yes
  9487. continue
  9488. fi
  9489. ac_cv_prog_CC="cc"
  9490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9491. break 2
  9492. fi
  9493. done
  9494. done
  9495. IFS=$as_save_IFS
  9496. if test $ac_prog_rejected = yes; then
  9497. # We found a bogon in the path, so make sure we never use it.
  9498. set dummy $ac_cv_prog_CC
  9499. shift
  9500. if test $# != 0; then
  9501. # We chose a different compiler from the bogus one.
  9502. # However, it has the same basename, so the bogon will be chosen
  9503. # first if we set CC to just the basename; use the full file name.
  9504. shift
  9505. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9506. fi
  9507. fi
  9508. fi
  9509. fi
  9510. CC=$ac_cv_prog_CC
  9511. if test -n "$CC"; then
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9513. $as_echo "$CC" >&6; }
  9514. else
  9515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9516. $as_echo "no" >&6; }
  9517. fi
  9518. fi
  9519. if test -z "$CC"; then
  9520. if test -n "$ac_tool_prefix"; then
  9521. for ac_prog in cl.exe
  9522. do
  9523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9526. $as_echo_n "checking for $ac_word... " >&6; }
  9527. if test "${ac_cv_prog_CC+set}" = set; then :
  9528. $as_echo_n "(cached) " >&6
  9529. else
  9530. if test -n "$CC"; then
  9531. ac_cv_prog_CC="$CC" # Let the user override the test.
  9532. else
  9533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9534. for as_dir in $PATH
  9535. do
  9536. IFS=$as_save_IFS
  9537. test -z "$as_dir" && as_dir=.
  9538. for ac_exec_ext in '' $ac_executable_extensions; do
  9539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9540. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9542. break 2
  9543. fi
  9544. done
  9545. done
  9546. IFS=$as_save_IFS
  9547. fi
  9548. fi
  9549. CC=$ac_cv_prog_CC
  9550. if test -n "$CC"; then
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9552. $as_echo "$CC" >&6; }
  9553. else
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9555. $as_echo "no" >&6; }
  9556. fi
  9557. test -n "$CC" && break
  9558. done
  9559. fi
  9560. if test -z "$CC"; then
  9561. ac_ct_CC=$CC
  9562. for ac_prog in cl.exe
  9563. do
  9564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9565. set dummy $ac_prog; ac_word=$2
  9566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9567. $as_echo_n "checking for $ac_word... " >&6; }
  9568. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9569. $as_echo_n "(cached) " >&6
  9570. else
  9571. if test -n "$ac_ct_CC"; then
  9572. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9573. else
  9574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9575. for as_dir in $PATH
  9576. do
  9577. IFS=$as_save_IFS
  9578. test -z "$as_dir" && as_dir=.
  9579. for ac_exec_ext in '' $ac_executable_extensions; do
  9580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9581. ac_cv_prog_ac_ct_CC="$ac_prog"
  9582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9583. break 2
  9584. fi
  9585. done
  9586. done
  9587. IFS=$as_save_IFS
  9588. fi
  9589. fi
  9590. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9591. if test -n "$ac_ct_CC"; then
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9593. $as_echo "$ac_ct_CC" >&6; }
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9596. $as_echo "no" >&6; }
  9597. fi
  9598. test -n "$ac_ct_CC" && break
  9599. done
  9600. if test "x$ac_ct_CC" = x; then
  9601. CC=""
  9602. else
  9603. case $cross_compiling:$ac_tool_warned in
  9604. yes:)
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9607. ac_tool_warned=yes ;;
  9608. esac
  9609. CC=$ac_ct_CC
  9610. fi
  9611. fi
  9612. fi
  9613. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9614. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9615. as_fn_error "no acceptable C compiler found in \$PATH
  9616. See \`config.log' for more details." "$LINENO" 5; }
  9617. # Provide some information about the compiler.
  9618. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9619. set X $ac_compile
  9620. ac_compiler=$2
  9621. for ac_option in --version -v -V -qversion; do
  9622. { { ac_try="$ac_compiler $ac_option >&5"
  9623. case "(($ac_try" in
  9624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9625. *) ac_try_echo=$ac_try;;
  9626. esac
  9627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9628. $as_echo "$ac_try_echo"; } >&5
  9629. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9630. ac_status=$?
  9631. if test -s conftest.err; then
  9632. sed '10a\
  9633. ... rest of stderr output deleted ...
  9634. 10q' conftest.err >conftest.er1
  9635. cat conftest.er1 >&5
  9636. rm -f conftest.er1 conftest.err
  9637. fi
  9638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9639. test $ac_status = 0; }
  9640. done
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9642. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9643. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  9644. $as_echo_n "(cached) " >&6
  9645. else
  9646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9647. /* end confdefs.h. */
  9648. int
  9649. main ()
  9650. {
  9651. #ifndef __GNUC__
  9652. choke me
  9653. #endif
  9654. ;
  9655. return 0;
  9656. }
  9657. _ACEOF
  9658. if ac_fn_c_try_compile "$LINENO"; then :
  9659. ac_compiler_gnu=yes
  9660. else
  9661. ac_compiler_gnu=no
  9662. fi
  9663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9664. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9665. fi
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9667. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9668. if test $ac_compiler_gnu = yes; then
  9669. GCC=yes
  9670. else
  9671. GCC=
  9672. fi
  9673. ac_test_CFLAGS=${CFLAGS+set}
  9674. ac_save_CFLAGS=$CFLAGS
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9676. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9677. if test "${ac_cv_prog_cc_g+set}" = set; then :
  9678. $as_echo_n "(cached) " >&6
  9679. else
  9680. ac_save_c_werror_flag=$ac_c_werror_flag
  9681. ac_c_werror_flag=yes
  9682. ac_cv_prog_cc_g=no
  9683. CFLAGS="-g"
  9684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9685. /* end confdefs.h. */
  9686. int
  9687. main ()
  9688. {
  9689. ;
  9690. return 0;
  9691. }
  9692. _ACEOF
  9693. if ac_fn_c_try_compile "$LINENO"; then :
  9694. ac_cv_prog_cc_g=yes
  9695. else
  9696. CFLAGS=""
  9697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9698. /* end confdefs.h. */
  9699. int
  9700. main ()
  9701. {
  9702. ;
  9703. return 0;
  9704. }
  9705. _ACEOF
  9706. if ac_fn_c_try_compile "$LINENO"; then :
  9707. else
  9708. ac_c_werror_flag=$ac_save_c_werror_flag
  9709. CFLAGS="-g"
  9710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9711. /* end confdefs.h. */
  9712. int
  9713. main ()
  9714. {
  9715. ;
  9716. return 0;
  9717. }
  9718. _ACEOF
  9719. if ac_fn_c_try_compile "$LINENO"; then :
  9720. ac_cv_prog_cc_g=yes
  9721. fi
  9722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9723. fi
  9724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9727. ac_c_werror_flag=$ac_save_c_werror_flag
  9728. fi
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9730. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9731. if test "$ac_test_CFLAGS" = set; then
  9732. CFLAGS=$ac_save_CFLAGS
  9733. elif test $ac_cv_prog_cc_g = yes; then
  9734. if test "$GCC" = yes; then
  9735. CFLAGS="-g -O2"
  9736. else
  9737. CFLAGS="-g"
  9738. fi
  9739. else
  9740. if test "$GCC" = yes; then
  9741. CFLAGS="-O2"
  9742. else
  9743. CFLAGS=
  9744. fi
  9745. fi
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9747. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9748. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  9749. $as_echo_n "(cached) " >&6
  9750. else
  9751. ac_cv_prog_cc_c89=no
  9752. ac_save_CC=$CC
  9753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9754. /* end confdefs.h. */
  9755. #include <stdarg.h>
  9756. #include <stdio.h>
  9757. #include <sys/types.h>
  9758. #include <sys/stat.h>
  9759. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9760. struct buf { int x; };
  9761. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9762. static char *e (p, i)
  9763. char **p;
  9764. int i;
  9765. {
  9766. return p[i];
  9767. }
  9768. static char *f (char * (*g) (char **, int), char **p, ...)
  9769. {
  9770. char *s;
  9771. va_list v;
  9772. va_start (v,p);
  9773. s = g (p, va_arg (v,int));
  9774. va_end (v);
  9775. return s;
  9776. }
  9777. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9778. function prototypes and stuff, but not '\xHH' hex character constants.
  9779. These don't provoke an error unfortunately, instead are silently treated
  9780. as 'x'. The following induces an error, until -std is added to get
  9781. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9782. array size at least. It's necessary to write '\x00'==0 to get something
  9783. that's true only with -std. */
  9784. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9785. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9786. inside strings and character constants. */
  9787. #define FOO(x) 'x'
  9788. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9789. int test (int i, double x);
  9790. struct s1 {int (*f) (int a);};
  9791. struct s2 {int (*f) (double a);};
  9792. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9793. int argc;
  9794. char **argv;
  9795. int
  9796. main ()
  9797. {
  9798. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9799. ;
  9800. return 0;
  9801. }
  9802. _ACEOF
  9803. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9804. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9805. do
  9806. CC="$ac_save_CC $ac_arg"
  9807. if ac_fn_c_try_compile "$LINENO"; then :
  9808. ac_cv_prog_cc_c89=$ac_arg
  9809. fi
  9810. rm -f core conftest.err conftest.$ac_objext
  9811. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9812. done
  9813. rm -f conftest.$ac_ext
  9814. CC=$ac_save_CC
  9815. fi
  9816. # AC_CACHE_VAL
  9817. case "x$ac_cv_prog_cc_c89" in
  9818. x)
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9820. $as_echo "none needed" >&6; } ;;
  9821. xno)
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9823. $as_echo "unsupported" >&6; } ;;
  9824. *)
  9825. CC="$CC $ac_cv_prog_cc_c89"
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9827. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9828. esac
  9829. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9830. fi
  9831. ac_ext=c
  9832. ac_cpp='$CPP $CPPFLAGS'
  9833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9836. depcc="$CC" am_compiler_list=
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9838. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9839. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  9840. $as_echo_n "(cached) " >&6
  9841. else
  9842. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9843. # We make a subdir and do the tests there. Otherwise we can end up
  9844. # making bogus files that we don't know about and never remove. For
  9845. # instance it was reported that on HP-UX the gcc test will end up
  9846. # making a dummy file named `D' -- because `-MD' means `put the output
  9847. # in D'.
  9848. mkdir conftest.dir
  9849. # Copy depcomp to subdir because otherwise we won't find it if we're
  9850. # using a relative directory.
  9851. cp "$am_depcomp" conftest.dir
  9852. cd conftest.dir
  9853. # We will build objects and dependencies in a subdirectory because
  9854. # it helps to detect inapplicable dependency modes. For instance
  9855. # both Tru64's cc and ICC support -MD to output dependencies as a
  9856. # side effect of compilation, but ICC will put the dependencies in
  9857. # the current directory while Tru64 will put them in the object
  9858. # directory.
  9859. mkdir sub
  9860. am_cv_CC_dependencies_compiler_type=none
  9861. if test "$am_compiler_list" = ""; then
  9862. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9863. fi
  9864. am__universal=false
  9865. case " $depcc " in #(
  9866. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9867. esac
  9868. for depmode in $am_compiler_list; do
  9869. # Setup a source with many dependencies, because some compilers
  9870. # like to wrap large dependency lists on column 80 (with \), and
  9871. # we should not choose a depcomp mode which is confused by this.
  9872. #
  9873. # We need to recreate these files for each test, as the compiler may
  9874. # overwrite some of them when testing with obscure command lines.
  9875. # This happens at least with the AIX C compiler.
  9876. : > sub/conftest.c
  9877. for i in 1 2 3 4 5 6; do
  9878. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9879. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9880. # Solaris 8's {/usr,}/bin/sh.
  9881. touch sub/conftst$i.h
  9882. done
  9883. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9884. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9885. # mode. It turns out that the SunPro C++ compiler does not properly
  9886. # handle `-M -o', and we need to detect this. Also, some Intel
  9887. # versions had trouble with output in subdirs
  9888. am__obj=sub/conftest.${OBJEXT-o}
  9889. am__minus_obj="-o $am__obj"
  9890. case $depmode in
  9891. gcc)
  9892. # This depmode causes a compiler race in universal mode.
  9893. test "$am__universal" = false || continue
  9894. ;;
  9895. nosideeffect)
  9896. # after this tag, mechanisms are not by side-effect, so they'll
  9897. # only be used when explicitly requested
  9898. if test "x$enable_dependency_tracking" = xyes; then
  9899. continue
  9900. else
  9901. break
  9902. fi
  9903. ;;
  9904. msvisualcpp | msvcmsys)
  9905. # This compiler won't grok `-c -o', but also, the minuso test has
  9906. # not run yet. These depmodes are late enough in the game, and
  9907. # so weak that their functioning should not be impacted.
  9908. am__obj=conftest.${OBJEXT-o}
  9909. am__minus_obj=
  9910. ;;
  9911. none) break ;;
  9912. esac
  9913. if depmode=$depmode \
  9914. source=sub/conftest.c object=$am__obj \
  9915. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9916. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9917. >/dev/null 2>conftest.err &&
  9918. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9919. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9920. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9921. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9922. # icc doesn't choke on unknown options, it will just issue warnings
  9923. # or remarks (even with -Werror). So we grep stderr for any message
  9924. # that says an option was ignored or not supported.
  9925. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9926. # icc: Command line warning: ignoring option '-M'; no argument required
  9927. # The diagnosis changed in icc 8.0:
  9928. # icc: Command line remark: option '-MP' not supported
  9929. if (grep 'ignoring option' conftest.err ||
  9930. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9931. am_cv_CC_dependencies_compiler_type=$depmode
  9932. break
  9933. fi
  9934. fi
  9935. done
  9936. cd ..
  9937. rm -rf conftest.dir
  9938. else
  9939. am_cv_CC_dependencies_compiler_type=none
  9940. fi
  9941. fi
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  9943. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  9944. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9945. if
  9946. test "x$enable_dependency_tracking" != xno \
  9947. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9948. am__fastdepCC_TRUE=
  9949. am__fastdepCC_FALSE='#'
  9950. else
  9951. am__fastdepCC_TRUE='#'
  9952. am__fastdepCC_FALSE=
  9953. fi
  9954. if test "x$CC" != xcc; then
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9956. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9959. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9960. fi
  9961. set dummy $CC; ac_cc=`$as_echo "$2" |
  9962. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9963. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  9964. $as_echo_n "(cached) " >&6
  9965. else
  9966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9967. /* end confdefs.h. */
  9968. int
  9969. main ()
  9970. {
  9971. ;
  9972. return 0;
  9973. }
  9974. _ACEOF
  9975. # Make sure it works both with $CC and with simple cc.
  9976. # We do the test twice because some compilers refuse to overwrite an
  9977. # existing .o file with -o, though they will create one.
  9978. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9979. rm -f conftest2.*
  9980. if { { case "(($ac_try" in
  9981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9982. *) ac_try_echo=$ac_try;;
  9983. esac
  9984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9985. $as_echo "$ac_try_echo"; } >&5
  9986. (eval "$ac_try") 2>&5
  9987. ac_status=$?
  9988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9989. test $ac_status = 0; } &&
  9990. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9992. *) ac_try_echo=$ac_try;;
  9993. esac
  9994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9995. $as_echo "$ac_try_echo"; } >&5
  9996. (eval "$ac_try") 2>&5
  9997. ac_status=$?
  9998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9999. test $ac_status = 0; };
  10000. then
  10001. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  10002. if test "x$CC" != xcc; then
  10003. # Test first that cc exists at all.
  10004. if { ac_try='cc -c conftest.$ac_ext >&5'
  10005. { { case "(($ac_try" in
  10006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10007. *) ac_try_echo=$ac_try;;
  10008. esac
  10009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10010. $as_echo "$ac_try_echo"; } >&5
  10011. (eval "$ac_try") 2>&5
  10012. ac_status=$?
  10013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10014. test $ac_status = 0; }; }; then
  10015. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10016. rm -f conftest2.*
  10017. if { { case "(($ac_try" in
  10018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10019. *) ac_try_echo=$ac_try;;
  10020. esac
  10021. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10022. $as_echo "$ac_try_echo"; } >&5
  10023. (eval "$ac_try") 2>&5
  10024. ac_status=$?
  10025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10026. test $ac_status = 0; } &&
  10027. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10029. *) ac_try_echo=$ac_try;;
  10030. esac
  10031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10032. $as_echo "$ac_try_echo"; } >&5
  10033. (eval "$ac_try") 2>&5
  10034. ac_status=$?
  10035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10036. test $ac_status = 0; };
  10037. then
  10038. # cc works too.
  10039. :
  10040. else
  10041. # cc exists but doesn't like -o.
  10042. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10043. fi
  10044. fi
  10045. fi
  10046. else
  10047. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10048. fi
  10049. rm -f core conftest*
  10050. fi
  10051. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10053. $as_echo "yes" >&6; }
  10054. else
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10056. $as_echo "no" >&6; }
  10057. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  10058. fi
  10059. # FIXME: we rely on the cache variable name because
  10060. # there is no other way.
  10061. set dummy $CC
  10062. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10063. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10064. if test "$am_t" != yes; then
  10065. # Losing compiler, so override with the script.
  10066. # FIXME: It is wrong to rewrite CC.
  10067. # But if we don't then we get into trouble of one sort or another.
  10068. # A longer-term fix would be to have automake use am__CC in this case,
  10069. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10070. CC="$am_aux_dir/compile $CC"
  10071. fi
  10072. if test "x$GCC" != "xyes"; then
  10073. as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
  10074. fi
  10075. ac_ext=c
  10076. ac_cpp='$CPP $CPPFLAGS'
  10077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  10081. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  10082. # On Suns, sometimes $CPP names a directory.
  10083. if test -n "$CPP" && test -d "$CPP"; then
  10084. CPP=
  10085. fi
  10086. if test -z "$CPP"; then
  10087. if test "${ac_cv_prog_CPP+set}" = set; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. # Double quotes because CPP needs to be expanded
  10091. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  10092. do
  10093. ac_preproc_ok=false
  10094. for ac_c_preproc_warn_flag in '' yes
  10095. do
  10096. # Use a header file that comes with gcc, so configuring glibc
  10097. # with a fresh cross-compiler works.
  10098. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10099. # <limits.h> exists even on freestanding compilers.
  10100. # On the NeXT, cc -E runs the code through the compiler's parser,
  10101. # not just through cpp. "Syntax error" is here to catch this case.
  10102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10103. /* end confdefs.h. */
  10104. #ifdef __STDC__
  10105. # include <limits.h>
  10106. #else
  10107. # include <assert.h>
  10108. #endif
  10109. Syntax error
  10110. _ACEOF
  10111. if ac_fn_c_try_cpp "$LINENO"; then :
  10112. else
  10113. # Broken: fails on valid input.
  10114. continue
  10115. fi
  10116. rm -f conftest.err conftest.$ac_ext
  10117. # OK, works on sane cases. Now check whether nonexistent headers
  10118. # can be detected and how.
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. #include <ac_nonexistent.h>
  10122. _ACEOF
  10123. if ac_fn_c_try_cpp "$LINENO"; then :
  10124. # Broken: success on invalid input.
  10125. continue
  10126. else
  10127. # Passes both tests.
  10128. ac_preproc_ok=:
  10129. break
  10130. fi
  10131. rm -f conftest.err conftest.$ac_ext
  10132. done
  10133. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10134. rm -f conftest.err conftest.$ac_ext
  10135. if $ac_preproc_ok; then :
  10136. break
  10137. fi
  10138. done
  10139. ac_cv_prog_CPP=$CPP
  10140. fi
  10141. CPP=$ac_cv_prog_CPP
  10142. else
  10143. ac_cv_prog_CPP=$CPP
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  10146. $as_echo "$CPP" >&6; }
  10147. ac_preproc_ok=false
  10148. for ac_c_preproc_warn_flag in '' yes
  10149. do
  10150. # Use a header file that comes with gcc, so configuring glibc
  10151. # with a fresh cross-compiler works.
  10152. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10153. # <limits.h> exists even on freestanding compilers.
  10154. # On the NeXT, cc -E runs the code through the compiler's parser,
  10155. # not just through cpp. "Syntax error" is here to catch this case.
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. #ifdef __STDC__
  10159. # include <limits.h>
  10160. #else
  10161. # include <assert.h>
  10162. #endif
  10163. Syntax error
  10164. _ACEOF
  10165. if ac_fn_c_try_cpp "$LINENO"; then :
  10166. else
  10167. # Broken: fails on valid input.
  10168. continue
  10169. fi
  10170. rm -f conftest.err conftest.$ac_ext
  10171. # OK, works on sane cases. Now check whether nonexistent headers
  10172. # can be detected and how.
  10173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10174. /* end confdefs.h. */
  10175. #include <ac_nonexistent.h>
  10176. _ACEOF
  10177. if ac_fn_c_try_cpp "$LINENO"; then :
  10178. # Broken: success on invalid input.
  10179. continue
  10180. else
  10181. # Passes both tests.
  10182. ac_preproc_ok=:
  10183. break
  10184. fi
  10185. rm -f conftest.err conftest.$ac_ext
  10186. done
  10187. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10188. rm -f conftest.err conftest.$ac_ext
  10189. if $ac_preproc_ok; then :
  10190. else
  10191. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10192. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10193. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  10194. See \`config.log' for more details." "$LINENO" 5; }
  10195. fi
  10196. ac_ext=c
  10197. ac_cpp='$CPP $CPPFLAGS'
  10198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10201. # Calculate toolexeclibdir
  10202. # Also toolexecdir, though it's only used in toolexeclibdir
  10203. case ${version_specific_libs} in
  10204. yes)
  10205. # Need the gcc compiler version to know where to install libraries
  10206. # and header files if --enable-version-specific-runtime-libs option
  10207. # is selected.
  10208. toolexecdir='$(libdir)/gcc/$(target_alias)'
  10209. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  10210. ;;
  10211. no)
  10212. if test -n "$with_cross_host" &&
  10213. test x"$with_cross_host" != x"no"; then
  10214. # Install a library built with a cross compiler in tooldir, not libdir.
  10215. toolexecdir='$(exec_prefix)/$(target_alias)'
  10216. toolexeclibdir='$(toolexecdir)/lib'
  10217. else
  10218. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  10219. toolexeclibdir='$(libdir)'
  10220. fi
  10221. multi_os_directory=`$CC -print-multi-os-directory`
  10222. case $multi_os_directory in
  10223. .) ;; # Avoid trailing /.
  10224. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  10225. esac
  10226. ;;
  10227. esac
  10228. for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
  10229. do :
  10230. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10231. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10232. eval as_val=\$$as_ac_Header
  10233. if test "x$as_val" = x""yes; then :
  10234. cat >>confdefs.h <<_ACEOF
  10235. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10236. _ACEOF
  10237. fi
  10238. done
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
  10240. $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
  10241. if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
  10242. $as_echo_n "(cached) " >&6
  10243. else
  10244. save_CFLAGS="$CFLAGS"
  10245. CFLAGS="$CFLAGS -Werror"
  10246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10247. /* end confdefs.h. */
  10248. #include <math.h>
  10249. void foo(void) { signgam = 1; }
  10250. int
  10251. main ()
  10252. {
  10253. ;
  10254. return 0;
  10255. }
  10256. _ACEOF
  10257. if ac_fn_c_try_compile "$LINENO"; then :
  10258. libgfor_cv_have_math_h_signgam=yes
  10259. else
  10260. libgfor_cv_have_math_h_signgam=no
  10261. fi
  10262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10263. CFLAGS="$save_CFLAGS"
  10264. fi
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
  10266. $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
  10267. if test $libgfor_cv_have_math_h_signgam = yes; then
  10268. $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
  10269. fi
  10270. # If available, sqrtl and cbrtl speed up the calculation -
  10271. # but they are not required
  10272. if test x$gcc_no_link != xyes; then
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
  10274. $as_echo_n "checking for sqrtl in -lm... " >&6; }
  10275. if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
  10276. $as_echo_n "(cached) " >&6
  10277. else
  10278. ac_check_lib_save_LIBS=$LIBS
  10279. LIBS="-lm $LIBS"
  10280. if test x$gcc_no_link = xyes; then
  10281. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10282. fi
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. /* Override any GCC internal prototype to avoid an error.
  10286. Use char because int might match the return type of a GCC
  10287. builtin and then its argument prototype would still apply. */
  10288. #ifdef __cplusplus
  10289. extern "C"
  10290. #endif
  10291. char sqrtl ();
  10292. int
  10293. main ()
  10294. {
  10295. return sqrtl ();
  10296. ;
  10297. return 0;
  10298. }
  10299. _ACEOF
  10300. if ac_fn_c_try_link "$LINENO"; then :
  10301. ac_cv_lib_m_sqrtl=yes
  10302. else
  10303. ac_cv_lib_m_sqrtl=no
  10304. fi
  10305. rm -f core conftest.err conftest.$ac_objext \
  10306. conftest$ac_exeext conftest.$ac_ext
  10307. LIBS=$ac_check_lib_save_LIBS
  10308. fi
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
  10310. $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
  10311. if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
  10312. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  10313. fi
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
  10315. $as_echo_n "checking for cbrtl in -lm... " >&6; }
  10316. if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
  10317. $as_echo_n "(cached) " >&6
  10318. else
  10319. ac_check_lib_save_LIBS=$LIBS
  10320. LIBS="-lm $LIBS"
  10321. if test x$gcc_no_link = xyes; then
  10322. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10323. fi
  10324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10325. /* end confdefs.h. */
  10326. /* Override any GCC internal prototype to avoid an error.
  10327. Use char because int might match the return type of a GCC
  10328. builtin and then its argument prototype would still apply. */
  10329. #ifdef __cplusplus
  10330. extern "C"
  10331. #endif
  10332. char cbrtl ();
  10333. int
  10334. main ()
  10335. {
  10336. return cbrtl ();
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_c_try_link "$LINENO"; then :
  10342. ac_cv_lib_m_cbrtl=yes
  10343. else
  10344. ac_cv_lib_m_cbrtl=no
  10345. fi
  10346. rm -f core conftest.err conftest.$ac_objext \
  10347. conftest$ac_exeext conftest.$ac_ext
  10348. LIBS=$ac_check_lib_save_LIBS
  10349. fi
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
  10351. $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
  10352. if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
  10353. $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
  10356. $as_echo_n "checking for feholdexcept in -lm... " >&6; }
  10357. if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
  10358. $as_echo_n "(cached) " >&6
  10359. else
  10360. ac_check_lib_save_LIBS=$LIBS
  10361. LIBS="-lm $LIBS"
  10362. if test x$gcc_no_link = xyes; then
  10363. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10364. fi
  10365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10366. /* end confdefs.h. */
  10367. /* Override any GCC internal prototype to avoid an error.
  10368. Use char because int might match the return type of a GCC
  10369. builtin and then its argument prototype would still apply. */
  10370. #ifdef __cplusplus
  10371. extern "C"
  10372. #endif
  10373. char feholdexcept ();
  10374. int
  10375. main ()
  10376. {
  10377. return feholdexcept ();
  10378. ;
  10379. return 0;
  10380. }
  10381. _ACEOF
  10382. if ac_fn_c_try_link "$LINENO"; then :
  10383. ac_cv_lib_m_feholdexcept=yes
  10384. else
  10385. ac_cv_lib_m_feholdexcept=no
  10386. fi
  10387. rm -f core conftest.err conftest.$ac_objext \
  10388. conftest$ac_exeext conftest.$ac_ext
  10389. LIBS=$ac_check_lib_save_LIBS
  10390. fi
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
  10392. $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
  10393. if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
  10394. $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
  10395. fi
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
  10397. $as_echo_n "checking for fesetround in -lm... " >&6; }
  10398. if test "${ac_cv_lib_m_fesetround+set}" = set; then :
  10399. $as_echo_n "(cached) " >&6
  10400. else
  10401. ac_check_lib_save_LIBS=$LIBS
  10402. LIBS="-lm $LIBS"
  10403. if test x$gcc_no_link = xyes; then
  10404. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10405. fi
  10406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10407. /* end confdefs.h. */
  10408. /* Override any GCC internal prototype to avoid an error.
  10409. Use char because int might match the return type of a GCC
  10410. builtin and then its argument prototype would still apply. */
  10411. #ifdef __cplusplus
  10412. extern "C"
  10413. #endif
  10414. char fesetround ();
  10415. int
  10416. main ()
  10417. {
  10418. return fesetround ();
  10419. ;
  10420. return 0;
  10421. }
  10422. _ACEOF
  10423. if ac_fn_c_try_link "$LINENO"; then :
  10424. ac_cv_lib_m_fesetround=yes
  10425. else
  10426. ac_cv_lib_m_fesetround=no
  10427. fi
  10428. rm -f core conftest.err conftest.$ac_objext \
  10429. conftest$ac_exeext conftest.$ac_ext
  10430. LIBS=$ac_check_lib_save_LIBS
  10431. fi
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
  10433. $as_echo "$ac_cv_lib_m_fesetround" >&6; }
  10434. if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
  10435. $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
  10436. fi
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
  10438. $as_echo_n "checking for feupdateenv in -lm... " >&6; }
  10439. if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. ac_check_lib_save_LIBS=$LIBS
  10443. LIBS="-lm $LIBS"
  10444. if test x$gcc_no_link = xyes; then
  10445. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10446. fi
  10447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10448. /* end confdefs.h. */
  10449. /* Override any GCC internal prototype to avoid an error.
  10450. Use char because int might match the return type of a GCC
  10451. builtin and then its argument prototype would still apply. */
  10452. #ifdef __cplusplus
  10453. extern "C"
  10454. #endif
  10455. char feupdateenv ();
  10456. int
  10457. main ()
  10458. {
  10459. return feupdateenv ();
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_c_try_link "$LINENO"; then :
  10465. ac_cv_lib_m_feupdateenv=yes
  10466. else
  10467. ac_cv_lib_m_feupdateenv=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext \
  10470. conftest$ac_exeext conftest.$ac_ext
  10471. LIBS=$ac_check_lib_save_LIBS
  10472. fi
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
  10474. $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
  10475. if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
  10476. $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
  10477. fi
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
  10479. $as_echo_n "checking for fesetenv in -lm... " >&6; }
  10480. if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
  10481. $as_echo_n "(cached) " >&6
  10482. else
  10483. ac_check_lib_save_LIBS=$LIBS
  10484. LIBS="-lm $LIBS"
  10485. if test x$gcc_no_link = xyes; then
  10486. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10487. fi
  10488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10489. /* end confdefs.h. */
  10490. /* Override any GCC internal prototype to avoid an error.
  10491. Use char because int might match the return type of a GCC
  10492. builtin and then its argument prototype would still apply. */
  10493. #ifdef __cplusplus
  10494. extern "C"
  10495. #endif
  10496. char fesetenv ();
  10497. int
  10498. main ()
  10499. {
  10500. return fesetenv ();
  10501. ;
  10502. return 0;
  10503. }
  10504. _ACEOF
  10505. if ac_fn_c_try_link "$LINENO"; then :
  10506. ac_cv_lib_m_fesetenv=yes
  10507. else
  10508. ac_cv_lib_m_fesetenv=no
  10509. fi
  10510. rm -f core conftest.err conftest.$ac_objext \
  10511. conftest$ac_exeext conftest.$ac_ext
  10512. LIBS=$ac_check_lib_save_LIBS
  10513. fi
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
  10515. $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
  10516. if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
  10517. $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
  10518. fi
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
  10520. $as_echo_n "checking for fetestexcept in -lm... " >&6; }
  10521. if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. ac_check_lib_save_LIBS=$LIBS
  10525. LIBS="-lm $LIBS"
  10526. if test x$gcc_no_link = xyes; then
  10527. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10528. fi
  10529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10530. /* end confdefs.h. */
  10531. /* Override any GCC internal prototype to avoid an error.
  10532. Use char because int might match the return type of a GCC
  10533. builtin and then its argument prototype would still apply. */
  10534. #ifdef __cplusplus
  10535. extern "C"
  10536. #endif
  10537. char fetestexcept ();
  10538. int
  10539. main ()
  10540. {
  10541. return fetestexcept ();
  10542. ;
  10543. return 0;
  10544. }
  10545. _ACEOF
  10546. if ac_fn_c_try_link "$LINENO"; then :
  10547. ac_cv_lib_m_fetestexcept=yes
  10548. else
  10549. ac_cv_lib_m_fetestexcept=no
  10550. fi
  10551. rm -f core conftest.err conftest.$ac_objext \
  10552. conftest$ac_exeext conftest.$ac_ext
  10553. LIBS=$ac_check_lib_save_LIBS
  10554. fi
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
  10556. $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
  10557. if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
  10558. $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
  10559. fi
  10560. for ac_func in strtoull
  10561. do :
  10562. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  10563. if test "x$ac_cv_func_strtoull" = x""yes; then :
  10564. cat >>confdefs.h <<_ACEOF
  10565. #define HAVE_STRTOULL 1
  10566. _ACEOF
  10567. fi
  10568. done
  10569. else
  10570. if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
  10571. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  10572. fi
  10573. if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
  10574. $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
  10575. fi
  10576. if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
  10577. $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
  10578. fi
  10579. if test "x$ac_cv_lib_m_fesetround" = x""yes; then
  10580. $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
  10581. fi
  10582. if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
  10583. $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
  10584. fi
  10585. if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
  10586. $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
  10587. fi
  10588. if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
  10589. $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
  10590. fi
  10591. fi
  10592. # Check for hidden visibility (copied from libssp).
  10593. saved_CFLAGS="$CFLAGS"
  10594. CFLAGS="$CFLAGS -Werror"
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
  10596. $as_echo_n "checking whether hidden visibility is supported... " >&6; }
  10597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10598. /* end confdefs.h. */
  10599. void __attribute__((visibility ("hidden"))) bar (void) {}
  10600. int
  10601. main ()
  10602. {
  10603. ;
  10604. return 0;
  10605. }
  10606. _ACEOF
  10607. if ac_fn_c_try_compile "$LINENO"; then :
  10608. quadmath_hidden=yes
  10609. else
  10610. quadmath_hidden=no
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
  10614. $as_echo "$quadmath_hidden" >&6; }
  10615. if test x$quadmath_hidden = xyes; then
  10616. $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
  10617. fi
  10618. CFLAGS="$saved_CFLAGS"
  10619. # Check for symbol versioning (copied from libssp).
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  10621. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  10622. # Check whether --enable-symvers was given.
  10623. if test "${enable_symvers+set}" = set; then :
  10624. enableval=$enable_symvers; quadmath_use_symver=$enableval
  10625. else
  10626. quadmath_use_symver=yes
  10627. fi
  10628. if test "x$quadmath_use_symver" != xno; then
  10629. if test x$gcc_no_link = xyes; then
  10630. # If we cannot link, we cannot build shared libraries, so do not use
  10631. # symbol versioning.
  10632. quadmath_use_symver=no
  10633. else
  10634. save_LDFLAGS="$LDFLAGS"
  10635. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  10636. cat > conftest.map <<EOF
  10637. FOO_1.0 {
  10638. global: *foo*; bar; local: *;
  10639. };
  10640. EOF
  10641. if test x$gcc_no_link = xyes; then
  10642. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10643. fi
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. int foo;
  10647. int
  10648. main ()
  10649. {
  10650. ;
  10651. return 0;
  10652. }
  10653. _ACEOF
  10654. if ac_fn_c_try_link "$LINENO"; then :
  10655. quadmath_use_symver=gnu
  10656. else
  10657. quadmath_use_symver=no
  10658. fi
  10659. rm -f core conftest.err conftest.$ac_objext \
  10660. conftest$ac_exeext conftest.$ac_ext
  10661. if test x$quadmath_use_symver = xno; then
  10662. case "$target_os" in
  10663. solaris2*)
  10664. LDFLAGS="$save_LDFLAGS"
  10665. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
  10666. # Sun ld cannot handle wildcards and treats all entries as undefined.
  10667. cat > conftest.map <<EOF
  10668. FOO_1.0 {
  10669. global: foo; local: *;
  10670. };
  10671. EOF
  10672. if test x$gcc_no_link = xyes; then
  10673. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10674. fi
  10675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10676. /* end confdefs.h. */
  10677. int foo;
  10678. int
  10679. main ()
  10680. {
  10681. ;
  10682. return 0;
  10683. }
  10684. _ACEOF
  10685. if ac_fn_c_try_link "$LINENO"; then :
  10686. quadmath_use_symver=sun
  10687. else
  10688. quadmath_use_symver=no
  10689. fi
  10690. rm -f core conftest.err conftest.$ac_objext \
  10691. conftest$ac_exeext conftest.$ac_ext
  10692. ;;
  10693. esac
  10694. fi
  10695. LDFLAGS="$save_LDFLAGS"
  10696. fi
  10697. fi
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
  10699. $as_echo "$quadmath_use_symver" >&6; }
  10700. if test "x$quadmath_use_symver" != xno; then
  10701. LIBQUAD_USE_SYMVER_TRUE=
  10702. LIBQUAD_USE_SYMVER_FALSE='#'
  10703. else
  10704. LIBQUAD_USE_SYMVER_TRUE='#'
  10705. LIBQUAD_USE_SYMVER_FALSE=
  10706. fi
  10707. if test "x$quadmath_use_symver" = xgnu; then
  10708. LIBQUAD_USE_SYMVER_GNU_TRUE=
  10709. LIBQUAD_USE_SYMVER_GNU_FALSE='#'
  10710. else
  10711. LIBQUAD_USE_SYMVER_GNU_TRUE='#'
  10712. LIBQUAD_USE_SYMVER_GNU_FALSE=
  10713. fi
  10714. if test "x$quadmath_use_symver" = xsun; then
  10715. LIBQUAD_USE_SYMVER_SUN_TRUE=
  10716. LIBQUAD_USE_SYMVER_SUN_FALSE='#'
  10717. else
  10718. LIBQUAD_USE_SYMVER_SUN_TRUE='#'
  10719. LIBQUAD_USE_SYMVER_SUN_FALSE=
  10720. fi
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
  10722. $as_echo_n "checking whether __float128 is supported... " >&6; }
  10723. if test "${libquad_cv_have_float128+set}" = set; then :
  10724. $as_echo_n "(cached) " >&6
  10725. else
  10726. if test x$gcc_no_link = xyes; then
  10727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10728. /* end confdefs.h. */
  10729. typedef _Complex float __attribute__((mode(TC))) __complex128;
  10730. __float128 foo (__float128 x)
  10731. {
  10732. __complex128 z1, z2;
  10733. z1 = x;
  10734. z2 = x / 7.Q;
  10735. z2 /= z1;
  10736. return (__float128) z2;
  10737. }
  10738. __float128 bar (__float128 x)
  10739. {
  10740. return x * __builtin_huge_valq ();
  10741. }
  10742. int
  10743. main ()
  10744. {
  10745. foo (1.2Q);
  10746. bar (1.2Q);
  10747. ;
  10748. return 0;
  10749. }
  10750. _ACEOF
  10751. if ac_fn_c_try_compile "$LINENO"; then :
  10752. libquad_cv_have_float128=yes
  10753. else
  10754. libquad_cv_have_float128=no
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10757. else
  10758. if test x$gcc_no_link = xyes; then
  10759. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10760. fi
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. typedef _Complex float __attribute__((mode(TC))) __complex128;
  10764. __float128 foo (__float128 x)
  10765. {
  10766. __complex128 z1, z2;
  10767. z1 = x;
  10768. z2 = x / 7.Q;
  10769. z2 /= z1;
  10770. return (__float128) z2;
  10771. }
  10772. __float128 bar (__float128 x)
  10773. {
  10774. return x * __builtin_huge_valq ();
  10775. }
  10776. int
  10777. main ()
  10778. {
  10779. foo (1.2Q);
  10780. bar (1.2Q);
  10781. ;
  10782. return 0;
  10783. }
  10784. _ACEOF
  10785. if ac_fn_c_try_link "$LINENO"; then :
  10786. libquad_cv_have_float128=yes
  10787. else
  10788. libquad_cv_have_float128=no
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext \
  10791. conftest$ac_exeext conftest.$ac_ext
  10792. fi
  10793. fi
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
  10795. $as_echo "$libquad_cv_have_float128" >&6; }
  10796. if test "x$libquad_cv_have_float128" = xyes; then
  10797. BUILD_LIBQUADMATH_TRUE=
  10798. BUILD_LIBQUADMATH_FALSE='#'
  10799. else
  10800. BUILD_LIBQUADMATH_TRUE='#'
  10801. BUILD_LIBQUADMATH_FALSE=
  10802. fi
  10803. # Check for printf hook support.
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
  10805. $as_echo_n "checking whether printf hooks are supported... " >&6; }
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. #include <printf.h>
  10809. #include <stdarg.h>
  10810. #include <stdlib.h>
  10811. extern void flt128_va (void *, va_list *);
  10812. extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
  10813. extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
  10814. int
  10815. main ()
  10816. {
  10817. int pa_flt128 = register_printf_type (flt128_va);
  10818. int mod_Q = register_printf_modifier (L"Q");
  10819. int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
  10820. struct printf_info info = { .user = -1 };
  10821. ;
  10822. return 0;
  10823. }
  10824. _ACEOF
  10825. if ac_fn_c_try_compile "$LINENO"; then :
  10826. quadmath_printf_hooks=yes
  10827. else
  10828. quadmath_printf_hooks=no
  10829. fi
  10830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
  10832. $as_echo "$quadmath_printf_hooks" >&6; }
  10833. if test x$quadmath_printf_hooks = xyes; then
  10834. $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
  10835. fi
  10836. # Check for whether locale support for quadmath_snprintf or Q printf hooks
  10837. # should be provided.
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
  10839. $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
  10840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10841. /* end confdefs.h. */
  10842. #include <langinfo.h>
  10843. int
  10844. main ()
  10845. {
  10846. const char *s;
  10847. s = nl_langinfo (DECIMAL_POINT);
  10848. s = nl_langinfo (MON_DECIMAL_POINT);
  10849. s = nl_langinfo (GROUPING);
  10850. s = nl_langinfo (MON_GROUPING);
  10851. s = nl_langinfo (THOUSANDS_SEP);
  10852. s = nl_langinfo (MON_THOUSANDS_SEP);
  10853. (void) s;
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_compile "$LINENO"; then :
  10859. quadmath_use_nl_langinfo=yes
  10860. else
  10861. quadmath_use_nl_langinfo=no
  10862. fi
  10863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
  10865. $as_echo "$quadmath_use_nl_langinfo" >&6; }
  10866. if test x$quadmath_use_nl_langinfo = xyes; then
  10867. $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
  10868. fi
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
  10870. $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
  10871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10872. /* end confdefs.h. */
  10873. #include <langinfo.h>
  10874. int
  10875. main ()
  10876. {
  10877. const char *s;
  10878. s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
  10879. s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
  10880. s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
  10881. s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
  10882. (void) s;
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. if ac_fn_c_try_compile "$LINENO"; then :
  10888. quadmath_use_nl_langinfo_wc=yes
  10889. else
  10890. quadmath_use_nl_langinfo_wc=no
  10891. fi
  10892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
  10894. $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
  10895. if test x$quadmath_use_nl_langinfo_wc = xyes; then
  10896. $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
  10897. fi
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
  10899. $as_echo_n "checking whether localeconv should be used... " >&6; }
  10900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10901. /* end confdefs.h. */
  10902. #include <locale.h>
  10903. int
  10904. main ()
  10905. {
  10906. const struct lconv *l = localeconv ();
  10907. const char *s;
  10908. s = l->decimal_point;
  10909. s = l->mon_decimal_point;
  10910. s = l->grouping;
  10911. s = l->mon_grouping;
  10912. s = l->thousands_sep;
  10913. s = l->mon_thousands_sep;
  10914. (void) s;
  10915. ;
  10916. return 0;
  10917. }
  10918. _ACEOF
  10919. if ac_fn_c_try_compile "$LINENO"; then :
  10920. quadmath_use_localeconv=yes
  10921. else
  10922. quadmath_use_localeconv=no
  10923. fi
  10924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
  10926. $as_echo "$quadmath_use_localeconv" >&6; }
  10927. if test x$quadmath_use_localeconv = xyes; then
  10928. $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
  10929. fi
  10930. # Check for whether i18n number rewriting support for quadmath_snprintf
  10931. # or Q printf hooks should be provided.
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
  10933. $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
  10934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10935. /* end confdefs.h. */
  10936. #include <langinfo.h>
  10937. #include <limits.h>
  10938. #include <string.h>
  10939. #include <wchar.h>
  10940. #include <wctype.h>
  10941. int
  10942. main ()
  10943. {
  10944. const char *s;
  10945. char decimal[MB_LEN_MAX];
  10946. wctrans_t map = wctrans ("to_outpunct");
  10947. wint_t wdecimal = towctrans (L'.', map);
  10948. mbstate_t state;
  10949. memset (&state, '\0', sizeof (state));
  10950. wcrtomb (decimal, wdecimal, &state);
  10951. s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
  10952. s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
  10953. s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
  10954. (void) s;
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. if ac_fn_c_try_compile "$LINENO"; then :
  10960. quadmath_use_i18n_number_h=yes
  10961. else
  10962. quadmath_use_i18n_number_h=no
  10963. fi
  10964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
  10966. $as_echo "$quadmath_use_i18n_number_h" >&6; }
  10967. if test x$quadmath_use_i18n_number_h = xyes; then
  10968. $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
  10969. fi
  10970. cat >confcache <<\_ACEOF
  10971. # This file is a shell script that caches the results of configure
  10972. # tests run on this system so they can be shared between configure
  10973. # scripts and configure runs, see configure's option --config-cache.
  10974. # It is not useful on other systems. If it contains results you don't
  10975. # want to keep, you may remove or edit it.
  10976. #
  10977. # config.status only pays attention to the cache file if you give it
  10978. # the --recheck option to rerun configure.
  10979. #
  10980. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10981. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10982. # following values.
  10983. _ACEOF
  10984. # The following way of writing the cache mishandles newlines in values,
  10985. # but we know of no workaround that is simple, portable, and efficient.
  10986. # So, we kill variables containing newlines.
  10987. # Ultrix sh set writes to stderr and can't be redirected directly,
  10988. # and sets the high bit in the cache file unless we assign to the vars.
  10989. (
  10990. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10991. eval ac_val=\$$ac_var
  10992. case $ac_val in #(
  10993. *${as_nl}*)
  10994. case $ac_var in #(
  10995. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10996. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10997. esac
  10998. case $ac_var in #(
  10999. _ | IFS | as_nl) ;; #(
  11000. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11001. *) { eval $ac_var=; unset $ac_var;} ;;
  11002. esac ;;
  11003. esac
  11004. done
  11005. (set) 2>&1 |
  11006. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11007. *${as_nl}ac_space=\ *)
  11008. # `set' does not quote correctly, so add quotes: double-quote
  11009. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11010. sed -n \
  11011. "s/'/'\\\\''/g;
  11012. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11013. ;; #(
  11014. *)
  11015. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11016. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11017. ;;
  11018. esac |
  11019. sort
  11020. ) |
  11021. sed '
  11022. /^ac_cv_env_/b end
  11023. t clear
  11024. :clear
  11025. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11026. t end
  11027. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11028. :end' >>confcache
  11029. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11030. if test -w "$cache_file"; then
  11031. test "x$cache_file" != "x/dev/null" &&
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11033. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11034. cat confcache >$cache_file
  11035. else
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11037. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11038. fi
  11039. fi
  11040. rm -f confcache
  11041. if test ${multilib} = yes; then
  11042. multilib_arg="--enable-multilib"
  11043. else
  11044. multilib_arg=
  11045. fi
  11046. # We would like our source tree to be readonly. However when releases or
  11047. # pre-releases are generated, the flex/bison generated files as well as the
  11048. # various formats of manuals need to be included along with the rest of the
  11049. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  11050. # just that.
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
  11052. $as_echo_n "checking generated-files-in-srcdir... " >&6; }
  11053. # Check whether --enable-generated-files-in-srcdir was given.
  11054. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  11055. enableval=$enable_generated_files_in_srcdir; case "$enableval" in
  11056. yes) enable_generated_files_in_srcdir=yes ;;
  11057. no) enable_generated_files_in_srcdir=no ;;
  11058. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  11059. esac
  11060. else
  11061. enable_generated_files_in_srcdir=no
  11062. fi
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  11064. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  11065. if test "$enable_generated_files_in_srcdir" = yes; then
  11066. GENINSRC_TRUE=
  11067. GENINSRC_FALSE='#'
  11068. else
  11069. GENINSRC_TRUE='#'
  11070. GENINSRC_FALSE=
  11071. fi
  11072. ac_config_files="$ac_config_files Makefile"
  11073. cat >confcache <<\_ACEOF
  11074. # This file is a shell script that caches the results of configure
  11075. # tests run on this system so they can be shared between configure
  11076. # scripts and configure runs, see configure's option --config-cache.
  11077. # It is not useful on other systems. If it contains results you don't
  11078. # want to keep, you may remove or edit it.
  11079. #
  11080. # config.status only pays attention to the cache file if you give it
  11081. # the --recheck option to rerun configure.
  11082. #
  11083. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11084. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11085. # following values.
  11086. _ACEOF
  11087. # The following way of writing the cache mishandles newlines in values,
  11088. # but we know of no workaround that is simple, portable, and efficient.
  11089. # So, we kill variables containing newlines.
  11090. # Ultrix sh set writes to stderr and can't be redirected directly,
  11091. # and sets the high bit in the cache file unless we assign to the vars.
  11092. (
  11093. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11094. eval ac_val=\$$ac_var
  11095. case $ac_val in #(
  11096. *${as_nl}*)
  11097. case $ac_var in #(
  11098. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11099. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11100. esac
  11101. case $ac_var in #(
  11102. _ | IFS | as_nl) ;; #(
  11103. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11104. *) { eval $ac_var=; unset $ac_var;} ;;
  11105. esac ;;
  11106. esac
  11107. done
  11108. (set) 2>&1 |
  11109. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11110. *${as_nl}ac_space=\ *)
  11111. # `set' does not quote correctly, so add quotes: double-quote
  11112. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11113. sed -n \
  11114. "s/'/'\\\\''/g;
  11115. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11116. ;; #(
  11117. *)
  11118. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11119. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11120. ;;
  11121. esac |
  11122. sort
  11123. ) |
  11124. sed '
  11125. /^ac_cv_env_/b end
  11126. t clear
  11127. :clear
  11128. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11129. t end
  11130. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11131. :end' >>confcache
  11132. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11133. if test -w "$cache_file"; then
  11134. test "x$cache_file" != "x/dev/null" &&
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11136. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11137. cat confcache >$cache_file
  11138. else
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11140. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11141. fi
  11142. fi
  11143. rm -f confcache
  11144. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11145. # Let make expand exec_prefix.
  11146. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11147. DEFS=-DHAVE_CONFIG_H
  11148. ac_libobjs=
  11149. ac_ltlibobjs=
  11150. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11151. # 1. Remove the extension, and $U if already installed.
  11152. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11153. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11154. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11155. # will be set to the directory where LIBOBJS objects are built.
  11156. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11157. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11158. done
  11159. LIBOBJS=$ac_libobjs
  11160. LTLIBOBJS=$ac_ltlibobjs
  11161. if test -n "$EXEEXT"; then
  11162. am__EXEEXT_TRUE=
  11163. am__EXEEXT_FALSE='#'
  11164. else
  11165. am__EXEEXT_TRUE='#'
  11166. am__EXEEXT_FALSE=
  11167. fi
  11168. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11169. as_fn_error "conditional \"AMDEP\" was never defined.
  11170. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11171. fi
  11172. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11173. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  11174. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11175. fi
  11176. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  11177. as_fn_error "conditional \"BUILD_INFO\" was never defined.
  11178. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11179. fi
  11180. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11181. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11182. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11183. fi
  11184. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11185. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  11186. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11187. fi
  11188. if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
  11189. as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
  11190. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11191. fi
  11192. if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
  11193. as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
  11194. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11195. fi
  11196. if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
  11197. as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
  11198. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11199. fi
  11200. if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
  11201. as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
  11202. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11203. fi
  11204. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  11205. as_fn_error "conditional \"GENINSRC\" was never defined.
  11206. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11207. fi
  11208. : ${CONFIG_STATUS=./config.status}
  11209. ac_write_fail=0
  11210. ac_clean_files_save=$ac_clean_files
  11211. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11212. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11213. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11214. as_write_fail=0
  11215. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11216. #! $SHELL
  11217. # Generated by $as_me.
  11218. # Run this file to recreate the current configuration.
  11219. # Compiler output produced by configure, useful for debugging
  11220. # configure, is in config.log if it exists.
  11221. debug=false
  11222. ac_cs_recheck=false
  11223. ac_cs_silent=false
  11224. SHELL=\${CONFIG_SHELL-$SHELL}
  11225. export SHELL
  11226. _ASEOF
  11227. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11228. ## -------------------- ##
  11229. ## M4sh Initialization. ##
  11230. ## -------------------- ##
  11231. # Be more Bourne compatible
  11232. DUALCASE=1; export DUALCASE # for MKS sh
  11233. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11234. emulate sh
  11235. NULLCMD=:
  11236. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11237. # is contrary to our usage. Disable this feature.
  11238. alias -g '${1+"$@"}'='"$@"'
  11239. setopt NO_GLOB_SUBST
  11240. else
  11241. case `(set -o) 2>/dev/null` in #(
  11242. *posix*) :
  11243. set -o posix ;; #(
  11244. *) :
  11245. ;;
  11246. esac
  11247. fi
  11248. as_nl='
  11249. '
  11250. export as_nl
  11251. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11252. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11253. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11254. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11255. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11256. # but without wasting forks for bash or zsh.
  11257. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11258. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11259. as_echo='print -r --'
  11260. as_echo_n='print -rn --'
  11261. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11262. as_echo='printf %s\n'
  11263. as_echo_n='printf %s'
  11264. else
  11265. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11266. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11267. as_echo_n='/usr/ucb/echo -n'
  11268. else
  11269. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11270. as_echo_n_body='eval
  11271. arg=$1;
  11272. case $arg in #(
  11273. *"$as_nl"*)
  11274. expr "X$arg" : "X\\(.*\\)$as_nl";
  11275. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11276. esac;
  11277. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11278. '
  11279. export as_echo_n_body
  11280. as_echo_n='sh -c $as_echo_n_body as_echo'
  11281. fi
  11282. export as_echo_body
  11283. as_echo='sh -c $as_echo_body as_echo'
  11284. fi
  11285. # The user is always right.
  11286. if test "${PATH_SEPARATOR+set}" != set; then
  11287. PATH_SEPARATOR=:
  11288. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11289. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11290. PATH_SEPARATOR=';'
  11291. }
  11292. fi
  11293. # IFS
  11294. # We need space, tab and new line, in precisely that order. Quoting is
  11295. # there to prevent editors from complaining about space-tab.
  11296. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11297. # splitting by setting IFS to empty value.)
  11298. IFS=" "" $as_nl"
  11299. # Find who we are. Look in the path if we contain no directory separator.
  11300. case $0 in #((
  11301. *[\\/]* ) as_myself=$0 ;;
  11302. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11303. for as_dir in $PATH
  11304. do
  11305. IFS=$as_save_IFS
  11306. test -z "$as_dir" && as_dir=.
  11307. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11308. done
  11309. IFS=$as_save_IFS
  11310. ;;
  11311. esac
  11312. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11313. # in which case we are not to be found in the path.
  11314. if test "x$as_myself" = x; then
  11315. as_myself=$0
  11316. fi
  11317. if test ! -f "$as_myself"; then
  11318. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11319. exit 1
  11320. fi
  11321. # Unset variables that we do not need and which cause bugs (e.g. in
  11322. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11323. # suppresses any "Segmentation fault" message there. '((' could
  11324. # trigger a bug in pdksh 5.2.14.
  11325. for as_var in BASH_ENV ENV MAIL MAILPATH
  11326. do eval test x\${$as_var+set} = xset \
  11327. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11328. done
  11329. PS1='$ '
  11330. PS2='> '
  11331. PS4='+ '
  11332. # NLS nuisances.
  11333. LC_ALL=C
  11334. export LC_ALL
  11335. LANGUAGE=C
  11336. export LANGUAGE
  11337. # CDPATH.
  11338. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11339. # as_fn_error ERROR [LINENO LOG_FD]
  11340. # ---------------------------------
  11341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11343. # script with status $?, using 1 if that was 0.
  11344. as_fn_error ()
  11345. {
  11346. as_status=$?; test $as_status -eq 0 && as_status=1
  11347. if test "$3"; then
  11348. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11350. fi
  11351. $as_echo "$as_me: error: $1" >&2
  11352. as_fn_exit $as_status
  11353. } # as_fn_error
  11354. # as_fn_set_status STATUS
  11355. # -----------------------
  11356. # Set $? to STATUS, without forking.
  11357. as_fn_set_status ()
  11358. {
  11359. return $1
  11360. } # as_fn_set_status
  11361. # as_fn_exit STATUS
  11362. # -----------------
  11363. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11364. as_fn_exit ()
  11365. {
  11366. set +e
  11367. as_fn_set_status $1
  11368. exit $1
  11369. } # as_fn_exit
  11370. # as_fn_unset VAR
  11371. # ---------------
  11372. # Portably unset VAR.
  11373. as_fn_unset ()
  11374. {
  11375. { eval $1=; unset $1;}
  11376. }
  11377. as_unset=as_fn_unset
  11378. # as_fn_append VAR VALUE
  11379. # ----------------------
  11380. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11381. # advantage of any shell optimizations that allow amortized linear growth over
  11382. # repeated appends, instead of the typical quadratic growth present in naive
  11383. # implementations.
  11384. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11385. eval 'as_fn_append ()
  11386. {
  11387. eval $1+=\$2
  11388. }'
  11389. else
  11390. as_fn_append ()
  11391. {
  11392. eval $1=\$$1\$2
  11393. }
  11394. fi # as_fn_append
  11395. # as_fn_arith ARG...
  11396. # ------------------
  11397. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11398. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11399. # must be portable across $(()) and expr.
  11400. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11401. eval 'as_fn_arith ()
  11402. {
  11403. as_val=$(( $* ))
  11404. }'
  11405. else
  11406. as_fn_arith ()
  11407. {
  11408. as_val=`expr "$@" || test $? -eq 1`
  11409. }
  11410. fi # as_fn_arith
  11411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11413. as_expr=expr
  11414. else
  11415. as_expr=false
  11416. fi
  11417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11418. as_basename=basename
  11419. else
  11420. as_basename=false
  11421. fi
  11422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11423. as_dirname=dirname
  11424. else
  11425. as_dirname=false
  11426. fi
  11427. as_me=`$as_basename -- "$0" ||
  11428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11429. X"$0" : 'X\(//\)$' \| \
  11430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11431. $as_echo X/"$0" |
  11432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11433. s//\1/
  11434. q
  11435. }
  11436. /^X\/\(\/\/\)$/{
  11437. s//\1/
  11438. q
  11439. }
  11440. /^X\/\(\/\).*/{
  11441. s//\1/
  11442. q
  11443. }
  11444. s/.*/./; q'`
  11445. # Avoid depending upon Character Ranges.
  11446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11449. as_cr_digits='0123456789'
  11450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11451. ECHO_C= ECHO_N= ECHO_T=
  11452. case `echo -n x` in #(((((
  11453. -n*)
  11454. case `echo 'xy\c'` in
  11455. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11456. xy) ECHO_C='\c';;
  11457. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11458. ECHO_T=' ';;
  11459. esac;;
  11460. *)
  11461. ECHO_N='-n';;
  11462. esac
  11463. rm -f conf$$ conf$$.exe conf$$.file
  11464. if test -d conf$$.dir; then
  11465. rm -f conf$$.dir/conf$$.file
  11466. else
  11467. rm -f conf$$.dir
  11468. mkdir conf$$.dir 2>/dev/null
  11469. fi
  11470. if (echo >conf$$.file) 2>/dev/null; then
  11471. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11472. as_ln_s='ln -s'
  11473. # ... but there are two gotchas:
  11474. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11475. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11476. # In both cases, we have to default to `cp -p'.
  11477. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11478. as_ln_s='cp -p'
  11479. elif ln conf$$.file conf$$ 2>/dev/null; then
  11480. as_ln_s=ln
  11481. else
  11482. as_ln_s='cp -p'
  11483. fi
  11484. else
  11485. as_ln_s='cp -p'
  11486. fi
  11487. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11488. rmdir conf$$.dir 2>/dev/null
  11489. # as_fn_mkdir_p
  11490. # -------------
  11491. # Create "$as_dir" as a directory, including parents if necessary.
  11492. as_fn_mkdir_p ()
  11493. {
  11494. case $as_dir in #(
  11495. -*) as_dir=./$as_dir;;
  11496. esac
  11497. test -d "$as_dir" || eval $as_mkdir_p || {
  11498. as_dirs=
  11499. while :; do
  11500. case $as_dir in #(
  11501. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11502. *) as_qdir=$as_dir;;
  11503. esac
  11504. as_dirs="'$as_qdir' $as_dirs"
  11505. as_dir=`$as_dirname -- "$as_dir" ||
  11506. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11507. X"$as_dir" : 'X\(//\)[^/]' \| \
  11508. X"$as_dir" : 'X\(//\)$' \| \
  11509. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11510. $as_echo X"$as_dir" |
  11511. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11512. s//\1/
  11513. q
  11514. }
  11515. /^X\(\/\/\)[^/].*/{
  11516. s//\1/
  11517. q
  11518. }
  11519. /^X\(\/\/\)$/{
  11520. s//\1/
  11521. q
  11522. }
  11523. /^X\(\/\).*/{
  11524. s//\1/
  11525. q
  11526. }
  11527. s/.*/./; q'`
  11528. test -d "$as_dir" && break
  11529. done
  11530. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11531. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11532. } # as_fn_mkdir_p
  11533. if mkdir -p . 2>/dev/null; then
  11534. as_mkdir_p='mkdir -p "$as_dir"'
  11535. else
  11536. test -d ./-p && rmdir ./-p
  11537. as_mkdir_p=false
  11538. fi
  11539. if test -x / >/dev/null 2>&1; then
  11540. as_test_x='test -x'
  11541. else
  11542. if ls -dL / >/dev/null 2>&1; then
  11543. as_ls_L_option=L
  11544. else
  11545. as_ls_L_option=
  11546. fi
  11547. as_test_x='
  11548. eval sh -c '\''
  11549. if test -d "$1"; then
  11550. test -d "$1/.";
  11551. else
  11552. case $1 in #(
  11553. -*)set "./$1";;
  11554. esac;
  11555. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11556. ???[sx]*):;;*)false;;esac;fi
  11557. '\'' sh
  11558. '
  11559. fi
  11560. as_executable_p=$as_test_x
  11561. # Sed expression to map a string onto a valid CPP name.
  11562. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11563. # Sed expression to map a string onto a valid variable name.
  11564. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11565. exec 6>&1
  11566. ## ----------------------------------- ##
  11567. ## Main body of $CONFIG_STATUS script. ##
  11568. ## ----------------------------------- ##
  11569. _ASEOF
  11570. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11572. # Save the log message, to keep $0 and so on meaningful, and to
  11573. # report actual input values of CONFIG_FILES etc. instead of their
  11574. # values after options handling.
  11575. ac_log="
  11576. This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
  11577. generated by GNU Autoconf 2.64. Invocation command line was
  11578. CONFIG_FILES = $CONFIG_FILES
  11579. CONFIG_HEADERS = $CONFIG_HEADERS
  11580. CONFIG_LINKS = $CONFIG_LINKS
  11581. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11582. $ $0 $@
  11583. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11584. "
  11585. _ACEOF
  11586. case $ac_config_files in *"
  11587. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11588. esac
  11589. case $ac_config_headers in *"
  11590. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11591. esac
  11592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11593. # Files that config.status was made for.
  11594. config_files="$ac_config_files"
  11595. config_headers="$ac_config_headers"
  11596. config_commands="$ac_config_commands"
  11597. _ACEOF
  11598. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11599. ac_cs_usage="\
  11600. \`$as_me' instantiates files and other configuration actions
  11601. from templates according to the current configuration. Unless the files
  11602. and actions are specified as TAGs, all are instantiated by default.
  11603. Usage: $0 [OPTION]... [TAG]...
  11604. -h, --help print this help, then exit
  11605. -V, --version print version number and configuration settings, then exit
  11606. -q, --quiet, --silent
  11607. do not print progress messages
  11608. -d, --debug don't remove temporary files
  11609. --recheck update $as_me by reconfiguring in the same conditions
  11610. --file=FILE[:TEMPLATE]
  11611. instantiate the configuration file FILE
  11612. --header=FILE[:TEMPLATE]
  11613. instantiate the configuration header FILE
  11614. Configuration files:
  11615. $config_files
  11616. Configuration headers:
  11617. $config_headers
  11618. Configuration commands:
  11619. $config_commands
  11620. Report bugs to the package provider."
  11621. _ACEOF
  11622. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11623. ac_cs_version="\\
  11624. GCC Quad-precision Math Library config.status 0.1
  11625. configured by $0, generated by GNU Autoconf 2.64,
  11626. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11627. Copyright (C) 2009 Free Software Foundation, Inc.
  11628. This config.status script is free software; the Free Software Foundation
  11629. gives unlimited permission to copy, distribute and modify it."
  11630. ac_pwd='$ac_pwd'
  11631. srcdir='$srcdir'
  11632. INSTALL='$INSTALL'
  11633. MKDIR_P='$MKDIR_P'
  11634. AWK='$AWK'
  11635. test -n "\$AWK" || AWK=awk
  11636. _ACEOF
  11637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11638. # The default lists apply if the user does not specify any file.
  11639. ac_need_defaults=:
  11640. while test $# != 0
  11641. do
  11642. case $1 in
  11643. --*=*)
  11644. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11645. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11646. ac_shift=:
  11647. ;;
  11648. *)
  11649. ac_option=$1
  11650. ac_optarg=$2
  11651. ac_shift=shift
  11652. ;;
  11653. esac
  11654. case $ac_option in
  11655. # Handling of the options.
  11656. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11657. ac_cs_recheck=: ;;
  11658. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11659. $as_echo "$ac_cs_version"; exit ;;
  11660. --debug | --debu | --deb | --de | --d | -d )
  11661. debug=: ;;
  11662. --file | --fil | --fi | --f )
  11663. $ac_shift
  11664. case $ac_optarg in
  11665. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11666. esac
  11667. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11668. ac_need_defaults=false;;
  11669. --header | --heade | --head | --hea )
  11670. $ac_shift
  11671. case $ac_optarg in
  11672. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11673. esac
  11674. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11675. ac_need_defaults=false;;
  11676. --he | --h)
  11677. # Conflict between --help and --header
  11678. as_fn_error "ambiguous option: \`$1'
  11679. Try \`$0 --help' for more information.";;
  11680. --help | --hel | -h )
  11681. $as_echo "$ac_cs_usage"; exit ;;
  11682. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11683. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11684. ac_cs_silent=: ;;
  11685. # This is an error.
  11686. -*) as_fn_error "unrecognized option: \`$1'
  11687. Try \`$0 --help' for more information." ;;
  11688. *) as_fn_append ac_config_targets " $1"
  11689. ac_need_defaults=false ;;
  11690. esac
  11691. shift
  11692. done
  11693. ac_configure_extra_args=
  11694. if $ac_cs_silent; then
  11695. exec 6>/dev/null
  11696. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11697. fi
  11698. _ACEOF
  11699. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11700. if \$ac_cs_recheck; then
  11701. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11702. shift
  11703. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11704. CONFIG_SHELL='$SHELL'
  11705. export CONFIG_SHELL
  11706. exec "\$@"
  11707. fi
  11708. _ACEOF
  11709. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11710. exec 5>>config.log
  11711. {
  11712. echo
  11713. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11714. ## Running $as_me. ##
  11715. _ASBOX
  11716. $as_echo "$ac_log"
  11717. } >&5
  11718. _ACEOF
  11719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11720. #
  11721. # INIT-COMMANDS
  11722. #
  11723. srcdir="$srcdir"
  11724. host="$host"
  11725. target="$target"
  11726. with_multisubdir="$with_multisubdir"
  11727. with_multisrctop="$with_multisrctop"
  11728. with_target_subdir="$with_target_subdir"
  11729. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  11730. multi_basedir="$multi_basedir"
  11731. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  11732. CC="$CC"
  11733. CXX="$CXX"
  11734. GFORTRAN="$GFORTRAN"
  11735. GCJ="$GCJ"
  11736. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11737. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11738. # if CDPATH is set.
  11739. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11740. sed_quote_subst='$sed_quote_subst'
  11741. double_quote_subst='$double_quote_subst'
  11742. delay_variable_subst='$delay_variable_subst'
  11743. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11744. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11745. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11746. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11747. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11748. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11749. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11750. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11751. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11752. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11753. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11754. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11755. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11756. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11757. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11758. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11759. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11760. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11761. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11762. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11763. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11764. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11765. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11766. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11767. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11768. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11769. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11770. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11771. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11772. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11773. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11774. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11775. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11776. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11777. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11778. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11779. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11780. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11781. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11782. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11783. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11784. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11785. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11786. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11787. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11788. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11789. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11790. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11791. 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"`'
  11792. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11793. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11794. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11795. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11796. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11797. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11798. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11799. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11800. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11801. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11802. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11803. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11804. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11805. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11806. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11807. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11808. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11809. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11810. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11811. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11812. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11813. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11814. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11815. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11816. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11817. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11818. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11819. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11820. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11821. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11822. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11823. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11824. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11825. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11826. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11827. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11828. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11829. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11830. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11831. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11832. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11833. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11834. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11835. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11836. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11837. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11838. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11839. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11840. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11841. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11842. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11843. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11844. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11845. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11846. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11847. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11848. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11849. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11850. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11851. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11852. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11853. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11854. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11855. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11856. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11857. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11858. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11859. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11860. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11861. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11862. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11863. LTCC='$LTCC'
  11864. LTCFLAGS='$LTCFLAGS'
  11865. compiler='$compiler_DEFAULT'
  11866. # A function that is used when there is no print builtin or printf.
  11867. func_fallback_echo ()
  11868. {
  11869. eval 'cat <<_LTECHO_EOF
  11870. \$1
  11871. _LTECHO_EOF'
  11872. }
  11873. # Quote evaled strings.
  11874. for var in SHELL \
  11875. ECHO \
  11876. SED \
  11877. GREP \
  11878. EGREP \
  11879. FGREP \
  11880. LD \
  11881. NM \
  11882. LN_S \
  11883. lt_SP2NL \
  11884. lt_NL2SP \
  11885. reload_flag \
  11886. OBJDUMP \
  11887. deplibs_check_method \
  11888. file_magic_cmd \
  11889. AR \
  11890. AR_FLAGS \
  11891. STRIP \
  11892. RANLIB \
  11893. CC \
  11894. CFLAGS \
  11895. compiler \
  11896. lt_cv_sys_global_symbol_pipe \
  11897. lt_cv_sys_global_symbol_to_cdecl \
  11898. lt_cv_sys_global_symbol_to_c_name_address \
  11899. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11900. lt_prog_compiler_no_builtin_flag \
  11901. lt_prog_compiler_wl \
  11902. lt_prog_compiler_pic \
  11903. lt_prog_compiler_static \
  11904. lt_cv_prog_compiler_c_o \
  11905. need_locks \
  11906. DSYMUTIL \
  11907. NMEDIT \
  11908. LIPO \
  11909. OTOOL \
  11910. OTOOL64 \
  11911. shrext_cmds \
  11912. export_dynamic_flag_spec \
  11913. whole_archive_flag_spec \
  11914. compiler_needs_object \
  11915. with_gnu_ld \
  11916. allow_undefined_flag \
  11917. no_undefined_flag \
  11918. hardcode_libdir_flag_spec \
  11919. hardcode_libdir_flag_spec_ld \
  11920. hardcode_libdir_separator \
  11921. fix_srcfile_path \
  11922. exclude_expsyms \
  11923. include_expsyms \
  11924. file_list_spec \
  11925. variables_saved_for_relink \
  11926. libname_spec \
  11927. library_names_spec \
  11928. soname_spec \
  11929. install_override_mode \
  11930. finish_eval \
  11931. old_striplib \
  11932. striplib; do
  11933. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11934. *[\\\\\\\`\\"\\\$]*)
  11935. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11936. ;;
  11937. *)
  11938. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11939. ;;
  11940. esac
  11941. done
  11942. # Double-quote double-evaled strings.
  11943. for var in reload_cmds \
  11944. old_postinstall_cmds \
  11945. old_postuninstall_cmds \
  11946. old_archive_cmds \
  11947. extract_expsyms_cmds \
  11948. old_archive_from_new_cmds \
  11949. old_archive_from_expsyms_cmds \
  11950. archive_cmds \
  11951. archive_expsym_cmds \
  11952. module_cmds \
  11953. module_expsym_cmds \
  11954. export_symbols_cmds \
  11955. prelink_cmds \
  11956. postinstall_cmds \
  11957. postuninstall_cmds \
  11958. finish_cmds \
  11959. sys_lib_search_path_spec \
  11960. sys_lib_dlsearch_path_spec; do
  11961. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11962. *[\\\\\\\`\\"\\\$]*)
  11963. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11964. ;;
  11965. *)
  11966. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11967. ;;
  11968. esac
  11969. done
  11970. ac_aux_dir='$ac_aux_dir'
  11971. xsi_shell='$xsi_shell'
  11972. lt_shell_append='$lt_shell_append'
  11973. # See if we are running on zsh, and set the options which allow our
  11974. # commands through without removal of \ escapes INIT.
  11975. if test -n "\${ZSH_VERSION+set}" ; then
  11976. setopt NO_GLOB_SUBST
  11977. fi
  11978. PACKAGE='$PACKAGE'
  11979. VERSION='$VERSION'
  11980. TIMESTAMP='$TIMESTAMP'
  11981. RM='$RM'
  11982. ofile='$ofile'
  11983. _ACEOF
  11984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11985. # Handling of arguments.
  11986. for ac_config_target in $ac_config_targets
  11987. do
  11988. case $ac_config_target in
  11989. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11990. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11991. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11992. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11993. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11994. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11995. esac
  11996. done
  11997. # If the user did not use the arguments to specify the items to instantiate,
  11998. # then the envvar interface is used. Set only those that are not.
  11999. # We use the long form for the default assignment because of an extremely
  12000. # bizarre bug on SunOS 4.1.3.
  12001. if $ac_need_defaults; then
  12002. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12003. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12004. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12005. fi
  12006. # Have a temporary directory for convenience. Make it in the build tree
  12007. # simply because there is no reason against having it here, and in addition,
  12008. # creating and moving files from /tmp can sometimes cause problems.
  12009. # Hook for its removal unless debugging.
  12010. # Note that there is a small window in which the directory will not be cleaned:
  12011. # after its creation but before its name has been assigned to `$tmp'.
  12012. $debug ||
  12013. {
  12014. tmp=
  12015. trap 'exit_status=$?
  12016. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12017. ' 0
  12018. trap 'as_fn_exit 1' 1 2 13 15
  12019. }
  12020. # Create a (secure) tmp directory for tmp files.
  12021. {
  12022. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12023. test -n "$tmp" && test -d "$tmp"
  12024. } ||
  12025. {
  12026. tmp=./conf$$-$RANDOM
  12027. (umask 077 && mkdir "$tmp")
  12028. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  12029. # Set up the scripts for CONFIG_FILES section.
  12030. # No need to generate them if there are no CONFIG_FILES.
  12031. # This happens for instance with `./config.status config.h'.
  12032. if test -n "$CONFIG_FILES"; then
  12033. ac_cr=`echo X | tr X '\015'`
  12034. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12035. # But we know of no other shell where ac_cr would be empty at this
  12036. # point, so we can use a bashism as a fallback.
  12037. if test "x$ac_cr" = x; then
  12038. eval ac_cr=\$\'\\r\'
  12039. fi
  12040. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12041. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12042. ac_cs_awk_cr='\r'
  12043. else
  12044. ac_cs_awk_cr=$ac_cr
  12045. fi
  12046. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12047. _ACEOF
  12048. {
  12049. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12050. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12051. echo "_ACEOF"
  12052. } >conf$$subs.sh ||
  12053. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12054. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12055. ac_delim='%!_!# '
  12056. for ac_last_try in false false false false false :; do
  12057. . ./conf$$subs.sh ||
  12058. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12059. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12060. if test $ac_delim_n = $ac_delim_num; then
  12061. break
  12062. elif $ac_last_try; then
  12063. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12064. else
  12065. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12066. fi
  12067. done
  12068. rm -f conf$$subs.sh
  12069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12070. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12071. _ACEOF
  12072. sed -n '
  12073. h
  12074. s/^/S["/; s/!.*/"]=/
  12075. p
  12076. g
  12077. s/^[^!]*!//
  12078. :repl
  12079. t repl
  12080. s/'"$ac_delim"'$//
  12081. t delim
  12082. :nl
  12083. h
  12084. s/\(.\{148\}\).*/\1/
  12085. t more1
  12086. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12087. p
  12088. n
  12089. b repl
  12090. :more1
  12091. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12092. p
  12093. g
  12094. s/.\{148\}//
  12095. t nl
  12096. :delim
  12097. h
  12098. s/\(.\{148\}\).*/\1/
  12099. t more2
  12100. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12101. p
  12102. b
  12103. :more2
  12104. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12105. p
  12106. g
  12107. s/.\{148\}//
  12108. t delim
  12109. ' <conf$$subs.awk | sed '
  12110. /^[^""]/{
  12111. N
  12112. s/\n//
  12113. }
  12114. ' >>$CONFIG_STATUS || ac_write_fail=1
  12115. rm -f conf$$subs.awk
  12116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12117. _ACAWK
  12118. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12119. for (key in S) S_is_set[key] = 1
  12120. FS = ""
  12121. }
  12122. {
  12123. line = $ 0
  12124. nfields = split(line, field, "@")
  12125. substed = 0
  12126. len = length(field[1])
  12127. for (i = 2; i < nfields; i++) {
  12128. key = field[i]
  12129. keylen = length(key)
  12130. if (S_is_set[key]) {
  12131. value = S[key]
  12132. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12133. len += length(value) + length(field[++i])
  12134. substed = 1
  12135. } else
  12136. len += 1 + keylen
  12137. }
  12138. print line
  12139. }
  12140. _ACAWK
  12141. _ACEOF
  12142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12143. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12144. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12145. else
  12146. cat
  12147. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12148. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12149. _ACEOF
  12150. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12151. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12152. # trailing colons and then remove the whole line if VPATH becomes empty
  12153. # (actually we leave an empty line to preserve line numbers).
  12154. if test "x$srcdir" = x.; then
  12155. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12156. s/:*\$(srcdir):*/:/
  12157. s/:*\${srcdir}:*/:/
  12158. s/:*@srcdir@:*/:/
  12159. s/^\([^=]*=[ ]*\):*/\1/
  12160. s/:*$//
  12161. s/^[^=]*=[ ]*$//
  12162. }'
  12163. fi
  12164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12165. fi # test -n "$CONFIG_FILES"
  12166. # Set up the scripts for CONFIG_HEADERS section.
  12167. # No need to generate them if there are no CONFIG_HEADERS.
  12168. # This happens for instance with `./config.status Makefile'.
  12169. if test -n "$CONFIG_HEADERS"; then
  12170. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12171. BEGIN {
  12172. _ACEOF
  12173. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12174. # here-document in config.status, that substitutes the proper values into
  12175. # config.h.in to produce config.h.
  12176. # Create a delimiter string that does not exist in confdefs.h, to ease
  12177. # handling of long lines.
  12178. ac_delim='%!_!# '
  12179. for ac_last_try in false false :; do
  12180. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12181. if test -z "$ac_t"; then
  12182. break
  12183. elif $ac_last_try; then
  12184. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12185. else
  12186. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12187. fi
  12188. done
  12189. # For the awk script, D is an array of macro values keyed by name,
  12190. # likewise P contains macro parameters if any. Preserve backslash
  12191. # newline sequences.
  12192. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12193. sed -n '
  12194. s/.\{148\}/&'"$ac_delim"'/g
  12195. t rset
  12196. :rset
  12197. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12198. t def
  12199. d
  12200. :def
  12201. s/\\$//
  12202. t bsnl
  12203. s/["\\]/\\&/g
  12204. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12205. D["\1"]=" \3"/p
  12206. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12207. d
  12208. :bsnl
  12209. s/["\\]/\\&/g
  12210. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12211. D["\1"]=" \3\\\\\\n"\\/p
  12212. t cont
  12213. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12214. t cont
  12215. d
  12216. :cont
  12217. n
  12218. s/.\{148\}/&'"$ac_delim"'/g
  12219. t clear
  12220. :clear
  12221. s/\\$//
  12222. t bsnlc
  12223. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12224. d
  12225. :bsnlc
  12226. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12227. b cont
  12228. ' <confdefs.h | sed '
  12229. s/'"$ac_delim"'/"\\\
  12230. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12232. for (key in D) D_is_set[key] = 1
  12233. FS = ""
  12234. }
  12235. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12236. line = \$ 0
  12237. split(line, arg, " ")
  12238. if (arg[1] == "#") {
  12239. defundef = arg[2]
  12240. mac1 = arg[3]
  12241. } else {
  12242. defundef = substr(arg[1], 2)
  12243. mac1 = arg[2]
  12244. }
  12245. split(mac1, mac2, "(") #)
  12246. macro = mac2[1]
  12247. prefix = substr(line, 1, index(line, defundef) - 1)
  12248. if (D_is_set[macro]) {
  12249. # Preserve the white space surrounding the "#".
  12250. print prefix "define", macro P[macro] D[macro]
  12251. next
  12252. } else {
  12253. # Replace #undef with comments. This is necessary, for example,
  12254. # in the case of _POSIX_SOURCE, which is predefined and required
  12255. # on some systems where configure will not decide to define it.
  12256. if (defundef == "undef") {
  12257. print "/*", prefix defundef, macro, "*/"
  12258. next
  12259. }
  12260. }
  12261. }
  12262. { print }
  12263. _ACAWK
  12264. _ACEOF
  12265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12266. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12267. fi # test -n "$CONFIG_HEADERS"
  12268. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12269. shift
  12270. for ac_tag
  12271. do
  12272. case $ac_tag in
  12273. :[FHLC]) ac_mode=$ac_tag; continue;;
  12274. esac
  12275. case $ac_mode$ac_tag in
  12276. :[FHL]*:*);;
  12277. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12278. :[FH]-) ac_tag=-:-;;
  12279. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12280. esac
  12281. ac_save_IFS=$IFS
  12282. IFS=:
  12283. set x $ac_tag
  12284. IFS=$ac_save_IFS
  12285. shift
  12286. ac_file=$1
  12287. shift
  12288. case $ac_mode in
  12289. :L) ac_source=$1;;
  12290. :[FH])
  12291. ac_file_inputs=
  12292. for ac_f
  12293. do
  12294. case $ac_f in
  12295. -) ac_f="$tmp/stdin";;
  12296. *) # Look for the file first in the build tree, then in the source tree
  12297. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12298. # because $ac_f cannot contain `:'.
  12299. test -f "$ac_f" ||
  12300. case $ac_f in
  12301. [\\/$]*) false;;
  12302. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12303. esac ||
  12304. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12305. esac
  12306. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12307. as_fn_append ac_file_inputs " '$ac_f'"
  12308. done
  12309. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12310. # use $as_me), people would be surprised to read:
  12311. # /* config.h. Generated by config.status. */
  12312. configure_input='Generated from '`
  12313. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12314. `' by configure.'
  12315. if test x"$ac_file" != x-; then
  12316. configure_input="$ac_file. $configure_input"
  12317. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12318. $as_echo "$as_me: creating $ac_file" >&6;}
  12319. fi
  12320. # Neutralize special characters interpreted by sed in replacement strings.
  12321. case $configure_input in #(
  12322. *\&* | *\|* | *\\* )
  12323. ac_sed_conf_input=`$as_echo "$configure_input" |
  12324. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12325. *) ac_sed_conf_input=$configure_input;;
  12326. esac
  12327. case $ac_tag in
  12328. *:-:* | *:-) cat >"$tmp/stdin" \
  12329. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12330. esac
  12331. ;;
  12332. esac
  12333. ac_dir=`$as_dirname -- "$ac_file" ||
  12334. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12335. X"$ac_file" : 'X\(//\)[^/]' \| \
  12336. X"$ac_file" : 'X\(//\)$' \| \
  12337. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12338. $as_echo X"$ac_file" |
  12339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12340. s//\1/
  12341. q
  12342. }
  12343. /^X\(\/\/\)[^/].*/{
  12344. s//\1/
  12345. q
  12346. }
  12347. /^X\(\/\/\)$/{
  12348. s//\1/
  12349. q
  12350. }
  12351. /^X\(\/\).*/{
  12352. s//\1/
  12353. q
  12354. }
  12355. s/.*/./; q'`
  12356. as_dir="$ac_dir"; as_fn_mkdir_p
  12357. ac_builddir=.
  12358. case "$ac_dir" in
  12359. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12360. *)
  12361. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12362. # A ".." for each directory in $ac_dir_suffix.
  12363. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12364. case $ac_top_builddir_sub in
  12365. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12366. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12367. esac ;;
  12368. esac
  12369. ac_abs_top_builddir=$ac_pwd
  12370. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12371. # for backward compatibility:
  12372. ac_top_builddir=$ac_top_build_prefix
  12373. case $srcdir in
  12374. .) # We are building in place.
  12375. ac_srcdir=.
  12376. ac_top_srcdir=$ac_top_builddir_sub
  12377. ac_abs_top_srcdir=$ac_pwd ;;
  12378. [\\/]* | ?:[\\/]* ) # Absolute name.
  12379. ac_srcdir=$srcdir$ac_dir_suffix;
  12380. ac_top_srcdir=$srcdir
  12381. ac_abs_top_srcdir=$srcdir ;;
  12382. *) # Relative name.
  12383. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12384. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12385. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12386. esac
  12387. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12388. case $ac_mode in
  12389. :F)
  12390. #
  12391. # CONFIG_FILE
  12392. #
  12393. case $INSTALL in
  12394. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12395. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12396. esac
  12397. ac_MKDIR_P=$MKDIR_P
  12398. case $MKDIR_P in
  12399. [\\/$]* | ?:[\\/]* ) ;;
  12400. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12401. esac
  12402. _ACEOF
  12403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12404. # If the template does not know about datarootdir, expand it.
  12405. # FIXME: This hack should be removed a few years after 2.60.
  12406. ac_datarootdir_hack=; ac_datarootdir_seen=
  12407. ac_sed_dataroot='
  12408. /datarootdir/ {
  12409. p
  12410. q
  12411. }
  12412. /@datadir@/p
  12413. /@docdir@/p
  12414. /@infodir@/p
  12415. /@localedir@/p
  12416. /@mandir@/p'
  12417. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12418. *datarootdir*) ac_datarootdir_seen=yes;;
  12419. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12421. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12422. _ACEOF
  12423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12424. ac_datarootdir_hack='
  12425. s&@datadir@&$datadir&g
  12426. s&@docdir@&$docdir&g
  12427. s&@infodir@&$infodir&g
  12428. s&@localedir@&$localedir&g
  12429. s&@mandir@&$mandir&g
  12430. s&\\\${datarootdir}&$datarootdir&g' ;;
  12431. esac
  12432. _ACEOF
  12433. # Neutralize VPATH when `$srcdir' = `.'.
  12434. # Shell code in configure.ac might set extrasub.
  12435. # FIXME: do we really want to maintain this feature?
  12436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12437. ac_sed_extra="$ac_vpsub
  12438. $extrasub
  12439. _ACEOF
  12440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12441. :t
  12442. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12443. s|@configure_input@|$ac_sed_conf_input|;t t
  12444. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12445. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12446. s&@srcdir@&$ac_srcdir&;t t
  12447. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12448. s&@top_srcdir@&$ac_top_srcdir&;t t
  12449. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12450. s&@builddir@&$ac_builddir&;t t
  12451. s&@abs_builddir@&$ac_abs_builddir&;t t
  12452. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12453. s&@INSTALL@&$ac_INSTALL&;t t
  12454. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12455. $ac_datarootdir_hack
  12456. "
  12457. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12458. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12459. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12460. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12461. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12463. which seems to be undefined. Please make sure it is defined." >&5
  12464. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12465. which seems to be undefined. Please make sure it is defined." >&2;}
  12466. rm -f "$tmp/stdin"
  12467. case $ac_file in
  12468. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12469. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12470. esac \
  12471. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12472. ;;
  12473. :H)
  12474. #
  12475. # CONFIG_HEADER
  12476. #
  12477. if test x"$ac_file" != x-; then
  12478. {
  12479. $as_echo "/* $configure_input */" \
  12480. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12481. } >"$tmp/config.h" \
  12482. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12483. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12485. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12486. else
  12487. rm -f "$ac_file"
  12488. mv "$tmp/config.h" "$ac_file" \
  12489. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12490. fi
  12491. else
  12492. $as_echo "/* $configure_input */" \
  12493. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12494. || as_fn_error "could not create -" "$LINENO" 5
  12495. fi
  12496. # Compute "$ac_file"'s index in $config_headers.
  12497. _am_arg="$ac_file"
  12498. _am_stamp_count=1
  12499. for _am_header in $config_headers :; do
  12500. case $_am_header in
  12501. $_am_arg | $_am_arg:* )
  12502. break ;;
  12503. * )
  12504. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12505. esac
  12506. done
  12507. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12508. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12509. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12510. X"$_am_arg" : 'X\(//\)$' \| \
  12511. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12512. $as_echo X"$_am_arg" |
  12513. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12514. s//\1/
  12515. q
  12516. }
  12517. /^X\(\/\/\)[^/].*/{
  12518. s//\1/
  12519. q
  12520. }
  12521. /^X\(\/\/\)$/{
  12522. s//\1/
  12523. q
  12524. }
  12525. /^X\(\/\).*/{
  12526. s//\1/
  12527. q
  12528. }
  12529. s/.*/./; q'`/stamp-h$_am_stamp_count
  12530. ;;
  12531. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12532. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12533. ;;
  12534. esac
  12535. case $ac_file$ac_mode in
  12536. "default-1":C)
  12537. # Only add multilib support code if we just rebuilt the top-level
  12538. # Makefile.
  12539. case " $CONFIG_FILES " in
  12540. *" Makefile "*)
  12541. ac_file=Makefile . ${multi_basedir}/config-ml.in
  12542. ;;
  12543. esac ;;
  12544. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12545. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12546. # are listed without --file. Let's play safe and only enable the eval
  12547. # if we detect the quoting.
  12548. case $CONFIG_FILES in
  12549. *\'*) eval set x "$CONFIG_FILES" ;;
  12550. *) set x $CONFIG_FILES ;;
  12551. esac
  12552. shift
  12553. for mf
  12554. do
  12555. # Strip MF so we end up with the name of the file.
  12556. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12557. # Check whether this is an Automake generated Makefile or not.
  12558. # We used to match only the files named `Makefile.in', but
  12559. # some people rename them; so instead we look at the file content.
  12560. # Grep'ing the first line is not enough: some people post-process
  12561. # each Makefile.in and add a new line on top of each file to say so.
  12562. # Grep'ing the whole file is not good either: AIX grep has a line
  12563. # limit of 2048, but all sed's we know have understand at least 4000.
  12564. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12565. dirpart=`$as_dirname -- "$mf" ||
  12566. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12567. X"$mf" : 'X\(//\)[^/]' \| \
  12568. X"$mf" : 'X\(//\)$' \| \
  12569. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12570. $as_echo X"$mf" |
  12571. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12572. s//\1/
  12573. q
  12574. }
  12575. /^X\(\/\/\)[^/].*/{
  12576. s//\1/
  12577. q
  12578. }
  12579. /^X\(\/\/\)$/{
  12580. s//\1/
  12581. q
  12582. }
  12583. /^X\(\/\).*/{
  12584. s//\1/
  12585. q
  12586. }
  12587. s/.*/./; q'`
  12588. else
  12589. continue
  12590. fi
  12591. # Extract the definition of DEPDIR, am__include, and am__quote
  12592. # from the Makefile without running `make'.
  12593. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12594. test -z "$DEPDIR" && continue
  12595. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12596. test -z "am__include" && continue
  12597. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12598. # When using ansi2knr, U may be empty or an underscore; expand it
  12599. U=`sed -n 's/^U = //p' < "$mf"`
  12600. # Find all dependency output files, they are included files with
  12601. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12602. # simplest approach to changing $(DEPDIR) to its actual value in the
  12603. # expansion.
  12604. for file in `sed -n "
  12605. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12606. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12607. # Make sure the directory exists.
  12608. test -f "$dirpart/$file" && continue
  12609. fdir=`$as_dirname -- "$file" ||
  12610. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12611. X"$file" : 'X\(//\)[^/]' \| \
  12612. X"$file" : 'X\(//\)$' \| \
  12613. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12614. $as_echo X"$file" |
  12615. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12616. s//\1/
  12617. q
  12618. }
  12619. /^X\(\/\/\)[^/].*/{
  12620. s//\1/
  12621. q
  12622. }
  12623. /^X\(\/\/\)$/{
  12624. s//\1/
  12625. q
  12626. }
  12627. /^X\(\/\).*/{
  12628. s//\1/
  12629. q
  12630. }
  12631. s/.*/./; q'`
  12632. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12633. # echo "creating $dirpart/$file"
  12634. echo '# dummy' > "$dirpart/$file"
  12635. done
  12636. done
  12637. }
  12638. ;;
  12639. "libtool":C)
  12640. # See if we are running on zsh, and set the options which allow our
  12641. # commands through without removal of \ escapes.
  12642. if test -n "${ZSH_VERSION+set}" ; then
  12643. setopt NO_GLOB_SUBST
  12644. fi
  12645. cfgfile="${ofile}T"
  12646. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12647. $RM "$cfgfile"
  12648. cat <<_LT_EOF >> "$cfgfile"
  12649. #! $SHELL
  12650. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12651. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12652. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12653. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12654. #
  12655. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12656. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12657. # Written by Gordon Matzigkeit, 1996
  12658. #
  12659. # This file is part of GNU Libtool.
  12660. #
  12661. # GNU Libtool is free software; you can redistribute it and/or
  12662. # modify it under the terms of the GNU General Public License as
  12663. # published by the Free Software Foundation; either version 2 of
  12664. # the License, or (at your option) any later version.
  12665. #
  12666. # As a special exception to the GNU General Public License,
  12667. # if you distribute this file as part of a program or library that
  12668. # is built using GNU Libtool, you may include this file under the
  12669. # same distribution terms that you use for the rest of that program.
  12670. #
  12671. # GNU Libtool is distributed in the hope that it will be useful,
  12672. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12673. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12674. # GNU General Public License for more details.
  12675. #
  12676. # You should have received a copy of the GNU General Public License
  12677. # along with GNU Libtool; see the file COPYING. If not, a copy
  12678. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12679. # obtained by writing to the Free Software Foundation, Inc.,
  12680. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12681. # The names of the tagged configurations supported by this script.
  12682. available_tags=""
  12683. # ### BEGIN LIBTOOL CONFIG
  12684. # Which release of libtool.m4 was used?
  12685. macro_version=$macro_version
  12686. macro_revision=$macro_revision
  12687. # Whether or not to build shared libraries.
  12688. build_libtool_libs=$enable_shared
  12689. # Whether or not to build static libraries.
  12690. build_old_libs=$enable_static
  12691. # What type of objects to build.
  12692. pic_mode=$pic_mode
  12693. # Whether or not to optimize for fast installation.
  12694. fast_install=$enable_fast_install
  12695. # Shell to use when invoking shell scripts.
  12696. SHELL=$lt_SHELL
  12697. # An echo program that protects backslashes.
  12698. ECHO=$lt_ECHO
  12699. # The host system.
  12700. host_alias=$host_alias
  12701. host=$host
  12702. host_os=$host_os
  12703. # The build system.
  12704. build_alias=$build_alias
  12705. build=$build
  12706. build_os=$build_os
  12707. # A sed program that does not truncate output.
  12708. SED=$lt_SED
  12709. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12710. Xsed="\$SED -e 1s/^X//"
  12711. # A grep program that handles long lines.
  12712. GREP=$lt_GREP
  12713. # An ERE matcher.
  12714. EGREP=$lt_EGREP
  12715. # A literal string matcher.
  12716. FGREP=$lt_FGREP
  12717. # A BSD- or MS-compatible name lister.
  12718. NM=$lt_NM
  12719. # Whether we need soft or hard links.
  12720. LN_S=$lt_LN_S
  12721. # What is the maximum length of a command?
  12722. max_cmd_len=$max_cmd_len
  12723. # Object file suffix (normally "o").
  12724. objext=$ac_objext
  12725. # Executable file suffix (normally "").
  12726. exeext=$exeext
  12727. # whether the shell understands "unset".
  12728. lt_unset=$lt_unset
  12729. # turn spaces into newlines.
  12730. SP2NL=$lt_lt_SP2NL
  12731. # turn newlines into spaces.
  12732. NL2SP=$lt_lt_NL2SP
  12733. # An object symbol dumper.
  12734. OBJDUMP=$lt_OBJDUMP
  12735. # Method to check whether dependent libraries are shared objects.
  12736. deplibs_check_method=$lt_deplibs_check_method
  12737. # Command to use when deplibs_check_method == "file_magic".
  12738. file_magic_cmd=$lt_file_magic_cmd
  12739. # The archiver.
  12740. AR=$lt_AR
  12741. AR_FLAGS=$lt_AR_FLAGS
  12742. # A symbol stripping program.
  12743. STRIP=$lt_STRIP
  12744. # Commands used to install an old-style archive.
  12745. RANLIB=$lt_RANLIB
  12746. old_postinstall_cmds=$lt_old_postinstall_cmds
  12747. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12748. # Whether to use a lock for old archive extraction.
  12749. lock_old_archive_extraction=$lock_old_archive_extraction
  12750. # A C compiler.
  12751. LTCC=$lt_CC
  12752. # LTCC compiler flags.
  12753. LTCFLAGS=$lt_CFLAGS
  12754. # Take the output of nm and produce a listing of raw symbols and C names.
  12755. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12756. # Transform the output of nm in a proper C declaration.
  12757. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12758. # Transform the output of nm in a C name address pair.
  12759. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12760. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12761. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12762. # The name of the directory that contains temporary libtool files.
  12763. objdir=$objdir
  12764. # Used to examine libraries when file_magic_cmd begins with "file".
  12765. MAGIC_CMD=$MAGIC_CMD
  12766. # Must we lock files when doing compilation?
  12767. need_locks=$lt_need_locks
  12768. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12769. DSYMUTIL=$lt_DSYMUTIL
  12770. # Tool to change global to local symbols on Mac OS X.
  12771. NMEDIT=$lt_NMEDIT
  12772. # Tool to manipulate fat objects and archives on Mac OS X.
  12773. LIPO=$lt_LIPO
  12774. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12775. OTOOL=$lt_OTOOL
  12776. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12777. OTOOL64=$lt_OTOOL64
  12778. # Old archive suffix (normally "a").
  12779. libext=$libext
  12780. # Shared library suffix (normally ".so").
  12781. shrext_cmds=$lt_shrext_cmds
  12782. # The commands to extract the exported symbol list from a shared archive.
  12783. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12784. # Variables whose values should be saved in libtool wrapper scripts and
  12785. # restored at link time.
  12786. variables_saved_for_relink=$lt_variables_saved_for_relink
  12787. # Do we need the "lib" prefix for modules?
  12788. need_lib_prefix=$need_lib_prefix
  12789. # Do we need a version for libraries?
  12790. need_version=$need_version
  12791. # Library versioning type.
  12792. version_type=$version_type
  12793. # Shared library runtime path variable.
  12794. runpath_var=$runpath_var
  12795. # Shared library path variable.
  12796. shlibpath_var=$shlibpath_var
  12797. # Is shlibpath searched before the hard-coded library search path?
  12798. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12799. # Format of library name prefix.
  12800. libname_spec=$lt_libname_spec
  12801. # List of archive names. First name is the real one, the rest are links.
  12802. # The last name is the one that the linker finds with -lNAME
  12803. library_names_spec=$lt_library_names_spec
  12804. # The coded name of the library, if different from the real name.
  12805. soname_spec=$lt_soname_spec
  12806. # Permission mode override for installation of shared libraries.
  12807. install_override_mode=$lt_install_override_mode
  12808. # Command to use after installation of a shared archive.
  12809. postinstall_cmds=$lt_postinstall_cmds
  12810. # Command to use after uninstallation of a shared archive.
  12811. postuninstall_cmds=$lt_postuninstall_cmds
  12812. # Commands used to finish a libtool library installation in a directory.
  12813. finish_cmds=$lt_finish_cmds
  12814. # As "finish_cmds", except a single script fragment to be evaled but
  12815. # not shown.
  12816. finish_eval=$lt_finish_eval
  12817. # Whether we should hardcode library paths into libraries.
  12818. hardcode_into_libs=$hardcode_into_libs
  12819. # Compile-time system search path for libraries.
  12820. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12821. # Run-time system search path for libraries.
  12822. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12823. # Whether dlopen is supported.
  12824. dlopen_support=$enable_dlopen
  12825. # Whether dlopen of programs is supported.
  12826. dlopen_self=$enable_dlopen_self
  12827. # Whether dlopen of statically linked programs is supported.
  12828. dlopen_self_static=$enable_dlopen_self_static
  12829. # Commands to strip libraries.
  12830. old_striplib=$lt_old_striplib
  12831. striplib=$lt_striplib
  12832. # The linker used to build libraries.
  12833. LD=$lt_LD
  12834. # How to create reloadable object files.
  12835. reload_flag=$lt_reload_flag
  12836. reload_cmds=$lt_reload_cmds
  12837. # Commands used to build an old-style archive.
  12838. old_archive_cmds=$lt_old_archive_cmds
  12839. # A language specific compiler.
  12840. CC=$lt_compiler
  12841. # Is the compiler the GNU compiler?
  12842. with_gcc=$GCC
  12843. # Compiler flag to turn off builtin functions.
  12844. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12845. # How to pass a linker flag through the compiler.
  12846. wl=$lt_lt_prog_compiler_wl
  12847. # Additional compiler flags for building library objects.
  12848. pic_flag=$lt_lt_prog_compiler_pic
  12849. # Compiler flag to prevent dynamic linking.
  12850. link_static_flag=$lt_lt_prog_compiler_static
  12851. # Does compiler simultaneously support -c and -o options?
  12852. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12853. # Whether or not to add -lc for building shared libraries.
  12854. build_libtool_need_lc=$archive_cmds_need_lc
  12855. # Whether or not to disallow shared libs when runtime libs are static.
  12856. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12857. # Compiler flag to allow reflexive dlopens.
  12858. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12859. # Compiler flag to generate shared objects directly from archives.
  12860. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12861. # Whether the compiler copes with passing no objects directly.
  12862. compiler_needs_object=$lt_compiler_needs_object
  12863. # Create an old-style archive from a shared archive.
  12864. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12865. # Create a temporary old-style archive to link instead of a shared archive.
  12866. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12867. # Commands used to build a shared archive.
  12868. archive_cmds=$lt_archive_cmds
  12869. archive_expsym_cmds=$lt_archive_expsym_cmds
  12870. # Commands used to build a loadable module if different from building
  12871. # a shared archive.
  12872. module_cmds=$lt_module_cmds
  12873. module_expsym_cmds=$lt_module_expsym_cmds
  12874. # Whether we are building with GNU ld or not.
  12875. with_gnu_ld=$lt_with_gnu_ld
  12876. # Flag that allows shared libraries with undefined symbols to be built.
  12877. allow_undefined_flag=$lt_allow_undefined_flag
  12878. # Flag that enforces no undefined symbols.
  12879. no_undefined_flag=$lt_no_undefined_flag
  12880. # Flag to hardcode \$libdir into a binary during linking.
  12881. # This must work even if \$libdir does not exist
  12882. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12883. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12884. # during linking. This must work even if \$libdir does not exist.
  12885. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12886. # Whether we need a single "-rpath" flag with a separated argument.
  12887. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12888. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12889. # DIR into the resulting binary.
  12890. hardcode_direct=$hardcode_direct
  12891. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12892. # DIR into the resulting binary and the resulting library dependency is
  12893. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12894. # library is relocated.
  12895. hardcode_direct_absolute=$hardcode_direct_absolute
  12896. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12897. # into the resulting binary.
  12898. hardcode_minus_L=$hardcode_minus_L
  12899. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12900. # into the resulting binary.
  12901. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12902. # Set to "yes" if building a shared library automatically hardcodes DIR
  12903. # into the library and all subsequent libraries and executables linked
  12904. # against it.
  12905. hardcode_automatic=$hardcode_automatic
  12906. # Set to yes if linker adds runtime paths of dependent libraries
  12907. # to runtime path list.
  12908. inherit_rpath=$inherit_rpath
  12909. # Whether libtool must link a program against all its dependency libraries.
  12910. link_all_deplibs=$link_all_deplibs
  12911. # Fix the shell variable \$srcfile for the compiler.
  12912. fix_srcfile_path=$lt_fix_srcfile_path
  12913. # Set to "yes" if exported symbols are required.
  12914. always_export_symbols=$always_export_symbols
  12915. # The commands to list exported symbols.
  12916. export_symbols_cmds=$lt_export_symbols_cmds
  12917. # Symbols that should not be listed in the preloaded symbols.
  12918. exclude_expsyms=$lt_exclude_expsyms
  12919. # Symbols that must always be exported.
  12920. include_expsyms=$lt_include_expsyms
  12921. # Commands necessary for linking programs (against libraries) with templates.
  12922. prelink_cmds=$lt_prelink_cmds
  12923. # Specify filename containing input files.
  12924. file_list_spec=$lt_file_list_spec
  12925. # How to hardcode a shared library path into an executable.
  12926. hardcode_action=$hardcode_action
  12927. # ### END LIBTOOL CONFIG
  12928. _LT_EOF
  12929. case $host_os in
  12930. aix3*)
  12931. cat <<\_LT_EOF >> "$cfgfile"
  12932. # AIX sometimes has problems with the GCC collect2 program. For some
  12933. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12934. # vanish in a puff of smoke.
  12935. if test "X${COLLECT_NAMES+set}" != Xset; then
  12936. COLLECT_NAMES=
  12937. export COLLECT_NAMES
  12938. fi
  12939. _LT_EOF
  12940. ;;
  12941. esac
  12942. ltmain="$ac_aux_dir/ltmain.sh"
  12943. # We use sed instead of cat because bash on DJGPP gets confused if
  12944. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12945. # text mode, it properly converts lines to CR/LF. This bash problem
  12946. # is reportedly fixed, but why not run on old versions too?
  12947. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12948. || (rm -f "$cfgfile"; exit 1)
  12949. case $xsi_shell in
  12950. yes)
  12951. cat << \_LT_EOF >> "$cfgfile"
  12952. # func_dirname file append nondir_replacement
  12953. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12954. # otherwise set result to NONDIR_REPLACEMENT.
  12955. func_dirname ()
  12956. {
  12957. case ${1} in
  12958. */*) func_dirname_result="${1%/*}${2}" ;;
  12959. * ) func_dirname_result="${3}" ;;
  12960. esac
  12961. }
  12962. # func_basename file
  12963. func_basename ()
  12964. {
  12965. func_basename_result="${1##*/}"
  12966. }
  12967. # func_dirname_and_basename file append nondir_replacement
  12968. # perform func_basename and func_dirname in a single function
  12969. # call:
  12970. # dirname: Compute the dirname of FILE. If nonempty,
  12971. # add APPEND to the result, otherwise set result
  12972. # to NONDIR_REPLACEMENT.
  12973. # value returned in "$func_dirname_result"
  12974. # basename: Compute filename of FILE.
  12975. # value retuned in "$func_basename_result"
  12976. # Implementation must be kept synchronized with func_dirname
  12977. # and func_basename. For efficiency, we do not delegate to
  12978. # those functions but instead duplicate the functionality here.
  12979. func_dirname_and_basename ()
  12980. {
  12981. case ${1} in
  12982. */*) func_dirname_result="${1%/*}${2}" ;;
  12983. * ) func_dirname_result="${3}" ;;
  12984. esac
  12985. func_basename_result="${1##*/}"
  12986. }
  12987. # func_stripname prefix suffix name
  12988. # strip PREFIX and SUFFIX off of NAME.
  12989. # PREFIX and SUFFIX must not contain globbing or regex special
  12990. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12991. # dot (in which case that matches only a dot).
  12992. func_stripname ()
  12993. {
  12994. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12995. # positional parameters, so assign one to ordinary parameter first.
  12996. func_stripname_result=${3}
  12997. func_stripname_result=${func_stripname_result#"${1}"}
  12998. func_stripname_result=${func_stripname_result%"${2}"}
  12999. }
  13000. # func_opt_split
  13001. func_opt_split ()
  13002. {
  13003. func_opt_split_opt=${1%%=*}
  13004. func_opt_split_arg=${1#*=}
  13005. }
  13006. # func_lo2o object
  13007. func_lo2o ()
  13008. {
  13009. case ${1} in
  13010. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13011. *) func_lo2o_result=${1} ;;
  13012. esac
  13013. }
  13014. # func_xform libobj-or-source
  13015. func_xform ()
  13016. {
  13017. func_xform_result=${1%.*}.lo
  13018. }
  13019. # func_arith arithmetic-term...
  13020. func_arith ()
  13021. {
  13022. func_arith_result=$(( $* ))
  13023. }
  13024. # func_len string
  13025. # STRING may not start with a hyphen.
  13026. func_len ()
  13027. {
  13028. func_len_result=${#1}
  13029. }
  13030. _LT_EOF
  13031. ;;
  13032. *) # Bourne compatible functions.
  13033. cat << \_LT_EOF >> "$cfgfile"
  13034. # func_dirname file append nondir_replacement
  13035. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13036. # otherwise set result to NONDIR_REPLACEMENT.
  13037. func_dirname ()
  13038. {
  13039. # Extract subdirectory from the argument.
  13040. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  13041. if test "X$func_dirname_result" = "X${1}"; then
  13042. func_dirname_result="${3}"
  13043. else
  13044. func_dirname_result="$func_dirname_result${2}"
  13045. fi
  13046. }
  13047. # func_basename file
  13048. func_basename ()
  13049. {
  13050. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  13051. }
  13052. # func_stripname prefix suffix name
  13053. # strip PREFIX and SUFFIX off of NAME.
  13054. # PREFIX and SUFFIX must not contain globbing or regex special
  13055. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13056. # dot (in which case that matches only a dot).
  13057. # func_strip_suffix prefix name
  13058. func_stripname ()
  13059. {
  13060. case ${2} in
  13061. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13062. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13063. esac
  13064. }
  13065. # sed scripts:
  13066. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13067. my_sed_long_arg='1s/^-[^=]*=//'
  13068. # func_opt_split
  13069. func_opt_split ()
  13070. {
  13071. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  13072. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  13073. }
  13074. # func_lo2o object
  13075. func_lo2o ()
  13076. {
  13077. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  13078. }
  13079. # func_xform libobj-or-source
  13080. func_xform ()
  13081. {
  13082. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  13083. }
  13084. # func_arith arithmetic-term...
  13085. func_arith ()
  13086. {
  13087. func_arith_result=`expr "$@"`
  13088. }
  13089. # func_len string
  13090. # STRING may not start with a hyphen.
  13091. func_len ()
  13092. {
  13093. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13094. }
  13095. _LT_EOF
  13096. esac
  13097. case $lt_shell_append in
  13098. yes)
  13099. cat << \_LT_EOF >> "$cfgfile"
  13100. # func_append var value
  13101. # Append VALUE to the end of shell variable VAR.
  13102. func_append ()
  13103. {
  13104. eval "$1+=\$2"
  13105. }
  13106. _LT_EOF
  13107. ;;
  13108. *)
  13109. cat << \_LT_EOF >> "$cfgfile"
  13110. # func_append var value
  13111. # Append VALUE to the end of shell variable VAR.
  13112. func_append ()
  13113. {
  13114. eval "$1=\$$1\$2"
  13115. }
  13116. _LT_EOF
  13117. ;;
  13118. esac
  13119. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13120. || (rm -f "$cfgfile"; exit 1)
  13121. mv -f "$cfgfile" "$ofile" ||
  13122. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13123. chmod +x "$ofile"
  13124. ;;
  13125. esac
  13126. done # for ac_tag
  13127. as_fn_exit 0
  13128. _ACEOF
  13129. ac_clean_files=$ac_clean_files_save
  13130. test $ac_write_fail = 0 ||
  13131. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13132. # configure is writing to config.log, and then calls config.status.
  13133. # config.status does its own redirection, appending to config.log.
  13134. # Unfortunately, on DOS this fails, as config.log is still kept open
  13135. # by configure, so config.status won't be able to write to it; its
  13136. # output is simply discarded. So we exec the FD to /dev/null,
  13137. # effectively closing config.log, so it can be properly (re)opened and
  13138. # appended to by config.status. When coming back to configure, we
  13139. # need to make the FD available again.
  13140. if test "$no_create" != yes; then
  13141. ac_cs_success=:
  13142. ac_config_status_args=
  13143. test "$silent" = yes &&
  13144. ac_config_status_args="$ac_config_status_args --quiet"
  13145. exec 5>/dev/null
  13146. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13147. exec 5>>config.log
  13148. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13149. # would make configure fail if this is the last instruction.
  13150. $ac_cs_success || as_fn_exit $?
  13151. fi
  13152. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13154. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13155. fi