configure 552 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libthree_rates 1.0.
  4. #
  5. # Report bugs to <zhuyunfei@zh3x.cn>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and zhuyunfei@zh3x.cn
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libthree_rates'
  542. PACKAGE_TARNAME='libthree_rates'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='libthree_rates 1.0'
  545. PACKAGE_BUGREPORT='zhuyunfei@zh3x.cn'
  546. PACKAGE_URL=''
  547. ac_unique_file="common_data.cpp"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. CXXCPP
  590. OTOOL64
  591. OTOOL
  592. LIPO
  593. NMEDIT
  594. DSYMUTIL
  595. MANIFEST_TOOL
  596. RANLIB
  597. ac_ct_AR
  598. AR
  599. DLLTOOL
  600. OBJDUMP
  601. LN_S
  602. NM
  603. ac_ct_DUMPBIN
  604. DUMPBIN
  605. LD
  606. FGREP
  607. SED
  608. host_os
  609. host_vendor
  610. host_cpu
  611. host
  612. build_os
  613. build_vendor
  614. build_cpu
  615. build
  616. LIBTOOL
  617. EGREP
  618. GREP
  619. CPP
  620. am__fastdepCC_FALSE
  621. am__fastdepCC_TRUE
  622. CCDEPMODE
  623. ac_ct_CC
  624. CFLAGS
  625. CC
  626. am__fastdepCXX_FALSE
  627. am__fastdepCXX_TRUE
  628. CXXDEPMODE
  629. am__nodep
  630. AMDEPBACKSLASH
  631. AMDEP_FALSE
  632. AMDEP_TRUE
  633. am__quote
  634. am__include
  635. DEPDIR
  636. OBJEXT
  637. EXEEXT
  638. ac_ct_CXX
  639. CPPFLAGS
  640. LDFLAGS
  641. CXXFLAGS
  642. CXX
  643. AM_BACKSLASH
  644. AM_DEFAULT_VERBOSITY
  645. AM_DEFAULT_V
  646. AM_V
  647. am__untar
  648. am__tar
  649. AMTAR
  650. am__leading_dot
  651. SET_MAKE
  652. AWK
  653. mkdir_p
  654. MKDIR_P
  655. INSTALL_STRIP_PROGRAM
  656. STRIP
  657. install_sh
  658. MAKEINFO
  659. AUTOHEADER
  660. AUTOMAKE
  661. AUTOCONF
  662. ACLOCAL
  663. VERSION
  664. PACKAGE
  665. CYGPATH_W
  666. am__isrc
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. target_alias
  671. host_alias
  672. build_alias
  673. LIBS
  674. ECHO_T
  675. ECHO_N
  676. ECHO_C
  677. DEFS
  678. mandir
  679. localedir
  680. libdir
  681. psdir
  682. pdfdir
  683. dvidir
  684. htmldir
  685. infodir
  686. docdir
  687. oldincludedir
  688. includedir
  689. localstatedir
  690. sharedstatedir
  691. sysconfdir
  692. datadir
  693. datarootdir
  694. libexecdir
  695. sbindir
  696. bindir
  697. program_transform_name
  698. prefix
  699. exec_prefix
  700. PACKAGE_URL
  701. PACKAGE_BUGREPORT
  702. PACKAGE_STRING
  703. PACKAGE_VERSION
  704. PACKAGE_TARNAME
  705. PACKAGE_NAME
  706. PATH_SEPARATOR
  707. SHELL'
  708. ac_subst_files=''
  709. ac_user_opts='
  710. enable_option_checking
  711. enable_silent_rules
  712. enable_dependency_tracking
  713. enable_shared
  714. enable_static
  715. with_pic
  716. enable_fast_install
  717. with_gnu_ld
  718. with_sysroot
  719. enable_libtool_lock
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CXX
  725. CXXFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CCC
  730. CC
  731. CFLAGS
  732. CPP
  733. CXXCPP'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *=) ac_optarg= ;;
  793. *) ac_optarg=yes ;;
  794. esac
  795. # Accept the important Cygnus configure options, so we can diagnose typos.
  796. case $ac_dashdash$ac_option in
  797. --)
  798. ac_dashdash=yes ;;
  799. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  800. ac_prev=bindir ;;
  801. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  802. bindir=$ac_optarg ;;
  803. -build | --build | --buil | --bui | --bu)
  804. ac_prev=build_alias ;;
  805. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  806. build_alias=$ac_optarg ;;
  807. -cache-file | --cache-file | --cache-fil | --cache-fi \
  808. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  809. ac_prev=cache_file ;;
  810. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  811. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  812. cache_file=$ac_optarg ;;
  813. --config-cache | -C)
  814. cache_file=config.cache ;;
  815. -datadir | --datadir | --datadi | --datad)
  816. ac_prev=datadir ;;
  817. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  818. datadir=$ac_optarg ;;
  819. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  820. | --dataroo | --dataro | --datar)
  821. ac_prev=datarootdir ;;
  822. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  823. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  824. datarootdir=$ac_optarg ;;
  825. -disable-* | --disable-*)
  826. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  827. # Reject names that are not valid shell variable names.
  828. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  829. as_fn_error $? "invalid feature name: $ac_useropt"
  830. ac_useropt_orig=$ac_useropt
  831. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  832. case $ac_user_opts in
  833. *"
  834. "enable_$ac_useropt"
  835. "*) ;;
  836. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  837. ac_unrecognized_sep=', ';;
  838. esac
  839. eval enable_$ac_useropt=no ;;
  840. -docdir | --docdir | --docdi | --doc | --do)
  841. ac_prev=docdir ;;
  842. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  843. docdir=$ac_optarg ;;
  844. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  845. ac_prev=dvidir ;;
  846. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  847. dvidir=$ac_optarg ;;
  848. -enable-* | --enable-*)
  849. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  850. # Reject names that are not valid shell variable names.
  851. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  852. as_fn_error $? "invalid feature name: $ac_useropt"
  853. ac_useropt_orig=$ac_useropt
  854. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  855. case $ac_user_opts in
  856. *"
  857. "enable_$ac_useropt"
  858. "*) ;;
  859. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  860. ac_unrecognized_sep=', ';;
  861. esac
  862. eval enable_$ac_useropt=\$ac_optarg ;;
  863. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  864. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  865. | --exec | --exe | --ex)
  866. ac_prev=exec_prefix ;;
  867. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  868. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  869. | --exec=* | --exe=* | --ex=*)
  870. exec_prefix=$ac_optarg ;;
  871. -gas | --gas | --ga | --g)
  872. # Obsolete; use --with-gas.
  873. with_gas=yes ;;
  874. -help | --help | --hel | --he | -h)
  875. ac_init_help=long ;;
  876. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  877. ac_init_help=recursive ;;
  878. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  879. ac_init_help=short ;;
  880. -host | --host | --hos | --ho)
  881. ac_prev=host_alias ;;
  882. -host=* | --host=* | --hos=* | --ho=*)
  883. host_alias=$ac_optarg ;;
  884. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  885. ac_prev=htmldir ;;
  886. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  887. | --ht=*)
  888. htmldir=$ac_optarg ;;
  889. -includedir | --includedir | --includedi | --included | --include \
  890. | --includ | --inclu | --incl | --inc)
  891. ac_prev=includedir ;;
  892. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  893. | --includ=* | --inclu=* | --incl=* | --inc=*)
  894. includedir=$ac_optarg ;;
  895. -infodir | --infodir | --infodi | --infod | --info | --inf)
  896. ac_prev=infodir ;;
  897. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  898. infodir=$ac_optarg ;;
  899. -libdir | --libdir | --libdi | --libd)
  900. ac_prev=libdir ;;
  901. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902. libdir=$ac_optarg ;;
  903. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  904. | --libexe | --libex | --libe)
  905. ac_prev=libexecdir ;;
  906. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  907. | --libexe=* | --libex=* | --libe=*)
  908. libexecdir=$ac_optarg ;;
  909. -localedir | --localedir | --localedi | --localed | --locale)
  910. ac_prev=localedir ;;
  911. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  912. localedir=$ac_optarg ;;
  913. -localstatedir | --localstatedir | --localstatedi | --localstated \
  914. | --localstate | --localstat | --localsta | --localst | --locals)
  915. ac_prev=localstatedir ;;
  916. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  917. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  918. localstatedir=$ac_optarg ;;
  919. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  920. ac_prev=mandir ;;
  921. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  922. mandir=$ac_optarg ;;
  923. -nfp | --nfp | --nf)
  924. # Obsolete; use --without-fp.
  925. with_fp=no ;;
  926. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  927. | --no-cr | --no-c | -n)
  928. no_create=yes ;;
  929. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  930. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  931. no_recursion=yes ;;
  932. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  933. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  934. | --oldin | --oldi | --old | --ol | --o)
  935. ac_prev=oldincludedir ;;
  936. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  937. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  938. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  939. oldincludedir=$ac_optarg ;;
  940. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  941. ac_prev=prefix ;;
  942. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  943. prefix=$ac_optarg ;;
  944. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  945. | --program-pre | --program-pr | --program-p)
  946. ac_prev=program_prefix ;;
  947. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  948. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  949. program_prefix=$ac_optarg ;;
  950. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  951. | --program-suf | --program-su | --program-s)
  952. ac_prev=program_suffix ;;
  953. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  954. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  955. program_suffix=$ac_optarg ;;
  956. -program-transform-name | --program-transform-name \
  957. | --program-transform-nam | --program-transform-na \
  958. | --program-transform-n | --program-transform- \
  959. | --program-transform | --program-transfor \
  960. | --program-transfo | --program-transf \
  961. | --program-trans | --program-tran \
  962. | --progr-tra | --program-tr | --program-t)
  963. ac_prev=program_transform_name ;;
  964. -program-transform-name=* | --program-transform-name=* \
  965. | --program-transform-nam=* | --program-transform-na=* \
  966. | --program-transform-n=* | --program-transform-=* \
  967. | --program-transform=* | --program-transfor=* \
  968. | --program-transfo=* | --program-transf=* \
  969. | --program-trans=* | --program-tran=* \
  970. | --progr-tra=* | --program-tr=* | --program-t=*)
  971. program_transform_name=$ac_optarg ;;
  972. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  973. ac_prev=pdfdir ;;
  974. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  975. pdfdir=$ac_optarg ;;
  976. -psdir | --psdir | --psdi | --psd | --ps)
  977. ac_prev=psdir ;;
  978. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  979. psdir=$ac_optarg ;;
  980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981. | -silent | --silent | --silen | --sile | --sil)
  982. silent=yes ;;
  983. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  984. ac_prev=sbindir ;;
  985. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  986. | --sbi=* | --sb=*)
  987. sbindir=$ac_optarg ;;
  988. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  989. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  990. | --sharedst | --shareds | --shared | --share | --shar \
  991. | --sha | --sh)
  992. ac_prev=sharedstatedir ;;
  993. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  994. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  995. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  996. | --sha=* | --sh=*)
  997. sharedstatedir=$ac_optarg ;;
  998. -site | --site | --sit)
  999. ac_prev=site ;;
  1000. -site=* | --site=* | --sit=*)
  1001. site=$ac_optarg ;;
  1002. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1003. ac_prev=srcdir ;;
  1004. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1005. srcdir=$ac_optarg ;;
  1006. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1007. | --syscon | --sysco | --sysc | --sys | --sy)
  1008. ac_prev=sysconfdir ;;
  1009. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1010. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1011. sysconfdir=$ac_optarg ;;
  1012. -target | --target | --targe | --targ | --tar | --ta | --t)
  1013. ac_prev=target_alias ;;
  1014. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1015. target_alias=$ac_optarg ;;
  1016. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1017. verbose=yes ;;
  1018. -version | --version | --versio | --versi | --vers | -V)
  1019. ac_init_version=: ;;
  1020. -with-* | --with-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=\$ac_optarg ;;
  1035. -without-* | --without-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=no ;;
  1050. --x)
  1051. # Obsolete; use --with-x.
  1052. with_x=yes ;;
  1053. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1054. | --x-incl | --x-inc | --x-in | --x-i)
  1055. ac_prev=x_includes ;;
  1056. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1057. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1058. x_includes=$ac_optarg ;;
  1059. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1060. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1061. ac_prev=x_libraries ;;
  1062. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1063. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1064. x_libraries=$ac_optarg ;;
  1065. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1066. Try \`$0 --help' for more information"
  1067. ;;
  1068. *=*)
  1069. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1070. # Reject names that are not valid shell variable names.
  1071. case $ac_envvar in #(
  1072. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1073. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1074. esac
  1075. eval $ac_envvar=\$ac_optarg
  1076. export $ac_envvar ;;
  1077. *)
  1078. # FIXME: should be removed in autoconf 3.0.
  1079. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1080. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1081. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1082. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1083. ;;
  1084. esac
  1085. done
  1086. if test -n "$ac_prev"; then
  1087. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1088. as_fn_error $? "missing argument to $ac_option"
  1089. fi
  1090. if test -n "$ac_unrecognized_opts"; then
  1091. case $enable_option_checking in
  1092. no) ;;
  1093. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1094. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1095. esac
  1096. fi
  1097. # Check all directory arguments for consistency.
  1098. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1099. datadir sysconfdir sharedstatedir localstatedir includedir \
  1100. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1101. libdir localedir mandir
  1102. do
  1103. eval ac_val=\$$ac_var
  1104. # Remove trailing slashes.
  1105. case $ac_val in
  1106. */ )
  1107. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1108. eval $ac_var=\$ac_val;;
  1109. esac
  1110. # Be sure to have absolute directory names.
  1111. case $ac_val in
  1112. [\\/$]* | ?:[\\/]* ) continue;;
  1113. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1114. esac
  1115. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1116. done
  1117. # There might be people who depend on the old broken behavior: `$host'
  1118. # used to hold the argument of --host etc.
  1119. # FIXME: To remove some day.
  1120. build=$build_alias
  1121. host=$host_alias
  1122. target=$target_alias
  1123. # FIXME: To remove some day.
  1124. if test "x$host_alias" != x; then
  1125. if test "x$build_alias" = x; then
  1126. cross_compiling=maybe
  1127. elif test "x$build_alias" != "x$host_alias"; then
  1128. cross_compiling=yes
  1129. fi
  1130. fi
  1131. ac_tool_prefix=
  1132. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1133. test "$silent" = yes && exec 6>/dev/null
  1134. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1135. ac_ls_di=`ls -di .` &&
  1136. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1137. as_fn_error $? "working directory cannot be determined"
  1138. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1139. as_fn_error $? "pwd does not report name of working directory"
  1140. # Find the source files, if location was not specified.
  1141. if test -z "$srcdir"; then
  1142. ac_srcdir_defaulted=yes
  1143. # Try the directory containing this script, then the parent directory.
  1144. ac_confdir=`$as_dirname -- "$as_myself" ||
  1145. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1146. X"$as_myself" : 'X\(//\)[^/]' \| \
  1147. X"$as_myself" : 'X\(//\)$' \| \
  1148. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1149. $as_echo X"$as_myself" |
  1150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)[^/].*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)$/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\).*/{
  1163. s//\1/
  1164. q
  1165. }
  1166. s/.*/./; q'`
  1167. srcdir=$ac_confdir
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. srcdir=..
  1170. fi
  1171. else
  1172. ac_srcdir_defaulted=no
  1173. fi
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1176. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1177. fi
  1178. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1179. ac_abs_confdir=`(
  1180. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1181. pwd)`
  1182. # When building in place, set srcdir=.
  1183. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1184. srcdir=.
  1185. fi
  1186. # Remove unnecessary trailing slashes from srcdir.
  1187. # Double slashes in file names in object file debugging info
  1188. # mess up M-x gdb in Emacs.
  1189. case $srcdir in
  1190. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1191. esac
  1192. for ac_var in $ac_precious_vars; do
  1193. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_env_${ac_var}_value=\$${ac_var}
  1195. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1197. done
  1198. #
  1199. # Report the --help message.
  1200. #
  1201. if test "$ac_init_help" = "long"; then
  1202. # Omit some internal or obsolete options to make the list less imposing.
  1203. # This message is too long to be a string in the A/UX 3.1 sh.
  1204. cat <<_ACEOF
  1205. \`configure' configures libthree_rates 1.0 to adapt to many kinds of systems.
  1206. Usage: $0 [OPTION]... [VAR=VALUE]...
  1207. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1208. VAR=VALUE. See below for descriptions of some of the useful variables.
  1209. Defaults for the options are specified in brackets.
  1210. Configuration:
  1211. -h, --help display this help and exit
  1212. --help=short display options specific to this package
  1213. --help=recursive display the short help of all the included packages
  1214. -V, --version display version information and exit
  1215. -q, --quiet, --silent do not print \`checking ...' messages
  1216. --cache-file=FILE cache test results in FILE [disabled]
  1217. -C, --config-cache alias for \`--cache-file=config.cache'
  1218. -n, --no-create do not create output files
  1219. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1220. Installation directories:
  1221. --prefix=PREFIX install architecture-independent files in PREFIX
  1222. [$ac_default_prefix]
  1223. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1224. [PREFIX]
  1225. By default, \`make install' will install all the files in
  1226. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1227. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1228. for instance \`--prefix=\$HOME'.
  1229. For better control, use the options below.
  1230. Fine tuning of the installation directories:
  1231. --bindir=DIR user executables [EPREFIX/bin]
  1232. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1233. --libexecdir=DIR program executables [EPREFIX/libexec]
  1234. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1235. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1236. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1237. --libdir=DIR object code libraries [EPREFIX/lib]
  1238. --includedir=DIR C header files [PREFIX/include]
  1239. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1240. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1241. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1242. --infodir=DIR info documentation [DATAROOTDIR/info]
  1243. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1244. --mandir=DIR man documentation [DATAROOTDIR/man]
  1245. --docdir=DIR documentation root [DATAROOTDIR/doc/libthree_rates]
  1246. --htmldir=DIR html documentation [DOCDIR]
  1247. --dvidir=DIR dvi documentation [DOCDIR]
  1248. --pdfdir=DIR pdf documentation [DOCDIR]
  1249. --psdir=DIR ps documentation [DOCDIR]
  1250. _ACEOF
  1251. cat <<\_ACEOF
  1252. Program names:
  1253. --program-prefix=PREFIX prepend PREFIX to installed program names
  1254. --program-suffix=SUFFIX append SUFFIX to installed program names
  1255. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1256. System types:
  1257. --build=BUILD configure for building on BUILD [guessed]
  1258. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of libthree_rates 1.0:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-silent-rules less verbose build output (undo: "make V=1")
  1271. --disable-silent-rules verbose build output (undo: "make V=0")
  1272. --enable-dependency-tracking
  1273. do not reject slow dependency extractors
  1274. --disable-dependency-tracking
  1275. speeds up one-time build
  1276. --enable-shared[=PKGS] build shared libraries [default=yes]
  1277. --enable-static[=PKGS] build static libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-sysroot=DIR Search for dependent libraries within DIR
  1288. (or the compiler's sysroot if not specified).
  1289. Some influential environment variables:
  1290. CXX C++ compiler command
  1291. CXXFLAGS C++ compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. CPP C preprocessor
  1300. CXXCPP C++ preprocessor
  1301. Use these variables to override the choices made by `configure' or to help
  1302. it to find libraries and programs with nonstandard names/locations.
  1303. Report bugs to <zhuyunfei@zh3x.cn>.
  1304. _ACEOF
  1305. ac_status=$?
  1306. fi
  1307. if test "$ac_init_help" = "recursive"; then
  1308. # If there are subdirs, report their specific --help.
  1309. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1310. test -d "$ac_dir" ||
  1311. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1312. continue
  1313. ac_builddir=.
  1314. case "$ac_dir" in
  1315. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1316. *)
  1317. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1318. # A ".." for each directory in $ac_dir_suffix.
  1319. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1320. case $ac_top_builddir_sub in
  1321. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1323. esac ;;
  1324. esac
  1325. ac_abs_top_builddir=$ac_pwd
  1326. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1327. # for backward compatibility:
  1328. ac_top_builddir=$ac_top_build_prefix
  1329. case $srcdir in
  1330. .) # We are building in place.
  1331. ac_srcdir=.
  1332. ac_top_srcdir=$ac_top_builddir_sub
  1333. ac_abs_top_srcdir=$ac_pwd ;;
  1334. [\\/]* | ?:[\\/]* ) # Absolute name.
  1335. ac_srcdir=$srcdir$ac_dir_suffix;
  1336. ac_top_srcdir=$srcdir
  1337. ac_abs_top_srcdir=$srcdir ;;
  1338. *) # Relative name.
  1339. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1340. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1341. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1342. esac
  1343. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1344. cd "$ac_dir" || { ac_status=$?; continue; }
  1345. # Check for guested configure.
  1346. if test -f "$ac_srcdir/configure.gnu"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1349. elif test -f "$ac_srcdir/configure"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure" --help=recursive
  1352. else
  1353. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1354. fi || ac_status=$?
  1355. cd "$ac_pwd" || { ac_status=$?; break; }
  1356. done
  1357. fi
  1358. test -n "$ac_init_help" && exit $ac_status
  1359. if $ac_init_version; then
  1360. cat <<\_ACEOF
  1361. libthree_rates configure 1.0
  1362. generated by GNU Autoconf 2.69
  1363. Copyright (C) 2012 Free Software Foundation, Inc.
  1364. This configure script is free software; the Free Software Foundation
  1365. gives unlimited permission to copy, distribute and modify it.
  1366. _ACEOF
  1367. exit
  1368. fi
  1369. ## ------------------------ ##
  1370. ## Autoconf initialization. ##
  1371. ## ------------------------ ##
  1372. # ac_fn_cxx_try_compile LINENO
  1373. # ----------------------------
  1374. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_cxx_try_compile ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. rm -f conftest.$ac_objext
  1379. if { { ac_try="$ac_compile"
  1380. case "(($ac_try" in
  1381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1382. *) ac_try_echo=$ac_try;;
  1383. esac
  1384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1385. $as_echo "$ac_try_echo"; } >&5
  1386. (eval "$ac_compile") 2>conftest.err
  1387. ac_status=$?
  1388. if test -s conftest.err; then
  1389. grep -v '^ *+' conftest.err >conftest.er1
  1390. cat conftest.er1 >&5
  1391. mv -f conftest.er1 conftest.err
  1392. fi
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; } && {
  1395. test -z "$ac_cxx_werror_flag" ||
  1396. test ! -s conftest.err
  1397. } && test -s conftest.$ac_objext; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_compile
  1407. # ac_fn_c_try_compile LINENO
  1408. # --------------------------
  1409. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_c_try_compile ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. rm -f conftest.$ac_objext
  1414. if { { ac_try="$ac_compile"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_compile") 2>conftest.err
  1422. ac_status=$?
  1423. if test -s conftest.err; then
  1424. grep -v '^ *+' conftest.err >conftest.er1
  1425. cat conftest.er1 >&5
  1426. mv -f conftest.er1 conftest.err
  1427. fi
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && {
  1430. test -z "$ac_c_werror_flag" ||
  1431. test ! -s conftest.err
  1432. } && test -s conftest.$ac_objext; then :
  1433. ac_retval=0
  1434. else
  1435. $as_echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. ac_retval=1
  1438. fi
  1439. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1440. as_fn_set_status $ac_retval
  1441. } # ac_fn_c_try_compile
  1442. # ac_fn_c_try_link LINENO
  1443. # -----------------------
  1444. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1445. ac_fn_c_try_link ()
  1446. {
  1447. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. rm -f conftest.$ac_objext conftest$ac_exeext
  1449. if { { ac_try="$ac_link"
  1450. case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_link") 2>conftest.err
  1457. ac_status=$?
  1458. if test -s conftest.err; then
  1459. grep -v '^ *+' conftest.err >conftest.er1
  1460. cat conftest.er1 >&5
  1461. mv -f conftest.er1 conftest.err
  1462. fi
  1463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1464. test $ac_status = 0; } && {
  1465. test -z "$ac_c_werror_flag" ||
  1466. test ! -s conftest.err
  1467. } && test -s conftest$ac_exeext && {
  1468. test "$cross_compiling" = yes ||
  1469. test -x conftest$ac_exeext
  1470. }; then :
  1471. ac_retval=0
  1472. else
  1473. $as_echo "$as_me: failed program was:" >&5
  1474. sed 's/^/| /' conftest.$ac_ext >&5
  1475. ac_retval=1
  1476. fi
  1477. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1478. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1479. # interfere with the next link command; also delete a directory that is
  1480. # left behind by Apple's compiler. We do this before executing the actions.
  1481. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1482. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. as_fn_set_status $ac_retval
  1484. } # ac_fn_c_try_link
  1485. # ac_fn_c_try_cpp LINENO
  1486. # ----------------------
  1487. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1488. ac_fn_c_try_cpp ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1492. case "(($ac_try" in
  1493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1494. *) ac_try_echo=$ac_try;;
  1495. esac
  1496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1497. $as_echo "$ac_try_echo"; } >&5
  1498. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1499. ac_status=$?
  1500. if test -s conftest.err; then
  1501. grep -v '^ *+' conftest.err >conftest.er1
  1502. cat conftest.er1 >&5
  1503. mv -f conftest.er1 conftest.err
  1504. fi
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } > conftest.i && {
  1507. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1508. test ! -s conftest.err
  1509. }; then :
  1510. ac_retval=0
  1511. else
  1512. $as_echo "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=1
  1515. fi
  1516. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_c_try_cpp
  1519. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1520. # -------------------------------------------------------
  1521. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1522. # the include files in INCLUDES and setting the cache variable VAR
  1523. # accordingly.
  1524. ac_fn_c_check_header_mongrel ()
  1525. {
  1526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1527. if eval \${$3+:} false; then :
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1529. $as_echo_n "checking for $2... " >&6; }
  1530. if eval \${$3+:} false; then :
  1531. $as_echo_n "(cached) " >&6
  1532. fi
  1533. eval ac_res=\$$3
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1535. $as_echo "$ac_res" >&6; }
  1536. else
  1537. # Is the header compilable?
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1539. $as_echo_n "checking $2 usability... " >&6; }
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. #include <$2>
  1544. _ACEOF
  1545. if ac_fn_c_try_compile "$LINENO"; then :
  1546. ac_header_compiler=yes
  1547. else
  1548. ac_header_compiler=no
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1552. $as_echo "$ac_header_compiler" >&6; }
  1553. # Is the header present?
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1555. $as_echo_n "checking $2 presence... " >&6; }
  1556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1557. /* end confdefs.h. */
  1558. #include <$2>
  1559. _ACEOF
  1560. if ac_fn_c_try_cpp "$LINENO"; then :
  1561. ac_header_preproc=yes
  1562. else
  1563. ac_header_preproc=no
  1564. fi
  1565. rm -f conftest.err conftest.i conftest.$ac_ext
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1567. $as_echo "$ac_header_preproc" >&6; }
  1568. # So? What about this header?
  1569. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1570. yes:no: )
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1572. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1574. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1575. ;;
  1576. no:yes:* )
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1578. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1580. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1582. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1584. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1586. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1587. ( $as_echo "## -------------------------------- ##
  1588. ## Report this to zhuyunfei@zh3x.cn ##
  1589. ## -------------------------------- ##"
  1590. ) | sed "s/^/$as_me: WARNING: /" >&2
  1591. ;;
  1592. esac
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1594. $as_echo_n "checking for $2... " >&6; }
  1595. if eval \${$3+:} false; then :
  1596. $as_echo_n "(cached) " >&6
  1597. else
  1598. eval "$3=\$ac_header_compiler"
  1599. fi
  1600. eval ac_res=\$$3
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1602. $as_echo "$ac_res" >&6; }
  1603. fi
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. } # ac_fn_c_check_header_mongrel
  1606. # ac_fn_c_try_run LINENO
  1607. # ----------------------
  1608. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1609. # that executables *can* be run.
  1610. ac_fn_c_try_run ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. if { { ac_try="$ac_link"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_link") 2>&5
  1621. ac_status=$?
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1624. { { case "(($ac_try" in
  1625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1626. *) ac_try_echo=$ac_try;;
  1627. esac
  1628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1629. $as_echo "$ac_try_echo"; } >&5
  1630. (eval "$ac_try") 2>&5
  1631. ac_status=$?
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; }; }; then :
  1634. ac_retval=0
  1635. else
  1636. $as_echo "$as_me: program exited with status $ac_status" >&5
  1637. $as_echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. ac_retval=$ac_status
  1640. fi
  1641. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1642. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1643. as_fn_set_status $ac_retval
  1644. } # ac_fn_c_try_run
  1645. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1646. # -------------------------------------------------------
  1647. # Tests whether HEADER exists and can be compiled using the include files in
  1648. # INCLUDES, setting the cache variable VAR accordingly.
  1649. ac_fn_c_check_header_compile ()
  1650. {
  1651. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1653. $as_echo_n "checking for $2... " >&6; }
  1654. if eval \${$3+:} false; then :
  1655. $as_echo_n "(cached) " >&6
  1656. else
  1657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1658. /* end confdefs.h. */
  1659. $4
  1660. #include <$2>
  1661. _ACEOF
  1662. if ac_fn_c_try_compile "$LINENO"; then :
  1663. eval "$3=yes"
  1664. else
  1665. eval "$3=no"
  1666. fi
  1667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1668. fi
  1669. eval ac_res=\$$3
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1671. $as_echo "$ac_res" >&6; }
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. } # ac_fn_c_check_header_compile
  1674. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1675. # -------------------------------------------
  1676. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1677. # variable VAR accordingly.
  1678. ac_fn_c_check_type ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1682. $as_echo_n "checking for $2... " >&6; }
  1683. if eval \${$3+:} false; then :
  1684. $as_echo_n "(cached) " >&6
  1685. else
  1686. eval "$3=no"
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. $4
  1690. int
  1691. main ()
  1692. {
  1693. if (sizeof ($2))
  1694. return 0;
  1695. ;
  1696. return 0;
  1697. }
  1698. _ACEOF
  1699. if ac_fn_c_try_compile "$LINENO"; then :
  1700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end confdefs.h. */
  1702. $4
  1703. int
  1704. main ()
  1705. {
  1706. if (sizeof (($2)))
  1707. return 0;
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"; then :
  1713. else
  1714. eval "$3=yes"
  1715. fi
  1716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. } # ac_fn_c_check_type
  1725. # ac_fn_c_find_intX_t LINENO BITS VAR
  1726. # -----------------------------------
  1727. # Finds a signed integer type with width BITS, setting cache variable VAR
  1728. # accordingly.
  1729. ac_fn_c_find_intX_t ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1733. $as_echo_n "checking for int$2_t... " >&6; }
  1734. if eval \${$3+:} false; then :
  1735. $as_echo_n "(cached) " >&6
  1736. else
  1737. eval "$3=no"
  1738. # Order is important - never check a type that is potentially smaller
  1739. # than half of the expected target width.
  1740. for ac_type in int$2_t 'int' 'long int' \
  1741. 'long long int' 'short int' 'signed char'; do
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. $ac_includes_default
  1745. enum { N = $2 / 2 - 1 };
  1746. int
  1747. main ()
  1748. {
  1749. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1750. test_array [0] = 0;
  1751. return test_array [0];
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $ac_includes_default
  1760. enum { N = $2 / 2 - 1 };
  1761. int
  1762. main ()
  1763. {
  1764. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1765. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1766. test_array [0] = 0;
  1767. return test_array [0];
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_compile "$LINENO"; then :
  1773. else
  1774. case $ac_type in #(
  1775. int$2_t) :
  1776. eval "$3=yes" ;; #(
  1777. *) :
  1778. eval "$3=\$ac_type" ;;
  1779. esac
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. if eval test \"x\$"$3"\" = x"no"; then :
  1785. else
  1786. break
  1787. fi
  1788. done
  1789. fi
  1790. eval ac_res=\$$3
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1792. $as_echo "$ac_res" >&6; }
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. } # ac_fn_c_find_intX_t
  1795. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1796. # ------------------------------------
  1797. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1798. # accordingly.
  1799. ac_fn_c_find_uintX_t ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1803. $as_echo_n "checking for uint$2_t... " >&6; }
  1804. if eval \${$3+:} false; then :
  1805. $as_echo_n "(cached) " >&6
  1806. else
  1807. eval "$3=no"
  1808. # Order is important - never check a type that is potentially smaller
  1809. # than half of the expected target width.
  1810. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1811. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h. */
  1814. $ac_includes_default
  1815. int
  1816. main ()
  1817. {
  1818. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1819. test_array [0] = 0;
  1820. return test_array [0];
  1821. ;
  1822. return 0;
  1823. }
  1824. _ACEOF
  1825. if ac_fn_c_try_compile "$LINENO"; then :
  1826. case $ac_type in #(
  1827. uint$2_t) :
  1828. eval "$3=yes" ;; #(
  1829. *) :
  1830. eval "$3=\$ac_type" ;;
  1831. esac
  1832. fi
  1833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1834. if eval test \"x\$"$3"\" = x"no"; then :
  1835. else
  1836. break
  1837. fi
  1838. done
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_find_uintX_t
  1845. # ac_fn_c_check_func LINENO FUNC VAR
  1846. # ----------------------------------
  1847. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1848. ac_fn_c_check_func ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1852. $as_echo_n "checking for $2... " >&6; }
  1853. if eval \${$3+:} false; then :
  1854. $as_echo_n "(cached) " >&6
  1855. else
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1860. #define $2 innocuous_$2
  1861. /* System header to define __stub macros and hopefully few prototypes,
  1862. which can conflict with char $2 (); below.
  1863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1864. <limits.h> exists even on freestanding compilers. */
  1865. #ifdef __STDC__
  1866. # include <limits.h>
  1867. #else
  1868. # include <assert.h>
  1869. #endif
  1870. #undef $2
  1871. /* Override any GCC internal prototype to avoid an error.
  1872. Use char because int might match the return type of a GCC
  1873. builtin and then its argument prototype would still apply. */
  1874. #ifdef __cplusplus
  1875. extern "C"
  1876. #endif
  1877. char $2 ();
  1878. /* The GNU C library defines this for functions which it implements
  1879. to always fail with ENOSYS. Some functions are actually named
  1880. something starting with __ and the normal name is an alias. */
  1881. #if defined __stub_$2 || defined __stub___$2
  1882. choke me
  1883. #endif
  1884. int
  1885. main ()
  1886. {
  1887. return $2 ();
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. if ac_fn_c_try_link "$LINENO"; then :
  1893. eval "$3=yes"
  1894. else
  1895. eval "$3=no"
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext \
  1898. conftest$ac_exeext conftest.$ac_ext
  1899. fi
  1900. eval ac_res=\$$3
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1902. $as_echo "$ac_res" >&6; }
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. } # ac_fn_c_check_func
  1905. # ac_fn_cxx_try_cpp LINENO
  1906. # ------------------------
  1907. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1908. ac_fn_cxx_try_cpp ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1912. case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1917. $as_echo "$ac_try_echo"; } >&5
  1918. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1919. ac_status=$?
  1920. if test -s conftest.err; then
  1921. grep -v '^ *+' conftest.err >conftest.er1
  1922. cat conftest.er1 >&5
  1923. mv -f conftest.er1 conftest.err
  1924. fi
  1925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926. test $ac_status = 0; } > conftest.i && {
  1927. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. }; then :
  1930. ac_retval=0
  1931. else
  1932. $as_echo "$as_me: failed program was:" >&5
  1933. sed 's/^/| /' conftest.$ac_ext >&5
  1934. ac_retval=1
  1935. fi
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. as_fn_set_status $ac_retval
  1938. } # ac_fn_cxx_try_cpp
  1939. # ac_fn_cxx_try_link LINENO
  1940. # -------------------------
  1941. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1942. ac_fn_cxx_try_link ()
  1943. {
  1944. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1945. rm -f conftest.$ac_objext conftest$ac_exeext
  1946. if { { ac_try="$ac_link"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1952. $as_echo "$ac_try_echo"; } >&5
  1953. (eval "$ac_link") 2>conftest.err
  1954. ac_status=$?
  1955. if test -s conftest.err; then
  1956. grep -v '^ *+' conftest.err >conftest.er1
  1957. cat conftest.er1 >&5
  1958. mv -f conftest.er1 conftest.err
  1959. fi
  1960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1961. test $ac_status = 0; } && {
  1962. test -z "$ac_cxx_werror_flag" ||
  1963. test ! -s conftest.err
  1964. } && test -s conftest$ac_exeext && {
  1965. test "$cross_compiling" = yes ||
  1966. test -x conftest$ac_exeext
  1967. }; then :
  1968. ac_retval=0
  1969. else
  1970. $as_echo "$as_me: failed program was:" >&5
  1971. sed 's/^/| /' conftest.$ac_ext >&5
  1972. ac_retval=1
  1973. fi
  1974. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1975. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1976. # interfere with the next link command; also delete a directory that is
  1977. # left behind by Apple's compiler. We do this before executing the actions.
  1978. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1979. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1980. as_fn_set_status $ac_retval
  1981. } # ac_fn_cxx_try_link
  1982. cat >config.log <<_ACEOF
  1983. This file contains any messages produced by compilers while
  1984. running configure, to aid debugging if configure makes a mistake.
  1985. It was created by libthree_rates $as_me 1.0, which was
  1986. generated by GNU Autoconf 2.69. Invocation command line was
  1987. $ $0 $@
  1988. _ACEOF
  1989. exec 5>>config.log
  1990. {
  1991. cat <<_ASUNAME
  1992. ## --------- ##
  1993. ## Platform. ##
  1994. ## --------- ##
  1995. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1996. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1997. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1998. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1999. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2000. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2001. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2002. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2003. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2004. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2005. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2006. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2007. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2008. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2009. _ASUNAME
  2010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2011. for as_dir in $PATH
  2012. do
  2013. IFS=$as_save_IFS
  2014. test -z "$as_dir" && as_dir=.
  2015. $as_echo "PATH: $as_dir"
  2016. done
  2017. IFS=$as_save_IFS
  2018. } >&5
  2019. cat >&5 <<_ACEOF
  2020. ## ----------- ##
  2021. ## Core tests. ##
  2022. ## ----------- ##
  2023. _ACEOF
  2024. # Keep a trace of the command line.
  2025. # Strip out --no-create and --no-recursion so they do not pile up.
  2026. # Strip out --silent because we don't want to record it for future runs.
  2027. # Also quote any args containing shell meta-characters.
  2028. # Make two passes to allow for proper duplicate-argument suppression.
  2029. ac_configure_args=
  2030. ac_configure_args0=
  2031. ac_configure_args1=
  2032. ac_must_keep_next=false
  2033. for ac_pass in 1 2
  2034. do
  2035. for ac_arg
  2036. do
  2037. case $ac_arg in
  2038. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2039. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2040. | -silent | --silent | --silen | --sile | --sil)
  2041. continue ;;
  2042. *\'*)
  2043. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2044. esac
  2045. case $ac_pass in
  2046. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2047. 2)
  2048. as_fn_append ac_configure_args1 " '$ac_arg'"
  2049. if test $ac_must_keep_next = true; then
  2050. ac_must_keep_next=false # Got value, back to normal.
  2051. else
  2052. case $ac_arg in
  2053. *=* | --config-cache | -C | -disable-* | --disable-* \
  2054. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2055. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2056. | -with-* | --with-* | -without-* | --without-* | --x)
  2057. case "$ac_configure_args0 " in
  2058. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2059. esac
  2060. ;;
  2061. -* ) ac_must_keep_next=true ;;
  2062. esac
  2063. fi
  2064. as_fn_append ac_configure_args " '$ac_arg'"
  2065. ;;
  2066. esac
  2067. done
  2068. done
  2069. { ac_configure_args0=; unset ac_configure_args0;}
  2070. { ac_configure_args1=; unset ac_configure_args1;}
  2071. # When interrupted or exit'd, cleanup temporary files, and complete
  2072. # config.log. We remove comments because anyway the quotes in there
  2073. # would cause problems or look ugly.
  2074. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2075. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2076. trap 'exit_status=$?
  2077. # Save into config.log some information that might help in debugging.
  2078. {
  2079. echo
  2080. $as_echo "## ---------------- ##
  2081. ## Cache variables. ##
  2082. ## ---------------- ##"
  2083. echo
  2084. # The following way of writing the cache mishandles newlines in values,
  2085. (
  2086. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2087. eval ac_val=\$$ac_var
  2088. case $ac_val in #(
  2089. *${as_nl}*)
  2090. case $ac_var in #(
  2091. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2092. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2093. esac
  2094. case $ac_var in #(
  2095. _ | IFS | as_nl) ;; #(
  2096. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2097. *) { eval $ac_var=; unset $ac_var;} ;;
  2098. esac ;;
  2099. esac
  2100. done
  2101. (set) 2>&1 |
  2102. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2103. *${as_nl}ac_space=\ *)
  2104. sed -n \
  2105. "s/'\''/'\''\\\\'\'''\''/g;
  2106. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2107. ;; #(
  2108. *)
  2109. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2110. ;;
  2111. esac |
  2112. sort
  2113. )
  2114. echo
  2115. $as_echo "## ----------------- ##
  2116. ## Output variables. ##
  2117. ## ----------------- ##"
  2118. echo
  2119. for ac_var in $ac_subst_vars
  2120. do
  2121. eval ac_val=\$$ac_var
  2122. case $ac_val in
  2123. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2124. esac
  2125. $as_echo "$ac_var='\''$ac_val'\''"
  2126. done | sort
  2127. echo
  2128. if test -n "$ac_subst_files"; then
  2129. $as_echo "## ------------------- ##
  2130. ## File substitutions. ##
  2131. ## ------------------- ##"
  2132. echo
  2133. for ac_var in $ac_subst_files
  2134. do
  2135. eval ac_val=\$$ac_var
  2136. case $ac_val in
  2137. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2138. esac
  2139. $as_echo "$ac_var='\''$ac_val'\''"
  2140. done | sort
  2141. echo
  2142. fi
  2143. if test -s confdefs.h; then
  2144. $as_echo "## ----------- ##
  2145. ## confdefs.h. ##
  2146. ## ----------- ##"
  2147. echo
  2148. cat confdefs.h
  2149. echo
  2150. fi
  2151. test "$ac_signal" != 0 &&
  2152. $as_echo "$as_me: caught signal $ac_signal"
  2153. $as_echo "$as_me: exit $exit_status"
  2154. } >&5
  2155. rm -f core *.core core.conftest.* &&
  2156. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2157. exit $exit_status
  2158. ' 0
  2159. for ac_signal in 1 2 13 15; do
  2160. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2161. done
  2162. ac_signal=0
  2163. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2164. rm -f -r conftest* confdefs.h
  2165. $as_echo "/* confdefs.h */" > confdefs.h
  2166. # Predefined preprocessor variables.
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_NAME "$PACKAGE_NAME"
  2169. _ACEOF
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2172. _ACEOF
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_STRING "$PACKAGE_STRING"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_URL "$PACKAGE_URL"
  2184. _ACEOF
  2185. # Let the site file select an alternate cache file if it wants to.
  2186. # Prefer an explicitly selected file to automatically selected ones.
  2187. ac_site_file1=NONE
  2188. ac_site_file2=NONE
  2189. if test -n "$CONFIG_SITE"; then
  2190. # We do not want a PATH search for config.site.
  2191. case $CONFIG_SITE in #((
  2192. -*) ac_site_file1=./$CONFIG_SITE;;
  2193. */*) ac_site_file1=$CONFIG_SITE;;
  2194. *) ac_site_file1=./$CONFIG_SITE;;
  2195. esac
  2196. elif test "x$prefix" != xNONE; then
  2197. ac_site_file1=$prefix/share/config.site
  2198. ac_site_file2=$prefix/etc/config.site
  2199. else
  2200. ac_site_file1=$ac_default_prefix/share/config.site
  2201. ac_site_file2=$ac_default_prefix/etc/config.site
  2202. fi
  2203. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2204. do
  2205. test "x$ac_site_file" = xNONE && continue
  2206. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2208. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2209. sed 's/^/| /' "$ac_site_file" >&5
  2210. . "$ac_site_file" \
  2211. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2213. as_fn_error $? "failed to load site script $ac_site_file
  2214. See \`config.log' for more details" "$LINENO" 5; }
  2215. fi
  2216. done
  2217. if test -r "$cache_file"; then
  2218. # Some versions of bash will fail to source /dev/null (special files
  2219. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2220. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2222. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2223. case $cache_file in
  2224. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2225. *) . "./$cache_file";;
  2226. esac
  2227. fi
  2228. else
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2230. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2231. >$cache_file
  2232. fi
  2233. as_fn_append ac_header_list " sys/time.h"
  2234. as_fn_append ac_header_list " unistd.h"
  2235. as_fn_append ac_func_list " alarm"
  2236. # Check that the precious variables saved in the cache have kept the same
  2237. # value.
  2238. ac_cache_corrupted=false
  2239. for ac_var in $ac_precious_vars; do
  2240. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2241. eval ac_new_set=\$ac_env_${ac_var}_set
  2242. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2243. eval ac_new_val=\$ac_env_${ac_var}_value
  2244. case $ac_old_set,$ac_new_set in
  2245. set,)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2247. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2248. ac_cache_corrupted=: ;;
  2249. ,set)
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2251. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2252. ac_cache_corrupted=: ;;
  2253. ,);;
  2254. *)
  2255. if test "x$ac_old_val" != "x$ac_new_val"; then
  2256. # differences in whitespace do not lead to failure.
  2257. ac_old_val_w=`echo x $ac_old_val`
  2258. ac_new_val_w=`echo x $ac_new_val`
  2259. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2261. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2262. ac_cache_corrupted=:
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2265. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2266. eval $ac_var=\$ac_old_val
  2267. fi
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2269. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2271. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2272. fi;;
  2273. esac
  2274. # Pass precious variables to config.status.
  2275. if test "$ac_new_set" = set; then
  2276. case $ac_new_val in
  2277. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2278. *) ac_arg=$ac_var=$ac_new_val ;;
  2279. esac
  2280. case " $ac_configure_args " in
  2281. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2282. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2283. esac
  2284. fi
  2285. done
  2286. if $ac_cache_corrupted; then
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2290. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2291. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2292. fi
  2293. ## -------------------- ##
  2294. ## Main body of script. ##
  2295. ## -------------------- ##
  2296. ac_ext=c
  2297. ac_cpp='$CPP $CPPFLAGS'
  2298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2301. ac_config_headers="$ac_config_headers config.h"
  2302. am__api_version='1.13'
  2303. ac_aux_dir=
  2304. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2305. if test -f "$ac_dir/install-sh"; then
  2306. ac_aux_dir=$ac_dir
  2307. ac_install_sh="$ac_aux_dir/install-sh -c"
  2308. break
  2309. elif test -f "$ac_dir/install.sh"; then
  2310. ac_aux_dir=$ac_dir
  2311. ac_install_sh="$ac_aux_dir/install.sh -c"
  2312. break
  2313. elif test -f "$ac_dir/shtool"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/shtool install -c"
  2316. break
  2317. fi
  2318. done
  2319. if test -z "$ac_aux_dir"; then
  2320. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2321. fi
  2322. # These three variables are undocumented and unsupported,
  2323. # and are intended to be withdrawn in a future Autoconf release.
  2324. # They can cause serious problems if a builder's source tree is in a directory
  2325. # whose full name contains unusual characters.
  2326. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2327. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2328. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2329. # Find a good install program. We prefer a C program (faster),
  2330. # so one script is as good as another. But avoid the broken or
  2331. # incompatible versions:
  2332. # SysV /etc/install, /usr/sbin/install
  2333. # SunOS /usr/etc/install
  2334. # IRIX /sbin/install
  2335. # AIX /bin/install
  2336. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2337. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2338. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2339. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2340. # OS/2's system install, which has a completely different semantic
  2341. # ./install, which can be erroneously created by make from ./install.sh.
  2342. # Reject install programs that cannot install multiple files.
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2344. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2345. if test -z "$INSTALL"; then
  2346. if ${ac_cv_path_install+:} false; then :
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. # Account for people who put trailing slashes in PATH elements.
  2355. case $as_dir/ in #((
  2356. ./ | .// | /[cC]/* | \
  2357. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2358. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2359. /usr/ucb/* ) ;;
  2360. *)
  2361. # OSF1 and SCO ODT 3.0 have their own names for install.
  2362. # Don't use installbsd from OSF since it installs stuff as root
  2363. # by default.
  2364. for ac_prog in ginstall scoinst install; do
  2365. for ac_exec_ext in '' $ac_executable_extensions; do
  2366. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2367. if test $ac_prog = install &&
  2368. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2369. # AIX install. It has an incompatible calling convention.
  2370. :
  2371. elif test $ac_prog = install &&
  2372. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2373. # program-specific install script used by HP pwplus--don't use.
  2374. :
  2375. else
  2376. rm -rf conftest.one conftest.two conftest.dir
  2377. echo one > conftest.one
  2378. echo two > conftest.two
  2379. mkdir conftest.dir
  2380. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2381. test -s conftest.one && test -s conftest.two &&
  2382. test -s conftest.dir/conftest.one &&
  2383. test -s conftest.dir/conftest.two
  2384. then
  2385. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2386. break 3
  2387. fi
  2388. fi
  2389. fi
  2390. done
  2391. done
  2392. ;;
  2393. esac
  2394. done
  2395. IFS=$as_save_IFS
  2396. rm -rf conftest.one conftest.two conftest.dir
  2397. fi
  2398. if test "${ac_cv_path_install+set}" = set; then
  2399. INSTALL=$ac_cv_path_install
  2400. else
  2401. # As a last resort, use the slow shell script. Don't cache a
  2402. # value for INSTALL within a source directory, because that will
  2403. # break other packages using the cache if that directory is
  2404. # removed, or if the value is a relative name.
  2405. INSTALL=$ac_install_sh
  2406. fi
  2407. fi
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2409. $as_echo "$INSTALL" >&6; }
  2410. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2411. # It thinks the first close brace ends the variable substitution.
  2412. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2413. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2414. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2416. $as_echo_n "checking whether build environment is sane... " >&6; }
  2417. # Reject unsafe characters in $srcdir or the absolute working directory
  2418. # name. Accept space and tab only in the latter.
  2419. am_lf='
  2420. '
  2421. case `pwd` in
  2422. *[\\\"\#\$\&\'\`$am_lf]*)
  2423. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2424. esac
  2425. case $srcdir in
  2426. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2427. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2428. esac
  2429. # Do 'set' in a subshell so we don't clobber the current shell's
  2430. # arguments. Must try -L first in case configure is actually a
  2431. # symlink; some systems play weird games with the mod time of symlinks
  2432. # (eg FreeBSD returns the mod time of the symlink's containing
  2433. # directory).
  2434. if (
  2435. am_has_slept=no
  2436. for am_try in 1 2; do
  2437. echo "timestamp, slept: $am_has_slept" > conftest.file
  2438. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2439. if test "$*" = "X"; then
  2440. # -L didn't work.
  2441. set X `ls -t "$srcdir/configure" conftest.file`
  2442. fi
  2443. if test "$*" != "X $srcdir/configure conftest.file" \
  2444. && test "$*" != "X conftest.file $srcdir/configure"; then
  2445. # If neither matched, then we have a broken ls. This can happen
  2446. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2447. # broken ls alias from the environment. This has actually
  2448. # happened. Such a system could not be considered "sane".
  2449. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2450. alias in your environment" "$LINENO" 5
  2451. fi
  2452. if test "$2" = conftest.file || test $am_try -eq 2; then
  2453. break
  2454. fi
  2455. # Just in case.
  2456. sleep 1
  2457. am_has_slept=yes
  2458. done
  2459. test "$2" = conftest.file
  2460. )
  2461. then
  2462. # Ok.
  2463. :
  2464. else
  2465. as_fn_error $? "newly created file is older than distributed files!
  2466. Check your system clock" "$LINENO" 5
  2467. fi
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2469. $as_echo "yes" >&6; }
  2470. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2471. # generated files are strictly newer.
  2472. am_sleep_pid=
  2473. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2474. ( sleep 1 ) &
  2475. am_sleep_pid=$!
  2476. fi
  2477. rm -f conftest.file
  2478. test "$program_prefix" != NONE &&
  2479. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2480. # Use a double $ so make ignores it.
  2481. test "$program_suffix" != NONE &&
  2482. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2483. # Double any \ or $.
  2484. # By default was `s,x,x', remove it if useless.
  2485. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2486. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2487. # expand $ac_aux_dir to an absolute path
  2488. am_aux_dir=`cd $ac_aux_dir && pwd`
  2489. if test x"${MISSING+set}" != xset; then
  2490. case $am_aux_dir in
  2491. *\ * | *\ *)
  2492. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2493. *)
  2494. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2495. esac
  2496. fi
  2497. # Use eval to expand $SHELL
  2498. if eval "$MISSING --is-lightweight"; then
  2499. am_missing_run="$MISSING "
  2500. else
  2501. am_missing_run=
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2503. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2504. fi
  2505. if test x"${install_sh}" != xset; then
  2506. case $am_aux_dir in
  2507. *\ * | *\ *)
  2508. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2509. *)
  2510. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2511. esac
  2512. fi
  2513. # Installed binaries are usually stripped using 'strip' when the user
  2514. # run "make install-strip". However 'strip' might not be the right
  2515. # tool to use in cross-compilation environments, therefore Automake
  2516. # will honor the 'STRIP' environment variable to overrule this program.
  2517. if test "$cross_compiling" != no; then
  2518. if test -n "$ac_tool_prefix"; then
  2519. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2520. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2522. $as_echo_n "checking for $ac_word... " >&6; }
  2523. if ${ac_cv_prog_STRIP+:} false; then :
  2524. $as_echo_n "(cached) " >&6
  2525. else
  2526. if test -n "$STRIP"; then
  2527. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2528. else
  2529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2530. for as_dir in $PATH
  2531. do
  2532. IFS=$as_save_IFS
  2533. test -z "$as_dir" && as_dir=.
  2534. for ac_exec_ext in '' $ac_executable_extensions; do
  2535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2536. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2538. break 2
  2539. fi
  2540. done
  2541. done
  2542. IFS=$as_save_IFS
  2543. fi
  2544. fi
  2545. STRIP=$ac_cv_prog_STRIP
  2546. if test -n "$STRIP"; then
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2548. $as_echo "$STRIP" >&6; }
  2549. else
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2551. $as_echo "no" >&6; }
  2552. fi
  2553. fi
  2554. if test -z "$ac_cv_prog_STRIP"; then
  2555. ac_ct_STRIP=$STRIP
  2556. # Extract the first word of "strip", so it can be a program name with args.
  2557. set dummy strip; ac_word=$2
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2559. $as_echo_n "checking for $ac_word... " >&6; }
  2560. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2561. $as_echo_n "(cached) " >&6
  2562. else
  2563. if test -n "$ac_ct_STRIP"; then
  2564. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2565. else
  2566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2567. for as_dir in $PATH
  2568. do
  2569. IFS=$as_save_IFS
  2570. test -z "$as_dir" && as_dir=.
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2573. ac_cv_prog_ac_ct_STRIP="strip"
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. IFS=$as_save_IFS
  2580. fi
  2581. fi
  2582. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2583. if test -n "$ac_ct_STRIP"; then
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2585. $as_echo "$ac_ct_STRIP" >&6; }
  2586. else
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2588. $as_echo "no" >&6; }
  2589. fi
  2590. if test "x$ac_ct_STRIP" = x; then
  2591. STRIP=":"
  2592. else
  2593. case $cross_compiling:$ac_tool_warned in
  2594. yes:)
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2597. ac_tool_warned=yes ;;
  2598. esac
  2599. STRIP=$ac_ct_STRIP
  2600. fi
  2601. else
  2602. STRIP="$ac_cv_prog_STRIP"
  2603. fi
  2604. fi
  2605. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2607. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2608. if test -z "$MKDIR_P"; then
  2609. if ${ac_cv_path_mkdir+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. for ac_prog in mkdir gmkdir; do
  2618. for ac_exec_ext in '' $ac_executable_extensions; do
  2619. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2620. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2621. 'mkdir (GNU coreutils) '* | \
  2622. 'mkdir (coreutils) '* | \
  2623. 'mkdir (fileutils) '4.1*)
  2624. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2625. break 3;;
  2626. esac
  2627. done
  2628. done
  2629. done
  2630. IFS=$as_save_IFS
  2631. fi
  2632. test -d ./--version && rmdir ./--version
  2633. if test "${ac_cv_path_mkdir+set}" = set; then
  2634. MKDIR_P="$ac_cv_path_mkdir -p"
  2635. else
  2636. # As a last resort, use the slow shell script. Don't cache a
  2637. # value for MKDIR_P within a source directory, because that will
  2638. # break other packages using the cache if that directory is
  2639. # removed, or if the value is a relative name.
  2640. MKDIR_P="$ac_install_sh -d"
  2641. fi
  2642. fi
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2644. $as_echo "$MKDIR_P" >&6; }
  2645. for ac_prog in gawk mawk nawk awk
  2646. do
  2647. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2648. set dummy $ac_prog; ac_word=$2
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2650. $as_echo_n "checking for $ac_word... " >&6; }
  2651. if ${ac_cv_prog_AWK+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. if test -n "$AWK"; then
  2655. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2656. else
  2657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2658. for as_dir in $PATH
  2659. do
  2660. IFS=$as_save_IFS
  2661. test -z "$as_dir" && as_dir=.
  2662. for ac_exec_ext in '' $ac_executable_extensions; do
  2663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2664. ac_cv_prog_AWK="$ac_prog"
  2665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2666. break 2
  2667. fi
  2668. done
  2669. done
  2670. IFS=$as_save_IFS
  2671. fi
  2672. fi
  2673. AWK=$ac_cv_prog_AWK
  2674. if test -n "$AWK"; then
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2676. $as_echo "$AWK" >&6; }
  2677. else
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2679. $as_echo "no" >&6; }
  2680. fi
  2681. test -n "$AWK" && break
  2682. done
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2684. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2685. set x ${MAKE-make}
  2686. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2687. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. cat >conftest.make <<\_ACEOF
  2691. SHELL = /bin/sh
  2692. all:
  2693. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2694. _ACEOF
  2695. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2696. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2697. *@@@%%%=?*=@@@%%%*)
  2698. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2699. *)
  2700. eval ac_cv_prog_make_${ac_make}_set=no;;
  2701. esac
  2702. rm -f conftest.make
  2703. fi
  2704. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2706. $as_echo "yes" >&6; }
  2707. SET_MAKE=
  2708. else
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. SET_MAKE="MAKE=${MAKE-make}"
  2712. fi
  2713. rm -rf .tst 2>/dev/null
  2714. mkdir .tst 2>/dev/null
  2715. if test -d .tst; then
  2716. am__leading_dot=.
  2717. else
  2718. am__leading_dot=_
  2719. fi
  2720. rmdir .tst 2>/dev/null
  2721. # Check whether --enable-silent-rules was given.
  2722. if test "${enable_silent_rules+set}" = set; then :
  2723. enableval=$enable_silent_rules;
  2724. fi
  2725. case $enable_silent_rules in # (((
  2726. yes) AM_DEFAULT_VERBOSITY=0;;
  2727. no) AM_DEFAULT_VERBOSITY=1;;
  2728. *) AM_DEFAULT_VERBOSITY=1;;
  2729. esac
  2730. am_make=${MAKE-make}
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2732. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2733. if ${am_cv_make_support_nested_variables+:} false; then :
  2734. $as_echo_n "(cached) " >&6
  2735. else
  2736. if $as_echo 'TRUE=$(BAR$(V))
  2737. BAR0=false
  2738. BAR1=true
  2739. V=1
  2740. am__doit:
  2741. @$(TRUE)
  2742. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2743. am_cv_make_support_nested_variables=yes
  2744. else
  2745. am_cv_make_support_nested_variables=no
  2746. fi
  2747. fi
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2749. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2750. if test $am_cv_make_support_nested_variables = yes; then
  2751. AM_V='$(V)'
  2752. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2753. else
  2754. AM_V=$AM_DEFAULT_VERBOSITY
  2755. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2756. fi
  2757. AM_BACKSLASH='\'
  2758. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2759. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2760. # is not polluted with repeated "-I."
  2761. am__isrc=' -I$(srcdir)'
  2762. # test to see if srcdir already configured
  2763. if test -f $srcdir/config.status; then
  2764. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2765. fi
  2766. fi
  2767. # test whether we have cygpath
  2768. if test -z "$CYGPATH_W"; then
  2769. if (cygpath --version) >/dev/null 2>/dev/null; then
  2770. CYGPATH_W='cygpath -w'
  2771. else
  2772. CYGPATH_W=echo
  2773. fi
  2774. fi
  2775. # Define the identity of the package.
  2776. PACKAGE='libthree_rates'
  2777. VERSION='1.0'
  2778. cat >>confdefs.h <<_ACEOF
  2779. #define PACKAGE "$PACKAGE"
  2780. _ACEOF
  2781. cat >>confdefs.h <<_ACEOF
  2782. #define VERSION "$VERSION"
  2783. _ACEOF
  2784. # Some tools Automake needs.
  2785. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2786. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2787. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2788. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2789. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2790. # For better backward compatibility. To be removed once Automake 1.9.x
  2791. # dies out for good. For more background, see:
  2792. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2793. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2794. mkdir_p='$(MKDIR_P)'
  2795. # We need awk for the "check" target. The system "awk" is bad on
  2796. # some platforms.
  2797. # Always define AMTAR for backward compatibility. Yes, it's still used
  2798. # in the wild :-( We should find a proper way to deprecate it ...
  2799. AMTAR='$${TAR-tar}'
  2800. # We'll loop over all known methods to create a tar archive until one works.
  2801. _am_tools='gnutar pax cpio none'
  2802. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2803. # Checks for programs.
  2804. ac_ext=cpp
  2805. ac_cpp='$CXXCPP $CPPFLAGS'
  2806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2809. if test -z "$CXX"; then
  2810. if test -n "$CCC"; then
  2811. CXX=$CCC
  2812. else
  2813. if test -n "$ac_tool_prefix"; then
  2814. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2815. do
  2816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if ${ac_cv_prog_CXX+:} false; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$CXX"; then
  2824. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2833. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. CXX=$ac_cv_prog_CXX
  2843. if test -n "$CXX"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2845. $as_echo "$CXX" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. test -n "$CXX" && break
  2851. done
  2852. fi
  2853. if test -z "$CXX"; then
  2854. ac_ct_CXX=$CXX
  2855. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2856. do
  2857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2858. set dummy $ac_prog; ac_word=$2
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2860. $as_echo_n "checking for $ac_word... " >&6; }
  2861. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if test -n "$ac_ct_CXX"; then
  2865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2866. else
  2867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2868. for as_dir in $PATH
  2869. do
  2870. IFS=$as_save_IFS
  2871. test -z "$as_dir" && as_dir=.
  2872. for ac_exec_ext in '' $ac_executable_extensions; do
  2873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2876. break 2
  2877. fi
  2878. done
  2879. done
  2880. IFS=$as_save_IFS
  2881. fi
  2882. fi
  2883. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2884. if test -n "$ac_ct_CXX"; then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2886. $as_echo "$ac_ct_CXX" >&6; }
  2887. else
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. fi
  2891. test -n "$ac_ct_CXX" && break
  2892. done
  2893. if test "x$ac_ct_CXX" = x; then
  2894. CXX="g++"
  2895. else
  2896. case $cross_compiling:$ac_tool_warned in
  2897. yes:)
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2900. ac_tool_warned=yes ;;
  2901. esac
  2902. CXX=$ac_ct_CXX
  2903. fi
  2904. fi
  2905. fi
  2906. fi
  2907. # Provide some information about the compiler.
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2909. set X $ac_compile
  2910. ac_compiler=$2
  2911. for ac_option in --version -v -V -qversion; do
  2912. { { ac_try="$ac_compiler $ac_option >&5"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2920. ac_status=$?
  2921. if test -s conftest.err; then
  2922. sed '10a\
  2923. ... rest of stderr output deleted ...
  2924. 10q' conftest.err >conftest.er1
  2925. cat conftest.er1 >&5
  2926. fi
  2927. rm -f conftest.er1 conftest.err
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2929. test $ac_status = 0; }
  2930. done
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. ac_clean_files_save=$ac_clean_files
  2941. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2942. # Try to create an executable without -o first, disregard a.out.
  2943. # It will help us diagnose broken compilers, and finding out an intuition
  2944. # of exeext.
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2946. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2947. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2948. # The possible output files:
  2949. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2950. ac_rmfiles=
  2951. for ac_file in $ac_files
  2952. do
  2953. case $ac_file in
  2954. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2955. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2956. esac
  2957. done
  2958. rm -f $ac_rmfiles
  2959. if { { ac_try="$ac_link_default"
  2960. case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_link_default") 2>&5
  2967. ac_status=$?
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2969. test $ac_status = 0; }; then :
  2970. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2971. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2972. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2973. # so that the user can short-circuit this test for compilers unknown to
  2974. # Autoconf.
  2975. for ac_file in $ac_files ''
  2976. do
  2977. test -f "$ac_file" || continue
  2978. case $ac_file in
  2979. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2980. ;;
  2981. [ab].out )
  2982. # We found the default executable, but exeext='' is most
  2983. # certainly right.
  2984. break;;
  2985. *.* )
  2986. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2987. then :; else
  2988. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2989. fi
  2990. # We set ac_cv_exeext here because the later test for it is not
  2991. # safe: cross compilers may not add the suffix if given an `-o'
  2992. # argument, so we may need to know it at that point already.
  2993. # Even if this section looks crufty: it has the advantage of
  2994. # actually working.
  2995. break;;
  2996. * )
  2997. break;;
  2998. esac
  2999. done
  3000. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3001. else
  3002. ac_file=''
  3003. fi
  3004. if test -z "$ac_file"; then :
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3006. $as_echo "no" >&6; }
  3007. $as_echo "$as_me: failed program was:" >&5
  3008. sed 's/^/| /' conftest.$ac_ext >&5
  3009. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3011. as_fn_error 77 "C++ compiler cannot create executables
  3012. See \`config.log' for more details" "$LINENO" 5; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3015. $as_echo "yes" >&6; }
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3018. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3020. $as_echo "$ac_file" >&6; }
  3021. ac_exeext=$ac_cv_exeext
  3022. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3023. ac_clean_files=$ac_clean_files_save
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3025. $as_echo_n "checking for suffix of executables... " >&6; }
  3026. if { { ac_try="$ac_link"
  3027. case "(($ac_try" in
  3028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3029. *) ac_try_echo=$ac_try;;
  3030. esac
  3031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3032. $as_echo "$ac_try_echo"; } >&5
  3033. (eval "$ac_link") 2>&5
  3034. ac_status=$?
  3035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3036. test $ac_status = 0; }; then :
  3037. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3038. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3039. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3040. # `rm'.
  3041. for ac_file in conftest.exe conftest conftest.*; do
  3042. test -f "$ac_file" || continue
  3043. case $ac_file in
  3044. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3045. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3046. break;;
  3047. * ) break;;
  3048. esac
  3049. done
  3050. else
  3051. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3053. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3054. See \`config.log' for more details" "$LINENO" 5; }
  3055. fi
  3056. rm -f conftest conftest$ac_cv_exeext
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3058. $as_echo "$ac_cv_exeext" >&6; }
  3059. rm -f conftest.$ac_ext
  3060. EXEEXT=$ac_cv_exeext
  3061. ac_exeext=$EXEEXT
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. #include <stdio.h>
  3065. int
  3066. main ()
  3067. {
  3068. FILE *f = fopen ("conftest.out", "w");
  3069. return ferror (f) || fclose (f) != 0;
  3070. ;
  3071. return 0;
  3072. }
  3073. _ACEOF
  3074. ac_clean_files="$ac_clean_files conftest.out"
  3075. # Check that the compiler produces executables we can run. If not, either
  3076. # the compiler is broken, or we cross compile.
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3078. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3079. if test "$cross_compiling" != yes; then
  3080. { { ac_try="$ac_link"
  3081. case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. $as_echo "$ac_try_echo"; } >&5
  3087. (eval "$ac_link") 2>&5
  3088. ac_status=$?
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }
  3091. if { ac_try='./conftest$ac_cv_exeext'
  3092. { { case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_try") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; }; then
  3102. cross_compiling=no
  3103. else
  3104. if test "$cross_compiling" = maybe; then
  3105. cross_compiling=yes
  3106. else
  3107. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3109. as_fn_error $? "cannot run C++ compiled programs.
  3110. If you meant to cross compile, use \`--host'.
  3111. See \`config.log' for more details" "$LINENO" 5; }
  3112. fi
  3113. fi
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3116. $as_echo "$cross_compiling" >&6; }
  3117. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3118. ac_clean_files=$ac_clean_files_save
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3120. $as_echo_n "checking for suffix of object files... " >&6; }
  3121. if ${ac_cv_objext+:} false; then :
  3122. $as_echo_n "(cached) " >&6
  3123. else
  3124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3125. /* end confdefs.h. */
  3126. int
  3127. main ()
  3128. {
  3129. ;
  3130. return 0;
  3131. }
  3132. _ACEOF
  3133. rm -f conftest.o conftest.obj
  3134. if { { ac_try="$ac_compile"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_compile") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }; then :
  3145. for ac_file in conftest.o conftest.obj conftest.*; do
  3146. test -f "$ac_file" || continue;
  3147. case $ac_file in
  3148. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3149. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3150. break;;
  3151. esac
  3152. done
  3153. else
  3154. $as_echo "$as_me: failed program was:" >&5
  3155. sed 's/^/| /' conftest.$ac_ext >&5
  3156. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3158. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3159. See \`config.log' for more details" "$LINENO" 5; }
  3160. fi
  3161. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3164. $as_echo "$ac_cv_objext" >&6; }
  3165. OBJEXT=$ac_cv_objext
  3166. ac_objext=$OBJEXT
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3168. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3169. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. #ifndef __GNUC__
  3178. choke me
  3179. #endif
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. if ac_fn_cxx_try_compile "$LINENO"; then :
  3185. ac_compiler_gnu=yes
  3186. else
  3187. ac_compiler_gnu=no
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3191. fi
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3193. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3194. if test $ac_compiler_gnu = yes; then
  3195. GXX=yes
  3196. else
  3197. GXX=
  3198. fi
  3199. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3200. ac_save_CXXFLAGS=$CXXFLAGS
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3202. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3203. if ${ac_cv_prog_cxx_g+:} false; then :
  3204. $as_echo_n "(cached) " >&6
  3205. else
  3206. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3207. ac_cxx_werror_flag=yes
  3208. ac_cv_prog_cxx_g=no
  3209. CXXFLAGS="-g"
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_cxx_try_compile "$LINENO"; then :
  3220. ac_cv_prog_cxx_g=yes
  3221. else
  3222. CXXFLAGS=""
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main ()
  3227. {
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_cxx_try_compile "$LINENO"; then :
  3233. else
  3234. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3235. CXXFLAGS="-g"
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. ;
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. if ac_fn_cxx_try_compile "$LINENO"; then :
  3246. ac_cv_prog_cxx_g=yes
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. fi
  3250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3254. fi
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3256. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3257. if test "$ac_test_CXXFLAGS" = set; then
  3258. CXXFLAGS=$ac_save_CXXFLAGS
  3259. elif test $ac_cv_prog_cxx_g = yes; then
  3260. if test "$GXX" = yes; then
  3261. CXXFLAGS="-g -O2"
  3262. else
  3263. CXXFLAGS="-g"
  3264. fi
  3265. else
  3266. if test "$GXX" = yes; then
  3267. CXXFLAGS="-O2"
  3268. else
  3269. CXXFLAGS=
  3270. fi
  3271. fi
  3272. ac_ext=c
  3273. ac_cpp='$CPP $CPPFLAGS'
  3274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3277. DEPDIR="${am__leading_dot}deps"
  3278. ac_config_commands="$ac_config_commands depfiles"
  3279. am_make=${MAKE-make}
  3280. cat > confinc << 'END'
  3281. am__doit:
  3282. @echo this is the am__doit target
  3283. .PHONY: am__doit
  3284. END
  3285. # If we don't find an include directive, just comment out the code.
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3287. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3288. am__include="#"
  3289. am__quote=
  3290. _am_result=none
  3291. # First try GNU make style include.
  3292. echo "include confinc" > confmf
  3293. # Ignore all kinds of additional output from 'make'.
  3294. case `$am_make -s -f confmf 2> /dev/null` in #(
  3295. *the\ am__doit\ target*)
  3296. am__include=include
  3297. am__quote=
  3298. _am_result=GNU
  3299. ;;
  3300. esac
  3301. # Now try BSD make style include.
  3302. if test "$am__include" = "#"; then
  3303. echo '.include "confinc"' > confmf
  3304. case `$am_make -s -f confmf 2> /dev/null` in #(
  3305. *the\ am__doit\ target*)
  3306. am__include=.include
  3307. am__quote="\""
  3308. _am_result=BSD
  3309. ;;
  3310. esac
  3311. fi
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3313. $as_echo "$_am_result" >&6; }
  3314. rm -f confinc confmf
  3315. # Check whether --enable-dependency-tracking was given.
  3316. if test "${enable_dependency_tracking+set}" = set; then :
  3317. enableval=$enable_dependency_tracking;
  3318. fi
  3319. if test "x$enable_dependency_tracking" != xno; then
  3320. am_depcomp="$ac_aux_dir/depcomp"
  3321. AMDEPBACKSLASH='\'
  3322. am__nodep='_no'
  3323. fi
  3324. if test "x$enable_dependency_tracking" != xno; then
  3325. AMDEP_TRUE=
  3326. AMDEP_FALSE='#'
  3327. else
  3328. AMDEP_TRUE='#'
  3329. AMDEP_FALSE=
  3330. fi
  3331. depcc="$CXX" am_compiler_list=
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3333. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3334. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3338. # We make a subdir and do the tests there. Otherwise we can end up
  3339. # making bogus files that we don't know about and never remove. For
  3340. # instance it was reported that on HP-UX the gcc test will end up
  3341. # making a dummy file named 'D' -- because '-MD' means "put the output
  3342. # in D".
  3343. rm -rf conftest.dir
  3344. mkdir conftest.dir
  3345. # Copy depcomp to subdir because otherwise we won't find it if we're
  3346. # using a relative directory.
  3347. cp "$am_depcomp" conftest.dir
  3348. cd conftest.dir
  3349. # We will build objects and dependencies in a subdirectory because
  3350. # it helps to detect inapplicable dependency modes. For instance
  3351. # both Tru64's cc and ICC support -MD to output dependencies as a
  3352. # side effect of compilation, but ICC will put the dependencies in
  3353. # the current directory while Tru64 will put them in the object
  3354. # directory.
  3355. mkdir sub
  3356. am_cv_CXX_dependencies_compiler_type=none
  3357. if test "$am_compiler_list" = ""; then
  3358. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3359. fi
  3360. am__universal=false
  3361. case " $depcc " in #(
  3362. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3363. esac
  3364. for depmode in $am_compiler_list; do
  3365. # Setup a source with many dependencies, because some compilers
  3366. # like to wrap large dependency lists on column 80 (with \), and
  3367. # we should not choose a depcomp mode which is confused by this.
  3368. #
  3369. # We need to recreate these files for each test, as the compiler may
  3370. # overwrite some of them when testing with obscure command lines.
  3371. # This happens at least with the AIX C compiler.
  3372. : > sub/conftest.c
  3373. for i in 1 2 3 4 5 6; do
  3374. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3375. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3376. # Solaris 10 /bin/sh.
  3377. echo '/* dummy */' > sub/conftst$i.h
  3378. done
  3379. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3380. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3381. # mode. It turns out that the SunPro C++ compiler does not properly
  3382. # handle '-M -o', and we need to detect this. Also, some Intel
  3383. # versions had trouble with output in subdirs.
  3384. am__obj=sub/conftest.${OBJEXT-o}
  3385. am__minus_obj="-o $am__obj"
  3386. case $depmode in
  3387. gcc)
  3388. # This depmode causes a compiler race in universal mode.
  3389. test "$am__universal" = false || continue
  3390. ;;
  3391. nosideeffect)
  3392. # After this tag, mechanisms are not by side-effect, so they'll
  3393. # only be used when explicitly requested.
  3394. if test "x$enable_dependency_tracking" = xyes; then
  3395. continue
  3396. else
  3397. break
  3398. fi
  3399. ;;
  3400. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3401. # This compiler won't grok '-c -o', but also, the minuso test has
  3402. # not run yet. These depmodes are late enough in the game, and
  3403. # so weak that their functioning should not be impacted.
  3404. am__obj=conftest.${OBJEXT-o}
  3405. am__minus_obj=
  3406. ;;
  3407. none) break ;;
  3408. esac
  3409. if depmode=$depmode \
  3410. source=sub/conftest.c object=$am__obj \
  3411. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3412. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3413. >/dev/null 2>conftest.err &&
  3414. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3415. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3416. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3417. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3418. # icc doesn't choke on unknown options, it will just issue warnings
  3419. # or remarks (even with -Werror). So we grep stderr for any message
  3420. # that says an option was ignored or not supported.
  3421. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3422. # icc: Command line warning: ignoring option '-M'; no argument required
  3423. # The diagnosis changed in icc 8.0:
  3424. # icc: Command line remark: option '-MP' not supported
  3425. if (grep 'ignoring option' conftest.err ||
  3426. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3427. am_cv_CXX_dependencies_compiler_type=$depmode
  3428. break
  3429. fi
  3430. fi
  3431. done
  3432. cd ..
  3433. rm -rf conftest.dir
  3434. else
  3435. am_cv_CXX_dependencies_compiler_type=none
  3436. fi
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3439. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3440. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3441. if
  3442. test "x$enable_dependency_tracking" != xno \
  3443. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3444. am__fastdepCXX_TRUE=
  3445. am__fastdepCXX_FALSE='#'
  3446. else
  3447. am__fastdepCXX_TRUE='#'
  3448. am__fastdepCXX_FALSE=
  3449. fi
  3450. ac_ext=c
  3451. ac_cpp='$CPP $CPPFLAGS'
  3452. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3453. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3454. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3455. if test -n "$ac_tool_prefix"; then
  3456. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3457. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3459. $as_echo_n "checking for $ac_word... " >&6; }
  3460. if ${ac_cv_prog_CC+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. if test -n "$CC"; then
  3464. ac_cv_prog_CC="$CC" # Let the user override the test.
  3465. else
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH
  3468. do
  3469. IFS=$as_save_IFS
  3470. test -z "$as_dir" && as_dir=.
  3471. for ac_exec_ext in '' $ac_executable_extensions; do
  3472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3473. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3475. break 2
  3476. fi
  3477. done
  3478. done
  3479. IFS=$as_save_IFS
  3480. fi
  3481. fi
  3482. CC=$ac_cv_prog_CC
  3483. if test -n "$CC"; then
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3485. $as_echo "$CC" >&6; }
  3486. else
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. fi
  3490. fi
  3491. if test -z "$ac_cv_prog_CC"; then
  3492. ac_ct_CC=$CC
  3493. # Extract the first word of "gcc", so it can be a program name with args.
  3494. set dummy gcc; ac_word=$2
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3496. $as_echo_n "checking for $ac_word... " >&6; }
  3497. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. if test -n "$ac_ct_CC"; then
  3501. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3502. else
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3510. ac_cv_prog_ac_ct_CC="gcc"
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3512. break 2
  3513. fi
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. fi
  3518. fi
  3519. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3520. if test -n "$ac_ct_CC"; then
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3522. $as_echo "$ac_ct_CC" >&6; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3525. $as_echo "no" >&6; }
  3526. fi
  3527. if test "x$ac_ct_CC" = x; then
  3528. CC=""
  3529. else
  3530. case $cross_compiling:$ac_tool_warned in
  3531. yes:)
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3534. ac_tool_warned=yes ;;
  3535. esac
  3536. CC=$ac_ct_CC
  3537. fi
  3538. else
  3539. CC="$ac_cv_prog_CC"
  3540. fi
  3541. if test -z "$CC"; then
  3542. if test -n "$ac_tool_prefix"; then
  3543. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3544. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3546. $as_echo_n "checking for $ac_word... " >&6; }
  3547. if ${ac_cv_prog_CC+:} false; then :
  3548. $as_echo_n "(cached) " >&6
  3549. else
  3550. if test -n "$CC"; then
  3551. ac_cv_prog_CC="$CC" # Let the user override the test.
  3552. else
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3560. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3562. break 2
  3563. fi
  3564. done
  3565. done
  3566. IFS=$as_save_IFS
  3567. fi
  3568. fi
  3569. CC=$ac_cv_prog_CC
  3570. if test -n "$CC"; then
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3572. $as_echo "$CC" >&6; }
  3573. else
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3575. $as_echo "no" >&6; }
  3576. fi
  3577. fi
  3578. fi
  3579. if test -z "$CC"; then
  3580. # Extract the first word of "cc", so it can be a program name with args.
  3581. set dummy cc; ac_word=$2
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3583. $as_echo_n "checking for $ac_word... " >&6; }
  3584. if ${ac_cv_prog_CC+:} false; then :
  3585. $as_echo_n "(cached) " >&6
  3586. else
  3587. if test -n "$CC"; then
  3588. ac_cv_prog_CC="$CC" # Let the user override the test.
  3589. else
  3590. ac_prog_rejected=no
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3598. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3599. ac_prog_rejected=yes
  3600. continue
  3601. fi
  3602. ac_cv_prog_CC="cc"
  3603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3604. break 2
  3605. fi
  3606. done
  3607. done
  3608. IFS=$as_save_IFS
  3609. if test $ac_prog_rejected = yes; then
  3610. # We found a bogon in the path, so make sure we never use it.
  3611. set dummy $ac_cv_prog_CC
  3612. shift
  3613. if test $# != 0; then
  3614. # We chose a different compiler from the bogus one.
  3615. # However, it has the same basename, so the bogon will be chosen
  3616. # first if we set CC to just the basename; use the full file name.
  3617. shift
  3618. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3619. fi
  3620. fi
  3621. fi
  3622. fi
  3623. CC=$ac_cv_prog_CC
  3624. if test -n "$CC"; then
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3626. $as_echo "$CC" >&6; }
  3627. else
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3629. $as_echo "no" >&6; }
  3630. fi
  3631. fi
  3632. if test -z "$CC"; then
  3633. if test -n "$ac_tool_prefix"; then
  3634. for ac_prog in cl.exe
  3635. do
  3636. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3637. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3639. $as_echo_n "checking for $ac_word... " >&6; }
  3640. if ${ac_cv_prog_CC+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. if test -n "$CC"; then
  3644. ac_cv_prog_CC="$CC" # Let the user override the test.
  3645. else
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH
  3648. do
  3649. IFS=$as_save_IFS
  3650. test -z "$as_dir" && as_dir=.
  3651. for ac_exec_ext in '' $ac_executable_extensions; do
  3652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3653. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3655. break 2
  3656. fi
  3657. done
  3658. done
  3659. IFS=$as_save_IFS
  3660. fi
  3661. fi
  3662. CC=$ac_cv_prog_CC
  3663. if test -n "$CC"; then
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3665. $as_echo "$CC" >&6; }
  3666. else
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3668. $as_echo "no" >&6; }
  3669. fi
  3670. test -n "$CC" && break
  3671. done
  3672. fi
  3673. if test -z "$CC"; then
  3674. ac_ct_CC=$CC
  3675. for ac_prog in cl.exe
  3676. do
  3677. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3678. set dummy $ac_prog; ac_word=$2
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3680. $as_echo_n "checking for $ac_word... " >&6; }
  3681. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3682. $as_echo_n "(cached) " >&6
  3683. else
  3684. if test -n "$ac_ct_CC"; then
  3685. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3686. else
  3687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3688. for as_dir in $PATH
  3689. do
  3690. IFS=$as_save_IFS
  3691. test -z "$as_dir" && as_dir=.
  3692. for ac_exec_ext in '' $ac_executable_extensions; do
  3693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3694. ac_cv_prog_ac_ct_CC="$ac_prog"
  3695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3696. break 2
  3697. fi
  3698. done
  3699. done
  3700. IFS=$as_save_IFS
  3701. fi
  3702. fi
  3703. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3704. if test -n "$ac_ct_CC"; then
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3706. $as_echo "$ac_ct_CC" >&6; }
  3707. else
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3709. $as_echo "no" >&6; }
  3710. fi
  3711. test -n "$ac_ct_CC" && break
  3712. done
  3713. if test "x$ac_ct_CC" = x; then
  3714. CC=""
  3715. else
  3716. case $cross_compiling:$ac_tool_warned in
  3717. yes:)
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3720. ac_tool_warned=yes ;;
  3721. esac
  3722. CC=$ac_ct_CC
  3723. fi
  3724. fi
  3725. fi
  3726. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3728. as_fn_error $? "no acceptable C compiler found in \$PATH
  3729. See \`config.log' for more details" "$LINENO" 5; }
  3730. # Provide some information about the compiler.
  3731. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3732. set X $ac_compile
  3733. ac_compiler=$2
  3734. for ac_option in --version -v -V -qversion; do
  3735. { { ac_try="$ac_compiler $ac_option >&5"
  3736. case "(($ac_try" in
  3737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3738. *) ac_try_echo=$ac_try;;
  3739. esac
  3740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3741. $as_echo "$ac_try_echo"; } >&5
  3742. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3743. ac_status=$?
  3744. if test -s conftest.err; then
  3745. sed '10a\
  3746. ... rest of stderr output deleted ...
  3747. 10q' conftest.err >conftest.er1
  3748. cat conftest.er1 >&5
  3749. fi
  3750. rm -f conftest.er1 conftest.err
  3751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3752. test $ac_status = 0; }
  3753. done
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3755. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3756. if ${ac_cv_c_compiler_gnu+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3760. /* end confdefs.h. */
  3761. int
  3762. main ()
  3763. {
  3764. #ifndef __GNUC__
  3765. choke me
  3766. #endif
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_c_try_compile "$LINENO"; then :
  3772. ac_compiler_gnu=yes
  3773. else
  3774. ac_compiler_gnu=no
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3780. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3781. if test $ac_compiler_gnu = yes; then
  3782. GCC=yes
  3783. else
  3784. GCC=
  3785. fi
  3786. ac_test_CFLAGS=${CFLAGS+set}
  3787. ac_save_CFLAGS=$CFLAGS
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3789. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3790. if ${ac_cv_prog_cc_g+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. ac_save_c_werror_flag=$ac_c_werror_flag
  3794. ac_c_werror_flag=yes
  3795. ac_cv_prog_cc_g=no
  3796. CFLAGS="-g"
  3797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3798. /* end confdefs.h. */
  3799. int
  3800. main ()
  3801. {
  3802. ;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. if ac_fn_c_try_compile "$LINENO"; then :
  3807. ac_cv_prog_cc_g=yes
  3808. else
  3809. CFLAGS=""
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. int
  3813. main ()
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. if ac_fn_c_try_compile "$LINENO"; then :
  3820. else
  3821. ac_c_werror_flag=$ac_save_c_werror_flag
  3822. CFLAGS="-g"
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. if ac_fn_c_try_compile "$LINENO"; then :
  3833. ac_cv_prog_cc_g=yes
  3834. fi
  3835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3836. fi
  3837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. ac_c_werror_flag=$ac_save_c_werror_flag
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3843. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3844. if test "$ac_test_CFLAGS" = set; then
  3845. CFLAGS=$ac_save_CFLAGS
  3846. elif test $ac_cv_prog_cc_g = yes; then
  3847. if test "$GCC" = yes; then
  3848. CFLAGS="-g -O2"
  3849. else
  3850. CFLAGS="-g"
  3851. fi
  3852. else
  3853. if test "$GCC" = yes; then
  3854. CFLAGS="-O2"
  3855. else
  3856. CFLAGS=
  3857. fi
  3858. fi
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3860. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3861. if ${ac_cv_prog_cc_c89+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. ac_cv_prog_cc_c89=no
  3865. ac_save_CC=$CC
  3866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end confdefs.h. */
  3868. #include <stdarg.h>
  3869. #include <stdio.h>
  3870. struct stat;
  3871. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3872. struct buf { int x; };
  3873. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3874. static char *e (p, i)
  3875. char **p;
  3876. int i;
  3877. {
  3878. return p[i];
  3879. }
  3880. static char *f (char * (*g) (char **, int), char **p, ...)
  3881. {
  3882. char *s;
  3883. va_list v;
  3884. va_start (v,p);
  3885. s = g (p, va_arg (v,int));
  3886. va_end (v);
  3887. return s;
  3888. }
  3889. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3890. function prototypes and stuff, but not '\xHH' hex character constants.
  3891. These don't provoke an error unfortunately, instead are silently treated
  3892. as 'x'. The following induces an error, until -std is added to get
  3893. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3894. array size at least. It's necessary to write '\x00'==0 to get something
  3895. that's true only with -std. */
  3896. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3897. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3898. inside strings and character constants. */
  3899. #define FOO(x) 'x'
  3900. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3901. int test (int i, double x);
  3902. struct s1 {int (*f) (int a);};
  3903. struct s2 {int (*f) (double a);};
  3904. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3905. int argc;
  3906. char **argv;
  3907. int
  3908. main ()
  3909. {
  3910. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3911. ;
  3912. return 0;
  3913. }
  3914. _ACEOF
  3915. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3916. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3917. do
  3918. CC="$ac_save_CC $ac_arg"
  3919. if ac_fn_c_try_compile "$LINENO"; then :
  3920. ac_cv_prog_cc_c89=$ac_arg
  3921. fi
  3922. rm -f core conftest.err conftest.$ac_objext
  3923. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3924. done
  3925. rm -f conftest.$ac_ext
  3926. CC=$ac_save_CC
  3927. fi
  3928. # AC_CACHE_VAL
  3929. case "x$ac_cv_prog_cc_c89" in
  3930. x)
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3932. $as_echo "none needed" >&6; } ;;
  3933. xno)
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3935. $as_echo "unsupported" >&6; } ;;
  3936. *)
  3937. CC="$CC $ac_cv_prog_cc_c89"
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3939. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3940. esac
  3941. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3942. fi
  3943. ac_ext=c
  3944. ac_cpp='$CPP $CPPFLAGS'
  3945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3948. depcc="$CC" am_compiler_list=
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3950. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3951. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3955. # We make a subdir and do the tests there. Otherwise we can end up
  3956. # making bogus files that we don't know about and never remove. For
  3957. # instance it was reported that on HP-UX the gcc test will end up
  3958. # making a dummy file named 'D' -- because '-MD' means "put the output
  3959. # in D".
  3960. rm -rf conftest.dir
  3961. mkdir conftest.dir
  3962. # Copy depcomp to subdir because otherwise we won't find it if we're
  3963. # using a relative directory.
  3964. cp "$am_depcomp" conftest.dir
  3965. cd conftest.dir
  3966. # We will build objects and dependencies in a subdirectory because
  3967. # it helps to detect inapplicable dependency modes. For instance
  3968. # both Tru64's cc and ICC support -MD to output dependencies as a
  3969. # side effect of compilation, but ICC will put the dependencies in
  3970. # the current directory while Tru64 will put them in the object
  3971. # directory.
  3972. mkdir sub
  3973. am_cv_CC_dependencies_compiler_type=none
  3974. if test "$am_compiler_list" = ""; then
  3975. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3976. fi
  3977. am__universal=false
  3978. case " $depcc " in #(
  3979. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3980. esac
  3981. for depmode in $am_compiler_list; do
  3982. # Setup a source with many dependencies, because some compilers
  3983. # like to wrap large dependency lists on column 80 (with \), and
  3984. # we should not choose a depcomp mode which is confused by this.
  3985. #
  3986. # We need to recreate these files for each test, as the compiler may
  3987. # overwrite some of them when testing with obscure command lines.
  3988. # This happens at least with the AIX C compiler.
  3989. : > sub/conftest.c
  3990. for i in 1 2 3 4 5 6; do
  3991. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3992. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3993. # Solaris 10 /bin/sh.
  3994. echo '/* dummy */' > sub/conftst$i.h
  3995. done
  3996. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3997. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3998. # mode. It turns out that the SunPro C++ compiler does not properly
  3999. # handle '-M -o', and we need to detect this. Also, some Intel
  4000. # versions had trouble with output in subdirs.
  4001. am__obj=sub/conftest.${OBJEXT-o}
  4002. am__minus_obj="-o $am__obj"
  4003. case $depmode in
  4004. gcc)
  4005. # This depmode causes a compiler race in universal mode.
  4006. test "$am__universal" = false || continue
  4007. ;;
  4008. nosideeffect)
  4009. # After this tag, mechanisms are not by side-effect, so they'll
  4010. # only be used when explicitly requested.
  4011. if test "x$enable_dependency_tracking" = xyes; then
  4012. continue
  4013. else
  4014. break
  4015. fi
  4016. ;;
  4017. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4018. # This compiler won't grok '-c -o', but also, the minuso test has
  4019. # not run yet. These depmodes are late enough in the game, and
  4020. # so weak that their functioning should not be impacted.
  4021. am__obj=conftest.${OBJEXT-o}
  4022. am__minus_obj=
  4023. ;;
  4024. none) break ;;
  4025. esac
  4026. if depmode=$depmode \
  4027. source=sub/conftest.c object=$am__obj \
  4028. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4029. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4030. >/dev/null 2>conftest.err &&
  4031. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4032. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4033. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4034. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4035. # icc doesn't choke on unknown options, it will just issue warnings
  4036. # or remarks (even with -Werror). So we grep stderr for any message
  4037. # that says an option was ignored or not supported.
  4038. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4039. # icc: Command line warning: ignoring option '-M'; no argument required
  4040. # The diagnosis changed in icc 8.0:
  4041. # icc: Command line remark: option '-MP' not supported
  4042. if (grep 'ignoring option' conftest.err ||
  4043. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4044. am_cv_CC_dependencies_compiler_type=$depmode
  4045. break
  4046. fi
  4047. fi
  4048. done
  4049. cd ..
  4050. rm -rf conftest.dir
  4051. else
  4052. am_cv_CC_dependencies_compiler_type=none
  4053. fi
  4054. fi
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4056. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4057. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4058. if
  4059. test "x$enable_dependency_tracking" != xno \
  4060. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4061. am__fastdepCC_TRUE=
  4062. am__fastdepCC_FALSE='#'
  4063. else
  4064. am__fastdepCC_TRUE='#'
  4065. am__fastdepCC_FALSE=
  4066. fi
  4067. # Checks for libraries.
  4068. # FIXME: Replace `main' with a function in `-lrt':
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
  4070. $as_echo_n "checking for main in -lrt... " >&6; }
  4071. if ${ac_cv_lib_rt_main+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. ac_check_lib_save_LIBS=$LIBS
  4075. LIBS="-lrt $LIBS"
  4076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4077. /* end confdefs.h. */
  4078. int
  4079. main ()
  4080. {
  4081. return main ();
  4082. ;
  4083. return 0;
  4084. }
  4085. _ACEOF
  4086. if ac_fn_c_try_link "$LINENO"; then :
  4087. ac_cv_lib_rt_main=yes
  4088. else
  4089. ac_cv_lib_rt_main=no
  4090. fi
  4091. rm -f core conftest.err conftest.$ac_objext \
  4092. conftest$ac_exeext conftest.$ac_ext
  4093. LIBS=$ac_check_lib_save_LIBS
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
  4096. $as_echo "$ac_cv_lib_rt_main" >&6; }
  4097. if test "x$ac_cv_lib_rt_main" = xyes; then :
  4098. cat >>confdefs.h <<_ACEOF
  4099. #define HAVE_LIBRT 1
  4100. _ACEOF
  4101. LIBS="-lrt $LIBS"
  4102. fi
  4103. # Checks for header files.
  4104. ac_ext=c
  4105. ac_cpp='$CPP $CPPFLAGS'
  4106. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4107. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4108. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4110. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4111. # On Suns, sometimes $CPP names a directory.
  4112. if test -n "$CPP" && test -d "$CPP"; then
  4113. CPP=
  4114. fi
  4115. if test -z "$CPP"; then
  4116. if ${ac_cv_prog_CPP+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. # Double quotes because CPP needs to be expanded
  4120. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4121. do
  4122. ac_preproc_ok=false
  4123. for ac_c_preproc_warn_flag in '' yes
  4124. do
  4125. # Use a header file that comes with gcc, so configuring glibc
  4126. # with a fresh cross-compiler works.
  4127. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4128. # <limits.h> exists even on freestanding compilers.
  4129. # On the NeXT, cc -E runs the code through the compiler's parser,
  4130. # not just through cpp. "Syntax error" is here to catch this case.
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. #ifdef __STDC__
  4134. # include <limits.h>
  4135. #else
  4136. # include <assert.h>
  4137. #endif
  4138. Syntax error
  4139. _ACEOF
  4140. if ac_fn_c_try_cpp "$LINENO"; then :
  4141. else
  4142. # Broken: fails on valid input.
  4143. continue
  4144. fi
  4145. rm -f conftest.err conftest.i conftest.$ac_ext
  4146. # OK, works on sane cases. Now check whether nonexistent headers
  4147. # can be detected and how.
  4148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4149. /* end confdefs.h. */
  4150. #include <ac_nonexistent.h>
  4151. _ACEOF
  4152. if ac_fn_c_try_cpp "$LINENO"; then :
  4153. # Broken: success on invalid input.
  4154. continue
  4155. else
  4156. # Passes both tests.
  4157. ac_preproc_ok=:
  4158. break
  4159. fi
  4160. rm -f conftest.err conftest.i conftest.$ac_ext
  4161. done
  4162. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4163. rm -f conftest.i conftest.err conftest.$ac_ext
  4164. if $ac_preproc_ok; then :
  4165. break
  4166. fi
  4167. done
  4168. ac_cv_prog_CPP=$CPP
  4169. fi
  4170. CPP=$ac_cv_prog_CPP
  4171. else
  4172. ac_cv_prog_CPP=$CPP
  4173. fi
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4175. $as_echo "$CPP" >&6; }
  4176. ac_preproc_ok=false
  4177. for ac_c_preproc_warn_flag in '' yes
  4178. do
  4179. # Use a header file that comes with gcc, so configuring glibc
  4180. # with a fresh cross-compiler works.
  4181. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4182. # <limits.h> exists even on freestanding compilers.
  4183. # On the NeXT, cc -E runs the code through the compiler's parser,
  4184. # not just through cpp. "Syntax error" is here to catch this case.
  4185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4186. /* end confdefs.h. */
  4187. #ifdef __STDC__
  4188. # include <limits.h>
  4189. #else
  4190. # include <assert.h>
  4191. #endif
  4192. Syntax error
  4193. _ACEOF
  4194. if ac_fn_c_try_cpp "$LINENO"; then :
  4195. else
  4196. # Broken: fails on valid input.
  4197. continue
  4198. fi
  4199. rm -f conftest.err conftest.i conftest.$ac_ext
  4200. # OK, works on sane cases. Now check whether nonexistent headers
  4201. # can be detected and how.
  4202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4203. /* end confdefs.h. */
  4204. #include <ac_nonexistent.h>
  4205. _ACEOF
  4206. if ac_fn_c_try_cpp "$LINENO"; then :
  4207. # Broken: success on invalid input.
  4208. continue
  4209. else
  4210. # Passes both tests.
  4211. ac_preproc_ok=:
  4212. break
  4213. fi
  4214. rm -f conftest.err conftest.i conftest.$ac_ext
  4215. done
  4216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4217. rm -f conftest.i conftest.err conftest.$ac_ext
  4218. if $ac_preproc_ok; then :
  4219. else
  4220. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4222. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4223. See \`config.log' for more details" "$LINENO" 5; }
  4224. fi
  4225. ac_ext=c
  4226. ac_cpp='$CPP $CPPFLAGS'
  4227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4231. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4232. if ${ac_cv_path_GREP+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. if test -z "$GREP"; then
  4236. ac_path_GREP_found=false
  4237. # Loop through the user's path and test for each of PROGNAME-LIST
  4238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4239. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4240. do
  4241. IFS=$as_save_IFS
  4242. test -z "$as_dir" && as_dir=.
  4243. for ac_prog in grep ggrep; do
  4244. for ac_exec_ext in '' $ac_executable_extensions; do
  4245. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4246. as_fn_executable_p "$ac_path_GREP" || continue
  4247. # Check for GNU ac_path_GREP and select it if it is found.
  4248. # Check for GNU $ac_path_GREP
  4249. case `"$ac_path_GREP" --version 2>&1` in
  4250. *GNU*)
  4251. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4252. *)
  4253. ac_count=0
  4254. $as_echo_n 0123456789 >"conftest.in"
  4255. while :
  4256. do
  4257. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4258. mv "conftest.tmp" "conftest.in"
  4259. cp "conftest.in" "conftest.nl"
  4260. $as_echo 'GREP' >> "conftest.nl"
  4261. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4262. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4263. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4264. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4265. # Best one so far, save it but keep looking for a better one
  4266. ac_cv_path_GREP="$ac_path_GREP"
  4267. ac_path_GREP_max=$ac_count
  4268. fi
  4269. # 10*(2^10) chars as input seems more than enough
  4270. test $ac_count -gt 10 && break
  4271. done
  4272. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4273. esac
  4274. $ac_path_GREP_found && break 3
  4275. done
  4276. done
  4277. done
  4278. IFS=$as_save_IFS
  4279. if test -z "$ac_cv_path_GREP"; then
  4280. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4281. fi
  4282. else
  4283. ac_cv_path_GREP=$GREP
  4284. fi
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4287. $as_echo "$ac_cv_path_GREP" >&6; }
  4288. GREP="$ac_cv_path_GREP"
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4290. $as_echo_n "checking for egrep... " >&6; }
  4291. if ${ac_cv_path_EGREP+:} false; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4295. then ac_cv_path_EGREP="$GREP -E"
  4296. else
  4297. if test -z "$EGREP"; then
  4298. ac_path_EGREP_found=false
  4299. # Loop through the user's path and test for each of PROGNAME-LIST
  4300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4301. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4302. do
  4303. IFS=$as_save_IFS
  4304. test -z "$as_dir" && as_dir=.
  4305. for ac_prog in egrep; do
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4308. as_fn_executable_p "$ac_path_EGREP" || continue
  4309. # Check for GNU ac_path_EGREP and select it if it is found.
  4310. # Check for GNU $ac_path_EGREP
  4311. case `"$ac_path_EGREP" --version 2>&1` in
  4312. *GNU*)
  4313. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4314. *)
  4315. ac_count=0
  4316. $as_echo_n 0123456789 >"conftest.in"
  4317. while :
  4318. do
  4319. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4320. mv "conftest.tmp" "conftest.in"
  4321. cp "conftest.in" "conftest.nl"
  4322. $as_echo 'EGREP' >> "conftest.nl"
  4323. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4324. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4325. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4326. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4327. # Best one so far, save it but keep looking for a better one
  4328. ac_cv_path_EGREP="$ac_path_EGREP"
  4329. ac_path_EGREP_max=$ac_count
  4330. fi
  4331. # 10*(2^10) chars as input seems more than enough
  4332. test $ac_count -gt 10 && break
  4333. done
  4334. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4335. esac
  4336. $ac_path_EGREP_found && break 3
  4337. done
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. if test -z "$ac_cv_path_EGREP"; then
  4342. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4343. fi
  4344. else
  4345. ac_cv_path_EGREP=$EGREP
  4346. fi
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4350. $as_echo "$ac_cv_path_EGREP" >&6; }
  4351. EGREP="$ac_cv_path_EGREP"
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4353. $as_echo_n "checking for ANSI C header files... " >&6; }
  4354. if ${ac_cv_header_stdc+:} false; then :
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. #include <stdlib.h>
  4360. #include <stdarg.h>
  4361. #include <string.h>
  4362. #include <float.h>
  4363. int
  4364. main ()
  4365. {
  4366. ;
  4367. return 0;
  4368. }
  4369. _ACEOF
  4370. if ac_fn_c_try_compile "$LINENO"; then :
  4371. ac_cv_header_stdc=yes
  4372. else
  4373. ac_cv_header_stdc=no
  4374. fi
  4375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. if test $ac_cv_header_stdc = yes; then
  4377. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4379. /* end confdefs.h. */
  4380. #include <string.h>
  4381. _ACEOF
  4382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4383. $EGREP "memchr" >/dev/null 2>&1; then :
  4384. else
  4385. ac_cv_header_stdc=no
  4386. fi
  4387. rm -f conftest*
  4388. fi
  4389. if test $ac_cv_header_stdc = yes; then
  4390. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. #include <stdlib.h>
  4394. _ACEOF
  4395. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4396. $EGREP "free" >/dev/null 2>&1; then :
  4397. else
  4398. ac_cv_header_stdc=no
  4399. fi
  4400. rm -f conftest*
  4401. fi
  4402. if test $ac_cv_header_stdc = yes; then
  4403. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4404. if test "$cross_compiling" = yes; then :
  4405. :
  4406. else
  4407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4408. /* end confdefs.h. */
  4409. #include <ctype.h>
  4410. #include <stdlib.h>
  4411. #if ((' ' & 0x0FF) == 0x020)
  4412. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4413. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4414. #else
  4415. # define ISLOWER(c) \
  4416. (('a' <= (c) && (c) <= 'i') \
  4417. || ('j' <= (c) && (c) <= 'r') \
  4418. || ('s' <= (c) && (c) <= 'z'))
  4419. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4420. #endif
  4421. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4422. int
  4423. main ()
  4424. {
  4425. int i;
  4426. for (i = 0; i < 256; i++)
  4427. if (XOR (islower (i), ISLOWER (i))
  4428. || toupper (i) != TOUPPER (i))
  4429. return 2;
  4430. return 0;
  4431. }
  4432. _ACEOF
  4433. if ac_fn_c_try_run "$LINENO"; then :
  4434. else
  4435. ac_cv_header_stdc=no
  4436. fi
  4437. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4438. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4439. fi
  4440. fi
  4441. fi
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4443. $as_echo "$ac_cv_header_stdc" >&6; }
  4444. if test $ac_cv_header_stdc = yes; then
  4445. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4446. fi
  4447. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4448. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4449. inttypes.h stdint.h unistd.h
  4450. do :
  4451. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4452. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4453. "
  4454. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4455. cat >>confdefs.h <<_ACEOF
  4456. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4457. _ACEOF
  4458. fi
  4459. done
  4460. for ac_header in float.h stdlib.h string.h sys/time.h unistd.h
  4461. do :
  4462. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4463. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4464. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4465. cat >>confdefs.h <<_ACEOF
  4466. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4467. _ACEOF
  4468. fi
  4469. done
  4470. # Checks for typedefs, structures, and compiler characteristics.
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4472. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4473. if ${ac_cv_header_stdbool_h+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4477. /* end confdefs.h. */
  4478. #include <stdbool.h>
  4479. #ifndef bool
  4480. "error: bool is not defined"
  4481. #endif
  4482. #ifndef false
  4483. "error: false is not defined"
  4484. #endif
  4485. #if false
  4486. "error: false is not 0"
  4487. #endif
  4488. #ifndef true
  4489. "error: true is not defined"
  4490. #endif
  4491. #if true != 1
  4492. "error: true is not 1"
  4493. #endif
  4494. #ifndef __bool_true_false_are_defined
  4495. "error: __bool_true_false_are_defined is not defined"
  4496. #endif
  4497. struct s { _Bool s: 1; _Bool t; } s;
  4498. char a[true == 1 ? 1 : -1];
  4499. char b[false == 0 ? 1 : -1];
  4500. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4501. char d[(bool) 0.5 == true ? 1 : -1];
  4502. /* See body of main program for 'e'. */
  4503. char f[(_Bool) 0.0 == false ? 1 : -1];
  4504. char g[true];
  4505. char h[sizeof (_Bool)];
  4506. char i[sizeof s.t];
  4507. enum { j = false, k = true, l = false * true, m = true * 256 };
  4508. /* The following fails for
  4509. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4510. _Bool n[m];
  4511. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4512. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4513. /* Catch a bug in an HP-UX C compiler. See
  4514. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4515. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4516. */
  4517. _Bool q = true;
  4518. _Bool *pq = &q;
  4519. int
  4520. main ()
  4521. {
  4522. bool e = &s;
  4523. *pq |= q;
  4524. *pq |= ! q;
  4525. /* Refer to every declared value, to avoid compiler optimizations. */
  4526. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4527. + !m + !n + !o + !p + !q + !pq);
  4528. ;
  4529. return 0;
  4530. }
  4531. _ACEOF
  4532. if ac_fn_c_try_compile "$LINENO"; then :
  4533. ac_cv_header_stdbool_h=yes
  4534. else
  4535. ac_cv_header_stdbool_h=no
  4536. fi
  4537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4538. fi
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4540. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4541. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4542. if test "x$ac_cv_type__Bool" = xyes; then :
  4543. cat >>confdefs.h <<_ACEOF
  4544. #define HAVE__BOOL 1
  4545. _ACEOF
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4548. $as_echo_n "checking for inline... " >&6; }
  4549. if ${ac_cv_c_inline+:} false; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. ac_cv_c_inline=no
  4553. for ac_kw in inline __inline__ __inline; do
  4554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4555. /* end confdefs.h. */
  4556. #ifndef __cplusplus
  4557. typedef int foo_t;
  4558. static $ac_kw foo_t static_foo () {return 0; }
  4559. $ac_kw foo_t foo () {return 0; }
  4560. #endif
  4561. _ACEOF
  4562. if ac_fn_c_try_compile "$LINENO"; then :
  4563. ac_cv_c_inline=$ac_kw
  4564. fi
  4565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4566. test "$ac_cv_c_inline" != no && break
  4567. done
  4568. fi
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4570. $as_echo "$ac_cv_c_inline" >&6; }
  4571. case $ac_cv_c_inline in
  4572. inline | yes) ;;
  4573. *)
  4574. case $ac_cv_c_inline in
  4575. no) ac_val=;;
  4576. *) ac_val=$ac_cv_c_inline;;
  4577. esac
  4578. cat >>confdefs.h <<_ACEOF
  4579. #ifndef __cplusplus
  4580. #define inline $ac_val
  4581. #endif
  4582. _ACEOF
  4583. ;;
  4584. esac
  4585. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  4586. case $ac_cv_c_int32_t in #(
  4587. no|yes) ;; #(
  4588. *)
  4589. cat >>confdefs.h <<_ACEOF
  4590. #define int32_t $ac_cv_c_int32_t
  4591. _ACEOF
  4592. ;;
  4593. esac
  4594. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4595. if test "x$ac_cv_type_size_t" = xyes; then :
  4596. else
  4597. cat >>confdefs.h <<_ACEOF
  4598. #define size_t unsigned int
  4599. _ACEOF
  4600. fi
  4601. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4602. case $ac_cv_c_uint32_t in #(
  4603. no|yes) ;; #(
  4604. *)
  4605. $as_echo "#define _UINT32_T 1" >>confdefs.h
  4606. cat >>confdefs.h <<_ACEOF
  4607. #define uint32_t $ac_cv_c_uint32_t
  4608. _ACEOF
  4609. ;;
  4610. esac
  4611. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  4612. case $ac_cv_c_uint64_t in #(
  4613. no|yes) ;; #(
  4614. *)
  4615. $as_echo "#define _UINT64_T 1" >>confdefs.h
  4616. cat >>confdefs.h <<_ACEOF
  4617. #define uint64_t $ac_cv_c_uint64_t
  4618. _ACEOF
  4619. ;;
  4620. esac
  4621. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4622. case $ac_cv_c_uint8_t in #(
  4623. no|yes) ;; #(
  4624. *)
  4625. $as_echo "#define _UINT8_T 1" >>confdefs.h
  4626. cat >>confdefs.h <<_ACEOF
  4627. #define uint8_t $ac_cv_c_uint8_t
  4628. _ACEOF
  4629. ;;
  4630. esac
  4631. case `pwd` in
  4632. *\ * | *\ *)
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4634. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4635. esac
  4636. macro_version='2.4.2'
  4637. macro_revision='1.3337'
  4638. ltmain="$ac_aux_dir/ltmain.sh"
  4639. # Make sure we can run config.sub.
  4640. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4641. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4643. $as_echo_n "checking build system type... " >&6; }
  4644. if ${ac_cv_build+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. ac_build_alias=$build_alias
  4648. test "x$ac_build_alias" = x &&
  4649. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4650. test "x$ac_build_alias" = x &&
  4651. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4652. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4653. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4656. $as_echo "$ac_cv_build" >&6; }
  4657. case $ac_cv_build in
  4658. *-*-*) ;;
  4659. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4660. esac
  4661. build=$ac_cv_build
  4662. ac_save_IFS=$IFS; IFS='-'
  4663. set x $ac_cv_build
  4664. shift
  4665. build_cpu=$1
  4666. build_vendor=$2
  4667. shift; shift
  4668. # Remember, the first character of IFS is used to create $*,
  4669. # except with old shells:
  4670. build_os=$*
  4671. IFS=$ac_save_IFS
  4672. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4674. $as_echo_n "checking host system type... " >&6; }
  4675. if ${ac_cv_host+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if test "x$host_alias" = x; then
  4679. ac_cv_host=$ac_cv_build
  4680. else
  4681. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4682. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4683. fi
  4684. fi
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4686. $as_echo "$ac_cv_host" >&6; }
  4687. case $ac_cv_host in
  4688. *-*-*) ;;
  4689. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4690. esac
  4691. host=$ac_cv_host
  4692. ac_save_IFS=$IFS; IFS='-'
  4693. set x $ac_cv_host
  4694. shift
  4695. host_cpu=$1
  4696. host_vendor=$2
  4697. shift; shift
  4698. # Remember, the first character of IFS is used to create $*,
  4699. # except with old shells:
  4700. host_os=$*
  4701. IFS=$ac_save_IFS
  4702. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4703. # Backslashify metacharacters that are still active within
  4704. # double-quoted strings.
  4705. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4706. # Same as above, but do not quote variable references.
  4707. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4708. # Sed substitution to delay expansion of an escaped shell variable in a
  4709. # double_quote_subst'ed string.
  4710. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4711. # Sed substitution to delay expansion of an escaped single quote.
  4712. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4713. # Sed substitution to avoid accidental globbing in evaled expressions
  4714. no_glob_subst='s/\*/\\\*/g'
  4715. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4716. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4717. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4719. $as_echo_n "checking how to print strings... " >&6; }
  4720. # Test print first, because it will be a builtin if present.
  4721. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4722. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4723. ECHO='print -r --'
  4724. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4725. ECHO='printf %s\n'
  4726. else
  4727. # Use this function as a fallback that always works.
  4728. func_fallback_echo ()
  4729. {
  4730. eval 'cat <<_LTECHO_EOF
  4731. $1
  4732. _LTECHO_EOF'
  4733. }
  4734. ECHO='func_fallback_echo'
  4735. fi
  4736. # func_echo_all arg...
  4737. # Invoke $ECHO with all args, space-separated.
  4738. func_echo_all ()
  4739. {
  4740. $ECHO ""
  4741. }
  4742. case "$ECHO" in
  4743. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4744. $as_echo "printf" >&6; } ;;
  4745. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4746. $as_echo "print -r" >&6; } ;;
  4747. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4748. $as_echo "cat" >&6; } ;;
  4749. esac
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4751. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4752. if ${ac_cv_path_SED+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4756. for ac_i in 1 2 3 4 5 6 7; do
  4757. ac_script="$ac_script$as_nl$ac_script"
  4758. done
  4759. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4760. { ac_script=; unset ac_script;}
  4761. if test -z "$SED"; then
  4762. ac_path_SED_found=false
  4763. # Loop through the user's path and test for each of PROGNAME-LIST
  4764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4765. for as_dir in $PATH
  4766. do
  4767. IFS=$as_save_IFS
  4768. test -z "$as_dir" && as_dir=.
  4769. for ac_prog in sed gsed; do
  4770. for ac_exec_ext in '' $ac_executable_extensions; do
  4771. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4772. as_fn_executable_p "$ac_path_SED" || continue
  4773. # Check for GNU ac_path_SED and select it if it is found.
  4774. # Check for GNU $ac_path_SED
  4775. case `"$ac_path_SED" --version 2>&1` in
  4776. *GNU*)
  4777. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4778. *)
  4779. ac_count=0
  4780. $as_echo_n 0123456789 >"conftest.in"
  4781. while :
  4782. do
  4783. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4784. mv "conftest.tmp" "conftest.in"
  4785. cp "conftest.in" "conftest.nl"
  4786. $as_echo '' >> "conftest.nl"
  4787. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4788. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4789. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4790. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4791. # Best one so far, save it but keep looking for a better one
  4792. ac_cv_path_SED="$ac_path_SED"
  4793. ac_path_SED_max=$ac_count
  4794. fi
  4795. # 10*(2^10) chars as input seems more than enough
  4796. test $ac_count -gt 10 && break
  4797. done
  4798. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4799. esac
  4800. $ac_path_SED_found && break 3
  4801. done
  4802. done
  4803. done
  4804. IFS=$as_save_IFS
  4805. if test -z "$ac_cv_path_SED"; then
  4806. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4807. fi
  4808. else
  4809. ac_cv_path_SED=$SED
  4810. fi
  4811. fi
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4813. $as_echo "$ac_cv_path_SED" >&6; }
  4814. SED="$ac_cv_path_SED"
  4815. rm -f conftest.sed
  4816. test -z "$SED" && SED=sed
  4817. Xsed="$SED -e 1s/^X//"
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4819. $as_echo_n "checking for fgrep... " >&6; }
  4820. if ${ac_cv_path_FGREP+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4824. then ac_cv_path_FGREP="$GREP -F"
  4825. else
  4826. if test -z "$FGREP"; then
  4827. ac_path_FGREP_found=false
  4828. # Loop through the user's path and test for each of PROGNAME-LIST
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_prog in fgrep; do
  4835. for ac_exec_ext in '' $ac_executable_extensions; do
  4836. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4837. as_fn_executable_p "$ac_path_FGREP" || continue
  4838. # Check for GNU ac_path_FGREP and select it if it is found.
  4839. # Check for GNU $ac_path_FGREP
  4840. case `"$ac_path_FGREP" --version 2>&1` in
  4841. *GNU*)
  4842. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4843. *)
  4844. ac_count=0
  4845. $as_echo_n 0123456789 >"conftest.in"
  4846. while :
  4847. do
  4848. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4849. mv "conftest.tmp" "conftest.in"
  4850. cp "conftest.in" "conftest.nl"
  4851. $as_echo 'FGREP' >> "conftest.nl"
  4852. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4853. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4854. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4855. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4856. # Best one so far, save it but keep looking for a better one
  4857. ac_cv_path_FGREP="$ac_path_FGREP"
  4858. ac_path_FGREP_max=$ac_count
  4859. fi
  4860. # 10*(2^10) chars as input seems more than enough
  4861. test $ac_count -gt 10 && break
  4862. done
  4863. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4864. esac
  4865. $ac_path_FGREP_found && break 3
  4866. done
  4867. done
  4868. done
  4869. IFS=$as_save_IFS
  4870. if test -z "$ac_cv_path_FGREP"; then
  4871. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4872. fi
  4873. else
  4874. ac_cv_path_FGREP=$FGREP
  4875. fi
  4876. fi
  4877. fi
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4879. $as_echo "$ac_cv_path_FGREP" >&6; }
  4880. FGREP="$ac_cv_path_FGREP"
  4881. test -z "$GREP" && GREP=grep
  4882. # Check whether --with-gnu-ld was given.
  4883. if test "${with_gnu_ld+set}" = set; then :
  4884. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4885. else
  4886. with_gnu_ld=no
  4887. fi
  4888. ac_prog=ld
  4889. if test "$GCC" = yes; then
  4890. # Check if gcc -print-prog-name=ld gives a path.
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4892. $as_echo_n "checking for ld used by $CC... " >&6; }
  4893. case $host in
  4894. *-*-mingw*)
  4895. # gcc leaves a trailing carriage return which upsets mingw
  4896. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4897. *)
  4898. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4899. esac
  4900. case $ac_prog in
  4901. # Accept absolute paths.
  4902. [\\/]* | ?:[\\/]*)
  4903. re_direlt='/[^/][^/]*/\.\./'
  4904. # Canonicalize the pathname of ld
  4905. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4906. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4907. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4908. done
  4909. test -z "$LD" && LD="$ac_prog"
  4910. ;;
  4911. "")
  4912. # If it fails, then pretend we aren't using GCC.
  4913. ac_prog=ld
  4914. ;;
  4915. *)
  4916. # If it is relative, then search for the first ld in PATH.
  4917. with_gnu_ld=unknown
  4918. ;;
  4919. esac
  4920. elif test "$with_gnu_ld" = yes; then
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4922. $as_echo_n "checking for GNU ld... " >&6; }
  4923. else
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4925. $as_echo_n "checking for non-GNU ld... " >&6; }
  4926. fi
  4927. if ${lt_cv_path_LD+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -z "$LD"; then
  4931. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4932. for ac_dir in $PATH; do
  4933. IFS="$lt_save_ifs"
  4934. test -z "$ac_dir" && ac_dir=.
  4935. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4936. lt_cv_path_LD="$ac_dir/$ac_prog"
  4937. # Check to see if the program is GNU ld. I'd rather use --version,
  4938. # but apparently some variants of GNU ld only accept -v.
  4939. # Break only if it was the GNU/non-GNU ld that we prefer.
  4940. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4941. *GNU* | *'with BFD'*)
  4942. test "$with_gnu_ld" != no && break
  4943. ;;
  4944. *)
  4945. test "$with_gnu_ld" != yes && break
  4946. ;;
  4947. esac
  4948. fi
  4949. done
  4950. IFS="$lt_save_ifs"
  4951. else
  4952. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4953. fi
  4954. fi
  4955. LD="$lt_cv_path_LD"
  4956. if test -n "$LD"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4958. $as_echo "$LD" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4961. $as_echo "no" >&6; }
  4962. fi
  4963. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4965. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4966. if ${lt_cv_prog_gnu_ld+:} false; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4970. case `$LD -v 2>&1 </dev/null` in
  4971. *GNU* | *'with BFD'*)
  4972. lt_cv_prog_gnu_ld=yes
  4973. ;;
  4974. *)
  4975. lt_cv_prog_gnu_ld=no
  4976. ;;
  4977. esac
  4978. fi
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4980. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4981. with_gnu_ld=$lt_cv_prog_gnu_ld
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4983. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4984. if ${lt_cv_path_NM+:} false; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. if test -n "$NM"; then
  4988. # Let the user override the test.
  4989. lt_cv_path_NM="$NM"
  4990. else
  4991. lt_nm_to_check="${ac_tool_prefix}nm"
  4992. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4993. lt_nm_to_check="$lt_nm_to_check nm"
  4994. fi
  4995. for lt_tmp_nm in $lt_nm_to_check; do
  4996. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4997. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4998. IFS="$lt_save_ifs"
  4999. test -z "$ac_dir" && ac_dir=.
  5000. tmp_nm="$ac_dir/$lt_tmp_nm"
  5001. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5002. # Check to see if the nm accepts a BSD-compat flag.
  5003. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5004. # nm: unknown option "B" ignored
  5005. # Tru64's nm complains that /dev/null is an invalid object file
  5006. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5007. */dev/null* | *'Invalid file or object type'*)
  5008. lt_cv_path_NM="$tmp_nm -B"
  5009. break
  5010. ;;
  5011. *)
  5012. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5013. */dev/null*)
  5014. lt_cv_path_NM="$tmp_nm -p"
  5015. break
  5016. ;;
  5017. *)
  5018. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5019. continue # so that we can try to find one that supports BSD flags
  5020. ;;
  5021. esac
  5022. ;;
  5023. esac
  5024. fi
  5025. done
  5026. IFS="$lt_save_ifs"
  5027. done
  5028. : ${lt_cv_path_NM=no}
  5029. fi
  5030. fi
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5032. $as_echo "$lt_cv_path_NM" >&6; }
  5033. if test "$lt_cv_path_NM" != "no"; then
  5034. NM="$lt_cv_path_NM"
  5035. else
  5036. # Didn't find any BSD compatible name lister, look for dumpbin.
  5037. if test -n "$DUMPBIN"; then :
  5038. # Let the user override the test.
  5039. else
  5040. if test -n "$ac_tool_prefix"; then
  5041. for ac_prog in dumpbin "link -dump"
  5042. do
  5043. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5044. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5046. $as_echo_n "checking for $ac_word... " >&6; }
  5047. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5048. $as_echo_n "(cached) " >&6
  5049. else
  5050. if test -n "$DUMPBIN"; then
  5051. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5052. else
  5053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5054. for as_dir in $PATH
  5055. do
  5056. IFS=$as_save_IFS
  5057. test -z "$as_dir" && as_dir=.
  5058. for ac_exec_ext in '' $ac_executable_extensions; do
  5059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5060. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5062. break 2
  5063. fi
  5064. done
  5065. done
  5066. IFS=$as_save_IFS
  5067. fi
  5068. fi
  5069. DUMPBIN=$ac_cv_prog_DUMPBIN
  5070. if test -n "$DUMPBIN"; then
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5072. $as_echo "$DUMPBIN" >&6; }
  5073. else
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5075. $as_echo "no" >&6; }
  5076. fi
  5077. test -n "$DUMPBIN" && break
  5078. done
  5079. fi
  5080. if test -z "$DUMPBIN"; then
  5081. ac_ct_DUMPBIN=$DUMPBIN
  5082. for ac_prog in dumpbin "link -dump"
  5083. do
  5084. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5085. set dummy $ac_prog; ac_word=$2
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5087. $as_echo_n "checking for $ac_word... " >&6; }
  5088. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5089. $as_echo_n "(cached) " >&6
  5090. else
  5091. if test -n "$ac_ct_DUMPBIN"; then
  5092. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5093. else
  5094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5095. for as_dir in $PATH
  5096. do
  5097. IFS=$as_save_IFS
  5098. test -z "$as_dir" && as_dir=.
  5099. for ac_exec_ext in '' $ac_executable_extensions; do
  5100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5101. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5103. break 2
  5104. fi
  5105. done
  5106. done
  5107. IFS=$as_save_IFS
  5108. fi
  5109. fi
  5110. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5111. if test -n "$ac_ct_DUMPBIN"; then
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5113. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5114. else
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5116. $as_echo "no" >&6; }
  5117. fi
  5118. test -n "$ac_ct_DUMPBIN" && break
  5119. done
  5120. if test "x$ac_ct_DUMPBIN" = x; then
  5121. DUMPBIN=":"
  5122. else
  5123. case $cross_compiling:$ac_tool_warned in
  5124. yes:)
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5127. ac_tool_warned=yes ;;
  5128. esac
  5129. DUMPBIN=$ac_ct_DUMPBIN
  5130. fi
  5131. fi
  5132. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5133. *COFF*)
  5134. DUMPBIN="$DUMPBIN -symbols"
  5135. ;;
  5136. *)
  5137. DUMPBIN=:
  5138. ;;
  5139. esac
  5140. fi
  5141. if test "$DUMPBIN" != ":"; then
  5142. NM="$DUMPBIN"
  5143. fi
  5144. fi
  5145. test -z "$NM" && NM=nm
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5147. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5148. if ${lt_cv_nm_interface+:} false; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. lt_cv_nm_interface="BSD nm"
  5152. echo "int some_variable = 0;" > conftest.$ac_ext
  5153. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5154. (eval "$ac_compile" 2>conftest.err)
  5155. cat conftest.err >&5
  5156. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5157. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5158. cat conftest.err >&5
  5159. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5160. cat conftest.out >&5
  5161. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5162. lt_cv_nm_interface="MS dumpbin"
  5163. fi
  5164. rm -f conftest*
  5165. fi
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5167. $as_echo "$lt_cv_nm_interface" >&6; }
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5169. $as_echo_n "checking whether ln -s works... " >&6; }
  5170. LN_S=$as_ln_s
  5171. if test "$LN_S" = "ln -s"; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5173. $as_echo "yes" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5176. $as_echo "no, using $LN_S" >&6; }
  5177. fi
  5178. # find the maximum length of command line arguments
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5180. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5181. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. i=0
  5185. teststring="ABCD"
  5186. case $build_os in
  5187. msdosdjgpp*)
  5188. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5189. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5190. # during glob expansion). Even if it were fixed, the result of this
  5191. # check would be larger than it should be.
  5192. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5193. ;;
  5194. gnu*)
  5195. # Under GNU Hurd, this test is not required because there is
  5196. # no limit to the length of command line arguments.
  5197. # Libtool will interpret -1 as no limit whatsoever
  5198. lt_cv_sys_max_cmd_len=-1;
  5199. ;;
  5200. cygwin* | mingw* | cegcc*)
  5201. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5202. # about 5 minutes as the teststring grows exponentially.
  5203. # Worse, since 9x/ME are not pre-emptively multitasking,
  5204. # you end up with a "frozen" computer, even though with patience
  5205. # the test eventually succeeds (with a max line length of 256k).
  5206. # Instead, let's just punt: use the minimum linelength reported by
  5207. # all of the supported platforms: 8192 (on NT/2K/XP).
  5208. lt_cv_sys_max_cmd_len=8192;
  5209. ;;
  5210. mint*)
  5211. # On MiNT this can take a long time and run out of memory.
  5212. lt_cv_sys_max_cmd_len=8192;
  5213. ;;
  5214. amigaos*)
  5215. # On AmigaOS with pdksh, this test takes hours, literally.
  5216. # So we just punt and use a minimum line length of 8192.
  5217. lt_cv_sys_max_cmd_len=8192;
  5218. ;;
  5219. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5220. # This has been around since 386BSD, at least. Likely further.
  5221. if test -x /sbin/sysctl; then
  5222. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5223. elif test -x /usr/sbin/sysctl; then
  5224. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5225. else
  5226. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5227. fi
  5228. # And add a safety zone
  5229. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5230. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5231. ;;
  5232. interix*)
  5233. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5234. lt_cv_sys_max_cmd_len=196608
  5235. ;;
  5236. os2*)
  5237. # The test takes a long time on OS/2.
  5238. lt_cv_sys_max_cmd_len=8192
  5239. ;;
  5240. osf*)
  5241. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5242. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5243. # nice to cause kernel panics so lets avoid the loop below.
  5244. # First set a reasonable default.
  5245. lt_cv_sys_max_cmd_len=16384
  5246. #
  5247. if test -x /sbin/sysconfig; then
  5248. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5249. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5250. esac
  5251. fi
  5252. ;;
  5253. sco3.2v5*)
  5254. lt_cv_sys_max_cmd_len=102400
  5255. ;;
  5256. sysv5* | sco5v6* | sysv4.2uw2*)
  5257. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5258. if test -n "$kargmax"; then
  5259. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5260. else
  5261. lt_cv_sys_max_cmd_len=32768
  5262. fi
  5263. ;;
  5264. *)
  5265. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5266. if test -n "$lt_cv_sys_max_cmd_len"; then
  5267. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5268. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5269. else
  5270. # Make teststring a little bigger before we do anything with it.
  5271. # a 1K string should be a reasonable start.
  5272. for i in 1 2 3 4 5 6 7 8 ; do
  5273. teststring=$teststring$teststring
  5274. done
  5275. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5276. # If test is not a shell built-in, we'll probably end up computing a
  5277. # maximum length that is only half of the actual maximum length, but
  5278. # we can't tell.
  5279. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5280. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5281. test $i != 17 # 1/2 MB should be enough
  5282. do
  5283. i=`expr $i + 1`
  5284. teststring=$teststring$teststring
  5285. done
  5286. # Only check the string length outside the loop.
  5287. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5288. teststring=
  5289. # Add a significant safety factor because C++ compilers can tack on
  5290. # massive amounts of additional arguments before passing them to the
  5291. # linker. It appears as though 1/2 is a usable value.
  5292. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5293. fi
  5294. ;;
  5295. esac
  5296. fi
  5297. if test -n $lt_cv_sys_max_cmd_len ; then
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5299. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5300. else
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5302. $as_echo "none" >&6; }
  5303. fi
  5304. max_cmd_len=$lt_cv_sys_max_cmd_len
  5305. : ${CP="cp -f"}
  5306. : ${MV="mv -f"}
  5307. : ${RM="rm -f"}
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5309. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5310. # Try some XSI features
  5311. xsi_shell=no
  5312. ( _lt_dummy="a/b/c"
  5313. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5314. = c,a/b,b/c, \
  5315. && eval 'test $(( 1 + 1 )) -eq 2 \
  5316. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5317. && xsi_shell=yes
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5319. $as_echo "$xsi_shell" >&6; }
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5321. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5322. lt_shell_append=no
  5323. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5324. >/dev/null 2>&1 \
  5325. && lt_shell_append=yes
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5327. $as_echo "$lt_shell_append" >&6; }
  5328. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5329. lt_unset=unset
  5330. else
  5331. lt_unset=false
  5332. fi
  5333. # test EBCDIC or ASCII
  5334. case `echo X|tr X '\101'` in
  5335. A) # ASCII based system
  5336. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5337. lt_SP2NL='tr \040 \012'
  5338. lt_NL2SP='tr \015\012 \040\040'
  5339. ;;
  5340. *) # EBCDIC based system
  5341. lt_SP2NL='tr \100 \n'
  5342. lt_NL2SP='tr \r\n \100\100'
  5343. ;;
  5344. esac
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5346. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5347. if ${lt_cv_to_host_file_cmd+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. case $host in
  5351. *-*-mingw* )
  5352. case $build in
  5353. *-*-mingw* ) # actually msys
  5354. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5355. ;;
  5356. *-*-cygwin* )
  5357. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5358. ;;
  5359. * ) # otherwise, assume *nix
  5360. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5361. ;;
  5362. esac
  5363. ;;
  5364. *-*-cygwin* )
  5365. case $build in
  5366. *-*-mingw* ) # actually msys
  5367. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5368. ;;
  5369. *-*-cygwin* )
  5370. lt_cv_to_host_file_cmd=func_convert_file_noop
  5371. ;;
  5372. * ) # otherwise, assume *nix
  5373. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5374. ;;
  5375. esac
  5376. ;;
  5377. * ) # unhandled hosts (and "normal" native builds)
  5378. lt_cv_to_host_file_cmd=func_convert_file_noop
  5379. ;;
  5380. esac
  5381. fi
  5382. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5384. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5386. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5387. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. #assume ordinary cross tools, or native build.
  5391. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5392. case $host in
  5393. *-*-mingw* )
  5394. case $build in
  5395. *-*-mingw* ) # actually msys
  5396. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5397. ;;
  5398. esac
  5399. ;;
  5400. esac
  5401. fi
  5402. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5404. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5406. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5407. if ${lt_cv_ld_reload_flag+:} false; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. lt_cv_ld_reload_flag='-r'
  5411. fi
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5413. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5414. reload_flag=$lt_cv_ld_reload_flag
  5415. case $reload_flag in
  5416. "" | " "*) ;;
  5417. *) reload_flag=" $reload_flag" ;;
  5418. esac
  5419. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5420. case $host_os in
  5421. cygwin* | mingw* | pw32* | cegcc*)
  5422. if test "$GCC" != yes; then
  5423. reload_cmds=false
  5424. fi
  5425. ;;
  5426. darwin*)
  5427. if test "$GCC" = yes; then
  5428. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5429. else
  5430. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5431. fi
  5432. ;;
  5433. esac
  5434. if test -n "$ac_tool_prefix"; then
  5435. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5436. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5438. $as_echo_n "checking for $ac_word... " >&6; }
  5439. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. if test -n "$OBJDUMP"; then
  5443. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5444. else
  5445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5446. for as_dir in $PATH
  5447. do
  5448. IFS=$as_save_IFS
  5449. test -z "$as_dir" && as_dir=.
  5450. for ac_exec_ext in '' $ac_executable_extensions; do
  5451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5452. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5454. break 2
  5455. fi
  5456. done
  5457. done
  5458. IFS=$as_save_IFS
  5459. fi
  5460. fi
  5461. OBJDUMP=$ac_cv_prog_OBJDUMP
  5462. if test -n "$OBJDUMP"; then
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5464. $as_echo "$OBJDUMP" >&6; }
  5465. else
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5467. $as_echo "no" >&6; }
  5468. fi
  5469. fi
  5470. if test -z "$ac_cv_prog_OBJDUMP"; then
  5471. ac_ct_OBJDUMP=$OBJDUMP
  5472. # Extract the first word of "objdump", so it can be a program name with args.
  5473. set dummy objdump; ac_word=$2
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5475. $as_echo_n "checking for $ac_word... " >&6; }
  5476. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. if test -n "$ac_ct_OBJDUMP"; then
  5480. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5481. else
  5482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5483. for as_dir in $PATH
  5484. do
  5485. IFS=$as_save_IFS
  5486. test -z "$as_dir" && as_dir=.
  5487. for ac_exec_ext in '' $ac_executable_extensions; do
  5488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5489. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5491. break 2
  5492. fi
  5493. done
  5494. done
  5495. IFS=$as_save_IFS
  5496. fi
  5497. fi
  5498. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5499. if test -n "$ac_ct_OBJDUMP"; then
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5501. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5502. else
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5504. $as_echo "no" >&6; }
  5505. fi
  5506. if test "x$ac_ct_OBJDUMP" = x; then
  5507. OBJDUMP="false"
  5508. else
  5509. case $cross_compiling:$ac_tool_warned in
  5510. yes:)
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5513. ac_tool_warned=yes ;;
  5514. esac
  5515. OBJDUMP=$ac_ct_OBJDUMP
  5516. fi
  5517. else
  5518. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5519. fi
  5520. test -z "$OBJDUMP" && OBJDUMP=objdump
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5522. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5523. if ${lt_cv_deplibs_check_method+:} false; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5527. lt_cv_file_magic_test_file=
  5528. lt_cv_deplibs_check_method='unknown'
  5529. # Need to set the preceding variable on all platforms that support
  5530. # interlibrary dependencies.
  5531. # 'none' -- dependencies not supported.
  5532. # `unknown' -- same as none, but documents that we really don't know.
  5533. # 'pass_all' -- all dependencies passed with no checks.
  5534. # 'test_compile' -- check by making test program.
  5535. # 'file_magic [[regex]]' -- check by looking for files in library path
  5536. # which responds to the $file_magic_cmd with a given extended regex.
  5537. # If you have `file' or equivalent on your system and you're not sure
  5538. # whether `pass_all' will *always* work, you probably want this one.
  5539. case $host_os in
  5540. aix[4-9]*)
  5541. lt_cv_deplibs_check_method=pass_all
  5542. ;;
  5543. beos*)
  5544. lt_cv_deplibs_check_method=pass_all
  5545. ;;
  5546. bsdi[45]*)
  5547. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5548. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5549. lt_cv_file_magic_test_file=/shlib/libc.so
  5550. ;;
  5551. cygwin*)
  5552. # func_win32_libid is a shell function defined in ltmain.sh
  5553. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5554. lt_cv_file_magic_cmd='func_win32_libid'
  5555. ;;
  5556. mingw* | pw32*)
  5557. # Base MSYS/MinGW do not provide the 'file' command needed by
  5558. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5559. # unless we find 'file', for example because we are cross-compiling.
  5560. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5561. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5562. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5563. lt_cv_file_magic_cmd='func_win32_libid'
  5564. else
  5565. # Keep this pattern in sync with the one in func_win32_libid.
  5566. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5567. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5568. fi
  5569. ;;
  5570. cegcc*)
  5571. # use the weaker test based on 'objdump'. See mingw*.
  5572. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5573. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5574. ;;
  5575. darwin* | rhapsody*)
  5576. lt_cv_deplibs_check_method=pass_all
  5577. ;;
  5578. freebsd* | dragonfly*)
  5579. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5580. case $host_cpu in
  5581. i*86 )
  5582. # Not sure whether the presence of OpenBSD here was a mistake.
  5583. # Let's accept both of them until this is cleared up.
  5584. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5585. lt_cv_file_magic_cmd=/usr/bin/file
  5586. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5587. ;;
  5588. esac
  5589. else
  5590. lt_cv_deplibs_check_method=pass_all
  5591. fi
  5592. ;;
  5593. gnu*)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. haiku*)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. hpux10.20* | hpux11*)
  5600. lt_cv_file_magic_cmd=/usr/bin/file
  5601. case $host_cpu in
  5602. ia64*)
  5603. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5604. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5605. ;;
  5606. hppa*64*)
  5607. 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]'
  5608. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5609. ;;
  5610. *)
  5611. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5612. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5613. ;;
  5614. esac
  5615. ;;
  5616. interix[3-9]*)
  5617. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5618. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5619. ;;
  5620. irix5* | irix6* | nonstopux*)
  5621. case $LD in
  5622. *-32|*"-32 ") libmagic=32-bit;;
  5623. *-n32|*"-n32 ") libmagic=N32;;
  5624. *-64|*"-64 ") libmagic=64-bit;;
  5625. *) libmagic=never-match;;
  5626. esac
  5627. lt_cv_deplibs_check_method=pass_all
  5628. ;;
  5629. # This must be glibc/ELF.
  5630. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5631. lt_cv_deplibs_check_method=pass_all
  5632. ;;
  5633. netbsd*)
  5634. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5635. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5636. else
  5637. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5638. fi
  5639. ;;
  5640. newos6*)
  5641. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5642. lt_cv_file_magic_cmd=/usr/bin/file
  5643. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5644. ;;
  5645. *nto* | *qnx*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. openbsd*)
  5649. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5650. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5651. else
  5652. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5653. fi
  5654. ;;
  5655. osf3* | osf4* | osf5*)
  5656. lt_cv_deplibs_check_method=pass_all
  5657. ;;
  5658. rdos*)
  5659. lt_cv_deplibs_check_method=pass_all
  5660. ;;
  5661. solaris*)
  5662. lt_cv_deplibs_check_method=pass_all
  5663. ;;
  5664. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5665. lt_cv_deplibs_check_method=pass_all
  5666. ;;
  5667. sysv4 | sysv4.3*)
  5668. case $host_vendor in
  5669. motorola)
  5670. 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]'
  5671. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5672. ;;
  5673. ncr)
  5674. lt_cv_deplibs_check_method=pass_all
  5675. ;;
  5676. sequent)
  5677. lt_cv_file_magic_cmd='/bin/file'
  5678. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5679. ;;
  5680. sni)
  5681. lt_cv_file_magic_cmd='/bin/file'
  5682. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5683. lt_cv_file_magic_test_file=/lib/libc.so
  5684. ;;
  5685. siemens)
  5686. lt_cv_deplibs_check_method=pass_all
  5687. ;;
  5688. pc)
  5689. lt_cv_deplibs_check_method=pass_all
  5690. ;;
  5691. esac
  5692. ;;
  5693. tpf*)
  5694. lt_cv_deplibs_check_method=pass_all
  5695. ;;
  5696. esac
  5697. fi
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5699. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5700. file_magic_glob=
  5701. want_nocaseglob=no
  5702. if test "$build" = "$host"; then
  5703. case $host_os in
  5704. mingw* | pw32*)
  5705. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5706. want_nocaseglob=yes
  5707. else
  5708. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5709. fi
  5710. ;;
  5711. esac
  5712. fi
  5713. file_magic_cmd=$lt_cv_file_magic_cmd
  5714. deplibs_check_method=$lt_cv_deplibs_check_method
  5715. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5716. if test -n "$ac_tool_prefix"; then
  5717. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5718. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5720. $as_echo_n "checking for $ac_word... " >&6; }
  5721. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. if test -n "$DLLTOOL"; then
  5725. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5726. else
  5727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5728. for as_dir in $PATH
  5729. do
  5730. IFS=$as_save_IFS
  5731. test -z "$as_dir" && as_dir=.
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5734. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. fi
  5742. fi
  5743. DLLTOOL=$ac_cv_prog_DLLTOOL
  5744. if test -n "$DLLTOOL"; then
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5746. $as_echo "$DLLTOOL" >&6; }
  5747. else
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. $as_echo "no" >&6; }
  5750. fi
  5751. fi
  5752. if test -z "$ac_cv_prog_DLLTOOL"; then
  5753. ac_ct_DLLTOOL=$DLLTOOL
  5754. # Extract the first word of "dlltool", so it can be a program name with args.
  5755. set dummy dlltool; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$ac_ct_DLLTOOL"; then
  5762. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5771. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5781. if test -n "$ac_ct_DLLTOOL"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5783. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. if test "x$ac_ct_DLLTOOL" = x; then
  5789. DLLTOOL="false"
  5790. else
  5791. case $cross_compiling:$ac_tool_warned in
  5792. yes:)
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5794. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5795. ac_tool_warned=yes ;;
  5796. esac
  5797. DLLTOOL=$ac_ct_DLLTOOL
  5798. fi
  5799. else
  5800. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5801. fi
  5802. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5804. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5805. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5809. case $host_os in
  5810. cygwin* | mingw* | pw32* | cegcc*)
  5811. # two different shell functions defined in ltmain.sh
  5812. # decide which to use based on capabilities of $DLLTOOL
  5813. case `$DLLTOOL --help 2>&1` in
  5814. *--identify-strict*)
  5815. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5816. ;;
  5817. *)
  5818. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5819. ;;
  5820. esac
  5821. ;;
  5822. *)
  5823. # fallback: assume linklib IS sharedlib
  5824. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5825. ;;
  5826. esac
  5827. fi
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5829. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5830. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5831. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5832. if test -n "$ac_tool_prefix"; then
  5833. for ac_prog in ar
  5834. do
  5835. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5836. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5838. $as_echo_n "checking for $ac_word... " >&6; }
  5839. if ${ac_cv_prog_AR+:} false; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. if test -n "$AR"; then
  5843. ac_cv_prog_AR="$AR" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. test -z "$as_dir" && as_dir=.
  5850. for ac_exec_ext in '' $ac_executable_extensions; do
  5851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5852. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5854. break 2
  5855. fi
  5856. done
  5857. done
  5858. IFS=$as_save_IFS
  5859. fi
  5860. fi
  5861. AR=$ac_cv_prog_AR
  5862. if test -n "$AR"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5864. $as_echo "$AR" >&6; }
  5865. else
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. $as_echo "no" >&6; }
  5868. fi
  5869. test -n "$AR" && break
  5870. done
  5871. fi
  5872. if test -z "$AR"; then
  5873. ac_ct_AR=$AR
  5874. for ac_prog in ar
  5875. do
  5876. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5877. set dummy $ac_prog; ac_word=$2
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5879. $as_echo_n "checking for $ac_word... " >&6; }
  5880. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. if test -n "$ac_ct_AR"; then
  5884. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5885. else
  5886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5887. for as_dir in $PATH
  5888. do
  5889. IFS=$as_save_IFS
  5890. test -z "$as_dir" && as_dir=.
  5891. for ac_exec_ext in '' $ac_executable_extensions; do
  5892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5893. ac_cv_prog_ac_ct_AR="$ac_prog"
  5894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5895. break 2
  5896. fi
  5897. done
  5898. done
  5899. IFS=$as_save_IFS
  5900. fi
  5901. fi
  5902. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5903. if test -n "$ac_ct_AR"; then
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5905. $as_echo "$ac_ct_AR" >&6; }
  5906. else
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5908. $as_echo "no" >&6; }
  5909. fi
  5910. test -n "$ac_ct_AR" && break
  5911. done
  5912. if test "x$ac_ct_AR" = x; then
  5913. AR="false"
  5914. else
  5915. case $cross_compiling:$ac_tool_warned in
  5916. yes:)
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5919. ac_tool_warned=yes ;;
  5920. esac
  5921. AR=$ac_ct_AR
  5922. fi
  5923. fi
  5924. : ${AR=ar}
  5925. : ${AR_FLAGS=cru}
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5927. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5928. if ${lt_cv_ar_at_file+:} false; then :
  5929. $as_echo_n "(cached) " >&6
  5930. else
  5931. lt_cv_ar_at_file=no
  5932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end confdefs.h. */
  5934. int
  5935. main ()
  5936. {
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. if ac_fn_c_try_compile "$LINENO"; then :
  5942. echo conftest.$ac_objext > conftest.lst
  5943. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5944. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5945. (eval $lt_ar_try) 2>&5
  5946. ac_status=$?
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5948. test $ac_status = 0; }
  5949. if test "$ac_status" -eq 0; then
  5950. # Ensure the archiver fails upon bogus file names.
  5951. rm -f conftest.$ac_objext libconftest.a
  5952. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5953. (eval $lt_ar_try) 2>&5
  5954. ac_status=$?
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5956. test $ac_status = 0; }
  5957. if test "$ac_status" -ne 0; then
  5958. lt_cv_ar_at_file=@
  5959. fi
  5960. fi
  5961. rm -f conftest.* libconftest.a
  5962. fi
  5963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5964. fi
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5966. $as_echo "$lt_cv_ar_at_file" >&6; }
  5967. if test "x$lt_cv_ar_at_file" = xno; then
  5968. archiver_list_spec=
  5969. else
  5970. archiver_list_spec=$lt_cv_ar_at_file
  5971. fi
  5972. if test -n "$ac_tool_prefix"; then
  5973. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5974. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5976. $as_echo_n "checking for $ac_word... " >&6; }
  5977. if ${ac_cv_prog_STRIP+:} false; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. if test -n "$STRIP"; then
  5981. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5982. else
  5983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5984. for as_dir in $PATH
  5985. do
  5986. IFS=$as_save_IFS
  5987. test -z "$as_dir" && as_dir=.
  5988. for ac_exec_ext in '' $ac_executable_extensions; do
  5989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5990. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5992. break 2
  5993. fi
  5994. done
  5995. done
  5996. IFS=$as_save_IFS
  5997. fi
  5998. fi
  5999. STRIP=$ac_cv_prog_STRIP
  6000. if test -n "$STRIP"; then
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6002. $as_echo "$STRIP" >&6; }
  6003. else
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6005. $as_echo "no" >&6; }
  6006. fi
  6007. fi
  6008. if test -z "$ac_cv_prog_STRIP"; then
  6009. ac_ct_STRIP=$STRIP
  6010. # Extract the first word of "strip", so it can be a program name with args.
  6011. set dummy strip; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. if test -n "$ac_ct_STRIP"; then
  6018. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023. IFS=$as_save_IFS
  6024. test -z "$as_dir" && as_dir=.
  6025. for ac_exec_ext in '' $ac_executable_extensions; do
  6026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6027. ac_cv_prog_ac_ct_STRIP="strip"
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029. break 2
  6030. fi
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. fi
  6035. fi
  6036. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6037. if test -n "$ac_ct_STRIP"; then
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6039. $as_echo "$ac_ct_STRIP" >&6; }
  6040. else
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. $as_echo "no" >&6; }
  6043. fi
  6044. if test "x$ac_ct_STRIP" = x; then
  6045. STRIP=":"
  6046. else
  6047. case $cross_compiling:$ac_tool_warned in
  6048. yes:)
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6051. ac_tool_warned=yes ;;
  6052. esac
  6053. STRIP=$ac_ct_STRIP
  6054. fi
  6055. else
  6056. STRIP="$ac_cv_prog_STRIP"
  6057. fi
  6058. test -z "$STRIP" && STRIP=:
  6059. if test -n "$ac_tool_prefix"; then
  6060. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6061. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6063. $as_echo_n "checking for $ac_word... " >&6; }
  6064. if ${ac_cv_prog_RANLIB+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. if test -n "$RANLIB"; then
  6068. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6069. else
  6070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6071. for as_dir in $PATH
  6072. do
  6073. IFS=$as_save_IFS
  6074. test -z "$as_dir" && as_dir=.
  6075. for ac_exec_ext in '' $ac_executable_extensions; do
  6076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6077. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6079. break 2
  6080. fi
  6081. done
  6082. done
  6083. IFS=$as_save_IFS
  6084. fi
  6085. fi
  6086. RANLIB=$ac_cv_prog_RANLIB
  6087. if test -n "$RANLIB"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6089. $as_echo "$RANLIB" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6092. $as_echo "no" >&6; }
  6093. fi
  6094. fi
  6095. if test -z "$ac_cv_prog_RANLIB"; then
  6096. ac_ct_RANLIB=$RANLIB
  6097. # Extract the first word of "ranlib", so it can be a program name with args.
  6098. set dummy ranlib; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$ac_ct_RANLIB"; then
  6105. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6114. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6124. if test -n "$ac_ct_RANLIB"; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6126. $as_echo "$ac_ct_RANLIB" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. if test "x$ac_ct_RANLIB" = x; then
  6132. RANLIB=":"
  6133. else
  6134. case $cross_compiling:$ac_tool_warned in
  6135. yes:)
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6138. ac_tool_warned=yes ;;
  6139. esac
  6140. RANLIB=$ac_ct_RANLIB
  6141. fi
  6142. else
  6143. RANLIB="$ac_cv_prog_RANLIB"
  6144. fi
  6145. test -z "$RANLIB" && RANLIB=:
  6146. # Determine commands to create old-style static archives.
  6147. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6148. old_postinstall_cmds='chmod 644 $oldlib'
  6149. old_postuninstall_cmds=
  6150. if test -n "$RANLIB"; then
  6151. case $host_os in
  6152. openbsd*)
  6153. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6154. ;;
  6155. *)
  6156. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6157. ;;
  6158. esac
  6159. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6160. fi
  6161. case $host_os in
  6162. darwin*)
  6163. lock_old_archive_extraction=yes ;;
  6164. *)
  6165. lock_old_archive_extraction=no ;;
  6166. esac
  6167. # If no C compiler was specified, use CC.
  6168. LTCC=${LTCC-"$CC"}
  6169. # If no C compiler flags were specified, use CFLAGS.
  6170. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6171. # Allow CC to be a program name with arguments.
  6172. compiler=$CC
  6173. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6175. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6176. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. # These are sane defaults that work on at least a few old systems.
  6180. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6181. # Character class describing NM global symbol codes.
  6182. symcode='[BCDEGRST]'
  6183. # Regexp to match symbols that can be accessed directly from C.
  6184. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6185. # Define system-specific variables.
  6186. case $host_os in
  6187. aix*)
  6188. symcode='[BCDT]'
  6189. ;;
  6190. cygwin* | mingw* | pw32* | cegcc*)
  6191. symcode='[ABCDGISTW]'
  6192. ;;
  6193. hpux*)
  6194. if test "$host_cpu" = ia64; then
  6195. symcode='[ABCDEGRST]'
  6196. fi
  6197. ;;
  6198. irix* | nonstopux*)
  6199. symcode='[BCDEGRST]'
  6200. ;;
  6201. osf*)
  6202. symcode='[BCDEGQRST]'
  6203. ;;
  6204. solaris*)
  6205. symcode='[BDRT]'
  6206. ;;
  6207. sco3.2v5*)
  6208. symcode='[DT]'
  6209. ;;
  6210. sysv4.2uw2*)
  6211. symcode='[DT]'
  6212. ;;
  6213. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6214. symcode='[ABDT]'
  6215. ;;
  6216. sysv4)
  6217. symcode='[DFNSTU]'
  6218. ;;
  6219. esac
  6220. # If we're using GNU nm, then use its standard symbol codes.
  6221. case `$NM -V 2>&1` in
  6222. *GNU* | *'with BFD'*)
  6223. symcode='[ABCDGIRSTW]' ;;
  6224. esac
  6225. # Transform an extracted symbol line into a proper C declaration.
  6226. # Some systems (esp. on ia64) link data and code symbols differently,
  6227. # so use this general approach.
  6228. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6229. # Transform an extracted symbol line into symbol name and symbol address
  6230. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6231. 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'"
  6232. # Handle CRLF in mingw tool chain
  6233. opt_cr=
  6234. case $build_os in
  6235. mingw*)
  6236. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6237. ;;
  6238. esac
  6239. # Try without a prefix underscore, then with it.
  6240. for ac_symprfx in "" "_"; do
  6241. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6242. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6243. # Write the raw and C identifiers.
  6244. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6245. # Fake it for dumpbin and say T for any non-static function
  6246. # and D for any global variable.
  6247. # Also find C++ and __fastcall symbols from MSVC++,
  6248. # which start with @ or ?.
  6249. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6250. " {last_section=section; section=\$ 3};"\
  6251. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6252. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6253. " \$ 0!~/External *\|/{next};"\
  6254. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6255. " {if(hide[section]) next};"\
  6256. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6257. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6258. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6259. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6260. " ' prfx=^$ac_symprfx"
  6261. else
  6262. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6263. fi
  6264. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6265. # Check to see that the pipe works correctly.
  6266. pipe_works=no
  6267. rm -f conftest*
  6268. cat > conftest.$ac_ext <<_LT_EOF
  6269. #ifdef __cplusplus
  6270. extern "C" {
  6271. #endif
  6272. char nm_test_var;
  6273. void nm_test_func(void);
  6274. void nm_test_func(void){}
  6275. #ifdef __cplusplus
  6276. }
  6277. #endif
  6278. int main(){nm_test_var='a';nm_test_func();return(0);}
  6279. _LT_EOF
  6280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6281. (eval $ac_compile) 2>&5
  6282. ac_status=$?
  6283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6284. test $ac_status = 0; }; then
  6285. # Now try to grab the symbols.
  6286. nlist=conftest.nm
  6287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6288. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6289. ac_status=$?
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6291. test $ac_status = 0; } && test -s "$nlist"; then
  6292. # Try sorting and uniquifying the output.
  6293. if sort "$nlist" | uniq > "$nlist"T; then
  6294. mv -f "$nlist"T "$nlist"
  6295. else
  6296. rm -f "$nlist"T
  6297. fi
  6298. # Make sure that we snagged all the symbols we need.
  6299. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6300. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6301. cat <<_LT_EOF > conftest.$ac_ext
  6302. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6303. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6304. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6305. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6306. # define LT_DLSYM_CONST
  6307. #elif defined(__osf__)
  6308. /* This system does not cope well with relocations in const data. */
  6309. # define LT_DLSYM_CONST
  6310. #else
  6311. # define LT_DLSYM_CONST const
  6312. #endif
  6313. #ifdef __cplusplus
  6314. extern "C" {
  6315. #endif
  6316. _LT_EOF
  6317. # Now generate the symbol file.
  6318. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6319. cat <<_LT_EOF >> conftest.$ac_ext
  6320. /* The mapping between symbol names and symbols. */
  6321. LT_DLSYM_CONST struct {
  6322. const char *name;
  6323. void *address;
  6324. }
  6325. lt__PROGRAM__LTX_preloaded_symbols[] =
  6326. {
  6327. { "@PROGRAM@", (void *) 0 },
  6328. _LT_EOF
  6329. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6330. cat <<\_LT_EOF >> conftest.$ac_ext
  6331. {0, (void *) 0}
  6332. };
  6333. /* This works around a problem in FreeBSD linker */
  6334. #ifdef FREEBSD_WORKAROUND
  6335. static const void *lt_preloaded_setup() {
  6336. return lt__PROGRAM__LTX_preloaded_symbols;
  6337. }
  6338. #endif
  6339. #ifdef __cplusplus
  6340. }
  6341. #endif
  6342. _LT_EOF
  6343. # Now try linking the two files.
  6344. mv conftest.$ac_objext conftstm.$ac_objext
  6345. lt_globsym_save_LIBS=$LIBS
  6346. lt_globsym_save_CFLAGS=$CFLAGS
  6347. LIBS="conftstm.$ac_objext"
  6348. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6349. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6350. (eval $ac_link) 2>&5
  6351. ac_status=$?
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6353. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6354. pipe_works=yes
  6355. fi
  6356. LIBS=$lt_globsym_save_LIBS
  6357. CFLAGS=$lt_globsym_save_CFLAGS
  6358. else
  6359. echo "cannot find nm_test_func in $nlist" >&5
  6360. fi
  6361. else
  6362. echo "cannot find nm_test_var in $nlist" >&5
  6363. fi
  6364. else
  6365. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6366. fi
  6367. else
  6368. echo "$progname: failed program was:" >&5
  6369. cat conftest.$ac_ext >&5
  6370. fi
  6371. rm -rf conftest* conftst*
  6372. # Do not use the global_symbol_pipe unless it works.
  6373. if test "$pipe_works" = yes; then
  6374. break
  6375. else
  6376. lt_cv_sys_global_symbol_pipe=
  6377. fi
  6378. done
  6379. fi
  6380. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6381. lt_cv_sys_global_symbol_to_cdecl=
  6382. fi
  6383. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6385. $as_echo "failed" >&6; }
  6386. else
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6388. $as_echo "ok" >&6; }
  6389. fi
  6390. # Response file support.
  6391. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6392. nm_file_list_spec='@'
  6393. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6394. nm_file_list_spec='@'
  6395. fi
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6397. $as_echo_n "checking for sysroot... " >&6; }
  6398. # Check whether --with-sysroot was given.
  6399. if test "${with_sysroot+set}" = set; then :
  6400. withval=$with_sysroot;
  6401. else
  6402. with_sysroot=no
  6403. fi
  6404. lt_sysroot=
  6405. case ${with_sysroot} in #(
  6406. yes)
  6407. if test "$GCC" = yes; then
  6408. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6409. fi
  6410. ;; #(
  6411. /*)
  6412. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6413. ;; #(
  6414. no|'')
  6415. ;; #(
  6416. *)
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6418. $as_echo "${with_sysroot}" >&6; }
  6419. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6420. ;;
  6421. esac
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6423. $as_echo "${lt_sysroot:-no}" >&6; }
  6424. # Check whether --enable-libtool-lock was given.
  6425. if test "${enable_libtool_lock+set}" = set; then :
  6426. enableval=$enable_libtool_lock;
  6427. fi
  6428. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6429. # Some flags need to be propagated to the compiler or linker for good
  6430. # libtool support.
  6431. case $host in
  6432. ia64-*-hpux*)
  6433. # Find out which ABI we are using.
  6434. echo 'int i;' > conftest.$ac_ext
  6435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6436. (eval $ac_compile) 2>&5
  6437. ac_status=$?
  6438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6439. test $ac_status = 0; }; then
  6440. case `/usr/bin/file conftest.$ac_objext` in
  6441. *ELF-32*)
  6442. HPUX_IA64_MODE="32"
  6443. ;;
  6444. *ELF-64*)
  6445. HPUX_IA64_MODE="64"
  6446. ;;
  6447. esac
  6448. fi
  6449. rm -rf conftest*
  6450. ;;
  6451. *-*-irix6*)
  6452. # Find out which ABI we are using.
  6453. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6455. (eval $ac_compile) 2>&5
  6456. ac_status=$?
  6457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6458. test $ac_status = 0; }; then
  6459. if test "$lt_cv_prog_gnu_ld" = yes; then
  6460. case `/usr/bin/file conftest.$ac_objext` in
  6461. *32-bit*)
  6462. LD="${LD-ld} -melf32bsmip"
  6463. ;;
  6464. *N32*)
  6465. LD="${LD-ld} -melf32bmipn32"
  6466. ;;
  6467. *64-bit*)
  6468. LD="${LD-ld} -melf64bmip"
  6469. ;;
  6470. esac
  6471. else
  6472. case `/usr/bin/file conftest.$ac_objext` in
  6473. *32-bit*)
  6474. LD="${LD-ld} -32"
  6475. ;;
  6476. *N32*)
  6477. LD="${LD-ld} -n32"
  6478. ;;
  6479. *64-bit*)
  6480. LD="${LD-ld} -64"
  6481. ;;
  6482. esac
  6483. fi
  6484. fi
  6485. rm -rf conftest*
  6486. ;;
  6487. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6488. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6489. # Find out which ABI we are using.
  6490. echo 'int i;' > conftest.$ac_ext
  6491. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6492. (eval $ac_compile) 2>&5
  6493. ac_status=$?
  6494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6495. test $ac_status = 0; }; then
  6496. case `/usr/bin/file conftest.o` in
  6497. *32-bit*)
  6498. case $host in
  6499. x86_64-*kfreebsd*-gnu)
  6500. LD="${LD-ld} -m elf_i386_fbsd"
  6501. ;;
  6502. x86_64-*linux*)
  6503. LD="${LD-ld} -m elf_i386"
  6504. ;;
  6505. ppc64-*linux*|powerpc64-*linux*)
  6506. LD="${LD-ld} -m elf32ppclinux"
  6507. ;;
  6508. s390x-*linux*)
  6509. LD="${LD-ld} -m elf_s390"
  6510. ;;
  6511. sparc64-*linux*)
  6512. LD="${LD-ld} -m elf32_sparc"
  6513. ;;
  6514. esac
  6515. ;;
  6516. *64-bit*)
  6517. case $host in
  6518. x86_64-*kfreebsd*-gnu)
  6519. LD="${LD-ld} -m elf_x86_64_fbsd"
  6520. ;;
  6521. x86_64-*linux*)
  6522. LD="${LD-ld} -m elf_x86_64"
  6523. ;;
  6524. ppc*-*linux*|powerpc*-*linux*)
  6525. LD="${LD-ld} -m elf64ppc"
  6526. ;;
  6527. s390*-*linux*|s390*-*tpf*)
  6528. LD="${LD-ld} -m elf64_s390"
  6529. ;;
  6530. sparc*-*linux*)
  6531. LD="${LD-ld} -m elf64_sparc"
  6532. ;;
  6533. esac
  6534. ;;
  6535. esac
  6536. fi
  6537. rm -rf conftest*
  6538. ;;
  6539. *-*-sco3.2v5*)
  6540. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6541. SAVE_CFLAGS="$CFLAGS"
  6542. CFLAGS="$CFLAGS -belf"
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6544. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6545. if ${lt_cv_cc_needs_belf+:} false; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. ac_ext=c
  6549. ac_cpp='$CPP $CPPFLAGS'
  6550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6554. /* end confdefs.h. */
  6555. int
  6556. main ()
  6557. {
  6558. ;
  6559. return 0;
  6560. }
  6561. _ACEOF
  6562. if ac_fn_c_try_link "$LINENO"; then :
  6563. lt_cv_cc_needs_belf=yes
  6564. else
  6565. lt_cv_cc_needs_belf=no
  6566. fi
  6567. rm -f core conftest.err conftest.$ac_objext \
  6568. conftest$ac_exeext conftest.$ac_ext
  6569. ac_ext=c
  6570. ac_cpp='$CPP $CPPFLAGS'
  6571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6576. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6577. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6578. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6579. CFLAGS="$SAVE_CFLAGS"
  6580. fi
  6581. ;;
  6582. *-*solaris*)
  6583. # Find out which ABI we are using.
  6584. echo 'int i;' > conftest.$ac_ext
  6585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6586. (eval $ac_compile) 2>&5
  6587. ac_status=$?
  6588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6589. test $ac_status = 0; }; then
  6590. case `/usr/bin/file conftest.o` in
  6591. *64-bit*)
  6592. case $lt_cv_prog_gnu_ld in
  6593. yes*)
  6594. case $host in
  6595. i?86-*-solaris*)
  6596. LD="${LD-ld} -m elf_x86_64"
  6597. ;;
  6598. sparc*-*-solaris*)
  6599. LD="${LD-ld} -m elf64_sparc"
  6600. ;;
  6601. esac
  6602. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6603. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6604. LD="${LD-ld}_sol2"
  6605. fi
  6606. ;;
  6607. *)
  6608. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6609. LD="${LD-ld} -64"
  6610. fi
  6611. ;;
  6612. esac
  6613. ;;
  6614. esac
  6615. fi
  6616. rm -rf conftest*
  6617. ;;
  6618. esac
  6619. need_locks="$enable_libtool_lock"
  6620. if test -n "$ac_tool_prefix"; then
  6621. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6622. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. $as_echo_n "checking for $ac_word... " >&6; }
  6625. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. if test -n "$MANIFEST_TOOL"; then
  6629. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6630. else
  6631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6632. for as_dir in $PATH
  6633. do
  6634. IFS=$as_save_IFS
  6635. test -z "$as_dir" && as_dir=.
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. fi
  6646. fi
  6647. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6648. if test -n "$MANIFEST_TOOL"; then
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6650. $as_echo "$MANIFEST_TOOL" >&6; }
  6651. else
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6653. $as_echo "no" >&6; }
  6654. fi
  6655. fi
  6656. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6657. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6658. # Extract the first word of "mt", so it can be a program name with args.
  6659. set dummy mt; ac_word=$2
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. $as_echo_n "checking for $ac_word... " >&6; }
  6662. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6663. $as_echo_n "(cached) " >&6
  6664. else
  6665. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6666. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6667. else
  6668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6669. for as_dir in $PATH
  6670. do
  6671. IFS=$as_save_IFS
  6672. test -z "$as_dir" && as_dir=.
  6673. for ac_exec_ext in '' $ac_executable_extensions; do
  6674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6675. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6677. break 2
  6678. fi
  6679. done
  6680. done
  6681. IFS=$as_save_IFS
  6682. fi
  6683. fi
  6684. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6685. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6687. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6688. else
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6690. $as_echo "no" >&6; }
  6691. fi
  6692. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6693. MANIFEST_TOOL=":"
  6694. else
  6695. case $cross_compiling:$ac_tool_warned in
  6696. yes:)
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6698. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6699. ac_tool_warned=yes ;;
  6700. esac
  6701. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6702. fi
  6703. else
  6704. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6705. fi
  6706. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6708. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6709. if ${lt_cv_path_mainfest_tool+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. lt_cv_path_mainfest_tool=no
  6713. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6714. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6715. cat conftest.err >&5
  6716. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6717. lt_cv_path_mainfest_tool=yes
  6718. fi
  6719. rm -f conftest*
  6720. fi
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6722. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6723. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6724. MANIFEST_TOOL=:
  6725. fi
  6726. case $host_os in
  6727. rhapsody* | darwin*)
  6728. if test -n "$ac_tool_prefix"; then
  6729. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6730. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6732. $as_echo_n "checking for $ac_word... " >&6; }
  6733. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6734. $as_echo_n "(cached) " >&6
  6735. else
  6736. if test -n "$DSYMUTIL"; then
  6737. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6738. else
  6739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6740. for as_dir in $PATH
  6741. do
  6742. IFS=$as_save_IFS
  6743. test -z "$as_dir" && as_dir=.
  6744. for ac_exec_ext in '' $ac_executable_extensions; do
  6745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6746. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6748. break 2
  6749. fi
  6750. done
  6751. done
  6752. IFS=$as_save_IFS
  6753. fi
  6754. fi
  6755. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6756. if test -n "$DSYMUTIL"; then
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6758. $as_echo "$DSYMUTIL" >&6; }
  6759. else
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6761. $as_echo "no" >&6; }
  6762. fi
  6763. fi
  6764. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6765. ac_ct_DSYMUTIL=$DSYMUTIL
  6766. # Extract the first word of "dsymutil", so it can be a program name with args.
  6767. set dummy dsymutil; ac_word=$2
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6769. $as_echo_n "checking for $ac_word... " >&6; }
  6770. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6771. $as_echo_n "(cached) " >&6
  6772. else
  6773. if test -n "$ac_ct_DSYMUTIL"; then
  6774. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6775. else
  6776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6777. for as_dir in $PATH
  6778. do
  6779. IFS=$as_save_IFS
  6780. test -z "$as_dir" && as_dir=.
  6781. for ac_exec_ext in '' $ac_executable_extensions; do
  6782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6783. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6785. break 2
  6786. fi
  6787. done
  6788. done
  6789. IFS=$as_save_IFS
  6790. fi
  6791. fi
  6792. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6793. if test -n "$ac_ct_DSYMUTIL"; then
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6795. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6796. else
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6798. $as_echo "no" >&6; }
  6799. fi
  6800. if test "x$ac_ct_DSYMUTIL" = x; then
  6801. DSYMUTIL=":"
  6802. else
  6803. case $cross_compiling:$ac_tool_warned in
  6804. yes:)
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6807. ac_tool_warned=yes ;;
  6808. esac
  6809. DSYMUTIL=$ac_ct_DSYMUTIL
  6810. fi
  6811. else
  6812. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6813. fi
  6814. if test -n "$ac_tool_prefix"; then
  6815. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6816. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6818. $as_echo_n "checking for $ac_word... " >&6; }
  6819. if ${ac_cv_prog_NMEDIT+:} false; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. if test -n "$NMEDIT"; then
  6823. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6824. else
  6825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6826. for as_dir in $PATH
  6827. do
  6828. IFS=$as_save_IFS
  6829. test -z "$as_dir" && as_dir=.
  6830. for ac_exec_ext in '' $ac_executable_extensions; do
  6831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6832. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6834. break 2
  6835. fi
  6836. done
  6837. done
  6838. IFS=$as_save_IFS
  6839. fi
  6840. fi
  6841. NMEDIT=$ac_cv_prog_NMEDIT
  6842. if test -n "$NMEDIT"; then
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6844. $as_echo "$NMEDIT" >&6; }
  6845. else
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6847. $as_echo "no" >&6; }
  6848. fi
  6849. fi
  6850. if test -z "$ac_cv_prog_NMEDIT"; then
  6851. ac_ct_NMEDIT=$NMEDIT
  6852. # Extract the first word of "nmedit", so it can be a program name with args.
  6853. set dummy nmedit; ac_word=$2
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6855. $as_echo_n "checking for $ac_word... " >&6; }
  6856. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. if test -n "$ac_ct_NMEDIT"; then
  6860. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6861. else
  6862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6863. for as_dir in $PATH
  6864. do
  6865. IFS=$as_save_IFS
  6866. test -z "$as_dir" && as_dir=.
  6867. for ac_exec_ext in '' $ac_executable_extensions; do
  6868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6869. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6871. break 2
  6872. fi
  6873. done
  6874. done
  6875. IFS=$as_save_IFS
  6876. fi
  6877. fi
  6878. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6879. if test -n "$ac_ct_NMEDIT"; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6881. $as_echo "$ac_ct_NMEDIT" >&6; }
  6882. else
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6884. $as_echo "no" >&6; }
  6885. fi
  6886. if test "x$ac_ct_NMEDIT" = x; then
  6887. NMEDIT=":"
  6888. else
  6889. case $cross_compiling:$ac_tool_warned in
  6890. yes:)
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6893. ac_tool_warned=yes ;;
  6894. esac
  6895. NMEDIT=$ac_ct_NMEDIT
  6896. fi
  6897. else
  6898. NMEDIT="$ac_cv_prog_NMEDIT"
  6899. fi
  6900. if test -n "$ac_tool_prefix"; then
  6901. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6902. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. $as_echo_n "checking for $ac_word... " >&6; }
  6905. if ${ac_cv_prog_LIPO+:} false; then :
  6906. $as_echo_n "(cached) " >&6
  6907. else
  6908. if test -n "$LIPO"; then
  6909. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. test -z "$as_dir" && as_dir=.
  6916. for ac_exec_ext in '' $ac_executable_extensions; do
  6917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6918. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6920. break 2
  6921. fi
  6922. done
  6923. done
  6924. IFS=$as_save_IFS
  6925. fi
  6926. fi
  6927. LIPO=$ac_cv_prog_LIPO
  6928. if test -n "$LIPO"; then
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6930. $as_echo "$LIPO" >&6; }
  6931. else
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6933. $as_echo "no" >&6; }
  6934. fi
  6935. fi
  6936. if test -z "$ac_cv_prog_LIPO"; then
  6937. ac_ct_LIPO=$LIPO
  6938. # Extract the first word of "lipo", so it can be a program name with args.
  6939. set dummy lipo; ac_word=$2
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6941. $as_echo_n "checking for $ac_word... " >&6; }
  6942. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6943. $as_echo_n "(cached) " >&6
  6944. else
  6945. if test -n "$ac_ct_LIPO"; then
  6946. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6947. else
  6948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6949. for as_dir in $PATH
  6950. do
  6951. IFS=$as_save_IFS
  6952. test -z "$as_dir" && as_dir=.
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6955. ac_cv_prog_ac_ct_LIPO="lipo"
  6956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6957. break 2
  6958. fi
  6959. done
  6960. done
  6961. IFS=$as_save_IFS
  6962. fi
  6963. fi
  6964. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6965. if test -n "$ac_ct_LIPO"; then
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6967. $as_echo "$ac_ct_LIPO" >&6; }
  6968. else
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6970. $as_echo "no" >&6; }
  6971. fi
  6972. if test "x$ac_ct_LIPO" = x; then
  6973. LIPO=":"
  6974. else
  6975. case $cross_compiling:$ac_tool_warned in
  6976. yes:)
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6979. ac_tool_warned=yes ;;
  6980. esac
  6981. LIPO=$ac_ct_LIPO
  6982. fi
  6983. else
  6984. LIPO="$ac_cv_prog_LIPO"
  6985. fi
  6986. if test -n "$ac_tool_prefix"; then
  6987. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6988. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6990. $as_echo_n "checking for $ac_word... " >&6; }
  6991. if ${ac_cv_prog_OTOOL+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. if test -n "$OTOOL"; then
  6995. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6996. else
  6997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6998. for as_dir in $PATH
  6999. do
  7000. IFS=$as_save_IFS
  7001. test -z "$as_dir" && as_dir=.
  7002. for ac_exec_ext in '' $ac_executable_extensions; do
  7003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7004. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7006. break 2
  7007. fi
  7008. done
  7009. done
  7010. IFS=$as_save_IFS
  7011. fi
  7012. fi
  7013. OTOOL=$ac_cv_prog_OTOOL
  7014. if test -n "$OTOOL"; then
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7016. $as_echo "$OTOOL" >&6; }
  7017. else
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7019. $as_echo "no" >&6; }
  7020. fi
  7021. fi
  7022. if test -z "$ac_cv_prog_OTOOL"; then
  7023. ac_ct_OTOOL=$OTOOL
  7024. # Extract the first word of "otool", so it can be a program name with args.
  7025. set dummy otool; ac_word=$2
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7027. $as_echo_n "checking for $ac_word... " >&6; }
  7028. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7029. $as_echo_n "(cached) " >&6
  7030. else
  7031. if test -n "$ac_ct_OTOOL"; then
  7032. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7033. else
  7034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7035. for as_dir in $PATH
  7036. do
  7037. IFS=$as_save_IFS
  7038. test -z "$as_dir" && as_dir=.
  7039. for ac_exec_ext in '' $ac_executable_extensions; do
  7040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7041. ac_cv_prog_ac_ct_OTOOL="otool"
  7042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7043. break 2
  7044. fi
  7045. done
  7046. done
  7047. IFS=$as_save_IFS
  7048. fi
  7049. fi
  7050. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7051. if test -n "$ac_ct_OTOOL"; then
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7053. $as_echo "$ac_ct_OTOOL" >&6; }
  7054. else
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7056. $as_echo "no" >&6; }
  7057. fi
  7058. if test "x$ac_ct_OTOOL" = x; then
  7059. OTOOL=":"
  7060. else
  7061. case $cross_compiling:$ac_tool_warned in
  7062. yes:)
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7065. ac_tool_warned=yes ;;
  7066. esac
  7067. OTOOL=$ac_ct_OTOOL
  7068. fi
  7069. else
  7070. OTOOL="$ac_cv_prog_OTOOL"
  7071. fi
  7072. if test -n "$ac_tool_prefix"; then
  7073. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7074. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7076. $as_echo_n "checking for $ac_word... " >&6; }
  7077. if ${ac_cv_prog_OTOOL64+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. if test -n "$OTOOL64"; then
  7081. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7082. else
  7083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7084. for as_dir in $PATH
  7085. do
  7086. IFS=$as_save_IFS
  7087. test -z "$as_dir" && as_dir=.
  7088. for ac_exec_ext in '' $ac_executable_extensions; do
  7089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7090. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7092. break 2
  7093. fi
  7094. done
  7095. done
  7096. IFS=$as_save_IFS
  7097. fi
  7098. fi
  7099. OTOOL64=$ac_cv_prog_OTOOL64
  7100. if test -n "$OTOOL64"; then
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7102. $as_echo "$OTOOL64" >&6; }
  7103. else
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7105. $as_echo "no" >&6; }
  7106. fi
  7107. fi
  7108. if test -z "$ac_cv_prog_OTOOL64"; then
  7109. ac_ct_OTOOL64=$OTOOL64
  7110. # Extract the first word of "otool64", so it can be a program name with args.
  7111. set dummy otool64; ac_word=$2
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7113. $as_echo_n "checking for $ac_word... " >&6; }
  7114. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. if test -n "$ac_ct_OTOOL64"; then
  7118. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7119. else
  7120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7121. for as_dir in $PATH
  7122. do
  7123. IFS=$as_save_IFS
  7124. test -z "$as_dir" && as_dir=.
  7125. for ac_exec_ext in '' $ac_executable_extensions; do
  7126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7127. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7129. break 2
  7130. fi
  7131. done
  7132. done
  7133. IFS=$as_save_IFS
  7134. fi
  7135. fi
  7136. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7137. if test -n "$ac_ct_OTOOL64"; then
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7139. $as_echo "$ac_ct_OTOOL64" >&6; }
  7140. else
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7142. $as_echo "no" >&6; }
  7143. fi
  7144. if test "x$ac_ct_OTOOL64" = x; then
  7145. OTOOL64=":"
  7146. else
  7147. case $cross_compiling:$ac_tool_warned in
  7148. yes:)
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7151. ac_tool_warned=yes ;;
  7152. esac
  7153. OTOOL64=$ac_ct_OTOOL64
  7154. fi
  7155. else
  7156. OTOOL64="$ac_cv_prog_OTOOL64"
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7159. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7160. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. lt_cv_apple_cc_single_mod=no
  7164. if test -z "${LT_MULTI_MODULE}"; then
  7165. # By default we will add the -single_module flag. You can override
  7166. # by either setting the environment variable LT_MULTI_MODULE
  7167. # non-empty at configure time, or by adding -multi_module to the
  7168. # link flags.
  7169. rm -rf libconftest.dylib*
  7170. echo "int foo(void){return 1;}" > conftest.c
  7171. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7172. -dynamiclib -Wl,-single_module conftest.c" >&5
  7173. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7174. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7175. _lt_result=$?
  7176. # If there is a non-empty error log, and "single_module"
  7177. # appears in it, assume the flag caused a linker warning
  7178. if test -s conftest.err && $GREP single_module conftest.err; then
  7179. cat conftest.err >&5
  7180. # Otherwise, if the output was created with a 0 exit code from
  7181. # the compiler, it worked.
  7182. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7183. lt_cv_apple_cc_single_mod=yes
  7184. else
  7185. cat conftest.err >&5
  7186. fi
  7187. rm -rf libconftest.dylib*
  7188. rm -f conftest.*
  7189. fi
  7190. fi
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7192. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7194. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7195. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. lt_cv_ld_exported_symbols_list=no
  7199. save_LDFLAGS=$LDFLAGS
  7200. echo "_main" > conftest.sym
  7201. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7203. /* end confdefs.h. */
  7204. int
  7205. main ()
  7206. {
  7207. ;
  7208. return 0;
  7209. }
  7210. _ACEOF
  7211. if ac_fn_c_try_link "$LINENO"; then :
  7212. lt_cv_ld_exported_symbols_list=yes
  7213. else
  7214. lt_cv_ld_exported_symbols_list=no
  7215. fi
  7216. rm -f core conftest.err conftest.$ac_objext \
  7217. conftest$ac_exeext conftest.$ac_ext
  7218. LDFLAGS="$save_LDFLAGS"
  7219. fi
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7221. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7223. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7224. if ${lt_cv_ld_force_load+:} false; then :
  7225. $as_echo_n "(cached) " >&6
  7226. else
  7227. lt_cv_ld_force_load=no
  7228. cat > conftest.c << _LT_EOF
  7229. int forced_loaded() { return 2;}
  7230. _LT_EOF
  7231. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7232. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7233. echo "$AR cru libconftest.a conftest.o" >&5
  7234. $AR cru libconftest.a conftest.o 2>&5
  7235. echo "$RANLIB libconftest.a" >&5
  7236. $RANLIB libconftest.a 2>&5
  7237. cat > conftest.c << _LT_EOF
  7238. int main() { return 0;}
  7239. _LT_EOF
  7240. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7241. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7242. _lt_result=$?
  7243. if test -s conftest.err && $GREP force_load conftest.err; then
  7244. cat conftest.err >&5
  7245. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7246. lt_cv_ld_force_load=yes
  7247. else
  7248. cat conftest.err >&5
  7249. fi
  7250. rm -f conftest.err libconftest.a conftest conftest.c
  7251. rm -rf conftest.dSYM
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7254. $as_echo "$lt_cv_ld_force_load" >&6; }
  7255. case $host_os in
  7256. rhapsody* | darwin1.[012])
  7257. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7258. darwin1.*)
  7259. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7260. darwin*) # darwin 5.x on
  7261. # if running on 10.5 or later, the deployment target defaults
  7262. # to the OS version, if on x86, and 10.4, the deployment
  7263. # target defaults to 10.4. Don't you love it?
  7264. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7265. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7266. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7267. 10.[012]*)
  7268. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7269. 10.*)
  7270. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7271. esac
  7272. ;;
  7273. esac
  7274. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7275. _lt_dar_single_mod='$single_module'
  7276. fi
  7277. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7278. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7279. else
  7280. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7281. fi
  7282. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7283. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7284. else
  7285. _lt_dsymutil=
  7286. fi
  7287. ;;
  7288. esac
  7289. for ac_header in dlfcn.h
  7290. do :
  7291. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7292. "
  7293. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7294. cat >>confdefs.h <<_ACEOF
  7295. #define HAVE_DLFCN_H 1
  7296. _ACEOF
  7297. fi
  7298. done
  7299. func_stripname_cnf ()
  7300. {
  7301. case ${2} in
  7302. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7303. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7304. esac
  7305. } # func_stripname_cnf
  7306. # Set options
  7307. enable_dlopen=no
  7308. enable_win32_dll=no
  7309. # Check whether --enable-shared was given.
  7310. if test "${enable_shared+set}" = set; then :
  7311. enableval=$enable_shared; p=${PACKAGE-default}
  7312. case $enableval in
  7313. yes) enable_shared=yes ;;
  7314. no) enable_shared=no ;;
  7315. *)
  7316. enable_shared=no
  7317. # Look at the argument we got. We use all the common list separators.
  7318. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7319. for pkg in $enableval; do
  7320. IFS="$lt_save_ifs"
  7321. if test "X$pkg" = "X$p"; then
  7322. enable_shared=yes
  7323. fi
  7324. done
  7325. IFS="$lt_save_ifs"
  7326. ;;
  7327. esac
  7328. else
  7329. enable_shared=yes
  7330. fi
  7331. # Check whether --enable-static was given.
  7332. if test "${enable_static+set}" = set; then :
  7333. enableval=$enable_static; p=${PACKAGE-default}
  7334. case $enableval in
  7335. yes) enable_static=yes ;;
  7336. no) enable_static=no ;;
  7337. *)
  7338. enable_static=no
  7339. # Look at the argument we got. We use all the common list separators.
  7340. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7341. for pkg in $enableval; do
  7342. IFS="$lt_save_ifs"
  7343. if test "X$pkg" = "X$p"; then
  7344. enable_static=yes
  7345. fi
  7346. done
  7347. IFS="$lt_save_ifs"
  7348. ;;
  7349. esac
  7350. else
  7351. enable_static=yes
  7352. fi
  7353. # Check whether --with-pic was given.
  7354. if test "${with_pic+set}" = set; then :
  7355. withval=$with_pic; lt_p=${PACKAGE-default}
  7356. case $withval in
  7357. yes|no) pic_mode=$withval ;;
  7358. *)
  7359. pic_mode=default
  7360. # Look at the argument we got. We use all the common list separators.
  7361. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7362. for lt_pkg in $withval; do
  7363. IFS="$lt_save_ifs"
  7364. if test "X$lt_pkg" = "X$lt_p"; then
  7365. pic_mode=yes
  7366. fi
  7367. done
  7368. IFS="$lt_save_ifs"
  7369. ;;
  7370. esac
  7371. else
  7372. pic_mode=default
  7373. fi
  7374. test -z "$pic_mode" && pic_mode=default
  7375. # Check whether --enable-fast-install was given.
  7376. if test "${enable_fast_install+set}" = set; then :
  7377. enableval=$enable_fast_install; p=${PACKAGE-default}
  7378. case $enableval in
  7379. yes) enable_fast_install=yes ;;
  7380. no) enable_fast_install=no ;;
  7381. *)
  7382. enable_fast_install=no
  7383. # Look at the argument we got. We use all the common list separators.
  7384. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7385. for pkg in $enableval; do
  7386. IFS="$lt_save_ifs"
  7387. if test "X$pkg" = "X$p"; then
  7388. enable_fast_install=yes
  7389. fi
  7390. done
  7391. IFS="$lt_save_ifs"
  7392. ;;
  7393. esac
  7394. else
  7395. enable_fast_install=yes
  7396. fi
  7397. # This can be used to rebuild libtool when needed
  7398. LIBTOOL_DEPS="$ltmain"
  7399. # Always use our own libtool.
  7400. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7401. test -z "$LN_S" && LN_S="ln -s"
  7402. if test -n "${ZSH_VERSION+set}" ; then
  7403. setopt NO_GLOB_SUBST
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7406. $as_echo_n "checking for objdir... " >&6; }
  7407. if ${lt_cv_objdir+:} false; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. rm -f .libs 2>/dev/null
  7411. mkdir .libs 2>/dev/null
  7412. if test -d .libs; then
  7413. lt_cv_objdir=.libs
  7414. else
  7415. # MS-DOS does not allow filenames that begin with a dot.
  7416. lt_cv_objdir=_libs
  7417. fi
  7418. rmdir .libs 2>/dev/null
  7419. fi
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7421. $as_echo "$lt_cv_objdir" >&6; }
  7422. objdir=$lt_cv_objdir
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define LT_OBJDIR "$lt_cv_objdir/"
  7425. _ACEOF
  7426. case $host_os in
  7427. aix3*)
  7428. # AIX sometimes has problems with the GCC collect2 program. For some
  7429. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7430. # vanish in a puff of smoke.
  7431. if test "X${COLLECT_NAMES+set}" != Xset; then
  7432. COLLECT_NAMES=
  7433. export COLLECT_NAMES
  7434. fi
  7435. ;;
  7436. esac
  7437. # Global variables:
  7438. ofile=libtool
  7439. can_build_shared=yes
  7440. # All known linkers require a `.a' archive for static linking (except MSVC,
  7441. # which needs '.lib').
  7442. libext=a
  7443. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7444. old_CC="$CC"
  7445. old_CFLAGS="$CFLAGS"
  7446. # Set sane defaults for various variables
  7447. test -z "$CC" && CC=cc
  7448. test -z "$LTCC" && LTCC=$CC
  7449. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7450. test -z "$LD" && LD=ld
  7451. test -z "$ac_objext" && ac_objext=o
  7452. for cc_temp in $compiler""; do
  7453. case $cc_temp in
  7454. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7455. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7456. \-*) ;;
  7457. *) break;;
  7458. esac
  7459. done
  7460. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7461. # Only perform the check for file, if the check method requires it
  7462. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7463. case $deplibs_check_method in
  7464. file_magic*)
  7465. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7467. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7468. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. case $MAGIC_CMD in
  7472. [\\/*] | ?:[\\/]*)
  7473. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7474. ;;
  7475. *)
  7476. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7477. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7478. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7479. for ac_dir in $ac_dummy; do
  7480. IFS="$lt_save_ifs"
  7481. test -z "$ac_dir" && ac_dir=.
  7482. if test -f $ac_dir/${ac_tool_prefix}file; then
  7483. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7484. if test -n "$file_magic_test_file"; then
  7485. case $deplibs_check_method in
  7486. "file_magic "*)
  7487. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7488. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7489. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7490. $EGREP "$file_magic_regex" > /dev/null; then
  7491. :
  7492. else
  7493. cat <<_LT_EOF 1>&2
  7494. *** Warning: the command libtool uses to detect shared libraries,
  7495. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7496. *** The result is that libtool may fail to recognize shared libraries
  7497. *** as such. This will affect the creation of libtool libraries that
  7498. *** depend on shared libraries, but programs linked with such libtool
  7499. *** libraries will work regardless of this problem. Nevertheless, you
  7500. *** may want to report the problem to your system manager and/or to
  7501. *** bug-libtool@gnu.org
  7502. _LT_EOF
  7503. fi ;;
  7504. esac
  7505. fi
  7506. break
  7507. fi
  7508. done
  7509. IFS="$lt_save_ifs"
  7510. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7511. ;;
  7512. esac
  7513. fi
  7514. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7515. if test -n "$MAGIC_CMD"; then
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7517. $as_echo "$MAGIC_CMD" >&6; }
  7518. else
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7520. $as_echo "no" >&6; }
  7521. fi
  7522. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7523. if test -n "$ac_tool_prefix"; then
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7525. $as_echo_n "checking for file... " >&6; }
  7526. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7527. $as_echo_n "(cached) " >&6
  7528. else
  7529. case $MAGIC_CMD in
  7530. [\\/*] | ?:[\\/]*)
  7531. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7532. ;;
  7533. *)
  7534. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7535. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7536. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7537. for ac_dir in $ac_dummy; do
  7538. IFS="$lt_save_ifs"
  7539. test -z "$ac_dir" && ac_dir=.
  7540. if test -f $ac_dir/file; then
  7541. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7542. if test -n "$file_magic_test_file"; then
  7543. case $deplibs_check_method in
  7544. "file_magic "*)
  7545. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7546. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7547. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7548. $EGREP "$file_magic_regex" > /dev/null; then
  7549. :
  7550. else
  7551. cat <<_LT_EOF 1>&2
  7552. *** Warning: the command libtool uses to detect shared libraries,
  7553. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7554. *** The result is that libtool may fail to recognize shared libraries
  7555. *** as such. This will affect the creation of libtool libraries that
  7556. *** depend on shared libraries, but programs linked with such libtool
  7557. *** libraries will work regardless of this problem. Nevertheless, you
  7558. *** may want to report the problem to your system manager and/or to
  7559. *** bug-libtool@gnu.org
  7560. _LT_EOF
  7561. fi ;;
  7562. esac
  7563. fi
  7564. break
  7565. fi
  7566. done
  7567. IFS="$lt_save_ifs"
  7568. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7569. ;;
  7570. esac
  7571. fi
  7572. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7573. if test -n "$MAGIC_CMD"; then
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7575. $as_echo "$MAGIC_CMD" >&6; }
  7576. else
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7578. $as_echo "no" >&6; }
  7579. fi
  7580. else
  7581. MAGIC_CMD=:
  7582. fi
  7583. fi
  7584. fi
  7585. ;;
  7586. esac
  7587. # Use C for the default configuration in the libtool script
  7588. lt_save_CC="$CC"
  7589. ac_ext=c
  7590. ac_cpp='$CPP $CPPFLAGS'
  7591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7594. # Source file extension for C test sources.
  7595. ac_ext=c
  7596. # Object file extension for compiled C test sources.
  7597. objext=o
  7598. objext=$objext
  7599. # Code to be used in simple compile tests
  7600. lt_simple_compile_test_code="int some_variable = 0;"
  7601. # Code to be used in simple link tests
  7602. lt_simple_link_test_code='int main(){return(0);}'
  7603. # If no C compiler was specified, use CC.
  7604. LTCC=${LTCC-"$CC"}
  7605. # If no C compiler flags were specified, use CFLAGS.
  7606. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7607. # Allow CC to be a program name with arguments.
  7608. compiler=$CC
  7609. # Save the default compiler, since it gets overwritten when the other
  7610. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7611. compiler_DEFAULT=$CC
  7612. # save warnings/boilerplate of simple test code
  7613. ac_outfile=conftest.$ac_objext
  7614. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7615. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7616. _lt_compiler_boilerplate=`cat conftest.err`
  7617. $RM conftest*
  7618. ac_outfile=conftest.$ac_objext
  7619. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7620. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7621. _lt_linker_boilerplate=`cat conftest.err`
  7622. $RM -r conftest*
  7623. if test -n "$compiler"; then
  7624. lt_prog_compiler_no_builtin_flag=
  7625. if test "$GCC" = yes; then
  7626. case $cc_basename in
  7627. nvcc*)
  7628. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7629. *)
  7630. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7631. esac
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7633. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7634. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. lt_cv_prog_compiler_rtti_exceptions=no
  7638. ac_outfile=conftest.$ac_objext
  7639. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7640. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7641. # Insert the option either (1) after the last *FLAGS variable, or
  7642. # (2) before a word containing "conftest.", or (3) at the end.
  7643. # Note that $ac_compile itself does not contain backslashes and begins
  7644. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7645. # The option is referenced via a variable to avoid confusing sed.
  7646. lt_compile=`echo "$ac_compile" | $SED \
  7647. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7648. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7649. -e 's:$: $lt_compiler_flag:'`
  7650. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7651. (eval "$lt_compile" 2>conftest.err)
  7652. ac_status=$?
  7653. cat conftest.err >&5
  7654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7655. if (exit $ac_status) && test -s "$ac_outfile"; then
  7656. # The compiler can only warn and ignore the option if not recognized
  7657. # So say no if there are warnings other than the usual output.
  7658. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7659. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7660. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7661. lt_cv_prog_compiler_rtti_exceptions=yes
  7662. fi
  7663. fi
  7664. $RM conftest*
  7665. fi
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7667. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7668. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7669. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7670. else
  7671. :
  7672. fi
  7673. fi
  7674. lt_prog_compiler_wl=
  7675. lt_prog_compiler_pic=
  7676. lt_prog_compiler_static=
  7677. if test "$GCC" = yes; then
  7678. lt_prog_compiler_wl='-Wl,'
  7679. lt_prog_compiler_static='-static'
  7680. case $host_os in
  7681. aix*)
  7682. # All AIX code is PIC.
  7683. if test "$host_cpu" = ia64; then
  7684. # AIX 5 now supports IA64 processor
  7685. lt_prog_compiler_static='-Bstatic'
  7686. fi
  7687. ;;
  7688. amigaos*)
  7689. case $host_cpu in
  7690. powerpc)
  7691. # see comment about AmigaOS4 .so support
  7692. lt_prog_compiler_pic='-fPIC'
  7693. ;;
  7694. m68k)
  7695. # FIXME: we need at least 68020 code to build shared libraries, but
  7696. # adding the `-m68020' flag to GCC prevents building anything better,
  7697. # like `-m68040'.
  7698. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7699. ;;
  7700. esac
  7701. ;;
  7702. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7703. # PIC is the default for these OSes.
  7704. ;;
  7705. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7706. # This hack is so that the source file can tell whether it is being
  7707. # built for inclusion in a dll (and should export symbols for example).
  7708. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7709. # (--disable-auto-import) libraries
  7710. lt_prog_compiler_pic='-DDLL_EXPORT'
  7711. ;;
  7712. darwin* | rhapsody*)
  7713. # PIC is the default on this platform
  7714. # Common symbols not allowed in MH_DYLIB files
  7715. lt_prog_compiler_pic='-fno-common'
  7716. ;;
  7717. haiku*)
  7718. # PIC is the default for Haiku.
  7719. # The "-static" flag exists, but is broken.
  7720. lt_prog_compiler_static=
  7721. ;;
  7722. hpux*)
  7723. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7724. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7725. # sets the default TLS model and affects inlining.
  7726. case $host_cpu in
  7727. hppa*64*)
  7728. # +Z the default
  7729. ;;
  7730. *)
  7731. lt_prog_compiler_pic='-fPIC'
  7732. ;;
  7733. esac
  7734. ;;
  7735. interix[3-9]*)
  7736. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7737. # Instead, we relocate shared libraries at runtime.
  7738. ;;
  7739. msdosdjgpp*)
  7740. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7741. # on systems that don't support them.
  7742. lt_prog_compiler_can_build_shared=no
  7743. enable_shared=no
  7744. ;;
  7745. *nto* | *qnx*)
  7746. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7747. # it will coredump.
  7748. lt_prog_compiler_pic='-fPIC -shared'
  7749. ;;
  7750. sysv4*MP*)
  7751. if test -d /usr/nec; then
  7752. lt_prog_compiler_pic=-Kconform_pic
  7753. fi
  7754. ;;
  7755. *)
  7756. lt_prog_compiler_pic='-fPIC'
  7757. ;;
  7758. esac
  7759. case $cc_basename in
  7760. nvcc*) # Cuda Compiler Driver 2.2
  7761. lt_prog_compiler_wl='-Xlinker '
  7762. if test -n "$lt_prog_compiler_pic"; then
  7763. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7764. fi
  7765. ;;
  7766. esac
  7767. else
  7768. # PORTME Check for flag to pass linker flags through the system compiler.
  7769. case $host_os in
  7770. aix*)
  7771. lt_prog_compiler_wl='-Wl,'
  7772. if test "$host_cpu" = ia64; then
  7773. # AIX 5 now supports IA64 processor
  7774. lt_prog_compiler_static='-Bstatic'
  7775. else
  7776. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7777. fi
  7778. ;;
  7779. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7780. # This hack is so that the source file can tell whether it is being
  7781. # built for inclusion in a dll (and should export symbols for example).
  7782. lt_prog_compiler_pic='-DDLL_EXPORT'
  7783. ;;
  7784. hpux9* | hpux10* | hpux11*)
  7785. lt_prog_compiler_wl='-Wl,'
  7786. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7787. # not for PA HP-UX.
  7788. case $host_cpu in
  7789. hppa*64*|ia64*)
  7790. # +Z the default
  7791. ;;
  7792. *)
  7793. lt_prog_compiler_pic='+Z'
  7794. ;;
  7795. esac
  7796. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7797. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7798. ;;
  7799. irix5* | irix6* | nonstopux*)
  7800. lt_prog_compiler_wl='-Wl,'
  7801. # PIC (with -KPIC) is the default.
  7802. lt_prog_compiler_static='-non_shared'
  7803. ;;
  7804. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7805. case $cc_basename in
  7806. # old Intel for x86_64 which still supported -KPIC.
  7807. ecc*)
  7808. lt_prog_compiler_wl='-Wl,'
  7809. lt_prog_compiler_pic='-KPIC'
  7810. lt_prog_compiler_static='-static'
  7811. ;;
  7812. # icc used to be incompatible with GCC.
  7813. # ICC 10 doesn't accept -KPIC any more.
  7814. icc* | ifort*)
  7815. lt_prog_compiler_wl='-Wl,'
  7816. lt_prog_compiler_pic='-fPIC'
  7817. lt_prog_compiler_static='-static'
  7818. ;;
  7819. # Lahey Fortran 8.1.
  7820. lf95*)
  7821. lt_prog_compiler_wl='-Wl,'
  7822. lt_prog_compiler_pic='--shared'
  7823. lt_prog_compiler_static='--static'
  7824. ;;
  7825. nagfor*)
  7826. # NAG Fortran compiler
  7827. lt_prog_compiler_wl='-Wl,-Wl,,'
  7828. lt_prog_compiler_pic='-PIC'
  7829. lt_prog_compiler_static='-Bstatic'
  7830. ;;
  7831. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7832. # Portland Group compilers (*not* the Pentium gcc compiler,
  7833. # which looks to be a dead project)
  7834. lt_prog_compiler_wl='-Wl,'
  7835. lt_prog_compiler_pic='-fpic'
  7836. lt_prog_compiler_static='-Bstatic'
  7837. ;;
  7838. ccc*)
  7839. lt_prog_compiler_wl='-Wl,'
  7840. # All Alpha code is PIC.
  7841. lt_prog_compiler_static='-non_shared'
  7842. ;;
  7843. xl* | bgxl* | bgf* | mpixl*)
  7844. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7845. lt_prog_compiler_wl='-Wl,'
  7846. lt_prog_compiler_pic='-qpic'
  7847. lt_prog_compiler_static='-qstaticlink'
  7848. ;;
  7849. *)
  7850. case `$CC -V 2>&1 | sed 5q` in
  7851. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7852. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7853. lt_prog_compiler_pic='-KPIC'
  7854. lt_prog_compiler_static='-Bstatic'
  7855. lt_prog_compiler_wl=''
  7856. ;;
  7857. *Sun\ F* | *Sun*Fortran*)
  7858. lt_prog_compiler_pic='-KPIC'
  7859. lt_prog_compiler_static='-Bstatic'
  7860. lt_prog_compiler_wl='-Qoption ld '
  7861. ;;
  7862. *Sun\ C*)
  7863. # Sun C 5.9
  7864. lt_prog_compiler_pic='-KPIC'
  7865. lt_prog_compiler_static='-Bstatic'
  7866. lt_prog_compiler_wl='-Wl,'
  7867. ;;
  7868. *Intel*\ [CF]*Compiler*)
  7869. lt_prog_compiler_wl='-Wl,'
  7870. lt_prog_compiler_pic='-fPIC'
  7871. lt_prog_compiler_static='-static'
  7872. ;;
  7873. *Portland\ Group*)
  7874. lt_prog_compiler_wl='-Wl,'
  7875. lt_prog_compiler_pic='-fpic'
  7876. lt_prog_compiler_static='-Bstatic'
  7877. ;;
  7878. esac
  7879. ;;
  7880. esac
  7881. ;;
  7882. newsos6)
  7883. lt_prog_compiler_pic='-KPIC'
  7884. lt_prog_compiler_static='-Bstatic'
  7885. ;;
  7886. *nto* | *qnx*)
  7887. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7888. # it will coredump.
  7889. lt_prog_compiler_pic='-fPIC -shared'
  7890. ;;
  7891. osf3* | osf4* | osf5*)
  7892. lt_prog_compiler_wl='-Wl,'
  7893. # All OSF/1 code is PIC.
  7894. lt_prog_compiler_static='-non_shared'
  7895. ;;
  7896. rdos*)
  7897. lt_prog_compiler_static='-non_shared'
  7898. ;;
  7899. solaris*)
  7900. lt_prog_compiler_pic='-KPIC'
  7901. lt_prog_compiler_static='-Bstatic'
  7902. case $cc_basename in
  7903. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7904. lt_prog_compiler_wl='-Qoption ld ';;
  7905. *)
  7906. lt_prog_compiler_wl='-Wl,';;
  7907. esac
  7908. ;;
  7909. sunos4*)
  7910. lt_prog_compiler_wl='-Qoption ld '
  7911. lt_prog_compiler_pic='-PIC'
  7912. lt_prog_compiler_static='-Bstatic'
  7913. ;;
  7914. sysv4 | sysv4.2uw2* | sysv4.3*)
  7915. lt_prog_compiler_wl='-Wl,'
  7916. lt_prog_compiler_pic='-KPIC'
  7917. lt_prog_compiler_static='-Bstatic'
  7918. ;;
  7919. sysv4*MP*)
  7920. if test -d /usr/nec ;then
  7921. lt_prog_compiler_pic='-Kconform_pic'
  7922. lt_prog_compiler_static='-Bstatic'
  7923. fi
  7924. ;;
  7925. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7926. lt_prog_compiler_wl='-Wl,'
  7927. lt_prog_compiler_pic='-KPIC'
  7928. lt_prog_compiler_static='-Bstatic'
  7929. ;;
  7930. unicos*)
  7931. lt_prog_compiler_wl='-Wl,'
  7932. lt_prog_compiler_can_build_shared=no
  7933. ;;
  7934. uts4*)
  7935. lt_prog_compiler_pic='-pic'
  7936. lt_prog_compiler_static='-Bstatic'
  7937. ;;
  7938. *)
  7939. lt_prog_compiler_can_build_shared=no
  7940. ;;
  7941. esac
  7942. fi
  7943. case $host_os in
  7944. # For platforms which do not support PIC, -DPIC is meaningless:
  7945. *djgpp*)
  7946. lt_prog_compiler_pic=
  7947. ;;
  7948. *)
  7949. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7950. ;;
  7951. esac
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7953. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7954. if ${lt_cv_prog_compiler_pic+:} false; then :
  7955. $as_echo_n "(cached) " >&6
  7956. else
  7957. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7958. fi
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7960. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7961. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7962. #
  7963. # Check to make sure the PIC flag actually works.
  7964. #
  7965. if test -n "$lt_prog_compiler_pic"; then
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7967. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7968. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. lt_cv_prog_compiler_pic_works=no
  7972. ac_outfile=conftest.$ac_objext
  7973. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7974. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7975. # Insert the option either (1) after the last *FLAGS variable, or
  7976. # (2) before a word containing "conftest.", or (3) at the end.
  7977. # Note that $ac_compile itself does not contain backslashes and begins
  7978. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7979. # The option is referenced via a variable to avoid confusing sed.
  7980. lt_compile=`echo "$ac_compile" | $SED \
  7981. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7982. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7983. -e 's:$: $lt_compiler_flag:'`
  7984. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7985. (eval "$lt_compile" 2>conftest.err)
  7986. ac_status=$?
  7987. cat conftest.err >&5
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. if (exit $ac_status) && test -s "$ac_outfile"; then
  7990. # The compiler can only warn and ignore the option if not recognized
  7991. # So say no if there are warnings other than the usual output.
  7992. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7993. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7994. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7995. lt_cv_prog_compiler_pic_works=yes
  7996. fi
  7997. fi
  7998. $RM conftest*
  7999. fi
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8001. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8002. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8003. case $lt_prog_compiler_pic in
  8004. "" | " "*) ;;
  8005. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8006. esac
  8007. else
  8008. lt_prog_compiler_pic=
  8009. lt_prog_compiler_can_build_shared=no
  8010. fi
  8011. fi
  8012. #
  8013. # Check to make sure the static flag actually works.
  8014. #
  8015. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8017. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8018. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8019. $as_echo_n "(cached) " >&6
  8020. else
  8021. lt_cv_prog_compiler_static_works=no
  8022. save_LDFLAGS="$LDFLAGS"
  8023. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8024. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8025. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8026. # The linker can only warn and ignore the option if not recognized
  8027. # So say no if there are warnings
  8028. if test -s conftest.err; then
  8029. # Append any errors to the config.log.
  8030. cat conftest.err 1>&5
  8031. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8032. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8033. if diff conftest.exp conftest.er2 >/dev/null; then
  8034. lt_cv_prog_compiler_static_works=yes
  8035. fi
  8036. else
  8037. lt_cv_prog_compiler_static_works=yes
  8038. fi
  8039. fi
  8040. $RM -r conftest*
  8041. LDFLAGS="$save_LDFLAGS"
  8042. fi
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8044. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8045. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8046. :
  8047. else
  8048. lt_prog_compiler_static=
  8049. fi
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8051. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8052. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8053. $as_echo_n "(cached) " >&6
  8054. else
  8055. lt_cv_prog_compiler_c_o=no
  8056. $RM -r conftest 2>/dev/null
  8057. mkdir conftest
  8058. cd conftest
  8059. mkdir out
  8060. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8061. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8062. # Insert the option either (1) after the last *FLAGS variable, or
  8063. # (2) before a word containing "conftest.", or (3) at the end.
  8064. # Note that $ac_compile itself does not contain backslashes and begins
  8065. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8066. lt_compile=`echo "$ac_compile" | $SED \
  8067. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8068. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8069. -e 's:$: $lt_compiler_flag:'`
  8070. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8071. (eval "$lt_compile" 2>out/conftest.err)
  8072. ac_status=$?
  8073. cat out/conftest.err >&5
  8074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8075. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8076. then
  8077. # The compiler can only warn and ignore the option if not recognized
  8078. # So say no if there are warnings
  8079. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8080. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8081. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8082. lt_cv_prog_compiler_c_o=yes
  8083. fi
  8084. fi
  8085. chmod u+w . 2>&5
  8086. $RM conftest*
  8087. # SGI C++ compiler will create directory out/ii_files/ for
  8088. # template instantiation
  8089. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8090. $RM out/* && rmdir out
  8091. cd ..
  8092. $RM -r conftest
  8093. $RM conftest*
  8094. fi
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8096. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8098. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8099. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. lt_cv_prog_compiler_c_o=no
  8103. $RM -r conftest 2>/dev/null
  8104. mkdir conftest
  8105. cd conftest
  8106. mkdir out
  8107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8108. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8109. # Insert the option either (1) after the last *FLAGS variable, or
  8110. # (2) before a word containing "conftest.", or (3) at the end.
  8111. # Note that $ac_compile itself does not contain backslashes and begins
  8112. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8113. lt_compile=`echo "$ac_compile" | $SED \
  8114. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8115. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8116. -e 's:$: $lt_compiler_flag:'`
  8117. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8118. (eval "$lt_compile" 2>out/conftest.err)
  8119. ac_status=$?
  8120. cat out/conftest.err >&5
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8123. then
  8124. # The compiler can only warn and ignore the option if not recognized
  8125. # So say no if there are warnings
  8126. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8127. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8128. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8129. lt_cv_prog_compiler_c_o=yes
  8130. fi
  8131. fi
  8132. chmod u+w . 2>&5
  8133. $RM conftest*
  8134. # SGI C++ compiler will create directory out/ii_files/ for
  8135. # template instantiation
  8136. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8137. $RM out/* && rmdir out
  8138. cd ..
  8139. $RM -r conftest
  8140. $RM conftest*
  8141. fi
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8143. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8144. hard_links="nottested"
  8145. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8146. # do not overwrite the value of need_locks provided by the user
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8148. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8149. hard_links=yes
  8150. $RM conftest*
  8151. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8152. touch conftest.a
  8153. ln conftest.a conftest.b 2>&5 || hard_links=no
  8154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8156. $as_echo "$hard_links" >&6; }
  8157. if test "$hard_links" = no; then
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8159. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8160. need_locks=warn
  8161. fi
  8162. else
  8163. need_locks=no
  8164. fi
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8166. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8167. runpath_var=
  8168. allow_undefined_flag=
  8169. always_export_symbols=no
  8170. archive_cmds=
  8171. archive_expsym_cmds=
  8172. compiler_needs_object=no
  8173. enable_shared_with_static_runtimes=no
  8174. export_dynamic_flag_spec=
  8175. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8176. hardcode_automatic=no
  8177. hardcode_direct=no
  8178. hardcode_direct_absolute=no
  8179. hardcode_libdir_flag_spec=
  8180. hardcode_libdir_separator=
  8181. hardcode_minus_L=no
  8182. hardcode_shlibpath_var=unsupported
  8183. inherit_rpath=no
  8184. link_all_deplibs=unknown
  8185. module_cmds=
  8186. module_expsym_cmds=
  8187. old_archive_from_new_cmds=
  8188. old_archive_from_expsyms_cmds=
  8189. thread_safe_flag_spec=
  8190. whole_archive_flag_spec=
  8191. # include_expsyms should be a list of space-separated symbols to be *always*
  8192. # included in the symbol list
  8193. include_expsyms=
  8194. # exclude_expsyms can be an extended regexp of symbols to exclude
  8195. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8196. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8197. # as well as any symbol that contains `d'.
  8198. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8199. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8200. # platforms (ab)use it in PIC code, but their linkers get confused if
  8201. # the symbol is explicitly referenced. Since portable code cannot
  8202. # rely on this symbol name, it's probably fine to never include it in
  8203. # preloaded symbol tables.
  8204. # Exclude shared library initialization/finalization symbols.
  8205. extract_expsyms_cmds=
  8206. case $host_os in
  8207. cygwin* | mingw* | pw32* | cegcc*)
  8208. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8209. # When not using gcc, we currently assume that we are using
  8210. # Microsoft Visual C++.
  8211. if test "$GCC" != yes; then
  8212. with_gnu_ld=no
  8213. fi
  8214. ;;
  8215. interix*)
  8216. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8217. with_gnu_ld=yes
  8218. ;;
  8219. openbsd*)
  8220. with_gnu_ld=no
  8221. ;;
  8222. esac
  8223. ld_shlibs=yes
  8224. # On some targets, GNU ld is compatible enough with the native linker
  8225. # that we're better off using the native interface for both.
  8226. lt_use_gnu_ld_interface=no
  8227. if test "$with_gnu_ld" = yes; then
  8228. case $host_os in
  8229. aix*)
  8230. # The AIX port of GNU ld has always aspired to compatibility
  8231. # with the native linker. However, as the warning in the GNU ld
  8232. # block says, versions before 2.19.5* couldn't really create working
  8233. # shared libraries, regardless of the interface used.
  8234. case `$LD -v 2>&1` in
  8235. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8236. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8237. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8238. *)
  8239. lt_use_gnu_ld_interface=yes
  8240. ;;
  8241. esac
  8242. ;;
  8243. *)
  8244. lt_use_gnu_ld_interface=yes
  8245. ;;
  8246. esac
  8247. fi
  8248. if test "$lt_use_gnu_ld_interface" = yes; then
  8249. # If archive_cmds runs LD, not CC, wlarc should be empty
  8250. wlarc='${wl}'
  8251. # Set some defaults for GNU ld with shared library support. These
  8252. # are reset later if shared libraries are not supported. Putting them
  8253. # here allows them to be overridden if necessary.
  8254. runpath_var=LD_RUN_PATH
  8255. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8256. export_dynamic_flag_spec='${wl}--export-dynamic'
  8257. # ancient GNU ld didn't support --whole-archive et. al.
  8258. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8259. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8260. else
  8261. whole_archive_flag_spec=
  8262. fi
  8263. supports_anon_versioning=no
  8264. case `$LD -v 2>&1` in
  8265. *GNU\ gold*) supports_anon_versioning=yes ;;
  8266. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8267. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8268. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8269. *\ 2.11.*) ;; # other 2.11 versions
  8270. *) supports_anon_versioning=yes ;;
  8271. esac
  8272. # See if GNU ld supports shared libraries.
  8273. case $host_os in
  8274. aix[3-9]*)
  8275. # On AIX/PPC, the GNU linker is very broken
  8276. if test "$host_cpu" != ia64; then
  8277. ld_shlibs=no
  8278. cat <<_LT_EOF 1>&2
  8279. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8280. *** to be unable to reliably create shared libraries on AIX.
  8281. *** Therefore, libtool is disabling shared libraries support. If you
  8282. *** really care for shared libraries, you may want to install binutils
  8283. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8284. *** You will then need to restart the configuration process.
  8285. _LT_EOF
  8286. fi
  8287. ;;
  8288. amigaos*)
  8289. case $host_cpu in
  8290. powerpc)
  8291. # see comment about AmigaOS4 .so support
  8292. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8293. archive_expsym_cmds=''
  8294. ;;
  8295. m68k)
  8296. 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)'
  8297. hardcode_libdir_flag_spec='-L$libdir'
  8298. hardcode_minus_L=yes
  8299. ;;
  8300. esac
  8301. ;;
  8302. beos*)
  8303. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8304. allow_undefined_flag=unsupported
  8305. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8306. # support --undefined. This deserves some investigation. FIXME
  8307. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8308. else
  8309. ld_shlibs=no
  8310. fi
  8311. ;;
  8312. cygwin* | mingw* | pw32* | cegcc*)
  8313. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8314. # as there is no search path for DLLs.
  8315. hardcode_libdir_flag_spec='-L$libdir'
  8316. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8317. allow_undefined_flag=unsupported
  8318. always_export_symbols=no
  8319. enable_shared_with_static_runtimes=yes
  8320. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8321. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8322. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8323. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8324. # If the export-symbols file already is a .def file (1st line
  8325. # is EXPORTS), use it as is; otherwise, prepend...
  8326. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8327. cp $export_symbols $output_objdir/$soname.def;
  8328. else
  8329. echo EXPORTS > $output_objdir/$soname.def;
  8330. cat $export_symbols >> $output_objdir/$soname.def;
  8331. fi~
  8332. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8333. else
  8334. ld_shlibs=no
  8335. fi
  8336. ;;
  8337. haiku*)
  8338. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8339. link_all_deplibs=yes
  8340. ;;
  8341. interix[3-9]*)
  8342. hardcode_direct=no
  8343. hardcode_shlibpath_var=no
  8344. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8345. export_dynamic_flag_spec='${wl}-E'
  8346. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8347. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8348. # default) and relocated if they conflict, which is a slow very memory
  8349. # consuming and fragmenting process. To avoid this, we pick a random,
  8350. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8351. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8352. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8353. 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'
  8354. ;;
  8355. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8356. tmp_diet=no
  8357. if test "$host_os" = linux-dietlibc; then
  8358. case $cc_basename in
  8359. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8360. esac
  8361. fi
  8362. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8363. && test "$tmp_diet" = no
  8364. then
  8365. tmp_addflag=' $pic_flag'
  8366. tmp_sharedflag='-shared'
  8367. case $cc_basename,$host_cpu in
  8368. pgcc*) # Portland Group C compiler
  8369. 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'
  8370. tmp_addflag=' $pic_flag'
  8371. ;;
  8372. pgf77* | pgf90* | pgf95* | pgfortran*)
  8373. # Portland Group f77 and f90 compilers
  8374. 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'
  8375. tmp_addflag=' $pic_flag -Mnomain' ;;
  8376. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8377. tmp_addflag=' -i_dynamic' ;;
  8378. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8379. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8380. ifc* | ifort*) # Intel Fortran compiler
  8381. tmp_addflag=' -nofor_main' ;;
  8382. lf95*) # Lahey Fortran 8.1
  8383. whole_archive_flag_spec=
  8384. tmp_sharedflag='--shared' ;;
  8385. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8386. tmp_sharedflag='-qmkshrobj'
  8387. tmp_addflag= ;;
  8388. nvcc*) # Cuda Compiler Driver 2.2
  8389. 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'
  8390. compiler_needs_object=yes
  8391. ;;
  8392. esac
  8393. case `$CC -V 2>&1 | sed 5q` in
  8394. *Sun\ C*) # Sun C 5.9
  8395. 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'
  8396. compiler_needs_object=yes
  8397. tmp_sharedflag='-G' ;;
  8398. *Sun\ F*) # Sun Fortran 8.3
  8399. tmp_sharedflag='-G' ;;
  8400. esac
  8401. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8402. if test "x$supports_anon_versioning" = xyes; then
  8403. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8404. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8405. echo "local: *; };" >> $output_objdir/$libname.ver~
  8406. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8407. fi
  8408. case $cc_basename in
  8409. xlf* | bgf* | bgxlf* | mpixlf*)
  8410. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8411. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8412. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8413. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8414. if test "x$supports_anon_versioning" = xyes; then
  8415. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8416. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8417. echo "local: *; };" >> $output_objdir/$libname.ver~
  8418. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8419. fi
  8420. ;;
  8421. esac
  8422. else
  8423. ld_shlibs=no
  8424. fi
  8425. ;;
  8426. netbsd*)
  8427. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8428. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8429. wlarc=
  8430. else
  8431. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8432. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8433. fi
  8434. ;;
  8435. solaris*)
  8436. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8437. ld_shlibs=no
  8438. cat <<_LT_EOF 1>&2
  8439. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8440. *** create shared libraries on Solaris systems. Therefore, libtool
  8441. *** is disabling shared libraries support. We urge you to upgrade GNU
  8442. *** binutils to release 2.9.1 or newer. Another option is to modify
  8443. *** your PATH or compiler configuration so that the native linker is
  8444. *** used, and then restart.
  8445. _LT_EOF
  8446. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8447. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8448. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8449. else
  8450. ld_shlibs=no
  8451. fi
  8452. ;;
  8453. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8454. case `$LD -v 2>&1` in
  8455. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8456. ld_shlibs=no
  8457. cat <<_LT_EOF 1>&2
  8458. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8459. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8460. *** is disabling shared libraries support. We urge you to upgrade GNU
  8461. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8462. *** your PATH or compiler configuration so that the native linker is
  8463. *** used, and then restart.
  8464. _LT_EOF
  8465. ;;
  8466. *)
  8467. # For security reasons, it is highly recommended that you always
  8468. # use absolute paths for naming shared libraries, and exclude the
  8469. # DT_RUNPATH tag from executables and libraries. But doing so
  8470. # requires that you compile everything twice, which is a pain.
  8471. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8472. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8473. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8474. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8475. else
  8476. ld_shlibs=no
  8477. fi
  8478. ;;
  8479. esac
  8480. ;;
  8481. sunos4*)
  8482. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8483. wlarc=
  8484. hardcode_direct=yes
  8485. hardcode_shlibpath_var=no
  8486. ;;
  8487. *)
  8488. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8489. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8490. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8491. else
  8492. ld_shlibs=no
  8493. fi
  8494. ;;
  8495. esac
  8496. if test "$ld_shlibs" = no; then
  8497. runpath_var=
  8498. hardcode_libdir_flag_spec=
  8499. export_dynamic_flag_spec=
  8500. whole_archive_flag_spec=
  8501. fi
  8502. else
  8503. # PORTME fill in a description of your system's linker (not GNU ld)
  8504. case $host_os in
  8505. aix3*)
  8506. allow_undefined_flag=unsupported
  8507. always_export_symbols=yes
  8508. 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'
  8509. # Note: this linker hardcodes the directories in LIBPATH if there
  8510. # are no directories specified by -L.
  8511. hardcode_minus_L=yes
  8512. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8513. # Neither direct hardcoding nor static linking is supported with a
  8514. # broken collect2.
  8515. hardcode_direct=unsupported
  8516. fi
  8517. ;;
  8518. aix[4-9]*)
  8519. if test "$host_cpu" = ia64; then
  8520. # On IA64, the linker does run time linking by default, so we don't
  8521. # have to do anything special.
  8522. aix_use_runtimelinking=no
  8523. exp_sym_flag='-Bexport'
  8524. no_entry_flag=""
  8525. else
  8526. # If we're using GNU nm, then we don't want the "-C" option.
  8527. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8528. # Also, AIX nm treats weak defined symbols like other global
  8529. # defined symbols, whereas GNU nm marks them as "W".
  8530. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8531. 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'
  8532. else
  8533. 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'
  8534. fi
  8535. aix_use_runtimelinking=no
  8536. # Test if we are trying to use run time linking or normal
  8537. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8538. # need to do runtime linking.
  8539. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8540. for ld_flag in $LDFLAGS; do
  8541. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8542. aix_use_runtimelinking=yes
  8543. break
  8544. fi
  8545. done
  8546. ;;
  8547. esac
  8548. exp_sym_flag='-bexport'
  8549. no_entry_flag='-bnoentry'
  8550. fi
  8551. # When large executables or shared objects are built, AIX ld can
  8552. # have problems creating the table of contents. If linking a library
  8553. # or program results in "error TOC overflow" add -mminimal-toc to
  8554. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8555. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8556. archive_cmds=''
  8557. hardcode_direct=yes
  8558. hardcode_direct_absolute=yes
  8559. hardcode_libdir_separator=':'
  8560. link_all_deplibs=yes
  8561. file_list_spec='${wl}-f,'
  8562. if test "$GCC" = yes; then
  8563. case $host_os in aix4.[012]|aix4.[012].*)
  8564. # We only want to do this on AIX 4.2 and lower, the check
  8565. # below for broken collect2 doesn't work under 4.3+
  8566. collect2name=`${CC} -print-prog-name=collect2`
  8567. if test -f "$collect2name" &&
  8568. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8569. then
  8570. # We have reworked collect2
  8571. :
  8572. else
  8573. # We have old collect2
  8574. hardcode_direct=unsupported
  8575. # It fails to find uninstalled libraries when the uninstalled
  8576. # path is not listed in the libpath. Setting hardcode_minus_L
  8577. # to unsupported forces relinking
  8578. hardcode_minus_L=yes
  8579. hardcode_libdir_flag_spec='-L$libdir'
  8580. hardcode_libdir_separator=
  8581. fi
  8582. ;;
  8583. esac
  8584. shared_flag='-shared'
  8585. if test "$aix_use_runtimelinking" = yes; then
  8586. shared_flag="$shared_flag "'${wl}-G'
  8587. fi
  8588. else
  8589. # not using gcc
  8590. if test "$host_cpu" = ia64; then
  8591. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8592. # chokes on -Wl,-G. The following line is correct:
  8593. shared_flag='-G'
  8594. else
  8595. if test "$aix_use_runtimelinking" = yes; then
  8596. shared_flag='${wl}-G'
  8597. else
  8598. shared_flag='${wl}-bM:SRE'
  8599. fi
  8600. fi
  8601. fi
  8602. export_dynamic_flag_spec='${wl}-bexpall'
  8603. # It seems that -bexpall does not export symbols beginning with
  8604. # underscore (_), so it is better to generate a list of symbols to export.
  8605. always_export_symbols=yes
  8606. if test "$aix_use_runtimelinking" = yes; then
  8607. # Warning - without using the other runtime loading flags (-brtl),
  8608. # -berok will link without error, but may produce a broken library.
  8609. allow_undefined_flag='-berok'
  8610. # Determine the default libpath from the value encoded in an
  8611. # empty executable.
  8612. if test "${lt_cv_aix_libpath+set}" = set; then
  8613. aix_libpath=$lt_cv_aix_libpath
  8614. else
  8615. if ${lt_cv_aix_libpath_+:} false; then :
  8616. $as_echo_n "(cached) " >&6
  8617. else
  8618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8619. /* end confdefs.h. */
  8620. int
  8621. main ()
  8622. {
  8623. ;
  8624. return 0;
  8625. }
  8626. _ACEOF
  8627. if ac_fn_c_try_link "$LINENO"; then :
  8628. lt_aix_libpath_sed='
  8629. /Import File Strings/,/^$/ {
  8630. /^0/ {
  8631. s/^0 *\([^ ]*\) *$/\1/
  8632. p
  8633. }
  8634. }'
  8635. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8636. # Check for a 64-bit object if we didn't find anything.
  8637. if test -z "$lt_cv_aix_libpath_"; then
  8638. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8639. fi
  8640. fi
  8641. rm -f core conftest.err conftest.$ac_objext \
  8642. conftest$ac_exeext conftest.$ac_ext
  8643. if test -z "$lt_cv_aix_libpath_"; then
  8644. lt_cv_aix_libpath_="/usr/lib:/lib"
  8645. fi
  8646. fi
  8647. aix_libpath=$lt_cv_aix_libpath_
  8648. fi
  8649. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8650. 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"
  8651. else
  8652. if test "$host_cpu" = ia64; then
  8653. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8654. allow_undefined_flag="-z nodefs"
  8655. 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"
  8656. else
  8657. # Determine the default libpath from the value encoded in an
  8658. # empty executable.
  8659. if test "${lt_cv_aix_libpath+set}" = set; then
  8660. aix_libpath=$lt_cv_aix_libpath
  8661. else
  8662. if ${lt_cv_aix_libpath_+:} false; then :
  8663. $as_echo_n "(cached) " >&6
  8664. else
  8665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8666. /* end confdefs.h. */
  8667. int
  8668. main ()
  8669. {
  8670. ;
  8671. return 0;
  8672. }
  8673. _ACEOF
  8674. if ac_fn_c_try_link "$LINENO"; then :
  8675. lt_aix_libpath_sed='
  8676. /Import File Strings/,/^$/ {
  8677. /^0/ {
  8678. s/^0 *\([^ ]*\) *$/\1/
  8679. p
  8680. }
  8681. }'
  8682. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8683. # Check for a 64-bit object if we didn't find anything.
  8684. if test -z "$lt_cv_aix_libpath_"; then
  8685. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8686. fi
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. if test -z "$lt_cv_aix_libpath_"; then
  8691. lt_cv_aix_libpath_="/usr/lib:/lib"
  8692. fi
  8693. fi
  8694. aix_libpath=$lt_cv_aix_libpath_
  8695. fi
  8696. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8697. # Warning - without using the other run time loading flags,
  8698. # -berok will link without error, but may produce a broken library.
  8699. no_undefined_flag=' ${wl}-bernotok'
  8700. allow_undefined_flag=' ${wl}-berok'
  8701. if test "$with_gnu_ld" = yes; then
  8702. # We only use this code for GNU lds that support --whole-archive.
  8703. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8704. else
  8705. # Exported symbols can be pulled into shared objects from archives
  8706. whole_archive_flag_spec='$convenience'
  8707. fi
  8708. archive_cmds_need_lc=yes
  8709. # This is similar to how AIX traditionally builds its shared libraries.
  8710. 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'
  8711. fi
  8712. fi
  8713. ;;
  8714. amigaos*)
  8715. case $host_cpu in
  8716. powerpc)
  8717. # see comment about AmigaOS4 .so support
  8718. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8719. archive_expsym_cmds=''
  8720. ;;
  8721. m68k)
  8722. 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)'
  8723. hardcode_libdir_flag_spec='-L$libdir'
  8724. hardcode_minus_L=yes
  8725. ;;
  8726. esac
  8727. ;;
  8728. bsdi[45]*)
  8729. export_dynamic_flag_spec=-rdynamic
  8730. ;;
  8731. cygwin* | mingw* | pw32* | cegcc*)
  8732. # When not using gcc, we currently assume that we are using
  8733. # Microsoft Visual C++.
  8734. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8735. # no search path for DLLs.
  8736. case $cc_basename in
  8737. cl*)
  8738. # Native MSVC
  8739. hardcode_libdir_flag_spec=' '
  8740. allow_undefined_flag=unsupported
  8741. always_export_symbols=yes
  8742. file_list_spec='@'
  8743. # Tell ltmain to make .lib files, not .a files.
  8744. libext=lib
  8745. # Tell ltmain to make .dll files, not .so files.
  8746. shrext_cmds=".dll"
  8747. # FIXME: Setting linknames here is a bad hack.
  8748. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8749. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8750. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8751. else
  8752. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8753. fi~
  8754. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8755. linknames='
  8756. # The linker will not automatically build a static lib if we build a DLL.
  8757. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8758. enable_shared_with_static_runtimes=yes
  8759. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8760. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8761. # Don't use ranlib
  8762. old_postinstall_cmds='chmod 644 $oldlib'
  8763. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8764. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8765. case $lt_outputfile in
  8766. *.exe|*.EXE) ;;
  8767. *)
  8768. lt_outputfile="$lt_outputfile.exe"
  8769. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8770. ;;
  8771. esac~
  8772. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8773. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8774. $RM "$lt_outputfile.manifest";
  8775. fi'
  8776. ;;
  8777. *)
  8778. # Assume MSVC wrapper
  8779. hardcode_libdir_flag_spec=' '
  8780. allow_undefined_flag=unsupported
  8781. # Tell ltmain to make .lib files, not .a files.
  8782. libext=lib
  8783. # Tell ltmain to make .dll files, not .so files.
  8784. shrext_cmds=".dll"
  8785. # FIXME: Setting linknames here is a bad hack.
  8786. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8787. # The linker will automatically build a .lib file if we build a DLL.
  8788. old_archive_from_new_cmds='true'
  8789. # FIXME: Should let the user specify the lib program.
  8790. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8791. enable_shared_with_static_runtimes=yes
  8792. ;;
  8793. esac
  8794. ;;
  8795. darwin* | rhapsody*)
  8796. archive_cmds_need_lc=no
  8797. hardcode_direct=no
  8798. hardcode_automatic=yes
  8799. hardcode_shlibpath_var=unsupported
  8800. if test "$lt_cv_ld_force_load" = "yes"; then
  8801. 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\"`'
  8802. else
  8803. whole_archive_flag_spec=''
  8804. fi
  8805. link_all_deplibs=yes
  8806. allow_undefined_flag="$_lt_dar_allow_undefined"
  8807. case $cc_basename in
  8808. ifort*) _lt_dar_can_shared=yes ;;
  8809. *) _lt_dar_can_shared=$GCC ;;
  8810. esac
  8811. if test "$_lt_dar_can_shared" = "yes"; then
  8812. output_verbose_link_cmd=func_echo_all
  8813. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8814. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8815. 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}"
  8816. 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}"
  8817. else
  8818. ld_shlibs=no
  8819. fi
  8820. ;;
  8821. dgux*)
  8822. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8823. hardcode_libdir_flag_spec='-L$libdir'
  8824. hardcode_shlibpath_var=no
  8825. ;;
  8826. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8827. # support. Future versions do this automatically, but an explicit c++rt0.o
  8828. # does not break anything, and helps significantly (at the cost of a little
  8829. # extra space).
  8830. freebsd2.2*)
  8831. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8832. hardcode_libdir_flag_spec='-R$libdir'
  8833. hardcode_direct=yes
  8834. hardcode_shlibpath_var=no
  8835. ;;
  8836. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8837. freebsd2.*)
  8838. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8839. hardcode_direct=yes
  8840. hardcode_minus_L=yes
  8841. hardcode_shlibpath_var=no
  8842. ;;
  8843. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8844. freebsd* | dragonfly*)
  8845. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8846. hardcode_libdir_flag_spec='-R$libdir'
  8847. hardcode_direct=yes
  8848. hardcode_shlibpath_var=no
  8849. ;;
  8850. hpux9*)
  8851. if test "$GCC" = yes; then
  8852. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8853. else
  8854. 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'
  8855. fi
  8856. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8857. hardcode_libdir_separator=:
  8858. hardcode_direct=yes
  8859. # hardcode_minus_L: Not really in the search PATH,
  8860. # but as the default location of the library.
  8861. hardcode_minus_L=yes
  8862. export_dynamic_flag_spec='${wl}-E'
  8863. ;;
  8864. hpux10*)
  8865. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8866. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8867. else
  8868. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8869. fi
  8870. if test "$with_gnu_ld" = no; then
  8871. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8872. hardcode_libdir_separator=:
  8873. hardcode_direct=yes
  8874. hardcode_direct_absolute=yes
  8875. export_dynamic_flag_spec='${wl}-E'
  8876. # hardcode_minus_L: Not really in the search PATH,
  8877. # but as the default location of the library.
  8878. hardcode_minus_L=yes
  8879. fi
  8880. ;;
  8881. hpux11*)
  8882. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8883. case $host_cpu in
  8884. hppa*64*)
  8885. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8886. ;;
  8887. ia64*)
  8888. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8889. ;;
  8890. *)
  8891. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8892. ;;
  8893. esac
  8894. else
  8895. case $host_cpu in
  8896. hppa*64*)
  8897. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8898. ;;
  8899. ia64*)
  8900. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8901. ;;
  8902. *)
  8903. # Older versions of the 11.00 compiler do not understand -b yet
  8904. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8906. $as_echo_n "checking if $CC understands -b... " >&6; }
  8907. if ${lt_cv_prog_compiler__b+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. lt_cv_prog_compiler__b=no
  8911. save_LDFLAGS="$LDFLAGS"
  8912. LDFLAGS="$LDFLAGS -b"
  8913. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8914. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8915. # The linker can only warn and ignore the option if not recognized
  8916. # So say no if there are warnings
  8917. if test -s conftest.err; then
  8918. # Append any errors to the config.log.
  8919. cat conftest.err 1>&5
  8920. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8921. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8922. if diff conftest.exp conftest.er2 >/dev/null; then
  8923. lt_cv_prog_compiler__b=yes
  8924. fi
  8925. else
  8926. lt_cv_prog_compiler__b=yes
  8927. fi
  8928. fi
  8929. $RM -r conftest*
  8930. LDFLAGS="$save_LDFLAGS"
  8931. fi
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8933. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8934. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8935. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8936. else
  8937. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8938. fi
  8939. ;;
  8940. esac
  8941. fi
  8942. if test "$with_gnu_ld" = no; then
  8943. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8944. hardcode_libdir_separator=:
  8945. case $host_cpu in
  8946. hppa*64*|ia64*)
  8947. hardcode_direct=no
  8948. hardcode_shlibpath_var=no
  8949. ;;
  8950. *)
  8951. hardcode_direct=yes
  8952. hardcode_direct_absolute=yes
  8953. export_dynamic_flag_spec='${wl}-E'
  8954. # hardcode_minus_L: Not really in the search PATH,
  8955. # but as the default location of the library.
  8956. hardcode_minus_L=yes
  8957. ;;
  8958. esac
  8959. fi
  8960. ;;
  8961. irix5* | irix6* | nonstopux*)
  8962. if test "$GCC" = yes; then
  8963. archive_cmds='$CC -shared $pic_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'
  8964. # Try to use the -exported_symbol ld option, if it does not
  8965. # work, assume that -exports_file does not work either and
  8966. # implicitly export all symbols.
  8967. # This should be the same for all languages, so no per-tag cache variable.
  8968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8969. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8970. if ${lt_cv_irix_exported_symbol+:} false; then :
  8971. $as_echo_n "(cached) " >&6
  8972. else
  8973. save_LDFLAGS="$LDFLAGS"
  8974. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8976. /* end confdefs.h. */
  8977. int foo (void) { return 0; }
  8978. _ACEOF
  8979. if ac_fn_c_try_link "$LINENO"; then :
  8980. lt_cv_irix_exported_symbol=yes
  8981. else
  8982. lt_cv_irix_exported_symbol=no
  8983. fi
  8984. rm -f core conftest.err conftest.$ac_objext \
  8985. conftest$ac_exeext conftest.$ac_ext
  8986. LDFLAGS="$save_LDFLAGS"
  8987. fi
  8988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8989. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8990. if test "$lt_cv_irix_exported_symbol" = yes; then
  8991. archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8992. fi
  8993. else
  8994. 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'
  8995. 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'
  8996. fi
  8997. archive_cmds_need_lc='no'
  8998. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8999. hardcode_libdir_separator=:
  9000. inherit_rpath=yes
  9001. link_all_deplibs=yes
  9002. ;;
  9003. netbsd*)
  9004. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9005. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9006. else
  9007. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9008. fi
  9009. hardcode_libdir_flag_spec='-R$libdir'
  9010. hardcode_direct=yes
  9011. hardcode_shlibpath_var=no
  9012. ;;
  9013. newsos6)
  9014. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9015. hardcode_direct=yes
  9016. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9017. hardcode_libdir_separator=:
  9018. hardcode_shlibpath_var=no
  9019. ;;
  9020. *nto* | *qnx*)
  9021. ;;
  9022. openbsd*)
  9023. if test -f /usr/libexec/ld.so; then
  9024. hardcode_direct=yes
  9025. hardcode_shlibpath_var=no
  9026. hardcode_direct_absolute=yes
  9027. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9028. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9029. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9030. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9031. export_dynamic_flag_spec='${wl}-E'
  9032. else
  9033. case $host_os in
  9034. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9035. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9036. hardcode_libdir_flag_spec='-R$libdir'
  9037. ;;
  9038. *)
  9039. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9040. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9041. ;;
  9042. esac
  9043. fi
  9044. else
  9045. ld_shlibs=no
  9046. fi
  9047. ;;
  9048. os2*)
  9049. hardcode_libdir_flag_spec='-L$libdir'
  9050. hardcode_minus_L=yes
  9051. allow_undefined_flag=unsupported
  9052. 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'
  9053. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9054. ;;
  9055. osf3*)
  9056. if test "$GCC" = yes; then
  9057. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9058. 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'
  9059. else
  9060. allow_undefined_flag=' -expect_unresolved \*'
  9061. 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'
  9062. fi
  9063. archive_cmds_need_lc='no'
  9064. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9065. hardcode_libdir_separator=:
  9066. ;;
  9067. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9068. if test "$GCC" = yes; then
  9069. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9070. archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
  9071. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9072. else
  9073. allow_undefined_flag=' -expect_unresolved \*'
  9074. 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'
  9075. 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~
  9076. $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'
  9077. # Both c and cxx compiler support -rpath directly
  9078. hardcode_libdir_flag_spec='-rpath $libdir'
  9079. fi
  9080. archive_cmds_need_lc='no'
  9081. hardcode_libdir_separator=:
  9082. ;;
  9083. solaris*)
  9084. no_undefined_flag=' -z defs'
  9085. if test "$GCC" = yes; then
  9086. wlarc='${wl}'
  9087. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9088. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9089. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9090. else
  9091. case `$CC -V 2>&1` in
  9092. *"Compilers 5.0"*)
  9093. wlarc=''
  9094. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9095. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9096. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9097. ;;
  9098. *)
  9099. wlarc='${wl}'
  9100. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9101. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9102. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9103. ;;
  9104. esac
  9105. fi
  9106. hardcode_libdir_flag_spec='-R$libdir'
  9107. hardcode_shlibpath_var=no
  9108. case $host_os in
  9109. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9110. *)
  9111. # The compiler driver will combine and reorder linker options,
  9112. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9113. # but is careful enough not to reorder.
  9114. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9115. if test "$GCC" = yes; then
  9116. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9117. else
  9118. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9119. fi
  9120. ;;
  9121. esac
  9122. link_all_deplibs=yes
  9123. ;;
  9124. sunos4*)
  9125. if test "x$host_vendor" = xsequent; then
  9126. # Use $CC to link under sequent, because it throws in some extra .o
  9127. # files that make .init and .fini sections work.
  9128. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9129. else
  9130. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9131. fi
  9132. hardcode_libdir_flag_spec='-L$libdir'
  9133. hardcode_direct=yes
  9134. hardcode_minus_L=yes
  9135. hardcode_shlibpath_var=no
  9136. ;;
  9137. sysv4)
  9138. case $host_vendor in
  9139. sni)
  9140. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9141. hardcode_direct=yes # is this really true???
  9142. ;;
  9143. siemens)
  9144. ## LD is ld it makes a PLAMLIB
  9145. ## CC just makes a GrossModule.
  9146. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9147. reload_cmds='$CC -r -o $output$reload_objs'
  9148. hardcode_direct=no
  9149. ;;
  9150. motorola)
  9151. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9152. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9153. ;;
  9154. esac
  9155. runpath_var='LD_RUN_PATH'
  9156. hardcode_shlibpath_var=no
  9157. ;;
  9158. sysv4.3*)
  9159. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9160. hardcode_shlibpath_var=no
  9161. export_dynamic_flag_spec='-Bexport'
  9162. ;;
  9163. sysv4*MP*)
  9164. if test -d /usr/nec; then
  9165. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9166. hardcode_shlibpath_var=no
  9167. runpath_var=LD_RUN_PATH
  9168. hardcode_runpath_var=yes
  9169. ld_shlibs=yes
  9170. fi
  9171. ;;
  9172. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9173. no_undefined_flag='${wl}-z,text'
  9174. archive_cmds_need_lc=no
  9175. hardcode_shlibpath_var=no
  9176. runpath_var='LD_RUN_PATH'
  9177. if test "$GCC" = yes; then
  9178. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9179. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9180. else
  9181. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9182. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9183. fi
  9184. ;;
  9185. sysv5* | sco3.2v5* | sco5v6*)
  9186. # Note: We can NOT use -z defs as we might desire, because we do not
  9187. # link with -lc, and that would cause any symbols used from libc to
  9188. # always be unresolved, which means just about no library would
  9189. # ever link correctly. If we're not using GNU ld we use -z text
  9190. # though, which does catch some bad symbols but isn't as heavy-handed
  9191. # as -z defs.
  9192. no_undefined_flag='${wl}-z,text'
  9193. allow_undefined_flag='${wl}-z,nodefs'
  9194. archive_cmds_need_lc=no
  9195. hardcode_shlibpath_var=no
  9196. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9197. hardcode_libdir_separator=':'
  9198. link_all_deplibs=yes
  9199. export_dynamic_flag_spec='${wl}-Bexport'
  9200. runpath_var='LD_RUN_PATH'
  9201. if test "$GCC" = yes; then
  9202. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9203. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9204. else
  9205. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9206. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9207. fi
  9208. ;;
  9209. uts4*)
  9210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_libdir_flag_spec='-L$libdir'
  9212. hardcode_shlibpath_var=no
  9213. ;;
  9214. *)
  9215. ld_shlibs=no
  9216. ;;
  9217. esac
  9218. if test x$host_vendor = xsni; then
  9219. case $host in
  9220. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9221. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9222. ;;
  9223. esac
  9224. fi
  9225. fi
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9227. $as_echo "$ld_shlibs" >&6; }
  9228. test "$ld_shlibs" = no && can_build_shared=no
  9229. with_gnu_ld=$with_gnu_ld
  9230. #
  9231. # Do we need to explicitly link libc?
  9232. #
  9233. case "x$archive_cmds_need_lc" in
  9234. x|xyes)
  9235. # Assume -lc should be added
  9236. archive_cmds_need_lc=yes
  9237. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9238. case $archive_cmds in
  9239. *'~'*)
  9240. # FIXME: we may have to deal with multi-command sequences.
  9241. ;;
  9242. '$CC '*)
  9243. # Test whether the compiler implicitly links with -lc since on some
  9244. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9245. # to ld, don't add -lc before -lgcc.
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9247. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9248. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9249. $as_echo_n "(cached) " >&6
  9250. else
  9251. $RM conftest*
  9252. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9254. (eval $ac_compile) 2>&5
  9255. ac_status=$?
  9256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9257. test $ac_status = 0; } 2>conftest.err; then
  9258. soname=conftest
  9259. lib=conftest
  9260. libobjs=conftest.$ac_objext
  9261. deplibs=
  9262. wl=$lt_prog_compiler_wl
  9263. pic_flag=$lt_prog_compiler_pic
  9264. compiler_flags=-v
  9265. linker_flags=-v
  9266. verstring=
  9267. output_objdir=.
  9268. libname=conftest
  9269. lt_save_allow_undefined_flag=$allow_undefined_flag
  9270. allow_undefined_flag=
  9271. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9272. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9273. ac_status=$?
  9274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9275. test $ac_status = 0; }
  9276. then
  9277. lt_cv_archive_cmds_need_lc=no
  9278. else
  9279. lt_cv_archive_cmds_need_lc=yes
  9280. fi
  9281. allow_undefined_flag=$lt_save_allow_undefined_flag
  9282. else
  9283. cat conftest.err 1>&5
  9284. fi
  9285. $RM conftest*
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9288. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9289. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9290. ;;
  9291. esac
  9292. fi
  9293. ;;
  9294. esac
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9296. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9297. if test "$GCC" = yes; then
  9298. case $host_os in
  9299. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9300. *) lt_awk_arg="/^libraries:/" ;;
  9301. esac
  9302. case $host_os in
  9303. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9304. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9305. esac
  9306. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9307. case $lt_search_path_spec in
  9308. *\;*)
  9309. # if the path contains ";" then we assume it to be the separator
  9310. # otherwise default to the standard path separator (i.e. ":") - it is
  9311. # assumed that no part of a normal pathname contains ";" but that should
  9312. # okay in the real world where ";" in dirpaths is itself problematic.
  9313. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9314. ;;
  9315. *)
  9316. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9317. ;;
  9318. esac
  9319. # Ok, now we have the path, separated by spaces, we can step through it
  9320. # and add multilib dir if necessary.
  9321. lt_tmp_lt_search_path_spec=
  9322. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9323. for lt_sys_path in $lt_search_path_spec; do
  9324. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9325. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9326. else
  9327. test -d "$lt_sys_path" && \
  9328. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9329. fi
  9330. done
  9331. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9332. BEGIN {RS=" "; FS="/|\n";} {
  9333. lt_foo="";
  9334. lt_count=0;
  9335. for (lt_i = NF; lt_i > 0; lt_i--) {
  9336. if ($lt_i != "" && $lt_i != ".") {
  9337. if ($lt_i == "..") {
  9338. lt_count++;
  9339. } else {
  9340. if (lt_count == 0) {
  9341. lt_foo="/" $lt_i lt_foo;
  9342. } else {
  9343. lt_count--;
  9344. }
  9345. }
  9346. }
  9347. }
  9348. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9349. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9350. }'`
  9351. # AWK program above erroneously prepends '/' to C:/dos/paths
  9352. # for these hosts.
  9353. case $host_os in
  9354. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9355. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9356. esac
  9357. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9358. else
  9359. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9360. fi
  9361. library_names_spec=
  9362. libname_spec='lib$name'
  9363. soname_spec=
  9364. shrext_cmds=".so"
  9365. postinstall_cmds=
  9366. postuninstall_cmds=
  9367. finish_cmds=
  9368. finish_eval=
  9369. shlibpath_var=
  9370. shlibpath_overrides_runpath=unknown
  9371. version_type=none
  9372. dynamic_linker="$host_os ld.so"
  9373. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9374. need_lib_prefix=unknown
  9375. hardcode_into_libs=no
  9376. # when you set need_version to no, make sure it does not cause -set_version
  9377. # flags to be left without arguments
  9378. need_version=unknown
  9379. case $host_os in
  9380. aix3*)
  9381. version_type=linux # correct to gnu/linux during the next big refactor
  9382. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9383. shlibpath_var=LIBPATH
  9384. # AIX 3 has no versioning support, so we append a major version to the name.
  9385. soname_spec='${libname}${release}${shared_ext}$major'
  9386. ;;
  9387. aix[4-9]*)
  9388. version_type=linux # correct to gnu/linux during the next big refactor
  9389. need_lib_prefix=no
  9390. need_version=no
  9391. hardcode_into_libs=yes
  9392. if test "$host_cpu" = ia64; then
  9393. # AIX 5 supports IA64
  9394. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9395. shlibpath_var=LD_LIBRARY_PATH
  9396. else
  9397. # With GCC up to 2.95.x, collect2 would create an import file
  9398. # for dependence libraries. The import file would start with
  9399. # the line `#! .'. This would cause the generated library to
  9400. # depend on `.', always an invalid library. This was fixed in
  9401. # development snapshots of GCC prior to 3.0.
  9402. case $host_os in
  9403. aix4 | aix4.[01] | aix4.[01].*)
  9404. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9405. echo ' yes '
  9406. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9407. :
  9408. else
  9409. can_build_shared=no
  9410. fi
  9411. ;;
  9412. esac
  9413. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9414. # soname into executable. Probably we can add versioning support to
  9415. # collect2, so additional links can be useful in future.
  9416. if test "$aix_use_runtimelinking" = yes; then
  9417. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9418. # instead of lib<name>.a to let people know that these are not
  9419. # typical AIX shared libraries.
  9420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9421. else
  9422. # We preserve .a as extension for shared libraries through AIX4.2
  9423. # and later when we are not doing run time linking.
  9424. library_names_spec='${libname}${release}.a $libname.a'
  9425. soname_spec='${libname}${release}${shared_ext}$major'
  9426. fi
  9427. shlibpath_var=LIBPATH
  9428. fi
  9429. ;;
  9430. amigaos*)
  9431. case $host_cpu in
  9432. powerpc)
  9433. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9434. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9436. ;;
  9437. m68k)
  9438. library_names_spec='$libname.ixlibrary $libname.a'
  9439. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9440. 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'
  9441. ;;
  9442. esac
  9443. ;;
  9444. beos*)
  9445. library_names_spec='${libname}${shared_ext}'
  9446. dynamic_linker="$host_os ld.so"
  9447. shlibpath_var=LIBRARY_PATH
  9448. ;;
  9449. bsdi[45]*)
  9450. version_type=linux # correct to gnu/linux during the next big refactor
  9451. need_version=no
  9452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9453. soname_spec='${libname}${release}${shared_ext}$major'
  9454. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9455. shlibpath_var=LD_LIBRARY_PATH
  9456. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9457. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9458. # the default ld.so.conf also contains /usr/contrib/lib and
  9459. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9460. # libtool to hard-code these into programs
  9461. ;;
  9462. cygwin* | mingw* | pw32* | cegcc*)
  9463. version_type=windows
  9464. shrext_cmds=".dll"
  9465. need_version=no
  9466. need_lib_prefix=no
  9467. case $GCC,$cc_basename in
  9468. yes,*)
  9469. # gcc
  9470. library_names_spec='$libname.dll.a'
  9471. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9472. postinstall_cmds='base_file=`basename \${file}`~
  9473. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9474. dldir=$destdir/`dirname \$dlpath`~
  9475. test -d \$dldir || mkdir -p \$dldir~
  9476. $install_prog $dir/$dlname \$dldir/$dlname~
  9477. chmod a+x \$dldir/$dlname~
  9478. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9479. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9480. fi'
  9481. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9482. dlpath=$dir/\$dldll~
  9483. $RM \$dlpath'
  9484. shlibpath_overrides_runpath=yes
  9485. case $host_os in
  9486. cygwin*)
  9487. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9488. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9489. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9490. ;;
  9491. mingw* | cegcc*)
  9492. # MinGW DLLs use traditional 'lib' prefix
  9493. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9494. ;;
  9495. pw32*)
  9496. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9497. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9498. ;;
  9499. esac
  9500. dynamic_linker='Win32 ld.exe'
  9501. ;;
  9502. *,cl*)
  9503. # Native MSVC
  9504. libname_spec='$name'
  9505. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9506. library_names_spec='${libname}.dll.lib'
  9507. case $build_os in
  9508. mingw*)
  9509. sys_lib_search_path_spec=
  9510. lt_save_ifs=$IFS
  9511. IFS=';'
  9512. for lt_path in $LIB
  9513. do
  9514. IFS=$lt_save_ifs
  9515. # Let DOS variable expansion print the short 8.3 style file name.
  9516. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9517. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9518. done
  9519. IFS=$lt_save_ifs
  9520. # Convert to MSYS style.
  9521. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9522. ;;
  9523. cygwin*)
  9524. # Convert to unix form, then to dos form, then back to unix form
  9525. # but this time dos style (no spaces!) so that the unix form looks
  9526. # like /cygdrive/c/PROGRA~1:/cygdr...
  9527. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9528. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9529. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9530. ;;
  9531. *)
  9532. sys_lib_search_path_spec="$LIB"
  9533. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9534. # It is most probably a Windows format PATH.
  9535. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9536. else
  9537. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9538. fi
  9539. # FIXME: find the short name or the path components, as spaces are
  9540. # common. (e.g. "Program Files" -> "PROGRA~1")
  9541. ;;
  9542. esac
  9543. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9544. postinstall_cmds='base_file=`basename \${file}`~
  9545. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9546. dldir=$destdir/`dirname \$dlpath`~
  9547. test -d \$dldir || mkdir -p \$dldir~
  9548. $install_prog $dir/$dlname \$dldir/$dlname'
  9549. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9550. dlpath=$dir/\$dldll~
  9551. $RM \$dlpath'
  9552. shlibpath_overrides_runpath=yes
  9553. dynamic_linker='Win32 link.exe'
  9554. ;;
  9555. *)
  9556. # Assume MSVC wrapper
  9557. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9558. dynamic_linker='Win32 ld.exe'
  9559. ;;
  9560. esac
  9561. # FIXME: first we should search . and the directory the executable is in
  9562. shlibpath_var=PATH
  9563. ;;
  9564. darwin* | rhapsody*)
  9565. dynamic_linker="$host_os dyld"
  9566. version_type=darwin
  9567. need_lib_prefix=no
  9568. need_version=no
  9569. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9570. soname_spec='${libname}${release}${major}$shared_ext'
  9571. shlibpath_overrides_runpath=yes
  9572. shlibpath_var=DYLD_LIBRARY_PATH
  9573. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9574. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9575. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9576. ;;
  9577. dgux*)
  9578. version_type=linux # correct to gnu/linux during the next big refactor
  9579. need_lib_prefix=no
  9580. need_version=no
  9581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9582. soname_spec='${libname}${release}${shared_ext}$major'
  9583. shlibpath_var=LD_LIBRARY_PATH
  9584. ;;
  9585. freebsd* | dragonfly*)
  9586. # DragonFly does not have aout. When/if they implement a new
  9587. # versioning mechanism, adjust this.
  9588. if test -x /usr/bin/objformat; then
  9589. objformat=`/usr/bin/objformat`
  9590. else
  9591. case $host_os in
  9592. freebsd[23].*) objformat=aout ;;
  9593. *) objformat=elf ;;
  9594. esac
  9595. fi
  9596. version_type=freebsd-$objformat
  9597. case $version_type in
  9598. freebsd-elf*)
  9599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9600. need_version=no
  9601. need_lib_prefix=no
  9602. ;;
  9603. freebsd-*)
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9605. need_version=yes
  9606. ;;
  9607. esac
  9608. shlibpath_var=LD_LIBRARY_PATH
  9609. case $host_os in
  9610. freebsd2.*)
  9611. shlibpath_overrides_runpath=yes
  9612. ;;
  9613. freebsd3.[01]* | freebsdelf3.[01]*)
  9614. shlibpath_overrides_runpath=yes
  9615. hardcode_into_libs=yes
  9616. ;;
  9617. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9618. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9619. shlibpath_overrides_runpath=no
  9620. hardcode_into_libs=yes
  9621. ;;
  9622. *) # from 4.6 on, and DragonFly
  9623. shlibpath_overrides_runpath=yes
  9624. hardcode_into_libs=yes
  9625. ;;
  9626. esac
  9627. ;;
  9628. gnu*)
  9629. version_type=linux # correct to gnu/linux during the next big refactor
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9633. soname_spec='${libname}${release}${shared_ext}$major'
  9634. shlibpath_var=LD_LIBRARY_PATH
  9635. shlibpath_overrides_runpath=no
  9636. hardcode_into_libs=yes
  9637. ;;
  9638. haiku*)
  9639. version_type=linux # correct to gnu/linux during the next big refactor
  9640. need_lib_prefix=no
  9641. need_version=no
  9642. dynamic_linker="$host_os runtime_loader"
  9643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9644. soname_spec='${libname}${release}${shared_ext}$major'
  9645. shlibpath_var=LIBRARY_PATH
  9646. shlibpath_overrides_runpath=yes
  9647. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9648. hardcode_into_libs=yes
  9649. ;;
  9650. hpux9* | hpux10* | hpux11*)
  9651. # Give a soname corresponding to the major version so that dld.sl refuses to
  9652. # link against other versions.
  9653. version_type=sunos
  9654. need_lib_prefix=no
  9655. need_version=no
  9656. case $host_cpu in
  9657. ia64*)
  9658. shrext_cmds='.so'
  9659. hardcode_into_libs=yes
  9660. dynamic_linker="$host_os dld.so"
  9661. shlibpath_var=LD_LIBRARY_PATH
  9662. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9664. soname_spec='${libname}${release}${shared_ext}$major'
  9665. if test "X$HPUX_IA64_MODE" = X32; then
  9666. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9667. else
  9668. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9669. fi
  9670. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9671. ;;
  9672. hppa*64*)
  9673. shrext_cmds='.sl'
  9674. hardcode_into_libs=yes
  9675. dynamic_linker="$host_os dld.sl"
  9676. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9677. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9679. soname_spec='${libname}${release}${shared_ext}$major'
  9680. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9681. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9682. ;;
  9683. *)
  9684. shrext_cmds='.sl'
  9685. dynamic_linker="$host_os dld.sl"
  9686. shlibpath_var=SHLIB_PATH
  9687. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9689. soname_spec='${libname}${release}${shared_ext}$major'
  9690. ;;
  9691. esac
  9692. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9693. postinstall_cmds='chmod 555 $lib'
  9694. # or fails outright, so override atomically:
  9695. install_override_mode=555
  9696. ;;
  9697. interix[3-9]*)
  9698. version_type=linux # correct to gnu/linux during the next big refactor
  9699. need_lib_prefix=no
  9700. need_version=no
  9701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9702. soname_spec='${libname}${release}${shared_ext}$major'
  9703. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9704. shlibpath_var=LD_LIBRARY_PATH
  9705. shlibpath_overrides_runpath=no
  9706. hardcode_into_libs=yes
  9707. ;;
  9708. irix5* | irix6* | nonstopux*)
  9709. case $host_os in
  9710. nonstopux*) version_type=nonstopux ;;
  9711. *)
  9712. if test "$lt_cv_prog_gnu_ld" = yes; then
  9713. version_type=linux # correct to gnu/linux during the next big refactor
  9714. else
  9715. version_type=irix
  9716. fi ;;
  9717. esac
  9718. need_lib_prefix=no
  9719. need_version=no
  9720. soname_spec='${libname}${release}${shared_ext}$major'
  9721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9722. case $host_os in
  9723. irix5* | nonstopux*)
  9724. libsuff= shlibsuff=
  9725. ;;
  9726. *)
  9727. case $LD in # libtool.m4 will add one of these switches to LD
  9728. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9729. libsuff= shlibsuff= libmagic=32-bit;;
  9730. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9731. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9732. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9733. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9734. *) libsuff= shlibsuff= libmagic=never-match;;
  9735. esac
  9736. ;;
  9737. esac
  9738. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9739. shlibpath_overrides_runpath=no
  9740. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9741. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9742. hardcode_into_libs=yes
  9743. ;;
  9744. # No shared lib support for Linux oldld, aout, or coff.
  9745. linux*oldld* | linux*aout* | linux*coff*)
  9746. dynamic_linker=no
  9747. ;;
  9748. # This must be glibc/ELF.
  9749. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9750. version_type=linux # correct to gnu/linux during the next big refactor
  9751. need_lib_prefix=no
  9752. need_version=no
  9753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9754. soname_spec='${libname}${release}${shared_ext}$major'
  9755. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. shlibpath_overrides_runpath=no
  9758. # Some binutils ld are patched to set DT_RUNPATH
  9759. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9760. $as_echo_n "(cached) " >&6
  9761. else
  9762. lt_cv_shlibpath_overrides_runpath=no
  9763. save_LDFLAGS=$LDFLAGS
  9764. save_libdir=$libdir
  9765. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9766. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9768. /* end confdefs.h. */
  9769. int
  9770. main ()
  9771. {
  9772. ;
  9773. return 0;
  9774. }
  9775. _ACEOF
  9776. if ac_fn_c_try_link "$LINENO"; then :
  9777. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9778. lt_cv_shlibpath_overrides_runpath=yes
  9779. fi
  9780. fi
  9781. rm -f core conftest.err conftest.$ac_objext \
  9782. conftest$ac_exeext conftest.$ac_ext
  9783. LDFLAGS=$save_LDFLAGS
  9784. libdir=$save_libdir
  9785. fi
  9786. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9787. # This implies no fast_install, which is unacceptable.
  9788. # Some rework will be needed to allow for fast_install
  9789. # before this can be enabled.
  9790. hardcode_into_libs=yes
  9791. # Add ABI-specific directories to the system library path.
  9792. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9793. # Append ld.so.conf contents to the search path
  9794. if test -f /etc/ld.so.conf; then
  9795. 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' ' '`
  9796. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9797. fi
  9798. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9799. # powerpc, because MkLinux only supported shared libraries with the
  9800. # GNU dynamic linker. Since this was broken with cross compilers,
  9801. # most powerpc-linux boxes support dynamic linking these days and
  9802. # people can always --disable-shared, the test was removed, and we
  9803. # assume the GNU/Linux dynamic linker is in use.
  9804. dynamic_linker='GNU/Linux ld.so'
  9805. ;;
  9806. netbsd*)
  9807. version_type=sunos
  9808. need_lib_prefix=no
  9809. need_version=no
  9810. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9812. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9813. dynamic_linker='NetBSD (a.out) ld.so'
  9814. else
  9815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9816. soname_spec='${libname}${release}${shared_ext}$major'
  9817. dynamic_linker='NetBSD ld.elf_so'
  9818. fi
  9819. shlibpath_var=LD_LIBRARY_PATH
  9820. shlibpath_overrides_runpath=yes
  9821. hardcode_into_libs=yes
  9822. ;;
  9823. newsos6)
  9824. version_type=linux # correct to gnu/linux during the next big refactor
  9825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9826. shlibpath_var=LD_LIBRARY_PATH
  9827. shlibpath_overrides_runpath=yes
  9828. ;;
  9829. *nto* | *qnx*)
  9830. version_type=qnx
  9831. need_lib_prefix=no
  9832. need_version=no
  9833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9834. soname_spec='${libname}${release}${shared_ext}$major'
  9835. shlibpath_var=LD_LIBRARY_PATH
  9836. shlibpath_overrides_runpath=no
  9837. hardcode_into_libs=yes
  9838. dynamic_linker='ldqnx.so'
  9839. ;;
  9840. openbsd*)
  9841. version_type=sunos
  9842. sys_lib_dlsearch_path_spec="/usr/lib"
  9843. need_lib_prefix=no
  9844. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9845. case $host_os in
  9846. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9847. *) need_version=no ;;
  9848. esac
  9849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9850. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9853. case $host_os in
  9854. openbsd2.[89] | openbsd2.[89].*)
  9855. shlibpath_overrides_runpath=no
  9856. ;;
  9857. *)
  9858. shlibpath_overrides_runpath=yes
  9859. ;;
  9860. esac
  9861. else
  9862. shlibpath_overrides_runpath=yes
  9863. fi
  9864. ;;
  9865. os2*)
  9866. libname_spec='$name'
  9867. shrext_cmds=".dll"
  9868. need_lib_prefix=no
  9869. library_names_spec='$libname${shared_ext} $libname.a'
  9870. dynamic_linker='OS/2 ld.exe'
  9871. shlibpath_var=LIBPATH
  9872. ;;
  9873. osf3* | osf4* | osf5*)
  9874. version_type=osf
  9875. need_lib_prefix=no
  9876. need_version=no
  9877. soname_spec='${libname}${release}${shared_ext}$major'
  9878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9879. shlibpath_var=LD_LIBRARY_PATH
  9880. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9881. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9882. ;;
  9883. rdos*)
  9884. dynamic_linker=no
  9885. ;;
  9886. solaris*)
  9887. version_type=linux # correct to gnu/linux during the next big refactor
  9888. need_lib_prefix=no
  9889. need_version=no
  9890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9891. soname_spec='${libname}${release}${shared_ext}$major'
  9892. shlibpath_var=LD_LIBRARY_PATH
  9893. shlibpath_overrides_runpath=yes
  9894. hardcode_into_libs=yes
  9895. # ldd complains unless libraries are executable
  9896. postinstall_cmds='chmod +x $lib'
  9897. ;;
  9898. sunos4*)
  9899. version_type=sunos
  9900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9901. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9902. shlibpath_var=LD_LIBRARY_PATH
  9903. shlibpath_overrides_runpath=yes
  9904. if test "$with_gnu_ld" = yes; then
  9905. need_lib_prefix=no
  9906. fi
  9907. need_version=yes
  9908. ;;
  9909. sysv4 | sysv4.3*)
  9910. version_type=linux # correct to gnu/linux during the next big refactor
  9911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9912. soname_spec='${libname}${release}${shared_ext}$major'
  9913. shlibpath_var=LD_LIBRARY_PATH
  9914. case $host_vendor in
  9915. sni)
  9916. shlibpath_overrides_runpath=no
  9917. need_lib_prefix=no
  9918. runpath_var=LD_RUN_PATH
  9919. ;;
  9920. siemens)
  9921. need_lib_prefix=no
  9922. ;;
  9923. motorola)
  9924. need_lib_prefix=no
  9925. need_version=no
  9926. shlibpath_overrides_runpath=no
  9927. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9928. ;;
  9929. esac
  9930. ;;
  9931. sysv4*MP*)
  9932. if test -d /usr/nec ;then
  9933. version_type=linux # correct to gnu/linux during the next big refactor
  9934. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9935. soname_spec='$libname${shared_ext}.$major'
  9936. shlibpath_var=LD_LIBRARY_PATH
  9937. fi
  9938. ;;
  9939. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9940. version_type=freebsd-elf
  9941. need_lib_prefix=no
  9942. need_version=no
  9943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9944. soname_spec='${libname}${release}${shared_ext}$major'
  9945. shlibpath_var=LD_LIBRARY_PATH
  9946. shlibpath_overrides_runpath=yes
  9947. hardcode_into_libs=yes
  9948. if test "$with_gnu_ld" = yes; then
  9949. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9950. else
  9951. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9952. case $host_os in
  9953. sco3.2v5*)
  9954. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9955. ;;
  9956. esac
  9957. fi
  9958. sys_lib_dlsearch_path_spec='/usr/lib'
  9959. ;;
  9960. tpf*)
  9961. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9962. version_type=linux # correct to gnu/linux during the next big refactor
  9963. need_lib_prefix=no
  9964. need_version=no
  9965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9966. shlibpath_var=LD_LIBRARY_PATH
  9967. shlibpath_overrides_runpath=no
  9968. hardcode_into_libs=yes
  9969. ;;
  9970. uts4*)
  9971. version_type=linux # correct to gnu/linux during the next big refactor
  9972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9973. soname_spec='${libname}${release}${shared_ext}$major'
  9974. shlibpath_var=LD_LIBRARY_PATH
  9975. ;;
  9976. *)
  9977. dynamic_linker=no
  9978. ;;
  9979. esac
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9981. $as_echo "$dynamic_linker" >&6; }
  9982. test "$dynamic_linker" = no && can_build_shared=no
  9983. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9984. if test "$GCC" = yes; then
  9985. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9986. fi
  9987. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9988. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9989. fi
  9990. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9991. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9992. fi
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9994. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9995. hardcode_action=
  9996. if test -n "$hardcode_libdir_flag_spec" ||
  9997. test -n "$runpath_var" ||
  9998. test "X$hardcode_automatic" = "Xyes" ; then
  9999. # We can hardcode non-existent directories.
  10000. if test "$hardcode_direct" != no &&
  10001. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10002. # have to relink, otherwise we might link with an installed library
  10003. # when we should be linking with a yet-to-be-installed one
  10004. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10005. test "$hardcode_minus_L" != no; then
  10006. # Linking always hardcodes the temporary library directory.
  10007. hardcode_action=relink
  10008. else
  10009. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10010. hardcode_action=immediate
  10011. fi
  10012. else
  10013. # We cannot hardcode anything, or else we can only hardcode existing
  10014. # directories.
  10015. hardcode_action=unsupported
  10016. fi
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10018. $as_echo "$hardcode_action" >&6; }
  10019. if test "$hardcode_action" = relink ||
  10020. test "$inherit_rpath" = yes; then
  10021. # Fast installation is not supported
  10022. enable_fast_install=no
  10023. elif test "$shlibpath_overrides_runpath" = yes ||
  10024. test "$enable_shared" = no; then
  10025. # Fast installation is not necessary
  10026. enable_fast_install=needless
  10027. fi
  10028. if test "x$enable_dlopen" != xyes; then
  10029. enable_dlopen=unknown
  10030. enable_dlopen_self=unknown
  10031. enable_dlopen_self_static=unknown
  10032. else
  10033. lt_cv_dlopen=no
  10034. lt_cv_dlopen_libs=
  10035. case $host_os in
  10036. beos*)
  10037. lt_cv_dlopen="load_add_on"
  10038. lt_cv_dlopen_libs=
  10039. lt_cv_dlopen_self=yes
  10040. ;;
  10041. mingw* | pw32* | cegcc*)
  10042. lt_cv_dlopen="LoadLibrary"
  10043. lt_cv_dlopen_libs=
  10044. ;;
  10045. cygwin*)
  10046. lt_cv_dlopen="dlopen"
  10047. lt_cv_dlopen_libs=
  10048. ;;
  10049. darwin*)
  10050. # if libdl is installed we need to link against it
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10052. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10053. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10054. $as_echo_n "(cached) " >&6
  10055. else
  10056. ac_check_lib_save_LIBS=$LIBS
  10057. LIBS="-ldl $LIBS"
  10058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10059. /* end confdefs.h. */
  10060. /* Override any GCC internal prototype to avoid an error.
  10061. Use char because int might match the return type of a GCC
  10062. builtin and then its argument prototype would still apply. */
  10063. #ifdef __cplusplus
  10064. extern "C"
  10065. #endif
  10066. char dlopen ();
  10067. int
  10068. main ()
  10069. {
  10070. return dlopen ();
  10071. ;
  10072. return 0;
  10073. }
  10074. _ACEOF
  10075. if ac_fn_c_try_link "$LINENO"; then :
  10076. ac_cv_lib_dl_dlopen=yes
  10077. else
  10078. ac_cv_lib_dl_dlopen=no
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. LIBS=$ac_check_lib_save_LIBS
  10083. fi
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10085. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10086. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10087. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10088. else
  10089. lt_cv_dlopen="dyld"
  10090. lt_cv_dlopen_libs=
  10091. lt_cv_dlopen_self=yes
  10092. fi
  10093. ;;
  10094. *)
  10095. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10096. if test "x$ac_cv_func_shl_load" = xyes; then :
  10097. lt_cv_dlopen="shl_load"
  10098. else
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10100. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10101. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. ac_check_lib_save_LIBS=$LIBS
  10105. LIBS="-ldld $LIBS"
  10106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10107. /* end confdefs.h. */
  10108. /* Override any GCC internal prototype to avoid an error.
  10109. Use char because int might match the return type of a GCC
  10110. builtin and then its argument prototype would still apply. */
  10111. #ifdef __cplusplus
  10112. extern "C"
  10113. #endif
  10114. char shl_load ();
  10115. int
  10116. main ()
  10117. {
  10118. return shl_load ();
  10119. ;
  10120. return 0;
  10121. }
  10122. _ACEOF
  10123. if ac_fn_c_try_link "$LINENO"; then :
  10124. ac_cv_lib_dld_shl_load=yes
  10125. else
  10126. ac_cv_lib_dld_shl_load=no
  10127. fi
  10128. rm -f core conftest.err conftest.$ac_objext \
  10129. conftest$ac_exeext conftest.$ac_ext
  10130. LIBS=$ac_check_lib_save_LIBS
  10131. fi
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10133. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10134. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10135. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10136. else
  10137. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10138. if test "x$ac_cv_func_dlopen" = xyes; then :
  10139. lt_cv_dlopen="dlopen"
  10140. else
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10142. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10143. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. ac_check_lib_save_LIBS=$LIBS
  10147. LIBS="-ldl $LIBS"
  10148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10149. /* end confdefs.h. */
  10150. /* Override any GCC internal prototype to avoid an error.
  10151. Use char because int might match the return type of a GCC
  10152. builtin and then its argument prototype would still apply. */
  10153. #ifdef __cplusplus
  10154. extern "C"
  10155. #endif
  10156. char dlopen ();
  10157. int
  10158. main ()
  10159. {
  10160. return dlopen ();
  10161. ;
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. if ac_fn_c_try_link "$LINENO"; then :
  10166. ac_cv_lib_dl_dlopen=yes
  10167. else
  10168. ac_cv_lib_dl_dlopen=no
  10169. fi
  10170. rm -f core conftest.err conftest.$ac_objext \
  10171. conftest$ac_exeext conftest.$ac_ext
  10172. LIBS=$ac_check_lib_save_LIBS
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10175. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10176. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10177. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10178. else
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10180. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10181. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. ac_check_lib_save_LIBS=$LIBS
  10185. LIBS="-lsvld $LIBS"
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. /* Override any GCC internal prototype to avoid an error.
  10189. Use char because int might match the return type of a GCC
  10190. builtin and then its argument prototype would still apply. */
  10191. #ifdef __cplusplus
  10192. extern "C"
  10193. #endif
  10194. char dlopen ();
  10195. int
  10196. main ()
  10197. {
  10198. return dlopen ();
  10199. ;
  10200. return 0;
  10201. }
  10202. _ACEOF
  10203. if ac_fn_c_try_link "$LINENO"; then :
  10204. ac_cv_lib_svld_dlopen=yes
  10205. else
  10206. ac_cv_lib_svld_dlopen=no
  10207. fi
  10208. rm -f core conftest.err conftest.$ac_objext \
  10209. conftest$ac_exeext conftest.$ac_ext
  10210. LIBS=$ac_check_lib_save_LIBS
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10213. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10214. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10215. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10216. else
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10218. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10219. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10220. $as_echo_n "(cached) " >&6
  10221. else
  10222. ac_check_lib_save_LIBS=$LIBS
  10223. LIBS="-ldld $LIBS"
  10224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10225. /* end confdefs.h. */
  10226. /* Override any GCC internal prototype to avoid an error.
  10227. Use char because int might match the return type of a GCC
  10228. builtin and then its argument prototype would still apply. */
  10229. #ifdef __cplusplus
  10230. extern "C"
  10231. #endif
  10232. char dld_link ();
  10233. int
  10234. main ()
  10235. {
  10236. return dld_link ();
  10237. ;
  10238. return 0;
  10239. }
  10240. _ACEOF
  10241. if ac_fn_c_try_link "$LINENO"; then :
  10242. ac_cv_lib_dld_dld_link=yes
  10243. else
  10244. ac_cv_lib_dld_dld_link=no
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext \
  10247. conftest$ac_exeext conftest.$ac_ext
  10248. LIBS=$ac_check_lib_save_LIBS
  10249. fi
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10251. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10252. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10253. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10254. fi
  10255. fi
  10256. fi
  10257. fi
  10258. fi
  10259. fi
  10260. ;;
  10261. esac
  10262. if test "x$lt_cv_dlopen" != xno; then
  10263. enable_dlopen=yes
  10264. else
  10265. enable_dlopen=no
  10266. fi
  10267. case $lt_cv_dlopen in
  10268. dlopen)
  10269. save_CPPFLAGS="$CPPFLAGS"
  10270. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10271. save_LDFLAGS="$LDFLAGS"
  10272. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10273. save_LIBS="$LIBS"
  10274. LIBS="$lt_cv_dlopen_libs $LIBS"
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10276. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10277. if ${lt_cv_dlopen_self+:} false; then :
  10278. $as_echo_n "(cached) " >&6
  10279. else
  10280. if test "$cross_compiling" = yes; then :
  10281. lt_cv_dlopen_self=cross
  10282. else
  10283. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10284. lt_status=$lt_dlunknown
  10285. cat > conftest.$ac_ext <<_LT_EOF
  10286. #line $LINENO "configure"
  10287. #include "confdefs.h"
  10288. #if HAVE_DLFCN_H
  10289. #include <dlfcn.h>
  10290. #endif
  10291. #include <stdio.h>
  10292. #ifdef RTLD_GLOBAL
  10293. # define LT_DLGLOBAL RTLD_GLOBAL
  10294. #else
  10295. # ifdef DL_GLOBAL
  10296. # define LT_DLGLOBAL DL_GLOBAL
  10297. # else
  10298. # define LT_DLGLOBAL 0
  10299. # endif
  10300. #endif
  10301. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10302. find out it does not work in some platform. */
  10303. #ifndef LT_DLLAZY_OR_NOW
  10304. # ifdef RTLD_LAZY
  10305. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10306. # else
  10307. # ifdef DL_LAZY
  10308. # define LT_DLLAZY_OR_NOW DL_LAZY
  10309. # else
  10310. # ifdef RTLD_NOW
  10311. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10312. # else
  10313. # ifdef DL_NOW
  10314. # define LT_DLLAZY_OR_NOW DL_NOW
  10315. # else
  10316. # define LT_DLLAZY_OR_NOW 0
  10317. # endif
  10318. # endif
  10319. # endif
  10320. # endif
  10321. #endif
  10322. /* When -fvisbility=hidden is used, assume the code has been annotated
  10323. correspondingly for the symbols needed. */
  10324. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10325. int fnord () __attribute__((visibility("default")));
  10326. #endif
  10327. int fnord () { return 42; }
  10328. int main ()
  10329. {
  10330. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10331. int status = $lt_dlunknown;
  10332. if (self)
  10333. {
  10334. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10335. else
  10336. {
  10337. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10338. else puts (dlerror ());
  10339. }
  10340. /* dlclose (self); */
  10341. }
  10342. else
  10343. puts (dlerror ());
  10344. return status;
  10345. }
  10346. _LT_EOF
  10347. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10348. (eval $ac_link) 2>&5
  10349. ac_status=$?
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10351. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10352. (./conftest; exit; ) >&5 2>/dev/null
  10353. lt_status=$?
  10354. case x$lt_status in
  10355. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10356. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10357. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10358. esac
  10359. else :
  10360. # compilation failed
  10361. lt_cv_dlopen_self=no
  10362. fi
  10363. fi
  10364. rm -fr conftest*
  10365. fi
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10367. $as_echo "$lt_cv_dlopen_self" >&6; }
  10368. if test "x$lt_cv_dlopen_self" = xyes; then
  10369. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10371. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10372. if ${lt_cv_dlopen_self_static+:} false; then :
  10373. $as_echo_n "(cached) " >&6
  10374. else
  10375. if test "$cross_compiling" = yes; then :
  10376. lt_cv_dlopen_self_static=cross
  10377. else
  10378. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10379. lt_status=$lt_dlunknown
  10380. cat > conftest.$ac_ext <<_LT_EOF
  10381. #line $LINENO "configure"
  10382. #include "confdefs.h"
  10383. #if HAVE_DLFCN_H
  10384. #include <dlfcn.h>
  10385. #endif
  10386. #include <stdio.h>
  10387. #ifdef RTLD_GLOBAL
  10388. # define LT_DLGLOBAL RTLD_GLOBAL
  10389. #else
  10390. # ifdef DL_GLOBAL
  10391. # define LT_DLGLOBAL DL_GLOBAL
  10392. # else
  10393. # define LT_DLGLOBAL 0
  10394. # endif
  10395. #endif
  10396. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10397. find out it does not work in some platform. */
  10398. #ifndef LT_DLLAZY_OR_NOW
  10399. # ifdef RTLD_LAZY
  10400. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10401. # else
  10402. # ifdef DL_LAZY
  10403. # define LT_DLLAZY_OR_NOW DL_LAZY
  10404. # else
  10405. # ifdef RTLD_NOW
  10406. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10407. # else
  10408. # ifdef DL_NOW
  10409. # define LT_DLLAZY_OR_NOW DL_NOW
  10410. # else
  10411. # define LT_DLLAZY_OR_NOW 0
  10412. # endif
  10413. # endif
  10414. # endif
  10415. # endif
  10416. #endif
  10417. /* When -fvisbility=hidden is used, assume the code has been annotated
  10418. correspondingly for the symbols needed. */
  10419. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10420. int fnord () __attribute__((visibility("default")));
  10421. #endif
  10422. int fnord () { return 42; }
  10423. int main ()
  10424. {
  10425. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10426. int status = $lt_dlunknown;
  10427. if (self)
  10428. {
  10429. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10430. else
  10431. {
  10432. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10433. else puts (dlerror ());
  10434. }
  10435. /* dlclose (self); */
  10436. }
  10437. else
  10438. puts (dlerror ());
  10439. return status;
  10440. }
  10441. _LT_EOF
  10442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10443. (eval $ac_link) 2>&5
  10444. ac_status=$?
  10445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10446. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10447. (./conftest; exit; ) >&5 2>/dev/null
  10448. lt_status=$?
  10449. case x$lt_status in
  10450. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10451. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10452. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10453. esac
  10454. else :
  10455. # compilation failed
  10456. lt_cv_dlopen_self_static=no
  10457. fi
  10458. fi
  10459. rm -fr conftest*
  10460. fi
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10462. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10463. fi
  10464. CPPFLAGS="$save_CPPFLAGS"
  10465. LDFLAGS="$save_LDFLAGS"
  10466. LIBS="$save_LIBS"
  10467. ;;
  10468. esac
  10469. case $lt_cv_dlopen_self in
  10470. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10471. *) enable_dlopen_self=unknown ;;
  10472. esac
  10473. case $lt_cv_dlopen_self_static in
  10474. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10475. *) enable_dlopen_self_static=unknown ;;
  10476. esac
  10477. fi
  10478. striplib=
  10479. old_striplib=
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10481. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10482. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10483. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10484. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10486. $as_echo "yes" >&6; }
  10487. else
  10488. # FIXME - insert some real tests, host_os isn't really good enough
  10489. case $host_os in
  10490. darwin*)
  10491. if test -n "$STRIP" ; then
  10492. striplib="$STRIP -x"
  10493. old_striplib="$STRIP -S"
  10494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10495. $as_echo "yes" >&6; }
  10496. else
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10498. $as_echo "no" >&6; }
  10499. fi
  10500. ;;
  10501. *)
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10503. $as_echo "no" >&6; }
  10504. ;;
  10505. esac
  10506. fi
  10507. # Report which library types will actually be built
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10509. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10511. $as_echo "$can_build_shared" >&6; }
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10513. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10514. test "$can_build_shared" = "no" && enable_shared=no
  10515. # On AIX, shared libraries and static libraries use the same namespace, and
  10516. # are all built from PIC.
  10517. case $host_os in
  10518. aix3*)
  10519. test "$enable_shared" = yes && enable_static=no
  10520. if test -n "$RANLIB"; then
  10521. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10522. postinstall_cmds='$RANLIB $lib'
  10523. fi
  10524. ;;
  10525. aix[4-9]*)
  10526. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10527. test "$enable_shared" = yes && enable_static=no
  10528. fi
  10529. ;;
  10530. esac
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10532. $as_echo "$enable_shared" >&6; }
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10534. $as_echo_n "checking whether to build static libraries... " >&6; }
  10535. # Make sure either enable_shared or enable_static is yes.
  10536. test "$enable_shared" = yes || enable_static=yes
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10538. $as_echo "$enable_static" >&6; }
  10539. fi
  10540. ac_ext=c
  10541. ac_cpp='$CPP $CPPFLAGS'
  10542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10545. CC="$lt_save_CC"
  10546. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10547. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10548. (test "X$CXX" != "Xg++"))) ; then
  10549. ac_ext=cpp
  10550. ac_cpp='$CXXCPP $CPPFLAGS'
  10551. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10552. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10553. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10555. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10556. if test -z "$CXXCPP"; then
  10557. if ${ac_cv_prog_CXXCPP+:} false; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. # Double quotes because CXXCPP needs to be expanded
  10561. for CXXCPP in "$CXX -E" "/lib/cpp"
  10562. do
  10563. ac_preproc_ok=false
  10564. for ac_cxx_preproc_warn_flag in '' yes
  10565. do
  10566. # Use a header file that comes with gcc, so configuring glibc
  10567. # with a fresh cross-compiler works.
  10568. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10569. # <limits.h> exists even on freestanding compilers.
  10570. # On the NeXT, cc -E runs the code through the compiler's parser,
  10571. # not just through cpp. "Syntax error" is here to catch this case.
  10572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10573. /* end confdefs.h. */
  10574. #ifdef __STDC__
  10575. # include <limits.h>
  10576. #else
  10577. # include <assert.h>
  10578. #endif
  10579. Syntax error
  10580. _ACEOF
  10581. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10582. else
  10583. # Broken: fails on valid input.
  10584. continue
  10585. fi
  10586. rm -f conftest.err conftest.i conftest.$ac_ext
  10587. # OK, works on sane cases. Now check whether nonexistent headers
  10588. # can be detected and how.
  10589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10590. /* end confdefs.h. */
  10591. #include <ac_nonexistent.h>
  10592. _ACEOF
  10593. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10594. # Broken: success on invalid input.
  10595. continue
  10596. else
  10597. # Passes both tests.
  10598. ac_preproc_ok=:
  10599. break
  10600. fi
  10601. rm -f conftest.err conftest.i conftest.$ac_ext
  10602. done
  10603. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10604. rm -f conftest.i conftest.err conftest.$ac_ext
  10605. if $ac_preproc_ok; then :
  10606. break
  10607. fi
  10608. done
  10609. ac_cv_prog_CXXCPP=$CXXCPP
  10610. fi
  10611. CXXCPP=$ac_cv_prog_CXXCPP
  10612. else
  10613. ac_cv_prog_CXXCPP=$CXXCPP
  10614. fi
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10616. $as_echo "$CXXCPP" >&6; }
  10617. ac_preproc_ok=false
  10618. for ac_cxx_preproc_warn_flag in '' yes
  10619. do
  10620. # Use a header file that comes with gcc, so configuring glibc
  10621. # with a fresh cross-compiler works.
  10622. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10623. # <limits.h> exists even on freestanding compilers.
  10624. # On the NeXT, cc -E runs the code through the compiler's parser,
  10625. # not just through cpp. "Syntax error" is here to catch this case.
  10626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10627. /* end confdefs.h. */
  10628. #ifdef __STDC__
  10629. # include <limits.h>
  10630. #else
  10631. # include <assert.h>
  10632. #endif
  10633. Syntax error
  10634. _ACEOF
  10635. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10636. else
  10637. # Broken: fails on valid input.
  10638. continue
  10639. fi
  10640. rm -f conftest.err conftest.i conftest.$ac_ext
  10641. # OK, works on sane cases. Now check whether nonexistent headers
  10642. # can be detected and how.
  10643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10644. /* end confdefs.h. */
  10645. #include <ac_nonexistent.h>
  10646. _ACEOF
  10647. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10648. # Broken: success on invalid input.
  10649. continue
  10650. else
  10651. # Passes both tests.
  10652. ac_preproc_ok=:
  10653. break
  10654. fi
  10655. rm -f conftest.err conftest.i conftest.$ac_ext
  10656. done
  10657. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10658. rm -f conftest.i conftest.err conftest.$ac_ext
  10659. if $ac_preproc_ok; then :
  10660. else
  10661. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10662. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10663. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10664. See \`config.log' for more details" "$LINENO" 5; }
  10665. fi
  10666. ac_ext=c
  10667. ac_cpp='$CPP $CPPFLAGS'
  10668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10671. else
  10672. _lt_caught_CXX_error=yes
  10673. fi
  10674. ac_ext=cpp
  10675. ac_cpp='$CXXCPP $CPPFLAGS'
  10676. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10677. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10678. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10679. archive_cmds_need_lc_CXX=no
  10680. allow_undefined_flag_CXX=
  10681. always_export_symbols_CXX=no
  10682. archive_expsym_cmds_CXX=
  10683. compiler_needs_object_CXX=no
  10684. export_dynamic_flag_spec_CXX=
  10685. hardcode_direct_CXX=no
  10686. hardcode_direct_absolute_CXX=no
  10687. hardcode_libdir_flag_spec_CXX=
  10688. hardcode_libdir_separator_CXX=
  10689. hardcode_minus_L_CXX=no
  10690. hardcode_shlibpath_var_CXX=unsupported
  10691. hardcode_automatic_CXX=no
  10692. inherit_rpath_CXX=no
  10693. module_cmds_CXX=
  10694. module_expsym_cmds_CXX=
  10695. link_all_deplibs_CXX=unknown
  10696. old_archive_cmds_CXX=$old_archive_cmds
  10697. reload_flag_CXX=$reload_flag
  10698. reload_cmds_CXX=$reload_cmds
  10699. no_undefined_flag_CXX=
  10700. whole_archive_flag_spec_CXX=
  10701. enable_shared_with_static_runtimes_CXX=no
  10702. # Source file extension for C++ test sources.
  10703. ac_ext=cpp
  10704. # Object file extension for compiled C++ test sources.
  10705. objext=o
  10706. objext_CXX=$objext
  10707. # No sense in running all these tests if we already determined that
  10708. # the CXX compiler isn't working. Some variables (like enable_shared)
  10709. # are currently assumed to apply to all compilers on this platform,
  10710. # and will be corrupted by setting them based on a non-working compiler.
  10711. if test "$_lt_caught_CXX_error" != yes; then
  10712. # Code to be used in simple compile tests
  10713. lt_simple_compile_test_code="int some_variable = 0;"
  10714. # Code to be used in simple link tests
  10715. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10716. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10717. # If no C compiler was specified, use CC.
  10718. LTCC=${LTCC-"$CC"}
  10719. # If no C compiler flags were specified, use CFLAGS.
  10720. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10721. # Allow CC to be a program name with arguments.
  10722. compiler=$CC
  10723. # save warnings/boilerplate of simple test code
  10724. ac_outfile=conftest.$ac_objext
  10725. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10726. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10727. _lt_compiler_boilerplate=`cat conftest.err`
  10728. $RM conftest*
  10729. ac_outfile=conftest.$ac_objext
  10730. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10731. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10732. _lt_linker_boilerplate=`cat conftest.err`
  10733. $RM -r conftest*
  10734. # Allow CC to be a program name with arguments.
  10735. lt_save_CC=$CC
  10736. lt_save_CFLAGS=$CFLAGS
  10737. lt_save_LD=$LD
  10738. lt_save_GCC=$GCC
  10739. GCC=$GXX
  10740. lt_save_with_gnu_ld=$with_gnu_ld
  10741. lt_save_path_LD=$lt_cv_path_LD
  10742. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10743. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10744. else
  10745. $as_unset lt_cv_prog_gnu_ld
  10746. fi
  10747. if test -n "${lt_cv_path_LDCXX+set}"; then
  10748. lt_cv_path_LD=$lt_cv_path_LDCXX
  10749. else
  10750. $as_unset lt_cv_path_LD
  10751. fi
  10752. test -z "${LDCXX+set}" || LD=$LDCXX
  10753. CC=${CXX-"c++"}
  10754. CFLAGS=$CXXFLAGS
  10755. compiler=$CC
  10756. compiler_CXX=$CC
  10757. for cc_temp in $compiler""; do
  10758. case $cc_temp in
  10759. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10760. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10761. \-*) ;;
  10762. *) break;;
  10763. esac
  10764. done
  10765. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10766. if test -n "$compiler"; then
  10767. # We don't want -fno-exception when compiling C++ code, so set the
  10768. # no_builtin_flag separately
  10769. if test "$GXX" = yes; then
  10770. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10771. else
  10772. lt_prog_compiler_no_builtin_flag_CXX=
  10773. fi
  10774. if test "$GXX" = yes; then
  10775. # Set up default GNU C++ configuration
  10776. # Check whether --with-gnu-ld was given.
  10777. if test "${with_gnu_ld+set}" = set; then :
  10778. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10779. else
  10780. with_gnu_ld=no
  10781. fi
  10782. ac_prog=ld
  10783. if test "$GCC" = yes; then
  10784. # Check if gcc -print-prog-name=ld gives a path.
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10786. $as_echo_n "checking for ld used by $CC... " >&6; }
  10787. case $host in
  10788. *-*-mingw*)
  10789. # gcc leaves a trailing carriage return which upsets mingw
  10790. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10791. *)
  10792. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10793. esac
  10794. case $ac_prog in
  10795. # Accept absolute paths.
  10796. [\\/]* | ?:[\\/]*)
  10797. re_direlt='/[^/][^/]*/\.\./'
  10798. # Canonicalize the pathname of ld
  10799. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10800. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10801. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10802. done
  10803. test -z "$LD" && LD="$ac_prog"
  10804. ;;
  10805. "")
  10806. # If it fails, then pretend we aren't using GCC.
  10807. ac_prog=ld
  10808. ;;
  10809. *)
  10810. # If it is relative, then search for the first ld in PATH.
  10811. with_gnu_ld=unknown
  10812. ;;
  10813. esac
  10814. elif test "$with_gnu_ld" = yes; then
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10816. $as_echo_n "checking for GNU ld... " >&6; }
  10817. else
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10819. $as_echo_n "checking for non-GNU ld... " >&6; }
  10820. fi
  10821. if ${lt_cv_path_LD+:} false; then :
  10822. $as_echo_n "(cached) " >&6
  10823. else
  10824. if test -z "$LD"; then
  10825. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10826. for ac_dir in $PATH; do
  10827. IFS="$lt_save_ifs"
  10828. test -z "$ac_dir" && ac_dir=.
  10829. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10830. lt_cv_path_LD="$ac_dir/$ac_prog"
  10831. # Check to see if the program is GNU ld. I'd rather use --version,
  10832. # but apparently some variants of GNU ld only accept -v.
  10833. # Break only if it was the GNU/non-GNU ld that we prefer.
  10834. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10835. *GNU* | *'with BFD'*)
  10836. test "$with_gnu_ld" != no && break
  10837. ;;
  10838. *)
  10839. test "$with_gnu_ld" != yes && break
  10840. ;;
  10841. esac
  10842. fi
  10843. done
  10844. IFS="$lt_save_ifs"
  10845. else
  10846. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10847. fi
  10848. fi
  10849. LD="$lt_cv_path_LD"
  10850. if test -n "$LD"; then
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10852. $as_echo "$LD" >&6; }
  10853. else
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10855. $as_echo "no" >&6; }
  10856. fi
  10857. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10859. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10860. if ${lt_cv_prog_gnu_ld+:} false; then :
  10861. $as_echo_n "(cached) " >&6
  10862. else
  10863. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10864. case `$LD -v 2>&1 </dev/null` in
  10865. *GNU* | *'with BFD'*)
  10866. lt_cv_prog_gnu_ld=yes
  10867. ;;
  10868. *)
  10869. lt_cv_prog_gnu_ld=no
  10870. ;;
  10871. esac
  10872. fi
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10874. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10875. with_gnu_ld=$lt_cv_prog_gnu_ld
  10876. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10877. # archiving commands below assume that GNU ld is being used.
  10878. if test "$with_gnu_ld" = yes; then
  10879. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10880. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10881. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10882. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10883. # If archive_cmds runs LD, not CC, wlarc should be empty
  10884. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10885. # investigate it a little bit more. (MM)
  10886. wlarc='${wl}'
  10887. # ancient GNU ld didn't support --whole-archive et. al.
  10888. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10889. $GREP 'no-whole-archive' > /dev/null; then
  10890. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10891. else
  10892. whole_archive_flag_spec_CXX=
  10893. fi
  10894. else
  10895. with_gnu_ld=no
  10896. wlarc=
  10897. # A generic and very simple default shared library creation
  10898. # command for GNU C++ for the case where it uses the native
  10899. # linker, instead of GNU ld. If possible, this setting should
  10900. # overridden to take advantage of the native linker features on
  10901. # the platform it is being used on.
  10902. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10903. fi
  10904. # Commands to make compiler produce verbose output that lists
  10905. # what "hidden" libraries, object files and flags are used when
  10906. # linking a shared library.
  10907. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10908. else
  10909. GXX=no
  10910. with_gnu_ld=no
  10911. wlarc=
  10912. fi
  10913. # PORTME: fill in a description of your system's C++ link characteristics
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10915. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10916. ld_shlibs_CXX=yes
  10917. case $host_os in
  10918. aix3*)
  10919. # FIXME: insert proper C++ library support
  10920. ld_shlibs_CXX=no
  10921. ;;
  10922. aix[4-9]*)
  10923. if test "$host_cpu" = ia64; then
  10924. # On IA64, the linker does run time linking by default, so we don't
  10925. # have to do anything special.
  10926. aix_use_runtimelinking=no
  10927. exp_sym_flag='-Bexport'
  10928. no_entry_flag=""
  10929. else
  10930. aix_use_runtimelinking=no
  10931. # Test if we are trying to use run time linking or normal
  10932. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10933. # need to do runtime linking.
  10934. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10935. for ld_flag in $LDFLAGS; do
  10936. case $ld_flag in
  10937. *-brtl*)
  10938. aix_use_runtimelinking=yes
  10939. break
  10940. ;;
  10941. esac
  10942. done
  10943. ;;
  10944. esac
  10945. exp_sym_flag='-bexport'
  10946. no_entry_flag='-bnoentry'
  10947. fi
  10948. # When large executables or shared objects are built, AIX ld can
  10949. # have problems creating the table of contents. If linking a library
  10950. # or program results in "error TOC overflow" add -mminimal-toc to
  10951. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10952. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10953. archive_cmds_CXX=''
  10954. hardcode_direct_CXX=yes
  10955. hardcode_direct_absolute_CXX=yes
  10956. hardcode_libdir_separator_CXX=':'
  10957. link_all_deplibs_CXX=yes
  10958. file_list_spec_CXX='${wl}-f,'
  10959. if test "$GXX" = yes; then
  10960. case $host_os in aix4.[012]|aix4.[012].*)
  10961. # We only want to do this on AIX 4.2 and lower, the check
  10962. # below for broken collect2 doesn't work under 4.3+
  10963. collect2name=`${CC} -print-prog-name=collect2`
  10964. if test -f "$collect2name" &&
  10965. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10966. then
  10967. # We have reworked collect2
  10968. :
  10969. else
  10970. # We have old collect2
  10971. hardcode_direct_CXX=unsupported
  10972. # It fails to find uninstalled libraries when the uninstalled
  10973. # path is not listed in the libpath. Setting hardcode_minus_L
  10974. # to unsupported forces relinking
  10975. hardcode_minus_L_CXX=yes
  10976. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10977. hardcode_libdir_separator_CXX=
  10978. fi
  10979. esac
  10980. shared_flag='-shared'
  10981. if test "$aix_use_runtimelinking" = yes; then
  10982. shared_flag="$shared_flag "'${wl}-G'
  10983. fi
  10984. else
  10985. # not using gcc
  10986. if test "$host_cpu" = ia64; then
  10987. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10988. # chokes on -Wl,-G. The following line is correct:
  10989. shared_flag='-G'
  10990. else
  10991. if test "$aix_use_runtimelinking" = yes; then
  10992. shared_flag='${wl}-G'
  10993. else
  10994. shared_flag='${wl}-bM:SRE'
  10995. fi
  10996. fi
  10997. fi
  10998. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10999. # It seems that -bexpall does not export symbols beginning with
  11000. # underscore (_), so it is better to generate a list of symbols to
  11001. # export.
  11002. always_export_symbols_CXX=yes
  11003. if test "$aix_use_runtimelinking" = yes; then
  11004. # Warning - without using the other runtime loading flags (-brtl),
  11005. # -berok will link without error, but may produce a broken library.
  11006. allow_undefined_flag_CXX='-berok'
  11007. # Determine the default libpath from the value encoded in an empty
  11008. # executable.
  11009. if test "${lt_cv_aix_libpath+set}" = set; then
  11010. aix_libpath=$lt_cv_aix_libpath
  11011. else
  11012. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11016. /* end confdefs.h. */
  11017. int
  11018. main ()
  11019. {
  11020. ;
  11021. return 0;
  11022. }
  11023. _ACEOF
  11024. if ac_fn_cxx_try_link "$LINENO"; then :
  11025. lt_aix_libpath_sed='
  11026. /Import File Strings/,/^$/ {
  11027. /^0/ {
  11028. s/^0 *\([^ ]*\) *$/\1/
  11029. p
  11030. }
  11031. }'
  11032. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11033. # Check for a 64-bit object if we didn't find anything.
  11034. if test -z "$lt_cv_aix_libpath__CXX"; then
  11035. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11036. fi
  11037. fi
  11038. rm -f core conftest.err conftest.$ac_objext \
  11039. conftest$ac_exeext conftest.$ac_ext
  11040. if test -z "$lt_cv_aix_libpath__CXX"; then
  11041. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11042. fi
  11043. fi
  11044. aix_libpath=$lt_cv_aix_libpath__CXX
  11045. fi
  11046. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11047. archive_expsym_cmds_CXX='$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"
  11048. else
  11049. if test "$host_cpu" = ia64; then
  11050. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11051. allow_undefined_flag_CXX="-z nodefs"
  11052. archive_expsym_cmds_CXX="\$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"
  11053. else
  11054. # Determine the default libpath from the value encoded in an
  11055. # empty executable.
  11056. if test "${lt_cv_aix_libpath+set}" = set; then
  11057. aix_libpath=$lt_cv_aix_libpath
  11058. else
  11059. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11060. $as_echo_n "(cached) " >&6
  11061. else
  11062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11063. /* end confdefs.h. */
  11064. int
  11065. main ()
  11066. {
  11067. ;
  11068. return 0;
  11069. }
  11070. _ACEOF
  11071. if ac_fn_cxx_try_link "$LINENO"; then :
  11072. lt_aix_libpath_sed='
  11073. /Import File Strings/,/^$/ {
  11074. /^0/ {
  11075. s/^0 *\([^ ]*\) *$/\1/
  11076. p
  11077. }
  11078. }'
  11079. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11080. # Check for a 64-bit object if we didn't find anything.
  11081. if test -z "$lt_cv_aix_libpath__CXX"; then
  11082. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11083. fi
  11084. fi
  11085. rm -f core conftest.err conftest.$ac_objext \
  11086. conftest$ac_exeext conftest.$ac_ext
  11087. if test -z "$lt_cv_aix_libpath__CXX"; then
  11088. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11089. fi
  11090. fi
  11091. aix_libpath=$lt_cv_aix_libpath__CXX
  11092. fi
  11093. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11094. # Warning - without using the other run time loading flags,
  11095. # -berok will link without error, but may produce a broken library.
  11096. no_undefined_flag_CXX=' ${wl}-bernotok'
  11097. allow_undefined_flag_CXX=' ${wl}-berok'
  11098. if test "$with_gnu_ld" = yes; then
  11099. # We only use this code for GNU lds that support --whole-archive.
  11100. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11101. else
  11102. # Exported symbols can be pulled into shared objects from archives
  11103. whole_archive_flag_spec_CXX='$convenience'
  11104. fi
  11105. archive_cmds_need_lc_CXX=yes
  11106. # This is similar to how AIX traditionally builds its shared
  11107. # libraries.
  11108. archive_expsym_cmds_CXX="\$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'
  11109. fi
  11110. fi
  11111. ;;
  11112. beos*)
  11113. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11114. allow_undefined_flag_CXX=unsupported
  11115. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11116. # support --undefined. This deserves some investigation. FIXME
  11117. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11118. else
  11119. ld_shlibs_CXX=no
  11120. fi
  11121. ;;
  11122. chorus*)
  11123. case $cc_basename in
  11124. *)
  11125. # FIXME: insert proper C++ library support
  11126. ld_shlibs_CXX=no
  11127. ;;
  11128. esac
  11129. ;;
  11130. cygwin* | mingw* | pw32* | cegcc*)
  11131. case $GXX,$cc_basename in
  11132. ,cl* | no,cl*)
  11133. # Native MSVC
  11134. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11135. # no search path for DLLs.
  11136. hardcode_libdir_flag_spec_CXX=' '
  11137. allow_undefined_flag_CXX=unsupported
  11138. always_export_symbols_CXX=yes
  11139. file_list_spec_CXX='@'
  11140. # Tell ltmain to make .lib files, not .a files.
  11141. libext=lib
  11142. # Tell ltmain to make .dll files, not .so files.
  11143. shrext_cmds=".dll"
  11144. # FIXME: Setting linknames here is a bad hack.
  11145. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11146. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11147. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11148. else
  11149. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11150. fi~
  11151. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11152. linknames='
  11153. # The linker will not automatically build a static lib if we build a DLL.
  11154. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11155. enable_shared_with_static_runtimes_CXX=yes
  11156. # Don't use ranlib
  11157. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11158. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11159. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11160. case $lt_outputfile in
  11161. *.exe|*.EXE) ;;
  11162. *)
  11163. lt_outputfile="$lt_outputfile.exe"
  11164. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11165. ;;
  11166. esac~
  11167. func_to_tool_file "$lt_outputfile"~
  11168. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11169. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11170. $RM "$lt_outputfile.manifest";
  11171. fi'
  11172. ;;
  11173. *)
  11174. # g++
  11175. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11176. # as there is no search path for DLLs.
  11177. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11178. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11179. allow_undefined_flag_CXX=unsupported
  11180. always_export_symbols_CXX=no
  11181. enable_shared_with_static_runtimes_CXX=yes
  11182. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11183. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11184. # If the export-symbols file already is a .def file (1st line
  11185. # is EXPORTS), use it as is; otherwise, prepend...
  11186. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11187. cp $export_symbols $output_objdir/$soname.def;
  11188. else
  11189. echo EXPORTS > $output_objdir/$soname.def;
  11190. cat $export_symbols >> $output_objdir/$soname.def;
  11191. fi~
  11192. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11193. else
  11194. ld_shlibs_CXX=no
  11195. fi
  11196. ;;
  11197. esac
  11198. ;;
  11199. darwin* | rhapsody*)
  11200. archive_cmds_need_lc_CXX=no
  11201. hardcode_direct_CXX=no
  11202. hardcode_automatic_CXX=yes
  11203. hardcode_shlibpath_var_CXX=unsupported
  11204. if test "$lt_cv_ld_force_load" = "yes"; then
  11205. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11206. else
  11207. whole_archive_flag_spec_CXX=''
  11208. fi
  11209. link_all_deplibs_CXX=yes
  11210. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11211. case $cc_basename in
  11212. ifort*) _lt_dar_can_shared=yes ;;
  11213. *) _lt_dar_can_shared=$GCC ;;
  11214. esac
  11215. if test "$_lt_dar_can_shared" = "yes"; then
  11216. output_verbose_link_cmd=func_echo_all
  11217. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11218. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11219. archive_expsym_cmds_CXX="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}"
  11220. module_expsym_cmds_CXX="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}"
  11221. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11222. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11223. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11224. fi
  11225. else
  11226. ld_shlibs_CXX=no
  11227. fi
  11228. ;;
  11229. dgux*)
  11230. case $cc_basename in
  11231. ec++*)
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. ghcx*)
  11236. # Green Hills C++ Compiler
  11237. # FIXME: insert proper C++ library support
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. *)
  11241. # FIXME: insert proper C++ library support
  11242. ld_shlibs_CXX=no
  11243. ;;
  11244. esac
  11245. ;;
  11246. freebsd2.*)
  11247. # C++ shared libraries reported to be fairly broken before
  11248. # switch to ELF
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. freebsd-elf*)
  11252. archive_cmds_need_lc_CXX=no
  11253. ;;
  11254. freebsd* | dragonfly*)
  11255. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11256. # conventions
  11257. ld_shlibs_CXX=yes
  11258. ;;
  11259. gnu*)
  11260. ;;
  11261. haiku*)
  11262. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11263. link_all_deplibs_CXX=yes
  11264. ;;
  11265. hpux9*)
  11266. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11267. hardcode_libdir_separator_CXX=:
  11268. export_dynamic_flag_spec_CXX='${wl}-E'
  11269. hardcode_direct_CXX=yes
  11270. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11271. # but as the default
  11272. # location of the library.
  11273. case $cc_basename in
  11274. CC*)
  11275. # FIXME: insert proper C++ library support
  11276. ld_shlibs_CXX=no
  11277. ;;
  11278. aCC*)
  11279. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11280. # Commands to make compiler produce verbose output that lists
  11281. # what "hidden" libraries, object files and flags are used when
  11282. # linking a shared library.
  11283. #
  11284. # There doesn't appear to be a way to prevent this compiler from
  11285. # explicitly linking system object files so we need to strip them
  11286. # from the output so that they don't get included in the library
  11287. # dependencies.
  11288. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11289. ;;
  11290. *)
  11291. if test "$GXX" = yes; then
  11292. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11293. else
  11294. # FIXME: insert proper C++ library support
  11295. ld_shlibs_CXX=no
  11296. fi
  11297. ;;
  11298. esac
  11299. ;;
  11300. hpux10*|hpux11*)
  11301. if test $with_gnu_ld = no; then
  11302. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11303. hardcode_libdir_separator_CXX=:
  11304. case $host_cpu in
  11305. hppa*64*|ia64*)
  11306. ;;
  11307. *)
  11308. export_dynamic_flag_spec_CXX='${wl}-E'
  11309. ;;
  11310. esac
  11311. fi
  11312. case $host_cpu in
  11313. hppa*64*|ia64*)
  11314. hardcode_direct_CXX=no
  11315. hardcode_shlibpath_var_CXX=no
  11316. ;;
  11317. *)
  11318. hardcode_direct_CXX=yes
  11319. hardcode_direct_absolute_CXX=yes
  11320. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11321. # but as the default
  11322. # location of the library.
  11323. ;;
  11324. esac
  11325. case $cc_basename in
  11326. CC*)
  11327. # FIXME: insert proper C++ library support
  11328. ld_shlibs_CXX=no
  11329. ;;
  11330. aCC*)
  11331. case $host_cpu in
  11332. hppa*64*)
  11333. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11334. ;;
  11335. ia64*)
  11336. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11337. ;;
  11338. *)
  11339. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11340. ;;
  11341. esac
  11342. # Commands to make compiler produce verbose output that lists
  11343. # what "hidden" libraries, object files and flags are used when
  11344. # linking a shared library.
  11345. #
  11346. # There doesn't appear to be a way to prevent this compiler from
  11347. # explicitly linking system object files so we need to strip them
  11348. # from the output so that they don't get included in the library
  11349. # dependencies.
  11350. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11351. ;;
  11352. *)
  11353. if test "$GXX" = yes; then
  11354. if test $with_gnu_ld = no; then
  11355. case $host_cpu in
  11356. hppa*64*)
  11357. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. ia64*)
  11360. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11361. ;;
  11362. *)
  11363. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11364. ;;
  11365. esac
  11366. fi
  11367. else
  11368. # FIXME: insert proper C++ library support
  11369. ld_shlibs_CXX=no
  11370. fi
  11371. ;;
  11372. esac
  11373. ;;
  11374. interix[3-9]*)
  11375. hardcode_direct_CXX=no
  11376. hardcode_shlibpath_var_CXX=no
  11377. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11378. export_dynamic_flag_spec_CXX='${wl}-E'
  11379. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11380. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11381. # default) and relocated if they conflict, which is a slow very memory
  11382. # consuming and fragmenting process. To avoid this, we pick a random,
  11383. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11384. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11385. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11386. archive_expsym_cmds_CXX='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'
  11387. ;;
  11388. irix5* | irix6*)
  11389. case $cc_basename in
  11390. CC*)
  11391. # SGI C++
  11392. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11393. # Archives containing C++ object files must be created using
  11394. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11395. # necessary to make sure instantiated templates are included
  11396. # in the archive.
  11397. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11398. ;;
  11399. *)
  11400. if test "$GXX" = yes; then
  11401. if test "$with_gnu_ld" = no; then
  11402. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  11403. else
  11404. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11405. fi
  11406. fi
  11407. link_all_deplibs_CXX=yes
  11408. ;;
  11409. esac
  11410. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11411. hardcode_libdir_separator_CXX=:
  11412. inherit_rpath_CXX=yes
  11413. ;;
  11414. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11415. case $cc_basename in
  11416. KCC*)
  11417. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11418. # KCC will only create a shared library if the output file
  11419. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11420. # to its proper name (with version) after linking.
  11421. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11422. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11423. # Commands to make compiler produce verbose output that lists
  11424. # what "hidden" libraries, object files and flags are used when
  11425. # linking a shared library.
  11426. #
  11427. # There doesn't appear to be a way to prevent this compiler from
  11428. # explicitly linking system object files so we need to strip them
  11429. # from the output so that they don't get included in the library
  11430. # dependencies.
  11431. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11432. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11433. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11434. # Archives containing C++ object files must be created using
  11435. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11436. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11437. ;;
  11438. icpc* | ecpc* )
  11439. # Intel C++
  11440. with_gnu_ld=yes
  11441. # version 8.0 and above of icpc choke on multiply defined symbols
  11442. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11443. # earlier do not add the objects themselves.
  11444. case `$CC -V 2>&1` in
  11445. *"Version 7."*)
  11446. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11447. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11448. ;;
  11449. *) # Version 8.0 or newer
  11450. tmp_idyn=
  11451. case $host_cpu in
  11452. ia64*) tmp_idyn=' -i_dynamic';;
  11453. esac
  11454. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11455. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11456. ;;
  11457. esac
  11458. archive_cmds_need_lc_CXX=no
  11459. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11460. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11461. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11462. ;;
  11463. pgCC* | pgcpp*)
  11464. # Portland Group C++ compiler
  11465. case `$CC -V` in
  11466. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11467. prelink_cmds_CXX='tpldir=Template.dir~
  11468. rm -rf $tpldir~
  11469. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11470. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11471. old_archive_cmds_CXX='tpldir=Template.dir~
  11472. rm -rf $tpldir~
  11473. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11474. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11475. $RANLIB $oldlib'
  11476. archive_cmds_CXX='tpldir=Template.dir~
  11477. rm -rf $tpldir~
  11478. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11479. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11480. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11481. rm -rf $tpldir~
  11482. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11483. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11484. ;;
  11485. *) # Version 6 and above use weak symbols
  11486. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11487. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11488. ;;
  11489. esac
  11490. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11491. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11492. whole_archive_flag_spec_CXX='${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'
  11493. ;;
  11494. cxx*)
  11495. # Compaq C++
  11496. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11497. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11498. runpath_var=LD_RUN_PATH
  11499. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11500. hardcode_libdir_separator_CXX=:
  11501. # Commands to make compiler produce verbose output that lists
  11502. # what "hidden" libraries, object files and flags are used when
  11503. # linking a shared library.
  11504. #
  11505. # There doesn't appear to be a way to prevent this compiler from
  11506. # explicitly linking system object files so we need to strip them
  11507. # from the output so that they don't get included in the library
  11508. # dependencies.
  11509. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11510. ;;
  11511. xl* | mpixl* | bgxl*)
  11512. # IBM XL 8.0 on PPC, with GNU ld
  11513. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11514. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11515. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11516. if test "x$supports_anon_versioning" = xyes; then
  11517. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11518. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11519. echo "local: *; };" >> $output_objdir/$libname.ver~
  11520. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11521. fi
  11522. ;;
  11523. *)
  11524. case `$CC -V 2>&1 | sed 5q` in
  11525. *Sun\ C*)
  11526. # Sun C++ 5.9
  11527. no_undefined_flag_CXX=' -zdefs'
  11528. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11529. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11530. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11531. whole_archive_flag_spec_CXX='${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'
  11532. compiler_needs_object_CXX=yes
  11533. # Not sure whether something based on
  11534. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11535. # would be better.
  11536. output_verbose_link_cmd='func_echo_all'
  11537. # Archives containing C++ object files must be created using
  11538. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11539. # necessary to make sure instantiated templates are included
  11540. # in the archive.
  11541. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11542. ;;
  11543. esac
  11544. ;;
  11545. esac
  11546. ;;
  11547. lynxos*)
  11548. # FIXME: insert proper C++ library support
  11549. ld_shlibs_CXX=no
  11550. ;;
  11551. m88k*)
  11552. # FIXME: insert proper C++ library support
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. mvs*)
  11556. case $cc_basename in
  11557. cxx*)
  11558. # FIXME: insert proper C++ library support
  11559. ld_shlibs_CXX=no
  11560. ;;
  11561. *)
  11562. # FIXME: insert proper C++ library support
  11563. ld_shlibs_CXX=no
  11564. ;;
  11565. esac
  11566. ;;
  11567. netbsd*)
  11568. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11569. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11570. wlarc=
  11571. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11572. hardcode_direct_CXX=yes
  11573. hardcode_shlibpath_var_CXX=no
  11574. fi
  11575. # Workaround some broken pre-1.5 toolchains
  11576. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11577. ;;
  11578. *nto* | *qnx*)
  11579. ld_shlibs_CXX=yes
  11580. ;;
  11581. openbsd2*)
  11582. # C++ shared libraries are fairly broken
  11583. ld_shlibs_CXX=no
  11584. ;;
  11585. openbsd*)
  11586. if test -f /usr/libexec/ld.so; then
  11587. hardcode_direct_CXX=yes
  11588. hardcode_shlibpath_var_CXX=no
  11589. hardcode_direct_absolute_CXX=yes
  11590. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11591. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11592. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11593. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11594. export_dynamic_flag_spec_CXX='${wl}-E'
  11595. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11596. fi
  11597. output_verbose_link_cmd=func_echo_all
  11598. else
  11599. ld_shlibs_CXX=no
  11600. fi
  11601. ;;
  11602. osf3* | osf4* | osf5*)
  11603. case $cc_basename in
  11604. KCC*)
  11605. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11606. # KCC will only create a shared library if the output file
  11607. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11608. # to its proper name (with version) after linking.
  11609. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11610. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11611. hardcode_libdir_separator_CXX=:
  11612. # Archives containing C++ object files must be created using
  11613. # the KAI C++ compiler.
  11614. case $host in
  11615. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11616. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11617. esac
  11618. ;;
  11619. RCC*)
  11620. # Rational C++ 2.4.1
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. ;;
  11624. cxx*)
  11625. case $host in
  11626. osf3*)
  11627. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11628. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11629. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11630. ;;
  11631. *)
  11632. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11633. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11634. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11635. echo "-hidden">> $lib.exp~
  11636. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11637. $RM $lib.exp'
  11638. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11639. ;;
  11640. esac
  11641. hardcode_libdir_separator_CXX=:
  11642. # Commands to make compiler produce verbose output that lists
  11643. # what "hidden" libraries, object files and flags are used when
  11644. # linking a shared library.
  11645. #
  11646. # There doesn't appear to be a way to prevent this compiler from
  11647. # explicitly linking system object files so we need to strip them
  11648. # from the output so that they don't get included in the library
  11649. # dependencies.
  11650. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11651. ;;
  11652. *)
  11653. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11654. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11655. case $host in
  11656. osf3*)
  11657. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11658. ;;
  11659. *)
  11660. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11661. ;;
  11662. esac
  11663. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11664. hardcode_libdir_separator_CXX=:
  11665. # Commands to make compiler produce verbose output that lists
  11666. # what "hidden" libraries, object files and flags are used when
  11667. # linking a shared library.
  11668. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11669. else
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. fi
  11673. ;;
  11674. esac
  11675. ;;
  11676. psos*)
  11677. # FIXME: insert proper C++ library support
  11678. ld_shlibs_CXX=no
  11679. ;;
  11680. sunos4*)
  11681. case $cc_basename in
  11682. CC*)
  11683. # Sun C++ 4.x
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. lcc*)
  11688. # Lucid
  11689. # FIXME: insert proper C++ library support
  11690. ld_shlibs_CXX=no
  11691. ;;
  11692. *)
  11693. # FIXME: insert proper C++ library support
  11694. ld_shlibs_CXX=no
  11695. ;;
  11696. esac
  11697. ;;
  11698. solaris*)
  11699. case $cc_basename in
  11700. CC* | sunCC*)
  11701. # Sun C++ 4.2, 5.x and Centerline C++
  11702. archive_cmds_need_lc_CXX=yes
  11703. no_undefined_flag_CXX=' -zdefs'
  11704. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11705. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11706. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11707. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11708. hardcode_shlibpath_var_CXX=no
  11709. case $host_os in
  11710. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11711. *)
  11712. # The compiler driver will combine and reorder linker options,
  11713. # but understands `-z linker_flag'.
  11714. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11715. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11716. ;;
  11717. esac
  11718. link_all_deplibs_CXX=yes
  11719. output_verbose_link_cmd='func_echo_all'
  11720. # Archives containing C++ object files must be created using
  11721. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11722. # necessary to make sure instantiated templates are included
  11723. # in the archive.
  11724. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11725. ;;
  11726. gcx*)
  11727. # Green Hills C++ Compiler
  11728. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11729. # The C++ compiler must be used to create the archive.
  11730. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11731. ;;
  11732. *)
  11733. # GNU C++ compiler with Solaris linker
  11734. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11735. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11736. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11737. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11738. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11739. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11740. # Commands to make compiler produce verbose output that lists
  11741. # what "hidden" libraries, object files and flags are used when
  11742. # linking a shared library.
  11743. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11744. else
  11745. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11746. # platform.
  11747. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11748. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11749. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11750. # Commands to make compiler produce verbose output that lists
  11751. # what "hidden" libraries, object files and flags are used when
  11752. # linking a shared library.
  11753. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11754. fi
  11755. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11756. case $host_os in
  11757. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11758. *)
  11759. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11760. ;;
  11761. esac
  11762. fi
  11763. ;;
  11764. esac
  11765. ;;
  11766. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11767. no_undefined_flag_CXX='${wl}-z,text'
  11768. archive_cmds_need_lc_CXX=no
  11769. hardcode_shlibpath_var_CXX=no
  11770. runpath_var='LD_RUN_PATH'
  11771. case $cc_basename in
  11772. CC*)
  11773. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11774. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11775. ;;
  11776. *)
  11777. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11778. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. ;;
  11780. esac
  11781. ;;
  11782. sysv5* | sco3.2v5* | sco5v6*)
  11783. # Note: We can NOT use -z defs as we might desire, because we do not
  11784. # link with -lc, and that would cause any symbols used from libc to
  11785. # always be unresolved, which means just about no library would
  11786. # ever link correctly. If we're not using GNU ld we use -z text
  11787. # though, which does catch some bad symbols but isn't as heavy-handed
  11788. # as -z defs.
  11789. no_undefined_flag_CXX='${wl}-z,text'
  11790. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11791. archive_cmds_need_lc_CXX=no
  11792. hardcode_shlibpath_var_CXX=no
  11793. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11794. hardcode_libdir_separator_CXX=':'
  11795. link_all_deplibs_CXX=yes
  11796. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11797. runpath_var='LD_RUN_PATH'
  11798. case $cc_basename in
  11799. CC*)
  11800. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11801. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11802. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11803. '"$old_archive_cmds_CXX"
  11804. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11805. '"$reload_cmds_CXX"
  11806. ;;
  11807. *)
  11808. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11809. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. ;;
  11811. esac
  11812. ;;
  11813. tandem*)
  11814. case $cc_basename in
  11815. NCC*)
  11816. # NonStop-UX NCC 3.20
  11817. # FIXME: insert proper C++ library support
  11818. ld_shlibs_CXX=no
  11819. ;;
  11820. *)
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. esac
  11825. ;;
  11826. vxworks*)
  11827. # FIXME: insert proper C++ library support
  11828. ld_shlibs_CXX=no
  11829. ;;
  11830. *)
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. esac
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11836. $as_echo "$ld_shlibs_CXX" >&6; }
  11837. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11838. GCC_CXX="$GXX"
  11839. LD_CXX="$LD"
  11840. ## CAVEAT EMPTOR:
  11841. ## There is no encapsulation within the following macros, do not change
  11842. ## the running order or otherwise move them around unless you know exactly
  11843. ## what you are doing...
  11844. # Dependencies to place before and after the object being linked:
  11845. predep_objects_CXX=
  11846. postdep_objects_CXX=
  11847. predeps_CXX=
  11848. postdeps_CXX=
  11849. compiler_lib_search_path_CXX=
  11850. cat > conftest.$ac_ext <<_LT_EOF
  11851. class Foo
  11852. {
  11853. public:
  11854. Foo (void) { a = 0; }
  11855. private:
  11856. int a;
  11857. };
  11858. _LT_EOF
  11859. _lt_libdeps_save_CFLAGS=$CFLAGS
  11860. case "$CC $CFLAGS " in #(
  11861. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11862. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11863. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11864. esac
  11865. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11866. (eval $ac_compile) 2>&5
  11867. ac_status=$?
  11868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11869. test $ac_status = 0; }; then
  11870. # Parse the compiler output and extract the necessary
  11871. # objects, libraries and library flags.
  11872. # Sentinel used to keep track of whether or not we are before
  11873. # the conftest object file.
  11874. pre_test_object_deps_done=no
  11875. for p in `eval "$output_verbose_link_cmd"`; do
  11876. case ${prev}${p} in
  11877. -L* | -R* | -l*)
  11878. # Some compilers place space between "-{L,R}" and the path.
  11879. # Remove the space.
  11880. if test $p = "-L" ||
  11881. test $p = "-R"; then
  11882. prev=$p
  11883. continue
  11884. fi
  11885. # Expand the sysroot to ease extracting the directories later.
  11886. if test -z "$prev"; then
  11887. case $p in
  11888. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11889. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11890. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11891. esac
  11892. fi
  11893. case $p in
  11894. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11895. esac
  11896. if test "$pre_test_object_deps_done" = no; then
  11897. case ${prev} in
  11898. -L | -R)
  11899. # Internal compiler library paths should come after those
  11900. # provided the user. The postdeps already come after the
  11901. # user supplied libs so there is no need to process them.
  11902. if test -z "$compiler_lib_search_path_CXX"; then
  11903. compiler_lib_search_path_CXX="${prev}${p}"
  11904. else
  11905. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11906. fi
  11907. ;;
  11908. # The "-l" case would never come before the object being
  11909. # linked, so don't bother handling this case.
  11910. esac
  11911. else
  11912. if test -z "$postdeps_CXX"; then
  11913. postdeps_CXX="${prev}${p}"
  11914. else
  11915. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11916. fi
  11917. fi
  11918. prev=
  11919. ;;
  11920. *.lto.$objext) ;; # Ignore GCC LTO objects
  11921. *.$objext)
  11922. # This assumes that the test object file only shows up
  11923. # once in the compiler output.
  11924. if test "$p" = "conftest.$objext"; then
  11925. pre_test_object_deps_done=yes
  11926. continue
  11927. fi
  11928. if test "$pre_test_object_deps_done" = no; then
  11929. if test -z "$predep_objects_CXX"; then
  11930. predep_objects_CXX="$p"
  11931. else
  11932. predep_objects_CXX="$predep_objects_CXX $p"
  11933. fi
  11934. else
  11935. if test -z "$postdep_objects_CXX"; then
  11936. postdep_objects_CXX="$p"
  11937. else
  11938. postdep_objects_CXX="$postdep_objects_CXX $p"
  11939. fi
  11940. fi
  11941. ;;
  11942. *) ;; # Ignore the rest.
  11943. esac
  11944. done
  11945. # Clean up.
  11946. rm -f a.out a.exe
  11947. else
  11948. echo "libtool.m4: error: problem compiling CXX test program"
  11949. fi
  11950. $RM -f confest.$objext
  11951. CFLAGS=$_lt_libdeps_save_CFLAGS
  11952. # PORTME: override above test on systems where it is broken
  11953. case $host_os in
  11954. interix[3-9]*)
  11955. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11956. # hack all around it, let's just trust "g++" to DTRT.
  11957. predep_objects_CXX=
  11958. postdep_objects_CXX=
  11959. postdeps_CXX=
  11960. ;;
  11961. linux*)
  11962. case `$CC -V 2>&1 | sed 5q` in
  11963. *Sun\ C*)
  11964. # Sun C++ 5.9
  11965. # The more standards-conforming stlport4 library is
  11966. # incompatible with the Cstd library. Avoid specifying
  11967. # it if it's in CXXFLAGS. Ignore libCrun as
  11968. # -library=stlport4 depends on it.
  11969. case " $CXX $CXXFLAGS " in
  11970. *" -library=stlport4 "*)
  11971. solaris_use_stlport4=yes
  11972. ;;
  11973. esac
  11974. if test "$solaris_use_stlport4" != yes; then
  11975. postdeps_CXX='-library=Cstd -library=Crun'
  11976. fi
  11977. ;;
  11978. esac
  11979. ;;
  11980. solaris*)
  11981. case $cc_basename in
  11982. CC* | sunCC*)
  11983. # The more standards-conforming stlport4 library is
  11984. # incompatible with the Cstd library. Avoid specifying
  11985. # it if it's in CXXFLAGS. Ignore libCrun as
  11986. # -library=stlport4 depends on it.
  11987. case " $CXX $CXXFLAGS " in
  11988. *" -library=stlport4 "*)
  11989. solaris_use_stlport4=yes
  11990. ;;
  11991. esac
  11992. # Adding this requires a known-good setup of shared libraries for
  11993. # Sun compiler versions before 5.6, else PIC objects from an old
  11994. # archive will be linked into the output, leading to subtle bugs.
  11995. if test "$solaris_use_stlport4" != yes; then
  11996. postdeps_CXX='-library=Cstd -library=Crun'
  11997. fi
  11998. ;;
  11999. esac
  12000. ;;
  12001. esac
  12002. case " $postdeps_CXX " in
  12003. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12004. esac
  12005. compiler_lib_search_dirs_CXX=
  12006. if test -n "${compiler_lib_search_path_CXX}"; then
  12007. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12008. fi
  12009. lt_prog_compiler_wl_CXX=
  12010. lt_prog_compiler_pic_CXX=
  12011. lt_prog_compiler_static_CXX=
  12012. # C++ specific cases for pic, static, wl, etc.
  12013. if test "$GXX" = yes; then
  12014. lt_prog_compiler_wl_CXX='-Wl,'
  12015. lt_prog_compiler_static_CXX='-static'
  12016. case $host_os in
  12017. aix*)
  12018. # All AIX code is PIC.
  12019. if test "$host_cpu" = ia64; then
  12020. # AIX 5 now supports IA64 processor
  12021. lt_prog_compiler_static_CXX='-Bstatic'
  12022. fi
  12023. ;;
  12024. amigaos*)
  12025. case $host_cpu in
  12026. powerpc)
  12027. # see comment about AmigaOS4 .so support
  12028. lt_prog_compiler_pic_CXX='-fPIC'
  12029. ;;
  12030. m68k)
  12031. # FIXME: we need at least 68020 code to build shared libraries, but
  12032. # adding the `-m68020' flag to GCC prevents building anything better,
  12033. # like `-m68040'.
  12034. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12035. ;;
  12036. esac
  12037. ;;
  12038. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12039. # PIC is the default for these OSes.
  12040. ;;
  12041. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12042. # This hack is so that the source file can tell whether it is being
  12043. # built for inclusion in a dll (and should export symbols for example).
  12044. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12045. # (--disable-auto-import) libraries
  12046. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12047. ;;
  12048. darwin* | rhapsody*)
  12049. # PIC is the default on this platform
  12050. # Common symbols not allowed in MH_DYLIB files
  12051. lt_prog_compiler_pic_CXX='-fno-common'
  12052. ;;
  12053. *djgpp*)
  12054. # DJGPP does not support shared libraries at all
  12055. lt_prog_compiler_pic_CXX=
  12056. ;;
  12057. haiku*)
  12058. # PIC is the default for Haiku.
  12059. # The "-static" flag exists, but is broken.
  12060. lt_prog_compiler_static_CXX=
  12061. ;;
  12062. interix[3-9]*)
  12063. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12064. # Instead, we relocate shared libraries at runtime.
  12065. ;;
  12066. sysv4*MP*)
  12067. if test -d /usr/nec; then
  12068. lt_prog_compiler_pic_CXX=-Kconform_pic
  12069. fi
  12070. ;;
  12071. hpux*)
  12072. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12073. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12074. # sets the default TLS model and affects inlining.
  12075. case $host_cpu in
  12076. hppa*64*)
  12077. ;;
  12078. *)
  12079. lt_prog_compiler_pic_CXX='-fPIC'
  12080. ;;
  12081. esac
  12082. ;;
  12083. *qnx* | *nto*)
  12084. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12085. # it will coredump.
  12086. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12087. ;;
  12088. *)
  12089. lt_prog_compiler_pic_CXX='-fPIC'
  12090. ;;
  12091. esac
  12092. else
  12093. case $host_os in
  12094. aix[4-9]*)
  12095. # All AIX code is PIC.
  12096. if test "$host_cpu" = ia64; then
  12097. # AIX 5 now supports IA64 processor
  12098. lt_prog_compiler_static_CXX='-Bstatic'
  12099. else
  12100. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12101. fi
  12102. ;;
  12103. chorus*)
  12104. case $cc_basename in
  12105. cxch68*)
  12106. # Green Hills C++ Compiler
  12107. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12108. ;;
  12109. esac
  12110. ;;
  12111. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12112. # This hack is so that the source file can tell whether it is being
  12113. # built for inclusion in a dll (and should export symbols for example).
  12114. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12115. ;;
  12116. dgux*)
  12117. case $cc_basename in
  12118. ec++*)
  12119. lt_prog_compiler_pic_CXX='-KPIC'
  12120. ;;
  12121. ghcx*)
  12122. # Green Hills C++ Compiler
  12123. lt_prog_compiler_pic_CXX='-pic'
  12124. ;;
  12125. *)
  12126. ;;
  12127. esac
  12128. ;;
  12129. freebsd* | dragonfly*)
  12130. # FreeBSD uses GNU C++
  12131. ;;
  12132. hpux9* | hpux10* | hpux11*)
  12133. case $cc_basename in
  12134. CC*)
  12135. lt_prog_compiler_wl_CXX='-Wl,'
  12136. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12137. if test "$host_cpu" != ia64; then
  12138. lt_prog_compiler_pic_CXX='+Z'
  12139. fi
  12140. ;;
  12141. aCC*)
  12142. lt_prog_compiler_wl_CXX='-Wl,'
  12143. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12144. case $host_cpu in
  12145. hppa*64*|ia64*)
  12146. # +Z the default
  12147. ;;
  12148. *)
  12149. lt_prog_compiler_pic_CXX='+Z'
  12150. ;;
  12151. esac
  12152. ;;
  12153. *)
  12154. ;;
  12155. esac
  12156. ;;
  12157. interix*)
  12158. # This is c89, which is MS Visual C++ (no shared libs)
  12159. # Anyone wants to do a port?
  12160. ;;
  12161. irix5* | irix6* | nonstopux*)
  12162. case $cc_basename in
  12163. CC*)
  12164. lt_prog_compiler_wl_CXX='-Wl,'
  12165. lt_prog_compiler_static_CXX='-non_shared'
  12166. # CC pic flag -KPIC is the default.
  12167. ;;
  12168. *)
  12169. ;;
  12170. esac
  12171. ;;
  12172. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12173. case $cc_basename in
  12174. KCC*)
  12175. # KAI C++ Compiler
  12176. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12177. lt_prog_compiler_pic_CXX='-fPIC'
  12178. ;;
  12179. ecpc* )
  12180. # old Intel C++ for x86_64 which still supported -KPIC.
  12181. lt_prog_compiler_wl_CXX='-Wl,'
  12182. lt_prog_compiler_pic_CXX='-KPIC'
  12183. lt_prog_compiler_static_CXX='-static'
  12184. ;;
  12185. icpc* )
  12186. # Intel C++, used to be incompatible with GCC.
  12187. # ICC 10 doesn't accept -KPIC any more.
  12188. lt_prog_compiler_wl_CXX='-Wl,'
  12189. lt_prog_compiler_pic_CXX='-fPIC'
  12190. lt_prog_compiler_static_CXX='-static'
  12191. ;;
  12192. pgCC* | pgcpp*)
  12193. # Portland Group C++ compiler
  12194. lt_prog_compiler_wl_CXX='-Wl,'
  12195. lt_prog_compiler_pic_CXX='-fpic'
  12196. lt_prog_compiler_static_CXX='-Bstatic'
  12197. ;;
  12198. cxx*)
  12199. # Compaq C++
  12200. # Make sure the PIC flag is empty. It appears that all Alpha
  12201. # Linux and Compaq Tru64 Unix objects are PIC.
  12202. lt_prog_compiler_pic_CXX=
  12203. lt_prog_compiler_static_CXX='-non_shared'
  12204. ;;
  12205. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12206. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12207. lt_prog_compiler_wl_CXX='-Wl,'
  12208. lt_prog_compiler_pic_CXX='-qpic'
  12209. lt_prog_compiler_static_CXX='-qstaticlink'
  12210. ;;
  12211. *)
  12212. case `$CC -V 2>&1 | sed 5q` in
  12213. *Sun\ C*)
  12214. # Sun C++ 5.9
  12215. lt_prog_compiler_pic_CXX='-KPIC'
  12216. lt_prog_compiler_static_CXX='-Bstatic'
  12217. lt_prog_compiler_wl_CXX='-Qoption ld '
  12218. ;;
  12219. esac
  12220. ;;
  12221. esac
  12222. ;;
  12223. lynxos*)
  12224. ;;
  12225. m88k*)
  12226. ;;
  12227. mvs*)
  12228. case $cc_basename in
  12229. cxx*)
  12230. lt_prog_compiler_pic_CXX='-W c,exportall'
  12231. ;;
  12232. *)
  12233. ;;
  12234. esac
  12235. ;;
  12236. netbsd*)
  12237. ;;
  12238. *qnx* | *nto*)
  12239. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12240. # it will coredump.
  12241. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12242. ;;
  12243. osf3* | osf4* | osf5*)
  12244. case $cc_basename in
  12245. KCC*)
  12246. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12247. ;;
  12248. RCC*)
  12249. # Rational C++ 2.4.1
  12250. lt_prog_compiler_pic_CXX='-pic'
  12251. ;;
  12252. cxx*)
  12253. # Digital/Compaq C++
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. # Make sure the PIC flag is empty. It appears that all Alpha
  12256. # Linux and Compaq Tru64 Unix objects are PIC.
  12257. lt_prog_compiler_pic_CXX=
  12258. lt_prog_compiler_static_CXX='-non_shared'
  12259. ;;
  12260. *)
  12261. ;;
  12262. esac
  12263. ;;
  12264. psos*)
  12265. ;;
  12266. solaris*)
  12267. case $cc_basename in
  12268. CC* | sunCC*)
  12269. # Sun C++ 4.2, 5.x and Centerline C++
  12270. lt_prog_compiler_pic_CXX='-KPIC'
  12271. lt_prog_compiler_static_CXX='-Bstatic'
  12272. lt_prog_compiler_wl_CXX='-Qoption ld '
  12273. ;;
  12274. gcx*)
  12275. # Green Hills C++ Compiler
  12276. lt_prog_compiler_pic_CXX='-PIC'
  12277. ;;
  12278. *)
  12279. ;;
  12280. esac
  12281. ;;
  12282. sunos4*)
  12283. case $cc_basename in
  12284. CC*)
  12285. # Sun C++ 4.x
  12286. lt_prog_compiler_pic_CXX='-pic'
  12287. lt_prog_compiler_static_CXX='-Bstatic'
  12288. ;;
  12289. lcc*)
  12290. # Lucid
  12291. lt_prog_compiler_pic_CXX='-pic'
  12292. ;;
  12293. *)
  12294. ;;
  12295. esac
  12296. ;;
  12297. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12298. case $cc_basename in
  12299. CC*)
  12300. lt_prog_compiler_wl_CXX='-Wl,'
  12301. lt_prog_compiler_pic_CXX='-KPIC'
  12302. lt_prog_compiler_static_CXX='-Bstatic'
  12303. ;;
  12304. esac
  12305. ;;
  12306. tandem*)
  12307. case $cc_basename in
  12308. NCC*)
  12309. # NonStop-UX NCC 3.20
  12310. lt_prog_compiler_pic_CXX='-KPIC'
  12311. ;;
  12312. *)
  12313. ;;
  12314. esac
  12315. ;;
  12316. vxworks*)
  12317. ;;
  12318. *)
  12319. lt_prog_compiler_can_build_shared_CXX=no
  12320. ;;
  12321. esac
  12322. fi
  12323. case $host_os in
  12324. # For platforms which do not support PIC, -DPIC is meaningless:
  12325. *djgpp*)
  12326. lt_prog_compiler_pic_CXX=
  12327. ;;
  12328. *)
  12329. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12330. ;;
  12331. esac
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12333. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12334. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12335. $as_echo_n "(cached) " >&6
  12336. else
  12337. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12340. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12341. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12342. #
  12343. # Check to make sure the PIC flag actually works.
  12344. #
  12345. if test -n "$lt_prog_compiler_pic_CXX"; then
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12347. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12348. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12349. $as_echo_n "(cached) " >&6
  12350. else
  12351. lt_cv_prog_compiler_pic_works_CXX=no
  12352. ac_outfile=conftest.$ac_objext
  12353. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12354. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12355. # Insert the option either (1) after the last *FLAGS variable, or
  12356. # (2) before a word containing "conftest.", or (3) at the end.
  12357. # Note that $ac_compile itself does not contain backslashes and begins
  12358. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12359. # The option is referenced via a variable to avoid confusing sed.
  12360. lt_compile=`echo "$ac_compile" | $SED \
  12361. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12362. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12363. -e 's:$: $lt_compiler_flag:'`
  12364. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12365. (eval "$lt_compile" 2>conftest.err)
  12366. ac_status=$?
  12367. cat conftest.err >&5
  12368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12369. if (exit $ac_status) && test -s "$ac_outfile"; then
  12370. # The compiler can only warn and ignore the option if not recognized
  12371. # So say no if there are warnings other than the usual output.
  12372. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12373. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12374. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12375. lt_cv_prog_compiler_pic_works_CXX=yes
  12376. fi
  12377. fi
  12378. $RM conftest*
  12379. fi
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12381. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12382. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12383. case $lt_prog_compiler_pic_CXX in
  12384. "" | " "*) ;;
  12385. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12386. esac
  12387. else
  12388. lt_prog_compiler_pic_CXX=
  12389. lt_prog_compiler_can_build_shared_CXX=no
  12390. fi
  12391. fi
  12392. #
  12393. # Check to make sure the static flag actually works.
  12394. #
  12395. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12397. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12398. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12399. $as_echo_n "(cached) " >&6
  12400. else
  12401. lt_cv_prog_compiler_static_works_CXX=no
  12402. save_LDFLAGS="$LDFLAGS"
  12403. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12404. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12405. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12406. # The linker can only warn and ignore the option if not recognized
  12407. # So say no if there are warnings
  12408. if test -s conftest.err; then
  12409. # Append any errors to the config.log.
  12410. cat conftest.err 1>&5
  12411. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12412. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12413. if diff conftest.exp conftest.er2 >/dev/null; then
  12414. lt_cv_prog_compiler_static_works_CXX=yes
  12415. fi
  12416. else
  12417. lt_cv_prog_compiler_static_works_CXX=yes
  12418. fi
  12419. fi
  12420. $RM -r conftest*
  12421. LDFLAGS="$save_LDFLAGS"
  12422. fi
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12424. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12425. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12426. :
  12427. else
  12428. lt_prog_compiler_static_CXX=
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12431. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12432. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12433. $as_echo_n "(cached) " >&6
  12434. else
  12435. lt_cv_prog_compiler_c_o_CXX=no
  12436. $RM -r conftest 2>/dev/null
  12437. mkdir conftest
  12438. cd conftest
  12439. mkdir out
  12440. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12441. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12442. # Insert the option either (1) after the last *FLAGS variable, or
  12443. # (2) before a word containing "conftest.", or (3) at the end.
  12444. # Note that $ac_compile itself does not contain backslashes and begins
  12445. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12446. lt_compile=`echo "$ac_compile" | $SED \
  12447. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12448. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12449. -e 's:$: $lt_compiler_flag:'`
  12450. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12451. (eval "$lt_compile" 2>out/conftest.err)
  12452. ac_status=$?
  12453. cat out/conftest.err >&5
  12454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12455. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12456. then
  12457. # The compiler can only warn and ignore the option if not recognized
  12458. # So say no if there are warnings
  12459. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12460. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12461. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12462. lt_cv_prog_compiler_c_o_CXX=yes
  12463. fi
  12464. fi
  12465. chmod u+w . 2>&5
  12466. $RM conftest*
  12467. # SGI C++ compiler will create directory out/ii_files/ for
  12468. # template instantiation
  12469. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12470. $RM out/* && rmdir out
  12471. cd ..
  12472. $RM -r conftest
  12473. $RM conftest*
  12474. fi
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12476. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12478. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12479. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12480. $as_echo_n "(cached) " >&6
  12481. else
  12482. lt_cv_prog_compiler_c_o_CXX=no
  12483. $RM -r conftest 2>/dev/null
  12484. mkdir conftest
  12485. cd conftest
  12486. mkdir out
  12487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12488. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12489. # Insert the option either (1) after the last *FLAGS variable, or
  12490. # (2) before a word containing "conftest.", or (3) at the end.
  12491. # Note that $ac_compile itself does not contain backslashes and begins
  12492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12493. lt_compile=`echo "$ac_compile" | $SED \
  12494. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12495. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12496. -e 's:$: $lt_compiler_flag:'`
  12497. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12498. (eval "$lt_compile" 2>out/conftest.err)
  12499. ac_status=$?
  12500. cat out/conftest.err >&5
  12501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12502. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12503. then
  12504. # The compiler can only warn and ignore the option if not recognized
  12505. # So say no if there are warnings
  12506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12507. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12508. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12509. lt_cv_prog_compiler_c_o_CXX=yes
  12510. fi
  12511. fi
  12512. chmod u+w . 2>&5
  12513. $RM conftest*
  12514. # SGI C++ compiler will create directory out/ii_files/ for
  12515. # template instantiation
  12516. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12517. $RM out/* && rmdir out
  12518. cd ..
  12519. $RM -r conftest
  12520. $RM conftest*
  12521. fi
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12523. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12524. hard_links="nottested"
  12525. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12526. # do not overwrite the value of need_locks provided by the user
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12528. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12529. hard_links=yes
  12530. $RM conftest*
  12531. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12532. touch conftest.a
  12533. ln conftest.a conftest.b 2>&5 || hard_links=no
  12534. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12536. $as_echo "$hard_links" >&6; }
  12537. if test "$hard_links" = no; then
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12539. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12540. need_locks=warn
  12541. fi
  12542. else
  12543. need_locks=no
  12544. fi
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12546. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12547. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12548. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12549. case $host_os in
  12550. aix[4-9]*)
  12551. # If we're using GNU nm, then we don't want the "-C" option.
  12552. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12553. # Also, AIX nm treats weak defined symbols like other global defined
  12554. # symbols, whereas GNU nm marks them as "W".
  12555. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12556. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12557. else
  12558. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12559. fi
  12560. ;;
  12561. pw32*)
  12562. export_symbols_cmds_CXX="$ltdll_cmds"
  12563. ;;
  12564. cygwin* | mingw* | cegcc*)
  12565. case $cc_basename in
  12566. cl*)
  12567. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12568. ;;
  12569. *)
  12570. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12571. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12572. ;;
  12573. esac
  12574. ;;
  12575. *)
  12576. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12577. ;;
  12578. esac
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12580. $as_echo "$ld_shlibs_CXX" >&6; }
  12581. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12582. with_gnu_ld_CXX=$with_gnu_ld
  12583. #
  12584. # Do we need to explicitly link libc?
  12585. #
  12586. case "x$archive_cmds_need_lc_CXX" in
  12587. x|xyes)
  12588. # Assume -lc should be added
  12589. archive_cmds_need_lc_CXX=yes
  12590. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12591. case $archive_cmds_CXX in
  12592. *'~'*)
  12593. # FIXME: we may have to deal with multi-command sequences.
  12594. ;;
  12595. '$CC '*)
  12596. # Test whether the compiler implicitly links with -lc since on some
  12597. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12598. # to ld, don't add -lc before -lgcc.
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12600. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12601. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12602. $as_echo_n "(cached) " >&6
  12603. else
  12604. $RM conftest*
  12605. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12606. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12607. (eval $ac_compile) 2>&5
  12608. ac_status=$?
  12609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12610. test $ac_status = 0; } 2>conftest.err; then
  12611. soname=conftest
  12612. lib=conftest
  12613. libobjs=conftest.$ac_objext
  12614. deplibs=
  12615. wl=$lt_prog_compiler_wl_CXX
  12616. pic_flag=$lt_prog_compiler_pic_CXX
  12617. compiler_flags=-v
  12618. linker_flags=-v
  12619. verstring=
  12620. output_objdir=.
  12621. libname=conftest
  12622. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12623. allow_undefined_flag_CXX=
  12624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12625. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12626. ac_status=$?
  12627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12628. test $ac_status = 0; }
  12629. then
  12630. lt_cv_archive_cmds_need_lc_CXX=no
  12631. else
  12632. lt_cv_archive_cmds_need_lc_CXX=yes
  12633. fi
  12634. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12635. else
  12636. cat conftest.err 1>&5
  12637. fi
  12638. $RM conftest*
  12639. fi
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12641. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12642. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12643. ;;
  12644. esac
  12645. fi
  12646. ;;
  12647. esac
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12649. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12650. library_names_spec=
  12651. libname_spec='lib$name'
  12652. soname_spec=
  12653. shrext_cmds=".so"
  12654. postinstall_cmds=
  12655. postuninstall_cmds=
  12656. finish_cmds=
  12657. finish_eval=
  12658. shlibpath_var=
  12659. shlibpath_overrides_runpath=unknown
  12660. version_type=none
  12661. dynamic_linker="$host_os ld.so"
  12662. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12663. need_lib_prefix=unknown
  12664. hardcode_into_libs=no
  12665. # when you set need_version to no, make sure it does not cause -set_version
  12666. # flags to be left without arguments
  12667. need_version=unknown
  12668. case $host_os in
  12669. aix3*)
  12670. version_type=linux # correct to gnu/linux during the next big refactor
  12671. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12672. shlibpath_var=LIBPATH
  12673. # AIX 3 has no versioning support, so we append a major version to the name.
  12674. soname_spec='${libname}${release}${shared_ext}$major'
  12675. ;;
  12676. aix[4-9]*)
  12677. version_type=linux # correct to gnu/linux during the next big refactor
  12678. need_lib_prefix=no
  12679. need_version=no
  12680. hardcode_into_libs=yes
  12681. if test "$host_cpu" = ia64; then
  12682. # AIX 5 supports IA64
  12683. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12684. shlibpath_var=LD_LIBRARY_PATH
  12685. else
  12686. # With GCC up to 2.95.x, collect2 would create an import file
  12687. # for dependence libraries. The import file would start with
  12688. # the line `#! .'. This would cause the generated library to
  12689. # depend on `.', always an invalid library. This was fixed in
  12690. # development snapshots of GCC prior to 3.0.
  12691. case $host_os in
  12692. aix4 | aix4.[01] | aix4.[01].*)
  12693. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12694. echo ' yes '
  12695. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12696. :
  12697. else
  12698. can_build_shared=no
  12699. fi
  12700. ;;
  12701. esac
  12702. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12703. # soname into executable. Probably we can add versioning support to
  12704. # collect2, so additional links can be useful in future.
  12705. if test "$aix_use_runtimelinking" = yes; then
  12706. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12707. # instead of lib<name>.a to let people know that these are not
  12708. # typical AIX shared libraries.
  12709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12710. else
  12711. # We preserve .a as extension for shared libraries through AIX4.2
  12712. # and later when we are not doing run time linking.
  12713. library_names_spec='${libname}${release}.a $libname.a'
  12714. soname_spec='${libname}${release}${shared_ext}$major'
  12715. fi
  12716. shlibpath_var=LIBPATH
  12717. fi
  12718. ;;
  12719. amigaos*)
  12720. case $host_cpu in
  12721. powerpc)
  12722. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12723. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12725. ;;
  12726. m68k)
  12727. library_names_spec='$libname.ixlibrary $libname.a'
  12728. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12729. 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'
  12730. ;;
  12731. esac
  12732. ;;
  12733. beos*)
  12734. library_names_spec='${libname}${shared_ext}'
  12735. dynamic_linker="$host_os ld.so"
  12736. shlibpath_var=LIBRARY_PATH
  12737. ;;
  12738. bsdi[45]*)
  12739. version_type=linux # correct to gnu/linux during the next big refactor
  12740. need_version=no
  12741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12742. soname_spec='${libname}${release}${shared_ext}$major'
  12743. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12744. shlibpath_var=LD_LIBRARY_PATH
  12745. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12746. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12747. # the default ld.so.conf also contains /usr/contrib/lib and
  12748. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12749. # libtool to hard-code these into programs
  12750. ;;
  12751. cygwin* | mingw* | pw32* | cegcc*)
  12752. version_type=windows
  12753. shrext_cmds=".dll"
  12754. need_version=no
  12755. need_lib_prefix=no
  12756. case $GCC,$cc_basename in
  12757. yes,*)
  12758. # gcc
  12759. library_names_spec='$libname.dll.a'
  12760. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12761. postinstall_cmds='base_file=`basename \${file}`~
  12762. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12763. dldir=$destdir/`dirname \$dlpath`~
  12764. test -d \$dldir || mkdir -p \$dldir~
  12765. $install_prog $dir/$dlname \$dldir/$dlname~
  12766. chmod a+x \$dldir/$dlname~
  12767. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12768. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12769. fi'
  12770. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12771. dlpath=$dir/\$dldll~
  12772. $RM \$dlpath'
  12773. shlibpath_overrides_runpath=yes
  12774. case $host_os in
  12775. cygwin*)
  12776. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12777. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12778. ;;
  12779. mingw* | cegcc*)
  12780. # MinGW DLLs use traditional 'lib' prefix
  12781. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12782. ;;
  12783. pw32*)
  12784. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12785. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12786. ;;
  12787. esac
  12788. dynamic_linker='Win32 ld.exe'
  12789. ;;
  12790. *,cl*)
  12791. # Native MSVC
  12792. libname_spec='$name'
  12793. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12794. library_names_spec='${libname}.dll.lib'
  12795. case $build_os in
  12796. mingw*)
  12797. sys_lib_search_path_spec=
  12798. lt_save_ifs=$IFS
  12799. IFS=';'
  12800. for lt_path in $LIB
  12801. do
  12802. IFS=$lt_save_ifs
  12803. # Let DOS variable expansion print the short 8.3 style file name.
  12804. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12805. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12806. done
  12807. IFS=$lt_save_ifs
  12808. # Convert to MSYS style.
  12809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12810. ;;
  12811. cygwin*)
  12812. # Convert to unix form, then to dos form, then back to unix form
  12813. # but this time dos style (no spaces!) so that the unix form looks
  12814. # like /cygdrive/c/PROGRA~1:/cygdr...
  12815. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12816. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12817. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12818. ;;
  12819. *)
  12820. sys_lib_search_path_spec="$LIB"
  12821. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12822. # It is most probably a Windows format PATH.
  12823. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12824. else
  12825. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12826. fi
  12827. # FIXME: find the short name or the path components, as spaces are
  12828. # common. (e.g. "Program Files" -> "PROGRA~1")
  12829. ;;
  12830. esac
  12831. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12832. postinstall_cmds='base_file=`basename \${file}`~
  12833. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12834. dldir=$destdir/`dirname \$dlpath`~
  12835. test -d \$dldir || mkdir -p \$dldir~
  12836. $install_prog $dir/$dlname \$dldir/$dlname'
  12837. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12838. dlpath=$dir/\$dldll~
  12839. $RM \$dlpath'
  12840. shlibpath_overrides_runpath=yes
  12841. dynamic_linker='Win32 link.exe'
  12842. ;;
  12843. *)
  12844. # Assume MSVC wrapper
  12845. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12846. dynamic_linker='Win32 ld.exe'
  12847. ;;
  12848. esac
  12849. # FIXME: first we should search . and the directory the executable is in
  12850. shlibpath_var=PATH
  12851. ;;
  12852. darwin* | rhapsody*)
  12853. dynamic_linker="$host_os dyld"
  12854. version_type=darwin
  12855. need_lib_prefix=no
  12856. need_version=no
  12857. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12858. soname_spec='${libname}${release}${major}$shared_ext'
  12859. shlibpath_overrides_runpath=yes
  12860. shlibpath_var=DYLD_LIBRARY_PATH
  12861. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12862. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12863. ;;
  12864. dgux*)
  12865. version_type=linux # correct to gnu/linux during the next big refactor
  12866. need_lib_prefix=no
  12867. need_version=no
  12868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12869. soname_spec='${libname}${release}${shared_ext}$major'
  12870. shlibpath_var=LD_LIBRARY_PATH
  12871. ;;
  12872. freebsd* | dragonfly*)
  12873. # DragonFly does not have aout. When/if they implement a new
  12874. # versioning mechanism, adjust this.
  12875. if test -x /usr/bin/objformat; then
  12876. objformat=`/usr/bin/objformat`
  12877. else
  12878. case $host_os in
  12879. freebsd[23].*) objformat=aout ;;
  12880. *) objformat=elf ;;
  12881. esac
  12882. fi
  12883. version_type=freebsd-$objformat
  12884. case $version_type in
  12885. freebsd-elf*)
  12886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12887. need_version=no
  12888. need_lib_prefix=no
  12889. ;;
  12890. freebsd-*)
  12891. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12892. need_version=yes
  12893. ;;
  12894. esac
  12895. shlibpath_var=LD_LIBRARY_PATH
  12896. case $host_os in
  12897. freebsd2.*)
  12898. shlibpath_overrides_runpath=yes
  12899. ;;
  12900. freebsd3.[01]* | freebsdelf3.[01]*)
  12901. shlibpath_overrides_runpath=yes
  12902. hardcode_into_libs=yes
  12903. ;;
  12904. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12905. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12906. shlibpath_overrides_runpath=no
  12907. hardcode_into_libs=yes
  12908. ;;
  12909. *) # from 4.6 on, and DragonFly
  12910. shlibpath_overrides_runpath=yes
  12911. hardcode_into_libs=yes
  12912. ;;
  12913. esac
  12914. ;;
  12915. gnu*)
  12916. version_type=linux # correct to gnu/linux during the next big refactor
  12917. need_lib_prefix=no
  12918. need_version=no
  12919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12920. soname_spec='${libname}${release}${shared_ext}$major'
  12921. shlibpath_var=LD_LIBRARY_PATH
  12922. shlibpath_overrides_runpath=no
  12923. hardcode_into_libs=yes
  12924. ;;
  12925. haiku*)
  12926. version_type=linux # correct to gnu/linux during the next big refactor
  12927. need_lib_prefix=no
  12928. need_version=no
  12929. dynamic_linker="$host_os runtime_loader"
  12930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12931. soname_spec='${libname}${release}${shared_ext}$major'
  12932. shlibpath_var=LIBRARY_PATH
  12933. shlibpath_overrides_runpath=yes
  12934. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12935. hardcode_into_libs=yes
  12936. ;;
  12937. hpux9* | hpux10* | hpux11*)
  12938. # Give a soname corresponding to the major version so that dld.sl refuses to
  12939. # link against other versions.
  12940. version_type=sunos
  12941. need_lib_prefix=no
  12942. need_version=no
  12943. case $host_cpu in
  12944. ia64*)
  12945. shrext_cmds='.so'
  12946. hardcode_into_libs=yes
  12947. dynamic_linker="$host_os dld.so"
  12948. shlibpath_var=LD_LIBRARY_PATH
  12949. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. if test "X$HPUX_IA64_MODE" = X32; then
  12953. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12954. else
  12955. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12956. fi
  12957. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12958. ;;
  12959. hppa*64*)
  12960. shrext_cmds='.sl'
  12961. hardcode_into_libs=yes
  12962. dynamic_linker="$host_os dld.sl"
  12963. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12964. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12966. soname_spec='${libname}${release}${shared_ext}$major'
  12967. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12968. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12969. ;;
  12970. *)
  12971. shrext_cmds='.sl'
  12972. dynamic_linker="$host_os dld.sl"
  12973. shlibpath_var=SHLIB_PATH
  12974. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12976. soname_spec='${libname}${release}${shared_ext}$major'
  12977. ;;
  12978. esac
  12979. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12980. postinstall_cmds='chmod 555 $lib'
  12981. # or fails outright, so override atomically:
  12982. install_override_mode=555
  12983. ;;
  12984. interix[3-9]*)
  12985. version_type=linux # correct to gnu/linux during the next big refactor
  12986. need_lib_prefix=no
  12987. need_version=no
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12991. shlibpath_var=LD_LIBRARY_PATH
  12992. shlibpath_overrides_runpath=no
  12993. hardcode_into_libs=yes
  12994. ;;
  12995. irix5* | irix6* | nonstopux*)
  12996. case $host_os in
  12997. nonstopux*) version_type=nonstopux ;;
  12998. *)
  12999. if test "$lt_cv_prog_gnu_ld" = yes; then
  13000. version_type=linux # correct to gnu/linux during the next big refactor
  13001. else
  13002. version_type=irix
  13003. fi ;;
  13004. esac
  13005. need_lib_prefix=no
  13006. need_version=no
  13007. soname_spec='${libname}${release}${shared_ext}$major'
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13009. case $host_os in
  13010. irix5* | nonstopux*)
  13011. libsuff= shlibsuff=
  13012. ;;
  13013. *)
  13014. case $LD in # libtool.m4 will add one of these switches to LD
  13015. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13016. libsuff= shlibsuff= libmagic=32-bit;;
  13017. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13018. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13019. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13020. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13021. *) libsuff= shlibsuff= libmagic=never-match;;
  13022. esac
  13023. ;;
  13024. esac
  13025. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13026. shlibpath_overrides_runpath=no
  13027. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13028. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13029. hardcode_into_libs=yes
  13030. ;;
  13031. # No shared lib support for Linux oldld, aout, or coff.
  13032. linux*oldld* | linux*aout* | linux*coff*)
  13033. dynamic_linker=no
  13034. ;;
  13035. # This must be glibc/ELF.
  13036. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13037. version_type=linux # correct to gnu/linux during the next big refactor
  13038. need_lib_prefix=no
  13039. need_version=no
  13040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13041. soname_spec='${libname}${release}${shared_ext}$major'
  13042. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13043. shlibpath_var=LD_LIBRARY_PATH
  13044. shlibpath_overrides_runpath=no
  13045. # Some binutils ld are patched to set DT_RUNPATH
  13046. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13047. $as_echo_n "(cached) " >&6
  13048. else
  13049. lt_cv_shlibpath_overrides_runpath=no
  13050. save_LDFLAGS=$LDFLAGS
  13051. save_libdir=$libdir
  13052. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13053. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13055. /* end confdefs.h. */
  13056. int
  13057. main ()
  13058. {
  13059. ;
  13060. return 0;
  13061. }
  13062. _ACEOF
  13063. if ac_fn_cxx_try_link "$LINENO"; then :
  13064. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13065. lt_cv_shlibpath_overrides_runpath=yes
  13066. fi
  13067. fi
  13068. rm -f core conftest.err conftest.$ac_objext \
  13069. conftest$ac_exeext conftest.$ac_ext
  13070. LDFLAGS=$save_LDFLAGS
  13071. libdir=$save_libdir
  13072. fi
  13073. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13074. # This implies no fast_install, which is unacceptable.
  13075. # Some rework will be needed to allow for fast_install
  13076. # before this can be enabled.
  13077. hardcode_into_libs=yes
  13078. # Add ABI-specific directories to the system library path.
  13079. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13080. # Append ld.so.conf contents to the search path
  13081. if test -f /etc/ld.so.conf; then
  13082. 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' ' '`
  13083. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13084. fi
  13085. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13086. # powerpc, because MkLinux only supported shared libraries with the
  13087. # GNU dynamic linker. Since this was broken with cross compilers,
  13088. # most powerpc-linux boxes support dynamic linking these days and
  13089. # people can always --disable-shared, the test was removed, and we
  13090. # assume the GNU/Linux dynamic linker is in use.
  13091. dynamic_linker='GNU/Linux ld.so'
  13092. ;;
  13093. netbsd*)
  13094. version_type=sunos
  13095. need_lib_prefix=no
  13096. need_version=no
  13097. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13099. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13100. dynamic_linker='NetBSD (a.out) ld.so'
  13101. else
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13103. soname_spec='${libname}${release}${shared_ext}$major'
  13104. dynamic_linker='NetBSD ld.elf_so'
  13105. fi
  13106. shlibpath_var=LD_LIBRARY_PATH
  13107. shlibpath_overrides_runpath=yes
  13108. hardcode_into_libs=yes
  13109. ;;
  13110. newsos6)
  13111. version_type=linux # correct to gnu/linux during the next big refactor
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13113. shlibpath_var=LD_LIBRARY_PATH
  13114. shlibpath_overrides_runpath=yes
  13115. ;;
  13116. *nto* | *qnx*)
  13117. version_type=qnx
  13118. need_lib_prefix=no
  13119. need_version=no
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. shlibpath_overrides_runpath=no
  13124. hardcode_into_libs=yes
  13125. dynamic_linker='ldqnx.so'
  13126. ;;
  13127. openbsd*)
  13128. version_type=sunos
  13129. sys_lib_dlsearch_path_spec="/usr/lib"
  13130. need_lib_prefix=no
  13131. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13132. case $host_os in
  13133. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13134. *) need_version=no ;;
  13135. esac
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13137. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13140. case $host_os in
  13141. openbsd2.[89] | openbsd2.[89].*)
  13142. shlibpath_overrides_runpath=no
  13143. ;;
  13144. *)
  13145. shlibpath_overrides_runpath=yes
  13146. ;;
  13147. esac
  13148. else
  13149. shlibpath_overrides_runpath=yes
  13150. fi
  13151. ;;
  13152. os2*)
  13153. libname_spec='$name'
  13154. shrext_cmds=".dll"
  13155. need_lib_prefix=no
  13156. library_names_spec='$libname${shared_ext} $libname.a'
  13157. dynamic_linker='OS/2 ld.exe'
  13158. shlibpath_var=LIBPATH
  13159. ;;
  13160. osf3* | osf4* | osf5*)
  13161. version_type=osf
  13162. need_lib_prefix=no
  13163. need_version=no
  13164. soname_spec='${libname}${release}${shared_ext}$major'
  13165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13166. shlibpath_var=LD_LIBRARY_PATH
  13167. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13168. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13169. ;;
  13170. rdos*)
  13171. dynamic_linker=no
  13172. ;;
  13173. solaris*)
  13174. version_type=linux # correct to gnu/linux during the next big refactor
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=yes
  13181. hardcode_into_libs=yes
  13182. # ldd complains unless libraries are executable
  13183. postinstall_cmds='chmod +x $lib'
  13184. ;;
  13185. sunos4*)
  13186. version_type=sunos
  13187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13188. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. shlibpath_overrides_runpath=yes
  13191. if test "$with_gnu_ld" = yes; then
  13192. need_lib_prefix=no
  13193. fi
  13194. need_version=yes
  13195. ;;
  13196. sysv4 | sysv4.3*)
  13197. version_type=linux # correct to gnu/linux during the next big refactor
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13199. soname_spec='${libname}${release}${shared_ext}$major'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. case $host_vendor in
  13202. sni)
  13203. shlibpath_overrides_runpath=no
  13204. need_lib_prefix=no
  13205. runpath_var=LD_RUN_PATH
  13206. ;;
  13207. siemens)
  13208. need_lib_prefix=no
  13209. ;;
  13210. motorola)
  13211. need_lib_prefix=no
  13212. need_version=no
  13213. shlibpath_overrides_runpath=no
  13214. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13215. ;;
  13216. esac
  13217. ;;
  13218. sysv4*MP*)
  13219. if test -d /usr/nec ;then
  13220. version_type=linux # correct to gnu/linux during the next big refactor
  13221. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13222. soname_spec='$libname${shared_ext}.$major'
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. fi
  13225. ;;
  13226. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13227. version_type=freebsd-elf
  13228. need_lib_prefix=no
  13229. need_version=no
  13230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13231. soname_spec='${libname}${release}${shared_ext}$major'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=yes
  13234. hardcode_into_libs=yes
  13235. if test "$with_gnu_ld" = yes; then
  13236. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13237. else
  13238. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13239. case $host_os in
  13240. sco3.2v5*)
  13241. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13242. ;;
  13243. esac
  13244. fi
  13245. sys_lib_dlsearch_path_spec='/usr/lib'
  13246. ;;
  13247. tpf*)
  13248. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13249. version_type=linux # correct to gnu/linux during the next big refactor
  13250. need_lib_prefix=no
  13251. need_version=no
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13253. shlibpath_var=LD_LIBRARY_PATH
  13254. shlibpath_overrides_runpath=no
  13255. hardcode_into_libs=yes
  13256. ;;
  13257. uts4*)
  13258. version_type=linux # correct to gnu/linux during the next big refactor
  13259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13260. soname_spec='${libname}${release}${shared_ext}$major'
  13261. shlibpath_var=LD_LIBRARY_PATH
  13262. ;;
  13263. *)
  13264. dynamic_linker=no
  13265. ;;
  13266. esac
  13267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13268. $as_echo "$dynamic_linker" >&6; }
  13269. test "$dynamic_linker" = no && can_build_shared=no
  13270. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13271. if test "$GCC" = yes; then
  13272. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13273. fi
  13274. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13275. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13276. fi
  13277. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13278. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13279. fi
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13281. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13282. hardcode_action_CXX=
  13283. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13284. test -n "$runpath_var_CXX" ||
  13285. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13286. # We can hardcode non-existent directories.
  13287. if test "$hardcode_direct_CXX" != no &&
  13288. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13289. # have to relink, otherwise we might link with an installed library
  13290. # when we should be linking with a yet-to-be-installed one
  13291. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13292. test "$hardcode_minus_L_CXX" != no; then
  13293. # Linking always hardcodes the temporary library directory.
  13294. hardcode_action_CXX=relink
  13295. else
  13296. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13297. hardcode_action_CXX=immediate
  13298. fi
  13299. else
  13300. # We cannot hardcode anything, or else we can only hardcode existing
  13301. # directories.
  13302. hardcode_action_CXX=unsupported
  13303. fi
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13305. $as_echo "$hardcode_action_CXX" >&6; }
  13306. if test "$hardcode_action_CXX" = relink ||
  13307. test "$inherit_rpath_CXX" = yes; then
  13308. # Fast installation is not supported
  13309. enable_fast_install=no
  13310. elif test "$shlibpath_overrides_runpath" = yes ||
  13311. test "$enable_shared" = no; then
  13312. # Fast installation is not necessary
  13313. enable_fast_install=needless
  13314. fi
  13315. fi # test -n "$compiler"
  13316. CC=$lt_save_CC
  13317. CFLAGS=$lt_save_CFLAGS
  13318. LDCXX=$LD
  13319. LD=$lt_save_LD
  13320. GCC=$lt_save_GCC
  13321. with_gnu_ld=$lt_save_with_gnu_ld
  13322. lt_cv_path_LDCXX=$lt_cv_path_LD
  13323. lt_cv_path_LD=$lt_save_path_LD
  13324. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13325. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13326. fi # test "$_lt_caught_CXX_error" != yes
  13327. ac_ext=c
  13328. ac_cpp='$CPP $CPPFLAGS'
  13329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13332. ac_config_commands="$ac_config_commands libtool"
  13333. # Only expand once:
  13334. # Checks for library functions.
  13335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13336. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13337. if ${ac_cv_header_time+:} false; then :
  13338. $as_echo_n "(cached) " >&6
  13339. else
  13340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13341. /* end confdefs.h. */
  13342. #include <sys/types.h>
  13343. #include <sys/time.h>
  13344. #include <time.h>
  13345. int
  13346. main ()
  13347. {
  13348. if ((struct tm *) 0)
  13349. return 0;
  13350. ;
  13351. return 0;
  13352. }
  13353. _ACEOF
  13354. if ac_fn_c_try_compile "$LINENO"; then :
  13355. ac_cv_header_time=yes
  13356. else
  13357. ac_cv_header_time=no
  13358. fi
  13359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13360. fi
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13362. $as_echo "$ac_cv_header_time" >&6; }
  13363. if test $ac_cv_header_time = yes; then
  13364. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13365. fi
  13366. for ac_header in $ac_header_list
  13367. do :
  13368. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13369. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13370. "
  13371. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13372. cat >>confdefs.h <<_ACEOF
  13373. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13374. _ACEOF
  13375. fi
  13376. done
  13377. for ac_func in $ac_func_list
  13378. do :
  13379. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13380. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13381. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13382. cat >>confdefs.h <<_ACEOF
  13383. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13384. _ACEOF
  13385. fi
  13386. done
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  13388. $as_echo_n "checking for working mktime... " >&6; }
  13389. if ${ac_cv_func_working_mktime+:} false; then :
  13390. $as_echo_n "(cached) " >&6
  13391. else
  13392. if test "$cross_compiling" = yes; then :
  13393. ac_cv_func_working_mktime=no
  13394. else
  13395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13396. /* end confdefs.h. */
  13397. /* Test program from Paul Eggert and Tony Leneis. */
  13398. #ifdef TIME_WITH_SYS_TIME
  13399. # include <sys/time.h>
  13400. # include <time.h>
  13401. #else
  13402. # ifdef HAVE_SYS_TIME_H
  13403. # include <sys/time.h>
  13404. # else
  13405. # include <time.h>
  13406. # endif
  13407. #endif
  13408. #include <limits.h>
  13409. #include <stdlib.h>
  13410. #ifdef HAVE_UNISTD_H
  13411. # include <unistd.h>
  13412. #endif
  13413. #ifndef HAVE_ALARM
  13414. # define alarm(X) /* empty */
  13415. #endif
  13416. /* Work around redefinition to rpl_putenv by other config tests. */
  13417. #undef putenv
  13418. static time_t time_t_max;
  13419. static time_t time_t_min;
  13420. /* Values we'll use to set the TZ environment variable. */
  13421. static const char *tz_strings[] = {
  13422. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  13423. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  13424. };
  13425. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  13426. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  13427. Based on a problem report from Andreas Jaeger. */
  13428. static int
  13429. spring_forward_gap ()
  13430. {
  13431. /* glibc (up to about 1998-10-07) failed this test. */
  13432. struct tm tm;
  13433. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  13434. instead of "TZ=America/Vancouver" in order to detect the bug even
  13435. on systems that don't support the Olson extension, or don't have the
  13436. full zoneinfo tables installed. */
  13437. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  13438. tm.tm_year = 98;
  13439. tm.tm_mon = 3;
  13440. tm.tm_mday = 5;
  13441. tm.tm_hour = 2;
  13442. tm.tm_min = 0;
  13443. tm.tm_sec = 0;
  13444. tm.tm_isdst = -1;
  13445. return mktime (&tm) != (time_t) -1;
  13446. }
  13447. static int
  13448. mktime_test1 (time_t now)
  13449. {
  13450. struct tm *lt;
  13451. return ! (lt = localtime (&now)) || mktime (lt) == now;
  13452. }
  13453. static int
  13454. mktime_test (time_t now)
  13455. {
  13456. return (mktime_test1 (now)
  13457. && mktime_test1 ((time_t) (time_t_max - now))
  13458. && mktime_test1 ((time_t) (time_t_min + now)));
  13459. }
  13460. static int
  13461. irix_6_4_bug ()
  13462. {
  13463. /* Based on code from Ariel Faigon. */
  13464. struct tm tm;
  13465. tm.tm_year = 96;
  13466. tm.tm_mon = 3;
  13467. tm.tm_mday = 0;
  13468. tm.tm_hour = 0;
  13469. tm.tm_min = 0;
  13470. tm.tm_sec = 0;
  13471. tm.tm_isdst = -1;
  13472. mktime (&tm);
  13473. return tm.tm_mon == 2 && tm.tm_mday == 31;
  13474. }
  13475. static int
  13476. bigtime_test (int j)
  13477. {
  13478. struct tm tm;
  13479. time_t now;
  13480. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  13481. now = mktime (&tm);
  13482. if (now != (time_t) -1)
  13483. {
  13484. struct tm *lt = localtime (&now);
  13485. if (! (lt
  13486. && lt->tm_year == tm.tm_year
  13487. && lt->tm_mon == tm.tm_mon
  13488. && lt->tm_mday == tm.tm_mday
  13489. && lt->tm_hour == tm.tm_hour
  13490. && lt->tm_min == tm.tm_min
  13491. && lt->tm_sec == tm.tm_sec
  13492. && lt->tm_yday == tm.tm_yday
  13493. && lt->tm_wday == tm.tm_wday
  13494. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  13495. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  13496. return 0;
  13497. }
  13498. return 1;
  13499. }
  13500. static int
  13501. year_2050_test ()
  13502. {
  13503. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  13504. ignoring leap seconds. */
  13505. unsigned long int answer = 2527315200UL;
  13506. struct tm tm;
  13507. time_t t;
  13508. tm.tm_year = 2050 - 1900;
  13509. tm.tm_mon = 2 - 1;
  13510. tm.tm_mday = 1;
  13511. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  13512. tm.tm_isdst = -1;
  13513. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  13514. instead of "TZ=America/Vancouver" in order to detect the bug even
  13515. on systems that don't support the Olson extension, or don't have the
  13516. full zoneinfo tables installed. */
  13517. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  13518. t = mktime (&tm);
  13519. /* Check that the result is either a failure, or close enough
  13520. to the correct answer that we can assume the discrepancy is
  13521. due to leap seconds. */
  13522. return (t == (time_t) -1
  13523. || (0 < t && answer - 120 <= t && t <= answer + 120));
  13524. }
  13525. int
  13526. main ()
  13527. {
  13528. time_t t, delta;
  13529. int i, j;
  13530. /* This test makes some buggy mktime implementations loop.
  13531. Give up after 60 seconds; a mktime slower than that
  13532. isn't worth using anyway. */
  13533. alarm (60);
  13534. for (;;)
  13535. {
  13536. t = (time_t_max << 1) + 1;
  13537. if (t <= time_t_max)
  13538. break;
  13539. time_t_max = t;
  13540. }
  13541. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  13542. delta = time_t_max / 997; /* a suitable prime number */
  13543. for (i = 0; i < N_STRINGS; i++)
  13544. {
  13545. if (tz_strings[i])
  13546. putenv ((char*) tz_strings[i]);
  13547. for (t = 0; t <= time_t_max - delta; t += delta)
  13548. if (! mktime_test (t))
  13549. return 1;
  13550. if (! (mktime_test ((time_t) 1)
  13551. && mktime_test ((time_t) (60 * 60))
  13552. && mktime_test ((time_t) (60 * 60 * 24))))
  13553. return 1;
  13554. for (j = 1; ; j <<= 1)
  13555. if (! bigtime_test (j))
  13556. return 1;
  13557. else if (INT_MAX / 2 < j)
  13558. break;
  13559. if (! bigtime_test (INT_MAX))
  13560. return 1;
  13561. }
  13562. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  13563. }
  13564. _ACEOF
  13565. if ac_fn_c_try_run "$LINENO"; then :
  13566. ac_cv_func_working_mktime=yes
  13567. else
  13568. ac_cv_func_working_mktime=no
  13569. fi
  13570. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13571. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13572. fi
  13573. fi
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  13575. $as_echo "$ac_cv_func_working_mktime" >&6; }
  13576. if test $ac_cv_func_working_mktime = no; then
  13577. case " $LIBOBJS " in
  13578. *" mktime.$ac_objext "* ) ;;
  13579. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  13580. ;;
  13581. esac
  13582. fi
  13583. for ac_func in gettimeofday localtime_r memset sqrt
  13584. do :
  13585. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13586. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13587. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13588. cat >>confdefs.h <<_ACEOF
  13589. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13590. _ACEOF
  13591. fi
  13592. done
  13593. ac_config_files="$ac_config_files Makefile"
  13594. cat >confcache <<\_ACEOF
  13595. # This file is a shell script that caches the results of configure
  13596. # tests run on this system so they can be shared between configure
  13597. # scripts and configure runs, see configure's option --config-cache.
  13598. # It is not useful on other systems. If it contains results you don't
  13599. # want to keep, you may remove or edit it.
  13600. #
  13601. # config.status only pays attention to the cache file if you give it
  13602. # the --recheck option to rerun configure.
  13603. #
  13604. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13605. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13606. # following values.
  13607. _ACEOF
  13608. # The following way of writing the cache mishandles newlines in values,
  13609. # but we know of no workaround that is simple, portable, and efficient.
  13610. # So, we kill variables containing newlines.
  13611. # Ultrix sh set writes to stderr and can't be redirected directly,
  13612. # and sets the high bit in the cache file unless we assign to the vars.
  13613. (
  13614. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13615. eval ac_val=\$$ac_var
  13616. case $ac_val in #(
  13617. *${as_nl}*)
  13618. case $ac_var in #(
  13619. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13620. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13621. esac
  13622. case $ac_var in #(
  13623. _ | IFS | as_nl) ;; #(
  13624. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13625. *) { eval $ac_var=; unset $ac_var;} ;;
  13626. esac ;;
  13627. esac
  13628. done
  13629. (set) 2>&1 |
  13630. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13631. *${as_nl}ac_space=\ *)
  13632. # `set' does not quote correctly, so add quotes: double-quote
  13633. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13634. sed -n \
  13635. "s/'/'\\\\''/g;
  13636. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13637. ;; #(
  13638. *)
  13639. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13640. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13641. ;;
  13642. esac |
  13643. sort
  13644. ) |
  13645. sed '
  13646. /^ac_cv_env_/b end
  13647. t clear
  13648. :clear
  13649. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13650. t end
  13651. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13652. :end' >>confcache
  13653. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13654. if test -w "$cache_file"; then
  13655. if test "x$cache_file" != "x/dev/null"; then
  13656. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13657. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13658. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13659. cat confcache >"$cache_file"
  13660. else
  13661. case $cache_file in #(
  13662. */* | ?:*)
  13663. mv -f confcache "$cache_file"$$ &&
  13664. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13665. *)
  13666. mv -f confcache "$cache_file" ;;
  13667. esac
  13668. fi
  13669. fi
  13670. else
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13672. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13673. fi
  13674. fi
  13675. rm -f confcache
  13676. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13677. # Let make expand exec_prefix.
  13678. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13679. DEFS=-DHAVE_CONFIG_H
  13680. ac_libobjs=
  13681. ac_ltlibobjs=
  13682. U=
  13683. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13684. # 1. Remove the extension, and $U if already installed.
  13685. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13686. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13687. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13688. # will be set to the directory where LIBOBJS objects are built.
  13689. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13690. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13691. done
  13692. LIBOBJS=$ac_libobjs
  13693. LTLIBOBJS=$ac_ltlibobjs
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13695. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13696. if test -n "$am_sleep_pid"; then
  13697. # Hide warnings about reused PIDs.
  13698. wait $am_sleep_pid 2>/dev/null
  13699. fi
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13701. $as_echo "done" >&6; }
  13702. if test -n "$EXEEXT"; then
  13703. am__EXEEXT_TRUE=
  13704. am__EXEEXT_FALSE='#'
  13705. else
  13706. am__EXEEXT_TRUE='#'
  13707. am__EXEEXT_FALSE=
  13708. fi
  13709. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13710. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13712. fi
  13713. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13714. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13716. fi
  13717. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13718. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13720. fi
  13721. : "${CONFIG_STATUS=./config.status}"
  13722. ac_write_fail=0
  13723. ac_clean_files_save=$ac_clean_files
  13724. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13726. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13727. as_write_fail=0
  13728. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13729. #! $SHELL
  13730. # Generated by $as_me.
  13731. # Run this file to recreate the current configuration.
  13732. # Compiler output produced by configure, useful for debugging
  13733. # configure, is in config.log if it exists.
  13734. debug=false
  13735. ac_cs_recheck=false
  13736. ac_cs_silent=false
  13737. SHELL=\${CONFIG_SHELL-$SHELL}
  13738. export SHELL
  13739. _ASEOF
  13740. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13741. ## -------------------- ##
  13742. ## M4sh Initialization. ##
  13743. ## -------------------- ##
  13744. # Be more Bourne compatible
  13745. DUALCASE=1; export DUALCASE # for MKS sh
  13746. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13747. emulate sh
  13748. NULLCMD=:
  13749. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13750. # is contrary to our usage. Disable this feature.
  13751. alias -g '${1+"$@"}'='"$@"'
  13752. setopt NO_GLOB_SUBST
  13753. else
  13754. case `(set -o) 2>/dev/null` in #(
  13755. *posix*) :
  13756. set -o posix ;; #(
  13757. *) :
  13758. ;;
  13759. esac
  13760. fi
  13761. as_nl='
  13762. '
  13763. export as_nl
  13764. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13765. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13766. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13767. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13768. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13769. # but without wasting forks for bash or zsh.
  13770. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13771. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13772. as_echo='print -r --'
  13773. as_echo_n='print -rn --'
  13774. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13775. as_echo='printf %s\n'
  13776. as_echo_n='printf %s'
  13777. else
  13778. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13779. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13780. as_echo_n='/usr/ucb/echo -n'
  13781. else
  13782. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13783. as_echo_n_body='eval
  13784. arg=$1;
  13785. case $arg in #(
  13786. *"$as_nl"*)
  13787. expr "X$arg" : "X\\(.*\\)$as_nl";
  13788. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13789. esac;
  13790. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13791. '
  13792. export as_echo_n_body
  13793. as_echo_n='sh -c $as_echo_n_body as_echo'
  13794. fi
  13795. export as_echo_body
  13796. as_echo='sh -c $as_echo_body as_echo'
  13797. fi
  13798. # The user is always right.
  13799. if test "${PATH_SEPARATOR+set}" != set; then
  13800. PATH_SEPARATOR=:
  13801. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13802. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13803. PATH_SEPARATOR=';'
  13804. }
  13805. fi
  13806. # IFS
  13807. # We need space, tab and new line, in precisely that order. Quoting is
  13808. # there to prevent editors from complaining about space-tab.
  13809. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13810. # splitting by setting IFS to empty value.)
  13811. IFS=" "" $as_nl"
  13812. # Find who we are. Look in the path if we contain no directory separator.
  13813. as_myself=
  13814. case $0 in #((
  13815. *[\\/]* ) as_myself=$0 ;;
  13816. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13817. for as_dir in $PATH
  13818. do
  13819. IFS=$as_save_IFS
  13820. test -z "$as_dir" && as_dir=.
  13821. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13822. done
  13823. IFS=$as_save_IFS
  13824. ;;
  13825. esac
  13826. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13827. # in which case we are not to be found in the path.
  13828. if test "x$as_myself" = x; then
  13829. as_myself=$0
  13830. fi
  13831. if test ! -f "$as_myself"; then
  13832. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13833. exit 1
  13834. fi
  13835. # Unset variables that we do not need and which cause bugs (e.g. in
  13836. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13837. # suppresses any "Segmentation fault" message there. '((' could
  13838. # trigger a bug in pdksh 5.2.14.
  13839. for as_var in BASH_ENV ENV MAIL MAILPATH
  13840. do eval test x\${$as_var+set} = xset \
  13841. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13842. done
  13843. PS1='$ '
  13844. PS2='> '
  13845. PS4='+ '
  13846. # NLS nuisances.
  13847. LC_ALL=C
  13848. export LC_ALL
  13849. LANGUAGE=C
  13850. export LANGUAGE
  13851. # CDPATH.
  13852. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13853. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13854. # ----------------------------------------
  13855. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13856. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13857. # script with STATUS, using 1 if that was 0.
  13858. as_fn_error ()
  13859. {
  13860. as_status=$1; test $as_status -eq 0 && as_status=1
  13861. if test "$4"; then
  13862. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13863. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13864. fi
  13865. $as_echo "$as_me: error: $2" >&2
  13866. as_fn_exit $as_status
  13867. } # as_fn_error
  13868. # as_fn_set_status STATUS
  13869. # -----------------------
  13870. # Set $? to STATUS, without forking.
  13871. as_fn_set_status ()
  13872. {
  13873. return $1
  13874. } # as_fn_set_status
  13875. # as_fn_exit STATUS
  13876. # -----------------
  13877. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13878. as_fn_exit ()
  13879. {
  13880. set +e
  13881. as_fn_set_status $1
  13882. exit $1
  13883. } # as_fn_exit
  13884. # as_fn_unset VAR
  13885. # ---------------
  13886. # Portably unset VAR.
  13887. as_fn_unset ()
  13888. {
  13889. { eval $1=; unset $1;}
  13890. }
  13891. as_unset=as_fn_unset
  13892. # as_fn_append VAR VALUE
  13893. # ----------------------
  13894. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13895. # advantage of any shell optimizations that allow amortized linear growth over
  13896. # repeated appends, instead of the typical quadratic growth present in naive
  13897. # implementations.
  13898. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13899. eval 'as_fn_append ()
  13900. {
  13901. eval $1+=\$2
  13902. }'
  13903. else
  13904. as_fn_append ()
  13905. {
  13906. eval $1=\$$1\$2
  13907. }
  13908. fi # as_fn_append
  13909. # as_fn_arith ARG...
  13910. # ------------------
  13911. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13912. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13913. # must be portable across $(()) and expr.
  13914. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13915. eval 'as_fn_arith ()
  13916. {
  13917. as_val=$(( $* ))
  13918. }'
  13919. else
  13920. as_fn_arith ()
  13921. {
  13922. as_val=`expr "$@" || test $? -eq 1`
  13923. }
  13924. fi # as_fn_arith
  13925. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13926. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13927. as_expr=expr
  13928. else
  13929. as_expr=false
  13930. fi
  13931. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13932. as_basename=basename
  13933. else
  13934. as_basename=false
  13935. fi
  13936. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13937. as_dirname=dirname
  13938. else
  13939. as_dirname=false
  13940. fi
  13941. as_me=`$as_basename -- "$0" ||
  13942. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13943. X"$0" : 'X\(//\)$' \| \
  13944. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13945. $as_echo X/"$0" |
  13946. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13947. s//\1/
  13948. q
  13949. }
  13950. /^X\/\(\/\/\)$/{
  13951. s//\1/
  13952. q
  13953. }
  13954. /^X\/\(\/\).*/{
  13955. s//\1/
  13956. q
  13957. }
  13958. s/.*/./; q'`
  13959. # Avoid depending upon Character Ranges.
  13960. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13961. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13962. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13963. as_cr_digits='0123456789'
  13964. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13965. ECHO_C= ECHO_N= ECHO_T=
  13966. case `echo -n x` in #(((((
  13967. -n*)
  13968. case `echo 'xy\c'` in
  13969. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13970. xy) ECHO_C='\c';;
  13971. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13972. ECHO_T=' ';;
  13973. esac;;
  13974. *)
  13975. ECHO_N='-n';;
  13976. esac
  13977. rm -f conf$$ conf$$.exe conf$$.file
  13978. if test -d conf$$.dir; then
  13979. rm -f conf$$.dir/conf$$.file
  13980. else
  13981. rm -f conf$$.dir
  13982. mkdir conf$$.dir 2>/dev/null
  13983. fi
  13984. if (echo >conf$$.file) 2>/dev/null; then
  13985. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13986. as_ln_s='ln -s'
  13987. # ... but there are two gotchas:
  13988. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13989. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13990. # In both cases, we have to default to `cp -pR'.
  13991. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13992. as_ln_s='cp -pR'
  13993. elif ln conf$$.file conf$$ 2>/dev/null; then
  13994. as_ln_s=ln
  13995. else
  13996. as_ln_s='cp -pR'
  13997. fi
  13998. else
  13999. as_ln_s='cp -pR'
  14000. fi
  14001. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14002. rmdir conf$$.dir 2>/dev/null
  14003. # as_fn_mkdir_p
  14004. # -------------
  14005. # Create "$as_dir" as a directory, including parents if necessary.
  14006. as_fn_mkdir_p ()
  14007. {
  14008. case $as_dir in #(
  14009. -*) as_dir=./$as_dir;;
  14010. esac
  14011. test -d "$as_dir" || eval $as_mkdir_p || {
  14012. as_dirs=
  14013. while :; do
  14014. case $as_dir in #(
  14015. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14016. *) as_qdir=$as_dir;;
  14017. esac
  14018. as_dirs="'$as_qdir' $as_dirs"
  14019. as_dir=`$as_dirname -- "$as_dir" ||
  14020. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14021. X"$as_dir" : 'X\(//\)[^/]' \| \
  14022. X"$as_dir" : 'X\(//\)$' \| \
  14023. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14024. $as_echo X"$as_dir" |
  14025. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14026. s//\1/
  14027. q
  14028. }
  14029. /^X\(\/\/\)[^/].*/{
  14030. s//\1/
  14031. q
  14032. }
  14033. /^X\(\/\/\)$/{
  14034. s//\1/
  14035. q
  14036. }
  14037. /^X\(\/\).*/{
  14038. s//\1/
  14039. q
  14040. }
  14041. s/.*/./; q'`
  14042. test -d "$as_dir" && break
  14043. done
  14044. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14045. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14046. } # as_fn_mkdir_p
  14047. if mkdir -p . 2>/dev/null; then
  14048. as_mkdir_p='mkdir -p "$as_dir"'
  14049. else
  14050. test -d ./-p && rmdir ./-p
  14051. as_mkdir_p=false
  14052. fi
  14053. # as_fn_executable_p FILE
  14054. # -----------------------
  14055. # Test if FILE is an executable regular file.
  14056. as_fn_executable_p ()
  14057. {
  14058. test -f "$1" && test -x "$1"
  14059. } # as_fn_executable_p
  14060. as_test_x='test -x'
  14061. as_executable_p=as_fn_executable_p
  14062. # Sed expression to map a string onto a valid CPP name.
  14063. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14064. # Sed expression to map a string onto a valid variable name.
  14065. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14066. exec 6>&1
  14067. ## ----------------------------------- ##
  14068. ## Main body of $CONFIG_STATUS script. ##
  14069. ## ----------------------------------- ##
  14070. _ASEOF
  14071. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14072. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14073. # Save the log message, to keep $0 and so on meaningful, and to
  14074. # report actual input values of CONFIG_FILES etc. instead of their
  14075. # values after options handling.
  14076. ac_log="
  14077. This file was extended by libthree_rates $as_me 1.0, which was
  14078. generated by GNU Autoconf 2.69. Invocation command line was
  14079. CONFIG_FILES = $CONFIG_FILES
  14080. CONFIG_HEADERS = $CONFIG_HEADERS
  14081. CONFIG_LINKS = $CONFIG_LINKS
  14082. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14083. $ $0 $@
  14084. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14085. "
  14086. _ACEOF
  14087. case $ac_config_files in *"
  14088. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14089. esac
  14090. case $ac_config_headers in *"
  14091. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14092. esac
  14093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14094. # Files that config.status was made for.
  14095. config_files="$ac_config_files"
  14096. config_headers="$ac_config_headers"
  14097. config_commands="$ac_config_commands"
  14098. _ACEOF
  14099. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14100. ac_cs_usage="\
  14101. \`$as_me' instantiates files and other configuration actions
  14102. from templates according to the current configuration. Unless the files
  14103. and actions are specified as TAGs, all are instantiated by default.
  14104. Usage: $0 [OPTION]... [TAG]...
  14105. -h, --help print this help, then exit
  14106. -V, --version print version number and configuration settings, then exit
  14107. --config print configuration, then exit
  14108. -q, --quiet, --silent
  14109. do not print progress messages
  14110. -d, --debug don't remove temporary files
  14111. --recheck update $as_me by reconfiguring in the same conditions
  14112. --file=FILE[:TEMPLATE]
  14113. instantiate the configuration file FILE
  14114. --header=FILE[:TEMPLATE]
  14115. instantiate the configuration header FILE
  14116. Configuration files:
  14117. $config_files
  14118. Configuration headers:
  14119. $config_headers
  14120. Configuration commands:
  14121. $config_commands
  14122. Report bugs to <zhuyunfei@zh3x.cn>."
  14123. _ACEOF
  14124. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14125. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14126. ac_cs_version="\\
  14127. libthree_rates config.status 1.0
  14128. configured by $0, generated by GNU Autoconf 2.69,
  14129. with options \\"\$ac_cs_config\\"
  14130. Copyright (C) 2012 Free Software Foundation, Inc.
  14131. This config.status script is free software; the Free Software Foundation
  14132. gives unlimited permission to copy, distribute and modify it."
  14133. ac_pwd='$ac_pwd'
  14134. srcdir='$srcdir'
  14135. INSTALL='$INSTALL'
  14136. MKDIR_P='$MKDIR_P'
  14137. AWK='$AWK'
  14138. test -n "\$AWK" || AWK=awk
  14139. _ACEOF
  14140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14141. # The default lists apply if the user does not specify any file.
  14142. ac_need_defaults=:
  14143. while test $# != 0
  14144. do
  14145. case $1 in
  14146. --*=?*)
  14147. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14148. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14149. ac_shift=:
  14150. ;;
  14151. --*=)
  14152. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14153. ac_optarg=
  14154. ac_shift=:
  14155. ;;
  14156. *)
  14157. ac_option=$1
  14158. ac_optarg=$2
  14159. ac_shift=shift
  14160. ;;
  14161. esac
  14162. case $ac_option in
  14163. # Handling of the options.
  14164. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14165. ac_cs_recheck=: ;;
  14166. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14167. $as_echo "$ac_cs_version"; exit ;;
  14168. --config | --confi | --conf | --con | --co | --c )
  14169. $as_echo "$ac_cs_config"; exit ;;
  14170. --debug | --debu | --deb | --de | --d | -d )
  14171. debug=: ;;
  14172. --file | --fil | --fi | --f )
  14173. $ac_shift
  14174. case $ac_optarg in
  14175. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14176. '') as_fn_error $? "missing file argument" ;;
  14177. esac
  14178. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14179. ac_need_defaults=false;;
  14180. --header | --heade | --head | --hea )
  14181. $ac_shift
  14182. case $ac_optarg in
  14183. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14184. esac
  14185. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14186. ac_need_defaults=false;;
  14187. --he | --h)
  14188. # Conflict between --help and --header
  14189. as_fn_error $? "ambiguous option: \`$1'
  14190. Try \`$0 --help' for more information.";;
  14191. --help | --hel | -h )
  14192. $as_echo "$ac_cs_usage"; exit ;;
  14193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14194. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14195. ac_cs_silent=: ;;
  14196. # This is an error.
  14197. -*) as_fn_error $? "unrecognized option: \`$1'
  14198. Try \`$0 --help' for more information." ;;
  14199. *) as_fn_append ac_config_targets " $1"
  14200. ac_need_defaults=false ;;
  14201. esac
  14202. shift
  14203. done
  14204. ac_configure_extra_args=
  14205. if $ac_cs_silent; then
  14206. exec 6>/dev/null
  14207. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14208. fi
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14211. if \$ac_cs_recheck; then
  14212. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14213. shift
  14214. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14215. CONFIG_SHELL='$SHELL'
  14216. export CONFIG_SHELL
  14217. exec "\$@"
  14218. fi
  14219. _ACEOF
  14220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14221. exec 5>>config.log
  14222. {
  14223. echo
  14224. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14225. ## Running $as_me. ##
  14226. _ASBOX
  14227. $as_echo "$ac_log"
  14228. } >&5
  14229. _ACEOF
  14230. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14231. #
  14232. # INIT-COMMANDS
  14233. #
  14234. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14235. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14236. # if CDPATH is set.
  14237. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14238. sed_quote_subst='$sed_quote_subst'
  14239. double_quote_subst='$double_quote_subst'
  14240. delay_variable_subst='$delay_variable_subst'
  14241. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14242. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14243. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14244. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14245. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14246. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14247. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14248. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14249. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14250. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14251. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14252. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14253. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14254. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14255. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14256. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14257. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14258. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14259. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14260. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14261. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14262. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14263. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14264. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14265. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14266. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14267. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14268. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14269. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14270. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14271. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14272. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14273. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14274. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14275. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14276. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14277. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14278. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14279. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14280. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14281. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14282. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14283. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14284. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14285. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14286. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14287. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14288. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14289. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14290. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14291. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14292. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14293. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14294. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14295. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14296. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14297. 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"`'
  14298. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14299. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14300. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14301. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14302. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14303. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14304. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14305. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14306. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14307. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14308. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14309. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14310. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14311. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14312. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14313. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14314. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14315. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14316. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14317. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14318. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14319. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14320. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14321. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14322. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14323. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14324. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14325. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14326. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14327. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14328. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14329. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14330. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14331. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14332. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14333. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14334. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14335. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14336. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14337. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14338. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14339. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14340. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14341. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14342. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14343. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14344. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14345. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14346. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14347. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14348. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14349. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14350. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14351. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14352. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14353. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14354. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14355. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14356. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14357. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14358. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14359. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14360. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14361. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14362. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14363. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14364. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14365. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14366. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14367. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14368. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14369. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14370. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14371. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14372. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14373. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14374. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14375. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14376. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14377. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14378. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14379. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14380. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14381. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14382. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14383. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14384. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14385. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14386. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14387. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14388. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14389. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14390. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14391. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14392. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14393. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14394. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14395. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14396. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14397. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14398. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14399. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14400. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14401. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14402. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14403. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14404. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14405. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14406. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14407. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14408. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14409. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14410. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14411. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14412. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14413. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14414. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14415. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14416. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14417. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14418. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14419. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14420. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14421. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14422. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14423. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14424. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14425. LTCC='$LTCC'
  14426. LTCFLAGS='$LTCFLAGS'
  14427. compiler='$compiler_DEFAULT'
  14428. # A function that is used when there is no print builtin or printf.
  14429. func_fallback_echo ()
  14430. {
  14431. eval 'cat <<_LTECHO_EOF
  14432. \$1
  14433. _LTECHO_EOF'
  14434. }
  14435. # Quote evaled strings.
  14436. for var in SHELL \
  14437. ECHO \
  14438. PATH_SEPARATOR \
  14439. SED \
  14440. GREP \
  14441. EGREP \
  14442. FGREP \
  14443. LD \
  14444. NM \
  14445. LN_S \
  14446. lt_SP2NL \
  14447. lt_NL2SP \
  14448. reload_flag \
  14449. OBJDUMP \
  14450. deplibs_check_method \
  14451. file_magic_cmd \
  14452. file_magic_glob \
  14453. want_nocaseglob \
  14454. DLLTOOL \
  14455. sharedlib_from_linklib_cmd \
  14456. AR \
  14457. AR_FLAGS \
  14458. archiver_list_spec \
  14459. STRIP \
  14460. RANLIB \
  14461. CC \
  14462. CFLAGS \
  14463. compiler \
  14464. lt_cv_sys_global_symbol_pipe \
  14465. lt_cv_sys_global_symbol_to_cdecl \
  14466. lt_cv_sys_global_symbol_to_c_name_address \
  14467. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14468. nm_file_list_spec \
  14469. lt_prog_compiler_no_builtin_flag \
  14470. lt_prog_compiler_pic \
  14471. lt_prog_compiler_wl \
  14472. lt_prog_compiler_static \
  14473. lt_cv_prog_compiler_c_o \
  14474. need_locks \
  14475. MANIFEST_TOOL \
  14476. DSYMUTIL \
  14477. NMEDIT \
  14478. LIPO \
  14479. OTOOL \
  14480. OTOOL64 \
  14481. shrext_cmds \
  14482. export_dynamic_flag_spec \
  14483. whole_archive_flag_spec \
  14484. compiler_needs_object \
  14485. with_gnu_ld \
  14486. allow_undefined_flag \
  14487. no_undefined_flag \
  14488. hardcode_libdir_flag_spec \
  14489. hardcode_libdir_separator \
  14490. exclude_expsyms \
  14491. include_expsyms \
  14492. file_list_spec \
  14493. variables_saved_for_relink \
  14494. libname_spec \
  14495. library_names_spec \
  14496. soname_spec \
  14497. install_override_mode \
  14498. finish_eval \
  14499. old_striplib \
  14500. striplib \
  14501. compiler_lib_search_dirs \
  14502. predep_objects \
  14503. postdep_objects \
  14504. predeps \
  14505. postdeps \
  14506. compiler_lib_search_path \
  14507. LD_CXX \
  14508. reload_flag_CXX \
  14509. compiler_CXX \
  14510. lt_prog_compiler_no_builtin_flag_CXX \
  14511. lt_prog_compiler_pic_CXX \
  14512. lt_prog_compiler_wl_CXX \
  14513. lt_prog_compiler_static_CXX \
  14514. lt_cv_prog_compiler_c_o_CXX \
  14515. export_dynamic_flag_spec_CXX \
  14516. whole_archive_flag_spec_CXX \
  14517. compiler_needs_object_CXX \
  14518. with_gnu_ld_CXX \
  14519. allow_undefined_flag_CXX \
  14520. no_undefined_flag_CXX \
  14521. hardcode_libdir_flag_spec_CXX \
  14522. hardcode_libdir_separator_CXX \
  14523. exclude_expsyms_CXX \
  14524. include_expsyms_CXX \
  14525. file_list_spec_CXX \
  14526. compiler_lib_search_dirs_CXX \
  14527. predep_objects_CXX \
  14528. postdep_objects_CXX \
  14529. predeps_CXX \
  14530. postdeps_CXX \
  14531. compiler_lib_search_path_CXX; do
  14532. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14533. *[\\\\\\\`\\"\\\$]*)
  14534. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14535. ;;
  14536. *)
  14537. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14538. ;;
  14539. esac
  14540. done
  14541. # Double-quote double-evaled strings.
  14542. for var in reload_cmds \
  14543. old_postinstall_cmds \
  14544. old_postuninstall_cmds \
  14545. old_archive_cmds \
  14546. extract_expsyms_cmds \
  14547. old_archive_from_new_cmds \
  14548. old_archive_from_expsyms_cmds \
  14549. archive_cmds \
  14550. archive_expsym_cmds \
  14551. module_cmds \
  14552. module_expsym_cmds \
  14553. export_symbols_cmds \
  14554. prelink_cmds \
  14555. postlink_cmds \
  14556. postinstall_cmds \
  14557. postuninstall_cmds \
  14558. finish_cmds \
  14559. sys_lib_search_path_spec \
  14560. sys_lib_dlsearch_path_spec \
  14561. reload_cmds_CXX \
  14562. old_archive_cmds_CXX \
  14563. old_archive_from_new_cmds_CXX \
  14564. old_archive_from_expsyms_cmds_CXX \
  14565. archive_cmds_CXX \
  14566. archive_expsym_cmds_CXX \
  14567. module_cmds_CXX \
  14568. module_expsym_cmds_CXX \
  14569. export_symbols_cmds_CXX \
  14570. prelink_cmds_CXX \
  14571. postlink_cmds_CXX; do
  14572. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14573. *[\\\\\\\`\\"\\\$]*)
  14574. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14575. ;;
  14576. *)
  14577. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14578. ;;
  14579. esac
  14580. done
  14581. ac_aux_dir='$ac_aux_dir'
  14582. xsi_shell='$xsi_shell'
  14583. lt_shell_append='$lt_shell_append'
  14584. # See if we are running on zsh, and set the options which allow our
  14585. # commands through without removal of \ escapes INIT.
  14586. if test -n "\${ZSH_VERSION+set}" ; then
  14587. setopt NO_GLOB_SUBST
  14588. fi
  14589. PACKAGE='$PACKAGE'
  14590. VERSION='$VERSION'
  14591. TIMESTAMP='$TIMESTAMP'
  14592. RM='$RM'
  14593. ofile='$ofile'
  14594. _ACEOF
  14595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14596. # Handling of arguments.
  14597. for ac_config_target in $ac_config_targets
  14598. do
  14599. case $ac_config_target in
  14600. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14601. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14602. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14603. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14604. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14605. esac
  14606. done
  14607. # If the user did not use the arguments to specify the items to instantiate,
  14608. # then the envvar interface is used. Set only those that are not.
  14609. # We use the long form for the default assignment because of an extremely
  14610. # bizarre bug on SunOS 4.1.3.
  14611. if $ac_need_defaults; then
  14612. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14613. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14614. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14615. fi
  14616. # Have a temporary directory for convenience. Make it in the build tree
  14617. # simply because there is no reason against having it here, and in addition,
  14618. # creating and moving files from /tmp can sometimes cause problems.
  14619. # Hook for its removal unless debugging.
  14620. # Note that there is a small window in which the directory will not be cleaned:
  14621. # after its creation but before its name has been assigned to `$tmp'.
  14622. $debug ||
  14623. {
  14624. tmp= ac_tmp=
  14625. trap 'exit_status=$?
  14626. : "${ac_tmp:=$tmp}"
  14627. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14628. ' 0
  14629. trap 'as_fn_exit 1' 1 2 13 15
  14630. }
  14631. # Create a (secure) tmp directory for tmp files.
  14632. {
  14633. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14634. test -d "$tmp"
  14635. } ||
  14636. {
  14637. tmp=./conf$$-$RANDOM
  14638. (umask 077 && mkdir "$tmp")
  14639. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14640. ac_tmp=$tmp
  14641. # Set up the scripts for CONFIG_FILES section.
  14642. # No need to generate them if there are no CONFIG_FILES.
  14643. # This happens for instance with `./config.status config.h'.
  14644. if test -n "$CONFIG_FILES"; then
  14645. ac_cr=`echo X | tr X '\015'`
  14646. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14647. # But we know of no other shell where ac_cr would be empty at this
  14648. # point, so we can use a bashism as a fallback.
  14649. if test "x$ac_cr" = x; then
  14650. eval ac_cr=\$\'\\r\'
  14651. fi
  14652. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14653. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14654. ac_cs_awk_cr='\\r'
  14655. else
  14656. ac_cs_awk_cr=$ac_cr
  14657. fi
  14658. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14659. _ACEOF
  14660. {
  14661. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14662. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14663. echo "_ACEOF"
  14664. } >conf$$subs.sh ||
  14665. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14666. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14667. ac_delim='%!_!# '
  14668. for ac_last_try in false false false false false :; do
  14669. . ./conf$$subs.sh ||
  14670. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14671. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14672. if test $ac_delim_n = $ac_delim_num; then
  14673. break
  14674. elif $ac_last_try; then
  14675. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14676. else
  14677. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14678. fi
  14679. done
  14680. rm -f conf$$subs.sh
  14681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14682. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14683. _ACEOF
  14684. sed -n '
  14685. h
  14686. s/^/S["/; s/!.*/"]=/
  14687. p
  14688. g
  14689. s/^[^!]*!//
  14690. :repl
  14691. t repl
  14692. s/'"$ac_delim"'$//
  14693. t delim
  14694. :nl
  14695. h
  14696. s/\(.\{148\}\)..*/\1/
  14697. t more1
  14698. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14699. p
  14700. n
  14701. b repl
  14702. :more1
  14703. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14704. p
  14705. g
  14706. s/.\{148\}//
  14707. t nl
  14708. :delim
  14709. h
  14710. s/\(.\{148\}\)..*/\1/
  14711. t more2
  14712. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14713. p
  14714. b
  14715. :more2
  14716. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14717. p
  14718. g
  14719. s/.\{148\}//
  14720. t delim
  14721. ' <conf$$subs.awk | sed '
  14722. /^[^""]/{
  14723. N
  14724. s/\n//
  14725. }
  14726. ' >>$CONFIG_STATUS || ac_write_fail=1
  14727. rm -f conf$$subs.awk
  14728. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14729. _ACAWK
  14730. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14731. for (key in S) S_is_set[key] = 1
  14732. FS = ""
  14733. }
  14734. {
  14735. line = $ 0
  14736. nfields = split(line, field, "@")
  14737. substed = 0
  14738. len = length(field[1])
  14739. for (i = 2; i < nfields; i++) {
  14740. key = field[i]
  14741. keylen = length(key)
  14742. if (S_is_set[key]) {
  14743. value = S[key]
  14744. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14745. len += length(value) + length(field[++i])
  14746. substed = 1
  14747. } else
  14748. len += 1 + keylen
  14749. }
  14750. print line
  14751. }
  14752. _ACAWK
  14753. _ACEOF
  14754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14755. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14756. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14757. else
  14758. cat
  14759. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14760. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14761. _ACEOF
  14762. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14763. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14764. # trailing colons and then remove the whole line if VPATH becomes empty
  14765. # (actually we leave an empty line to preserve line numbers).
  14766. if test "x$srcdir" = x.; then
  14767. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14768. h
  14769. s///
  14770. s/^/:/
  14771. s/[ ]*$/:/
  14772. s/:\$(srcdir):/:/g
  14773. s/:\${srcdir}:/:/g
  14774. s/:@srcdir@:/:/g
  14775. s/^:*//
  14776. s/:*$//
  14777. x
  14778. s/\(=[ ]*\).*/\1/
  14779. G
  14780. s/\n//
  14781. s/^[^=]*=[ ]*$//
  14782. }'
  14783. fi
  14784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14785. fi # test -n "$CONFIG_FILES"
  14786. # Set up the scripts for CONFIG_HEADERS section.
  14787. # No need to generate them if there are no CONFIG_HEADERS.
  14788. # This happens for instance with `./config.status Makefile'.
  14789. if test -n "$CONFIG_HEADERS"; then
  14790. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14791. BEGIN {
  14792. _ACEOF
  14793. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14794. # here-document in config.status, that substitutes the proper values into
  14795. # config.h.in to produce config.h.
  14796. # Create a delimiter string that does not exist in confdefs.h, to ease
  14797. # handling of long lines.
  14798. ac_delim='%!_!# '
  14799. for ac_last_try in false false :; do
  14800. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14801. if test -z "$ac_tt"; then
  14802. break
  14803. elif $ac_last_try; then
  14804. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14805. else
  14806. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14807. fi
  14808. done
  14809. # For the awk script, D is an array of macro values keyed by name,
  14810. # likewise P contains macro parameters if any. Preserve backslash
  14811. # newline sequences.
  14812. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14813. sed -n '
  14814. s/.\{148\}/&'"$ac_delim"'/g
  14815. t rset
  14816. :rset
  14817. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14818. t def
  14819. d
  14820. :def
  14821. s/\\$//
  14822. t bsnl
  14823. s/["\\]/\\&/g
  14824. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14825. D["\1"]=" \3"/p
  14826. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14827. d
  14828. :bsnl
  14829. s/["\\]/\\&/g
  14830. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14831. D["\1"]=" \3\\\\\\n"\\/p
  14832. t cont
  14833. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14834. t cont
  14835. d
  14836. :cont
  14837. n
  14838. s/.\{148\}/&'"$ac_delim"'/g
  14839. t clear
  14840. :clear
  14841. s/\\$//
  14842. t bsnlc
  14843. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14844. d
  14845. :bsnlc
  14846. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14847. b cont
  14848. ' <confdefs.h | sed '
  14849. s/'"$ac_delim"'/"\\\
  14850. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14852. for (key in D) D_is_set[key] = 1
  14853. FS = ""
  14854. }
  14855. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14856. line = \$ 0
  14857. split(line, arg, " ")
  14858. if (arg[1] == "#") {
  14859. defundef = arg[2]
  14860. mac1 = arg[3]
  14861. } else {
  14862. defundef = substr(arg[1], 2)
  14863. mac1 = arg[2]
  14864. }
  14865. split(mac1, mac2, "(") #)
  14866. macro = mac2[1]
  14867. prefix = substr(line, 1, index(line, defundef) - 1)
  14868. if (D_is_set[macro]) {
  14869. # Preserve the white space surrounding the "#".
  14870. print prefix "define", macro P[macro] D[macro]
  14871. next
  14872. } else {
  14873. # Replace #undef with comments. This is necessary, for example,
  14874. # in the case of _POSIX_SOURCE, which is predefined and required
  14875. # on some systems where configure will not decide to define it.
  14876. if (defundef == "undef") {
  14877. print "/*", prefix defundef, macro, "*/"
  14878. next
  14879. }
  14880. }
  14881. }
  14882. { print }
  14883. _ACAWK
  14884. _ACEOF
  14885. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14886. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14887. fi # test -n "$CONFIG_HEADERS"
  14888. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14889. shift
  14890. for ac_tag
  14891. do
  14892. case $ac_tag in
  14893. :[FHLC]) ac_mode=$ac_tag; continue;;
  14894. esac
  14895. case $ac_mode$ac_tag in
  14896. :[FHL]*:*);;
  14897. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14898. :[FH]-) ac_tag=-:-;;
  14899. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14900. esac
  14901. ac_save_IFS=$IFS
  14902. IFS=:
  14903. set x $ac_tag
  14904. IFS=$ac_save_IFS
  14905. shift
  14906. ac_file=$1
  14907. shift
  14908. case $ac_mode in
  14909. :L) ac_source=$1;;
  14910. :[FH])
  14911. ac_file_inputs=
  14912. for ac_f
  14913. do
  14914. case $ac_f in
  14915. -) ac_f="$ac_tmp/stdin";;
  14916. *) # Look for the file first in the build tree, then in the source tree
  14917. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14918. # because $ac_f cannot contain `:'.
  14919. test -f "$ac_f" ||
  14920. case $ac_f in
  14921. [\\/$]*) false;;
  14922. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14923. esac ||
  14924. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14925. esac
  14926. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14927. as_fn_append ac_file_inputs " '$ac_f'"
  14928. done
  14929. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14930. # use $as_me), people would be surprised to read:
  14931. # /* config.h. Generated by config.status. */
  14932. configure_input='Generated from '`
  14933. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14934. `' by configure.'
  14935. if test x"$ac_file" != x-; then
  14936. configure_input="$ac_file. $configure_input"
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14938. $as_echo "$as_me: creating $ac_file" >&6;}
  14939. fi
  14940. # Neutralize special characters interpreted by sed in replacement strings.
  14941. case $configure_input in #(
  14942. *\&* | *\|* | *\\* )
  14943. ac_sed_conf_input=`$as_echo "$configure_input" |
  14944. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14945. *) ac_sed_conf_input=$configure_input;;
  14946. esac
  14947. case $ac_tag in
  14948. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14949. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14950. esac
  14951. ;;
  14952. esac
  14953. ac_dir=`$as_dirname -- "$ac_file" ||
  14954. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14955. X"$ac_file" : 'X\(//\)[^/]' \| \
  14956. X"$ac_file" : 'X\(//\)$' \| \
  14957. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14958. $as_echo X"$ac_file" |
  14959. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14960. s//\1/
  14961. q
  14962. }
  14963. /^X\(\/\/\)[^/].*/{
  14964. s//\1/
  14965. q
  14966. }
  14967. /^X\(\/\/\)$/{
  14968. s//\1/
  14969. q
  14970. }
  14971. /^X\(\/\).*/{
  14972. s//\1/
  14973. q
  14974. }
  14975. s/.*/./; q'`
  14976. as_dir="$ac_dir"; as_fn_mkdir_p
  14977. ac_builddir=.
  14978. case "$ac_dir" in
  14979. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14980. *)
  14981. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14982. # A ".." for each directory in $ac_dir_suffix.
  14983. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14984. case $ac_top_builddir_sub in
  14985. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14986. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14987. esac ;;
  14988. esac
  14989. ac_abs_top_builddir=$ac_pwd
  14990. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14991. # for backward compatibility:
  14992. ac_top_builddir=$ac_top_build_prefix
  14993. case $srcdir in
  14994. .) # We are building in place.
  14995. ac_srcdir=.
  14996. ac_top_srcdir=$ac_top_builddir_sub
  14997. ac_abs_top_srcdir=$ac_pwd ;;
  14998. [\\/]* | ?:[\\/]* ) # Absolute name.
  14999. ac_srcdir=$srcdir$ac_dir_suffix;
  15000. ac_top_srcdir=$srcdir
  15001. ac_abs_top_srcdir=$srcdir ;;
  15002. *) # Relative name.
  15003. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15004. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15005. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15006. esac
  15007. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15008. case $ac_mode in
  15009. :F)
  15010. #
  15011. # CONFIG_FILE
  15012. #
  15013. case $INSTALL in
  15014. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15015. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15016. esac
  15017. ac_MKDIR_P=$MKDIR_P
  15018. case $MKDIR_P in
  15019. [\\/$]* | ?:[\\/]* ) ;;
  15020. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15021. esac
  15022. _ACEOF
  15023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15024. # If the template does not know about datarootdir, expand it.
  15025. # FIXME: This hack should be removed a few years after 2.60.
  15026. ac_datarootdir_hack=; ac_datarootdir_seen=
  15027. ac_sed_dataroot='
  15028. /datarootdir/ {
  15029. p
  15030. q
  15031. }
  15032. /@datadir@/p
  15033. /@docdir@/p
  15034. /@infodir@/p
  15035. /@localedir@/p
  15036. /@mandir@/p'
  15037. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15038. *datarootdir*) ac_datarootdir_seen=yes;;
  15039. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15041. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15042. _ACEOF
  15043. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15044. ac_datarootdir_hack='
  15045. s&@datadir@&$datadir&g
  15046. s&@docdir@&$docdir&g
  15047. s&@infodir@&$infodir&g
  15048. s&@localedir@&$localedir&g
  15049. s&@mandir@&$mandir&g
  15050. s&\\\${datarootdir}&$datarootdir&g' ;;
  15051. esac
  15052. _ACEOF
  15053. # Neutralize VPATH when `$srcdir' = `.'.
  15054. # Shell code in configure.ac might set extrasub.
  15055. # FIXME: do we really want to maintain this feature?
  15056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15057. ac_sed_extra="$ac_vpsub
  15058. $extrasub
  15059. _ACEOF
  15060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15061. :t
  15062. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15063. s|@configure_input@|$ac_sed_conf_input|;t t
  15064. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15065. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15066. s&@srcdir@&$ac_srcdir&;t t
  15067. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15068. s&@top_srcdir@&$ac_top_srcdir&;t t
  15069. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15070. s&@builddir@&$ac_builddir&;t t
  15071. s&@abs_builddir@&$ac_abs_builddir&;t t
  15072. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15073. s&@INSTALL@&$ac_INSTALL&;t t
  15074. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15075. $ac_datarootdir_hack
  15076. "
  15077. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15078. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15079. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15080. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15081. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15082. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15084. which seems to be undefined. Please make sure it is defined" >&5
  15085. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15086. which seems to be undefined. Please make sure it is defined" >&2;}
  15087. rm -f "$ac_tmp/stdin"
  15088. case $ac_file in
  15089. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15090. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15091. esac \
  15092. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15093. ;;
  15094. :H)
  15095. #
  15096. # CONFIG_HEADER
  15097. #
  15098. if test x"$ac_file" != x-; then
  15099. {
  15100. $as_echo "/* $configure_input */" \
  15101. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15102. } >"$ac_tmp/config.h" \
  15103. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15104. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15105. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15106. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15107. else
  15108. rm -f "$ac_file"
  15109. mv "$ac_tmp/config.h" "$ac_file" \
  15110. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15111. fi
  15112. else
  15113. $as_echo "/* $configure_input */" \
  15114. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15115. || as_fn_error $? "could not create -" "$LINENO" 5
  15116. fi
  15117. # Compute "$ac_file"'s index in $config_headers.
  15118. _am_arg="$ac_file"
  15119. _am_stamp_count=1
  15120. for _am_header in $config_headers :; do
  15121. case $_am_header in
  15122. $_am_arg | $_am_arg:* )
  15123. break ;;
  15124. * )
  15125. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15126. esac
  15127. done
  15128. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15129. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15130. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15131. X"$_am_arg" : 'X\(//\)$' \| \
  15132. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15133. $as_echo X"$_am_arg" |
  15134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15135. s//\1/
  15136. q
  15137. }
  15138. /^X\(\/\/\)[^/].*/{
  15139. s//\1/
  15140. q
  15141. }
  15142. /^X\(\/\/\)$/{
  15143. s//\1/
  15144. q
  15145. }
  15146. /^X\(\/\).*/{
  15147. s//\1/
  15148. q
  15149. }
  15150. s/.*/./; q'`/stamp-h$_am_stamp_count
  15151. ;;
  15152. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15153. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15154. ;;
  15155. esac
  15156. case $ac_file$ac_mode in
  15157. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15158. # Older Autoconf quotes --file arguments for eval, but not when files
  15159. # are listed without --file. Let's play safe and only enable the eval
  15160. # if we detect the quoting.
  15161. case $CONFIG_FILES in
  15162. *\'*) eval set x "$CONFIG_FILES" ;;
  15163. *) set x $CONFIG_FILES ;;
  15164. esac
  15165. shift
  15166. for mf
  15167. do
  15168. # Strip MF so we end up with the name of the file.
  15169. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15170. # Check whether this is an Automake generated Makefile or not.
  15171. # We used to match only the files named 'Makefile.in', but
  15172. # some people rename them; so instead we look at the file content.
  15173. # Grep'ing the first line is not enough: some people post-process
  15174. # each Makefile.in and add a new line on top of each file to say so.
  15175. # Grep'ing the whole file is not good either: AIX grep has a line
  15176. # limit of 2048, but all sed's we know have understand at least 4000.
  15177. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15178. dirpart=`$as_dirname -- "$mf" ||
  15179. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15180. X"$mf" : 'X\(//\)[^/]' \| \
  15181. X"$mf" : 'X\(//\)$' \| \
  15182. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15183. $as_echo X"$mf" |
  15184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15185. s//\1/
  15186. q
  15187. }
  15188. /^X\(\/\/\)[^/].*/{
  15189. s//\1/
  15190. q
  15191. }
  15192. /^X\(\/\/\)$/{
  15193. s//\1/
  15194. q
  15195. }
  15196. /^X\(\/\).*/{
  15197. s//\1/
  15198. q
  15199. }
  15200. s/.*/./; q'`
  15201. else
  15202. continue
  15203. fi
  15204. # Extract the definition of DEPDIR, am__include, and am__quote
  15205. # from the Makefile without running 'make'.
  15206. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15207. test -z "$DEPDIR" && continue
  15208. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15209. test -z "$am__include" && continue
  15210. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15211. # Find all dependency output files, they are included files with
  15212. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15213. # simplest approach to changing $(DEPDIR) to its actual value in the
  15214. # expansion.
  15215. for file in `sed -n "
  15216. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15217. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15218. # Make sure the directory exists.
  15219. test -f "$dirpart/$file" && continue
  15220. fdir=`$as_dirname -- "$file" ||
  15221. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15222. X"$file" : 'X\(//\)[^/]' \| \
  15223. X"$file" : 'X\(//\)$' \| \
  15224. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15225. $as_echo X"$file" |
  15226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15227. s//\1/
  15228. q
  15229. }
  15230. /^X\(\/\/\)[^/].*/{
  15231. s//\1/
  15232. q
  15233. }
  15234. /^X\(\/\/\)$/{
  15235. s//\1/
  15236. q
  15237. }
  15238. /^X\(\/\).*/{
  15239. s//\1/
  15240. q
  15241. }
  15242. s/.*/./; q'`
  15243. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15244. # echo "creating $dirpart/$file"
  15245. echo '# dummy' > "$dirpart/$file"
  15246. done
  15247. done
  15248. }
  15249. ;;
  15250. "libtool":C)
  15251. # See if we are running on zsh, and set the options which allow our
  15252. # commands through without removal of \ escapes.
  15253. if test -n "${ZSH_VERSION+set}" ; then
  15254. setopt NO_GLOB_SUBST
  15255. fi
  15256. cfgfile="${ofile}T"
  15257. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15258. $RM "$cfgfile"
  15259. cat <<_LT_EOF >> "$cfgfile"
  15260. #! $SHELL
  15261. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15262. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15263. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15264. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15265. #
  15266. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15267. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15268. # Foundation, Inc.
  15269. # Written by Gordon Matzigkeit, 1996
  15270. #
  15271. # This file is part of GNU Libtool.
  15272. #
  15273. # GNU Libtool is free software; you can redistribute it and/or
  15274. # modify it under the terms of the GNU General Public License as
  15275. # published by the Free Software Foundation; either version 2 of
  15276. # the License, or (at your option) any later version.
  15277. #
  15278. # As a special exception to the GNU General Public License,
  15279. # if you distribute this file as part of a program or library that
  15280. # is built using GNU Libtool, you may include this file under the
  15281. # same distribution terms that you use for the rest of that program.
  15282. #
  15283. # GNU Libtool is distributed in the hope that it will be useful,
  15284. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15285. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15286. # GNU General Public License for more details.
  15287. #
  15288. # You should have received a copy of the GNU General Public License
  15289. # along with GNU Libtool; see the file COPYING. If not, a copy
  15290. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15291. # obtained by writing to the Free Software Foundation, Inc.,
  15292. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15293. # The names of the tagged configurations supported by this script.
  15294. available_tags="CXX "
  15295. # ### BEGIN LIBTOOL CONFIG
  15296. # Which release of libtool.m4 was used?
  15297. macro_version=$macro_version
  15298. macro_revision=$macro_revision
  15299. # Whether or not to build shared libraries.
  15300. build_libtool_libs=$enable_shared
  15301. # Whether or not to build static libraries.
  15302. build_old_libs=$enable_static
  15303. # What type of objects to build.
  15304. pic_mode=$pic_mode
  15305. # Whether or not to optimize for fast installation.
  15306. fast_install=$enable_fast_install
  15307. # Shell to use when invoking shell scripts.
  15308. SHELL=$lt_SHELL
  15309. # An echo program that protects backslashes.
  15310. ECHO=$lt_ECHO
  15311. # The PATH separator for the build system.
  15312. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15313. # The host system.
  15314. host_alias=$host_alias
  15315. host=$host
  15316. host_os=$host_os
  15317. # The build system.
  15318. build_alias=$build_alias
  15319. build=$build
  15320. build_os=$build_os
  15321. # A sed program that does not truncate output.
  15322. SED=$lt_SED
  15323. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15324. Xsed="\$SED -e 1s/^X//"
  15325. # A grep program that handles long lines.
  15326. GREP=$lt_GREP
  15327. # An ERE matcher.
  15328. EGREP=$lt_EGREP
  15329. # A literal string matcher.
  15330. FGREP=$lt_FGREP
  15331. # A BSD- or MS-compatible name lister.
  15332. NM=$lt_NM
  15333. # Whether we need soft or hard links.
  15334. LN_S=$lt_LN_S
  15335. # What is the maximum length of a command?
  15336. max_cmd_len=$max_cmd_len
  15337. # Object file suffix (normally "o").
  15338. objext=$ac_objext
  15339. # Executable file suffix (normally "").
  15340. exeext=$exeext
  15341. # whether the shell understands "unset".
  15342. lt_unset=$lt_unset
  15343. # turn spaces into newlines.
  15344. SP2NL=$lt_lt_SP2NL
  15345. # turn newlines into spaces.
  15346. NL2SP=$lt_lt_NL2SP
  15347. # convert \$build file names to \$host format.
  15348. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15349. # convert \$build files to toolchain format.
  15350. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15351. # An object symbol dumper.
  15352. OBJDUMP=$lt_OBJDUMP
  15353. # Method to check whether dependent libraries are shared objects.
  15354. deplibs_check_method=$lt_deplibs_check_method
  15355. # Command to use when deplibs_check_method = "file_magic".
  15356. file_magic_cmd=$lt_file_magic_cmd
  15357. # How to find potential files when deplibs_check_method = "file_magic".
  15358. file_magic_glob=$lt_file_magic_glob
  15359. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15360. want_nocaseglob=$lt_want_nocaseglob
  15361. # DLL creation program.
  15362. DLLTOOL=$lt_DLLTOOL
  15363. # Command to associate shared and link libraries.
  15364. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15365. # The archiver.
  15366. AR=$lt_AR
  15367. # Flags to create an archive.
  15368. AR_FLAGS=$lt_AR_FLAGS
  15369. # How to feed a file listing to the archiver.
  15370. archiver_list_spec=$lt_archiver_list_spec
  15371. # A symbol stripping program.
  15372. STRIP=$lt_STRIP
  15373. # Commands used to install an old-style archive.
  15374. RANLIB=$lt_RANLIB
  15375. old_postinstall_cmds=$lt_old_postinstall_cmds
  15376. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15377. # Whether to use a lock for old archive extraction.
  15378. lock_old_archive_extraction=$lock_old_archive_extraction
  15379. # A C compiler.
  15380. LTCC=$lt_CC
  15381. # LTCC compiler flags.
  15382. LTCFLAGS=$lt_CFLAGS
  15383. # Take the output of nm and produce a listing of raw symbols and C names.
  15384. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15385. # Transform the output of nm in a proper C declaration.
  15386. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15387. # Transform the output of nm in a C name address pair.
  15388. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15389. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15390. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15391. # Specify filename containing input files for \$NM.
  15392. nm_file_list_spec=$lt_nm_file_list_spec
  15393. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15394. lt_sysroot=$lt_sysroot
  15395. # The name of the directory that contains temporary libtool files.
  15396. objdir=$objdir
  15397. # Used to examine libraries when file_magic_cmd begins with "file".
  15398. MAGIC_CMD=$MAGIC_CMD
  15399. # Must we lock files when doing compilation?
  15400. need_locks=$lt_need_locks
  15401. # Manifest tool.
  15402. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15403. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15404. DSYMUTIL=$lt_DSYMUTIL
  15405. # Tool to change global to local symbols on Mac OS X.
  15406. NMEDIT=$lt_NMEDIT
  15407. # Tool to manipulate fat objects and archives on Mac OS X.
  15408. LIPO=$lt_LIPO
  15409. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15410. OTOOL=$lt_OTOOL
  15411. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15412. OTOOL64=$lt_OTOOL64
  15413. # Old archive suffix (normally "a").
  15414. libext=$libext
  15415. # Shared library suffix (normally ".so").
  15416. shrext_cmds=$lt_shrext_cmds
  15417. # The commands to extract the exported symbol list from a shared archive.
  15418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15419. # Variables whose values should be saved in libtool wrapper scripts and
  15420. # restored at link time.
  15421. variables_saved_for_relink=$lt_variables_saved_for_relink
  15422. # Do we need the "lib" prefix for modules?
  15423. need_lib_prefix=$need_lib_prefix
  15424. # Do we need a version for libraries?
  15425. need_version=$need_version
  15426. # Library versioning type.
  15427. version_type=$version_type
  15428. # Shared library runtime path variable.
  15429. runpath_var=$runpath_var
  15430. # Shared library path variable.
  15431. shlibpath_var=$shlibpath_var
  15432. # Is shlibpath searched before the hard-coded library search path?
  15433. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15434. # Format of library name prefix.
  15435. libname_spec=$lt_libname_spec
  15436. # List of archive names. First name is the real one, the rest are links.
  15437. # The last name is the one that the linker finds with -lNAME
  15438. library_names_spec=$lt_library_names_spec
  15439. # The coded name of the library, if different from the real name.
  15440. soname_spec=$lt_soname_spec
  15441. # Permission mode override for installation of shared libraries.
  15442. install_override_mode=$lt_install_override_mode
  15443. # Command to use after installation of a shared archive.
  15444. postinstall_cmds=$lt_postinstall_cmds
  15445. # Command to use after uninstallation of a shared archive.
  15446. postuninstall_cmds=$lt_postuninstall_cmds
  15447. # Commands used to finish a libtool library installation in a directory.
  15448. finish_cmds=$lt_finish_cmds
  15449. # As "finish_cmds", except a single script fragment to be evaled but
  15450. # not shown.
  15451. finish_eval=$lt_finish_eval
  15452. # Whether we should hardcode library paths into libraries.
  15453. hardcode_into_libs=$hardcode_into_libs
  15454. # Compile-time system search path for libraries.
  15455. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15456. # Run-time system search path for libraries.
  15457. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15458. # Whether dlopen is supported.
  15459. dlopen_support=$enable_dlopen
  15460. # Whether dlopen of programs is supported.
  15461. dlopen_self=$enable_dlopen_self
  15462. # Whether dlopen of statically linked programs is supported.
  15463. dlopen_self_static=$enable_dlopen_self_static
  15464. # Commands to strip libraries.
  15465. old_striplib=$lt_old_striplib
  15466. striplib=$lt_striplib
  15467. # The linker used to build libraries.
  15468. LD=$lt_LD
  15469. # How to create reloadable object files.
  15470. reload_flag=$lt_reload_flag
  15471. reload_cmds=$lt_reload_cmds
  15472. # Commands used to build an old-style archive.
  15473. old_archive_cmds=$lt_old_archive_cmds
  15474. # A language specific compiler.
  15475. CC=$lt_compiler
  15476. # Is the compiler the GNU compiler?
  15477. with_gcc=$GCC
  15478. # Compiler flag to turn off builtin functions.
  15479. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15480. # Additional compiler flags for building library objects.
  15481. pic_flag=$lt_lt_prog_compiler_pic
  15482. # How to pass a linker flag through the compiler.
  15483. wl=$lt_lt_prog_compiler_wl
  15484. # Compiler flag to prevent dynamic linking.
  15485. link_static_flag=$lt_lt_prog_compiler_static
  15486. # Does compiler simultaneously support -c and -o options?
  15487. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15488. # Whether or not to add -lc for building shared libraries.
  15489. build_libtool_need_lc=$archive_cmds_need_lc
  15490. # Whether or not to disallow shared libs when runtime libs are static.
  15491. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15492. # Compiler flag to allow reflexive dlopens.
  15493. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15494. # Compiler flag to generate shared objects directly from archives.
  15495. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15496. # Whether the compiler copes with passing no objects directly.
  15497. compiler_needs_object=$lt_compiler_needs_object
  15498. # Create an old-style archive from a shared archive.
  15499. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15500. # Create a temporary old-style archive to link instead of a shared archive.
  15501. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15502. # Commands used to build a shared archive.
  15503. archive_cmds=$lt_archive_cmds
  15504. archive_expsym_cmds=$lt_archive_expsym_cmds
  15505. # Commands used to build a loadable module if different from building
  15506. # a shared archive.
  15507. module_cmds=$lt_module_cmds
  15508. module_expsym_cmds=$lt_module_expsym_cmds
  15509. # Whether we are building with GNU ld or not.
  15510. with_gnu_ld=$lt_with_gnu_ld
  15511. # Flag that allows shared libraries with undefined symbols to be built.
  15512. allow_undefined_flag=$lt_allow_undefined_flag
  15513. # Flag that enforces no undefined symbols.
  15514. no_undefined_flag=$lt_no_undefined_flag
  15515. # Flag to hardcode \$libdir into a binary during linking.
  15516. # This must work even if \$libdir does not exist
  15517. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15518. # Whether we need a single "-rpath" flag with a separated argument.
  15519. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15520. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15521. # DIR into the resulting binary.
  15522. hardcode_direct=$hardcode_direct
  15523. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15524. # DIR into the resulting binary and the resulting library dependency is
  15525. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15526. # library is relocated.
  15527. hardcode_direct_absolute=$hardcode_direct_absolute
  15528. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15529. # into the resulting binary.
  15530. hardcode_minus_L=$hardcode_minus_L
  15531. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15532. # into the resulting binary.
  15533. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15534. # Set to "yes" if building a shared library automatically hardcodes DIR
  15535. # into the library and all subsequent libraries and executables linked
  15536. # against it.
  15537. hardcode_automatic=$hardcode_automatic
  15538. # Set to yes if linker adds runtime paths of dependent libraries
  15539. # to runtime path list.
  15540. inherit_rpath=$inherit_rpath
  15541. # Whether libtool must link a program against all its dependency libraries.
  15542. link_all_deplibs=$link_all_deplibs
  15543. # Set to "yes" if exported symbols are required.
  15544. always_export_symbols=$always_export_symbols
  15545. # The commands to list exported symbols.
  15546. export_symbols_cmds=$lt_export_symbols_cmds
  15547. # Symbols that should not be listed in the preloaded symbols.
  15548. exclude_expsyms=$lt_exclude_expsyms
  15549. # Symbols that must always be exported.
  15550. include_expsyms=$lt_include_expsyms
  15551. # Commands necessary for linking programs (against libraries) with templates.
  15552. prelink_cmds=$lt_prelink_cmds
  15553. # Commands necessary for finishing linking programs.
  15554. postlink_cmds=$lt_postlink_cmds
  15555. # Specify filename containing input files.
  15556. file_list_spec=$lt_file_list_spec
  15557. # How to hardcode a shared library path into an executable.
  15558. hardcode_action=$hardcode_action
  15559. # The directories searched by this compiler when creating a shared library.
  15560. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15561. # Dependencies to place before and after the objects being linked to
  15562. # create a shared library.
  15563. predep_objects=$lt_predep_objects
  15564. postdep_objects=$lt_postdep_objects
  15565. predeps=$lt_predeps
  15566. postdeps=$lt_postdeps
  15567. # The library search path used internally by the compiler when linking
  15568. # a shared library.
  15569. compiler_lib_search_path=$lt_compiler_lib_search_path
  15570. # ### END LIBTOOL CONFIG
  15571. _LT_EOF
  15572. case $host_os in
  15573. aix3*)
  15574. cat <<\_LT_EOF >> "$cfgfile"
  15575. # AIX sometimes has problems with the GCC collect2 program. For some
  15576. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15577. # vanish in a puff of smoke.
  15578. if test "X${COLLECT_NAMES+set}" != Xset; then
  15579. COLLECT_NAMES=
  15580. export COLLECT_NAMES
  15581. fi
  15582. _LT_EOF
  15583. ;;
  15584. esac
  15585. ltmain="$ac_aux_dir/ltmain.sh"
  15586. # We use sed instead of cat because bash on DJGPP gets confused if
  15587. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15588. # text mode, it properly converts lines to CR/LF. This bash problem
  15589. # is reportedly fixed, but why not run on old versions too?
  15590. sed '$q' "$ltmain" >> "$cfgfile" \
  15591. || (rm -f "$cfgfile"; exit 1)
  15592. if test x"$xsi_shell" = xyes; then
  15593. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15594. func_dirname ()\
  15595. {\
  15596. \ case ${1} in\
  15597. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15598. \ * ) func_dirname_result="${3}" ;;\
  15599. \ esac\
  15600. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15601. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15602. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15603. test 0 -eq $? || _lt_function_replace_fail=:
  15604. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15605. func_basename ()\
  15606. {\
  15607. \ func_basename_result="${1##*/}"\
  15608. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15609. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15610. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15611. test 0 -eq $? || _lt_function_replace_fail=:
  15612. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15613. func_dirname_and_basename ()\
  15614. {\
  15615. \ case ${1} in\
  15616. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15617. \ * ) func_dirname_result="${3}" ;;\
  15618. \ esac\
  15619. \ func_basename_result="${1##*/}"\
  15620. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15621. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15622. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15623. test 0 -eq $? || _lt_function_replace_fail=:
  15624. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15625. func_stripname ()\
  15626. {\
  15627. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15628. \ # positional parameters, so assign one to ordinary parameter first.\
  15629. \ func_stripname_result=${3}\
  15630. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15631. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15632. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15633. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15634. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15635. test 0 -eq $? || _lt_function_replace_fail=:
  15636. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15637. func_split_long_opt ()\
  15638. {\
  15639. \ func_split_long_opt_name=${1%%=*}\
  15640. \ func_split_long_opt_arg=${1#*=}\
  15641. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15642. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15643. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15644. test 0 -eq $? || _lt_function_replace_fail=:
  15645. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15646. func_split_short_opt ()\
  15647. {\
  15648. \ func_split_short_opt_arg=${1#??}\
  15649. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15650. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15651. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15652. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15653. test 0 -eq $? || _lt_function_replace_fail=:
  15654. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15655. func_lo2o ()\
  15656. {\
  15657. \ case ${1} in\
  15658. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15659. \ *) func_lo2o_result=${1} ;;\
  15660. \ esac\
  15661. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15662. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15663. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15664. test 0 -eq $? || _lt_function_replace_fail=:
  15665. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15666. func_xform ()\
  15667. {\
  15668. func_xform_result=${1%.*}.lo\
  15669. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15670. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15671. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15672. test 0 -eq $? || _lt_function_replace_fail=:
  15673. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15674. func_arith ()\
  15675. {\
  15676. func_arith_result=$(( $* ))\
  15677. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15678. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15679. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15680. test 0 -eq $? || _lt_function_replace_fail=:
  15681. sed -e '/^func_len ()$/,/^} # func_len /c\
  15682. func_len ()\
  15683. {\
  15684. func_len_result=${#1}\
  15685. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15686. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15687. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15688. test 0 -eq $? || _lt_function_replace_fail=:
  15689. fi
  15690. if test x"$lt_shell_append" = xyes; then
  15691. sed -e '/^func_append ()$/,/^} # func_append /c\
  15692. func_append ()\
  15693. {\
  15694. eval "${1}+=\\${2}"\
  15695. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15696. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15697. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15698. test 0 -eq $? || _lt_function_replace_fail=:
  15699. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15700. func_append_quoted ()\
  15701. {\
  15702. \ func_quote_for_eval "${2}"\
  15703. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15704. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15705. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15706. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15707. test 0 -eq $? || _lt_function_replace_fail=:
  15708. # Save a `func_append' function call where possible by direct use of '+='
  15709. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15710. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15711. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15712. test 0 -eq $? || _lt_function_replace_fail=:
  15713. else
  15714. # Save a `func_append' function call even when '+=' is not available
  15715. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15716. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15717. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15718. test 0 -eq $? || _lt_function_replace_fail=:
  15719. fi
  15720. if test x"$_lt_function_replace_fail" = x":"; then
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15722. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15723. fi
  15724. mv -f "$cfgfile" "$ofile" ||
  15725. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15726. chmod +x "$ofile"
  15727. cat <<_LT_EOF >> "$ofile"
  15728. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15729. # The linker used to build libraries.
  15730. LD=$lt_LD_CXX
  15731. # How to create reloadable object files.
  15732. reload_flag=$lt_reload_flag_CXX
  15733. reload_cmds=$lt_reload_cmds_CXX
  15734. # Commands used to build an old-style archive.
  15735. old_archive_cmds=$lt_old_archive_cmds_CXX
  15736. # A language specific compiler.
  15737. CC=$lt_compiler_CXX
  15738. # Is the compiler the GNU compiler?
  15739. with_gcc=$GCC_CXX
  15740. # Compiler flag to turn off builtin functions.
  15741. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15742. # Additional compiler flags for building library objects.
  15743. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15744. # How to pass a linker flag through the compiler.
  15745. wl=$lt_lt_prog_compiler_wl_CXX
  15746. # Compiler flag to prevent dynamic linking.
  15747. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15748. # Does compiler simultaneously support -c and -o options?
  15749. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15750. # Whether or not to add -lc for building shared libraries.
  15751. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15752. # Whether or not to disallow shared libs when runtime libs are static.
  15753. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15754. # Compiler flag to allow reflexive dlopens.
  15755. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15756. # Compiler flag to generate shared objects directly from archives.
  15757. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15758. # Whether the compiler copes with passing no objects directly.
  15759. compiler_needs_object=$lt_compiler_needs_object_CXX
  15760. # Create an old-style archive from a shared archive.
  15761. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15762. # Create a temporary old-style archive to link instead of a shared archive.
  15763. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15764. # Commands used to build a shared archive.
  15765. archive_cmds=$lt_archive_cmds_CXX
  15766. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15767. # Commands used to build a loadable module if different from building
  15768. # a shared archive.
  15769. module_cmds=$lt_module_cmds_CXX
  15770. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15771. # Whether we are building with GNU ld or not.
  15772. with_gnu_ld=$lt_with_gnu_ld_CXX
  15773. # Flag that allows shared libraries with undefined symbols to be built.
  15774. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15775. # Flag that enforces no undefined symbols.
  15776. no_undefined_flag=$lt_no_undefined_flag_CXX
  15777. # Flag to hardcode \$libdir into a binary during linking.
  15778. # This must work even if \$libdir does not exist
  15779. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15780. # Whether we need a single "-rpath" flag with a separated argument.
  15781. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15782. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15783. # DIR into the resulting binary.
  15784. hardcode_direct=$hardcode_direct_CXX
  15785. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15786. # DIR into the resulting binary and the resulting library dependency is
  15787. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15788. # library is relocated.
  15789. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15790. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15791. # into the resulting binary.
  15792. hardcode_minus_L=$hardcode_minus_L_CXX
  15793. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15794. # into the resulting binary.
  15795. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15796. # Set to "yes" if building a shared library automatically hardcodes DIR
  15797. # into the library and all subsequent libraries and executables linked
  15798. # against it.
  15799. hardcode_automatic=$hardcode_automatic_CXX
  15800. # Set to yes if linker adds runtime paths of dependent libraries
  15801. # to runtime path list.
  15802. inherit_rpath=$inherit_rpath_CXX
  15803. # Whether libtool must link a program against all its dependency libraries.
  15804. link_all_deplibs=$link_all_deplibs_CXX
  15805. # Set to "yes" if exported symbols are required.
  15806. always_export_symbols=$always_export_symbols_CXX
  15807. # The commands to list exported symbols.
  15808. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15809. # Symbols that should not be listed in the preloaded symbols.
  15810. exclude_expsyms=$lt_exclude_expsyms_CXX
  15811. # Symbols that must always be exported.
  15812. include_expsyms=$lt_include_expsyms_CXX
  15813. # Commands necessary for linking programs (against libraries) with templates.
  15814. prelink_cmds=$lt_prelink_cmds_CXX
  15815. # Commands necessary for finishing linking programs.
  15816. postlink_cmds=$lt_postlink_cmds_CXX
  15817. # Specify filename containing input files.
  15818. file_list_spec=$lt_file_list_spec_CXX
  15819. # How to hardcode a shared library path into an executable.
  15820. hardcode_action=$hardcode_action_CXX
  15821. # The directories searched by this compiler when creating a shared library.
  15822. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15823. # Dependencies to place before and after the objects being linked to
  15824. # create a shared library.
  15825. predep_objects=$lt_predep_objects_CXX
  15826. postdep_objects=$lt_postdep_objects_CXX
  15827. predeps=$lt_predeps_CXX
  15828. postdeps=$lt_postdeps_CXX
  15829. # The library search path used internally by the compiler when linking
  15830. # a shared library.
  15831. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15832. # ### END LIBTOOL TAG CONFIG: CXX
  15833. _LT_EOF
  15834. ;;
  15835. esac
  15836. done # for ac_tag
  15837. as_fn_exit 0
  15838. _ACEOF
  15839. ac_clean_files=$ac_clean_files_save
  15840. test $ac_write_fail = 0 ||
  15841. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15842. # configure is writing to config.log, and then calls config.status.
  15843. # config.status does its own redirection, appending to config.log.
  15844. # Unfortunately, on DOS this fails, as config.log is still kept open
  15845. # by configure, so config.status won't be able to write to it; its
  15846. # output is simply discarded. So we exec the FD to /dev/null,
  15847. # effectively closing config.log, so it can be properly (re)opened and
  15848. # appended to by config.status. When coming back to configure, we
  15849. # need to make the FD available again.
  15850. if test "$no_create" != yes; then
  15851. ac_cs_success=:
  15852. ac_config_status_args=
  15853. test "$silent" = yes &&
  15854. ac_config_status_args="$ac_config_status_args --quiet"
  15855. exec 5>/dev/null
  15856. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15857. exec 5>>config.log
  15858. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15859. # would make configure fail if this is the last instruction.
  15860. $ac_cs_success || as_fn_exit 1
  15861. fi
  15862. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15864. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15865. fi