configure 500 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME=
  637. PACKAGE_TARNAME=
  638. PACKAGE_VERSION=
  639. PACKAGE_STRING=
  640. PACKAGE_BUGREPORT=
  641. PACKAGE_URL=
  642. ac_unique_file="config.m4"
  643. # Factoring default headers for most tests.
  644. ac_includes_default="\
  645. #include <stdio.h>
  646. #ifdef HAVE_SYS_TYPES_H
  647. # include <sys/types.h>
  648. #endif
  649. #ifdef HAVE_SYS_STAT_H
  650. # include <sys/stat.h>
  651. #endif
  652. #ifdef STDC_HEADERS
  653. # include <stdlib.h>
  654. # include <stddef.h>
  655. #else
  656. # ifdef HAVE_STDLIB_H
  657. # include <stdlib.h>
  658. # endif
  659. #endif
  660. #ifdef HAVE_STRING_H
  661. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  662. # include <memory.h>
  663. # endif
  664. # include <string.h>
  665. #endif
  666. #ifdef HAVE_STRINGS_H
  667. # include <strings.h>
  668. #endif
  669. #ifdef HAVE_INTTYPES_H
  670. # include <inttypes.h>
  671. #endif
  672. #ifdef HAVE_STDINT_H
  673. # include <stdint.h>
  674. #endif
  675. #ifdef HAVE_UNISTD_H
  676. # include <unistd.h>
  677. #endif"
  678. ac_subst_vars='LTLIBOBJS
  679. LIBOBJS
  680. OTOOL64
  681. OTOOL
  682. LIPO
  683. NMEDIT
  684. DSYMUTIL
  685. lt_ECHO
  686. RANLIB
  687. STRIP
  688. AR
  689. OBJDUMP
  690. LN_S
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. LIBTOOL
  697. CXXCPP
  698. ac_ct_CXX
  699. CXXFLAGS
  700. CXX
  701. AWK
  702. RE2C
  703. SHLIB_DL_SUFFIX_NAME
  704. SHLIB_SUFFIX_NAME
  705. target_os
  706. target_vendor
  707. target_cpu
  708. target
  709. host_os
  710. host_vendor
  711. host_cpu
  712. host
  713. build_os
  714. build_vendor
  715. build_cpu
  716. build
  717. CPP
  718. OBJEXT
  719. EXEEXT
  720. ac_ct_CC
  721. CPPFLAGS
  722. LDFLAGS
  723. CFLAGS
  724. CC
  725. CONFIGURE_OPTIONS
  726. CONFIGURE_COMMAND
  727. SED
  728. EGREP
  729. GREP
  730. target_alias
  731. host_alias
  732. build_alias
  733. LIBS
  734. ECHO_T
  735. ECHO_N
  736. ECHO_C
  737. DEFS
  738. mandir
  739. localedir
  740. libdir
  741. psdir
  742. pdfdir
  743. dvidir
  744. htmldir
  745. infodir
  746. docdir
  747. oldincludedir
  748. includedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. with_libdir
  772. with_php_config
  773. with_v8js
  774. enable_shared
  775. enable_static
  776. with_pic
  777. enable_fast_install
  778. with_gnu_ld
  779. enable_libtool_lock
  780. '
  781. ac_precious_vars='build_alias
  782. host_alias
  783. target_alias
  784. CC
  785. CFLAGS
  786. LDFLAGS
  787. LIBS
  788. CPPFLAGS
  789. CPP
  790. CXX
  791. CXXFLAGS
  792. CCC
  793. CXXCPP'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. ac_unrecognized_opts=
  798. ac_unrecognized_sep=
  799. # The variables have the same names as the options, with
  800. # dashes changed to underlines.
  801. cache_file=/dev/null
  802. exec_prefix=NONE
  803. no_create=
  804. no_recursion=
  805. prefix=NONE
  806. program_prefix=NONE
  807. program_suffix=NONE
  808. program_transform_name=s,x,x,
  809. silent=
  810. site=
  811. srcdir=
  812. verbose=
  813. x_includes=NONE
  814. x_libraries=NONE
  815. # Installation directory options.
  816. # These are left unexpanded so users can "make install exec_prefix=/foo"
  817. # and all the variables that are supposed to be based on exec_prefix
  818. # by default will actually change.
  819. # Use braces instead of parens because sh, perl, etc. also accept them.
  820. # (The list follows the same order as the GNU Coding Standards.)
  821. bindir='${exec_prefix}/bin'
  822. sbindir='${exec_prefix}/sbin'
  823. libexecdir='${exec_prefix}/libexec'
  824. datarootdir='${prefix}/share'
  825. datadir='${datarootdir}'
  826. sysconfdir='${prefix}/etc'
  827. sharedstatedir='${prefix}/com'
  828. localstatedir='${prefix}/var'
  829. includedir='${prefix}/include'
  830. oldincludedir='/usr/include'
  831. docdir='${datarootdir}/doc/${PACKAGE}'
  832. infodir='${datarootdir}/info'
  833. htmldir='${docdir}'
  834. dvidir='${docdir}'
  835. pdfdir='${docdir}'
  836. psdir='${docdir}'
  837. libdir='${exec_prefix}/lib'
  838. localedir='${datarootdir}/locale'
  839. mandir='${datarootdir}/man'
  840. ac_prev=
  841. ac_dashdash=
  842. for ac_option
  843. do
  844. # If the previous option needs an argument, assign it.
  845. if test -n "$ac_prev"; then
  846. eval $ac_prev=\$ac_option
  847. ac_prev=
  848. continue
  849. fi
  850. case $ac_option in
  851. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  852. *) ac_optarg=yes ;;
  853. esac
  854. # Accept the important Cygnus configure options, so we can diagnose typos.
  855. case $ac_dashdash$ac_option in
  856. --)
  857. ac_dashdash=yes ;;
  858. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  859. ac_prev=bindir ;;
  860. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  861. bindir=$ac_optarg ;;
  862. -build | --build | --buil | --bui | --bu)
  863. ac_prev=build_alias ;;
  864. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  865. build_alias=$ac_optarg ;;
  866. -cache-file | --cache-file | --cache-fil | --cache-fi \
  867. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  868. ac_prev=cache_file ;;
  869. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  870. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  871. cache_file=$ac_optarg ;;
  872. --config-cache | -C)
  873. cache_file=config.cache ;;
  874. -datadir | --datadir | --datadi | --datad)
  875. ac_prev=datadir ;;
  876. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  877. datadir=$ac_optarg ;;
  878. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  879. | --dataroo | --dataro | --datar)
  880. ac_prev=datarootdir ;;
  881. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  882. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  883. datarootdir=$ac_optarg ;;
  884. -disable-* | --disable-*)
  885. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  886. # Reject names that are not valid shell variable names.
  887. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  888. as_fn_error "invalid feature name: $ac_useropt"
  889. ac_useropt_orig=$ac_useropt
  890. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  891. case $ac_user_opts in
  892. *"
  893. "enable_$ac_useropt"
  894. "*) ;;
  895. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  896. ac_unrecognized_sep=', ';;
  897. esac
  898. eval enable_$ac_useropt=no ;;
  899. -docdir | --docdir | --docdi | --doc | --do)
  900. ac_prev=docdir ;;
  901. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  902. docdir=$ac_optarg ;;
  903. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  904. ac_prev=dvidir ;;
  905. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  906. dvidir=$ac_optarg ;;
  907. -enable-* | --enable-*)
  908. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  911. as_fn_error "invalid feature name: $ac_useropt"
  912. ac_useropt_orig=$ac_useropt
  913. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  914. case $ac_user_opts in
  915. *"
  916. "enable_$ac_useropt"
  917. "*) ;;
  918. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  919. ac_unrecognized_sep=', ';;
  920. esac
  921. eval enable_$ac_useropt=\$ac_optarg ;;
  922. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  923. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  924. | --exec | --exe | --ex)
  925. ac_prev=exec_prefix ;;
  926. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  927. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  928. | --exec=* | --exe=* | --ex=*)
  929. exec_prefix=$ac_optarg ;;
  930. -gas | --gas | --ga | --g)
  931. # Obsolete; use --with-gas.
  932. with_gas=yes ;;
  933. -help | --help | --hel | --he | -h)
  934. ac_init_help=long ;;
  935. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  936. ac_init_help=recursive ;;
  937. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  938. ac_init_help=short ;;
  939. -host | --host | --hos | --ho)
  940. ac_prev=host_alias ;;
  941. -host=* | --host=* | --hos=* | --ho=*)
  942. host_alias=$ac_optarg ;;
  943. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  944. ac_prev=htmldir ;;
  945. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  946. | --ht=*)
  947. htmldir=$ac_optarg ;;
  948. -includedir | --includedir | --includedi | --included | --include \
  949. | --includ | --inclu | --incl | --inc)
  950. ac_prev=includedir ;;
  951. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  952. | --includ=* | --inclu=* | --incl=* | --inc=*)
  953. includedir=$ac_optarg ;;
  954. -infodir | --infodir | --infodi | --infod | --info | --inf)
  955. ac_prev=infodir ;;
  956. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  957. infodir=$ac_optarg ;;
  958. -libdir | --libdir | --libdi | --libd)
  959. ac_prev=libdir ;;
  960. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  961. libdir=$ac_optarg ;;
  962. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  963. | --libexe | --libex | --libe)
  964. ac_prev=libexecdir ;;
  965. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  966. | --libexe=* | --libex=* | --libe=*)
  967. libexecdir=$ac_optarg ;;
  968. -localedir | --localedir | --localedi | --localed | --locale)
  969. ac_prev=localedir ;;
  970. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  971. localedir=$ac_optarg ;;
  972. -localstatedir | --localstatedir | --localstatedi | --localstated \
  973. | --localstate | --localstat | --localsta | --localst | --locals)
  974. ac_prev=localstatedir ;;
  975. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  976. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  977. localstatedir=$ac_optarg ;;
  978. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  979. ac_prev=mandir ;;
  980. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  981. mandir=$ac_optarg ;;
  982. -nfp | --nfp | --nf)
  983. # Obsolete; use --without-fp.
  984. with_fp=no ;;
  985. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  986. | --no-cr | --no-c | -n)
  987. no_create=yes ;;
  988. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  989. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  990. no_recursion=yes ;;
  991. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  992. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  993. | --oldin | --oldi | --old | --ol | --o)
  994. ac_prev=oldincludedir ;;
  995. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  996. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  997. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  998. oldincludedir=$ac_optarg ;;
  999. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1000. ac_prev=prefix ;;
  1001. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1002. prefix=$ac_optarg ;;
  1003. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1004. | --program-pre | --program-pr | --program-p)
  1005. ac_prev=program_prefix ;;
  1006. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1007. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1008. program_prefix=$ac_optarg ;;
  1009. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1010. | --program-suf | --program-su | --program-s)
  1011. ac_prev=program_suffix ;;
  1012. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1013. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1014. program_suffix=$ac_optarg ;;
  1015. -program-transform-name | --program-transform-name \
  1016. | --program-transform-nam | --program-transform-na \
  1017. | --program-transform-n | --program-transform- \
  1018. | --program-transform | --program-transfor \
  1019. | --program-transfo | --program-transf \
  1020. | --program-trans | --program-tran \
  1021. | --progr-tra | --program-tr | --program-t)
  1022. ac_prev=program_transform_name ;;
  1023. -program-transform-name=* | --program-transform-name=* \
  1024. | --program-transform-nam=* | --program-transform-na=* \
  1025. | --program-transform-n=* | --program-transform-=* \
  1026. | --program-transform=* | --program-transfor=* \
  1027. | --program-transfo=* | --program-transf=* \
  1028. | --program-trans=* | --program-tran=* \
  1029. | --progr-tra=* | --program-tr=* | --program-t=*)
  1030. program_transform_name=$ac_optarg ;;
  1031. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1032. ac_prev=pdfdir ;;
  1033. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1034. pdfdir=$ac_optarg ;;
  1035. -psdir | --psdir | --psdi | --psd | --ps)
  1036. ac_prev=psdir ;;
  1037. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1038. psdir=$ac_optarg ;;
  1039. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1040. | -silent | --silent | --silen | --sile | --sil)
  1041. silent=yes ;;
  1042. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1043. ac_prev=sbindir ;;
  1044. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1045. | --sbi=* | --sb=*)
  1046. sbindir=$ac_optarg ;;
  1047. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1048. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1049. | --sharedst | --shareds | --shared | --share | --shar \
  1050. | --sha | --sh)
  1051. ac_prev=sharedstatedir ;;
  1052. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1053. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1054. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1055. | --sha=* | --sh=*)
  1056. sharedstatedir=$ac_optarg ;;
  1057. -site | --site | --sit)
  1058. ac_prev=site ;;
  1059. -site=* | --site=* | --sit=*)
  1060. site=$ac_optarg ;;
  1061. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1062. ac_prev=srcdir ;;
  1063. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1064. srcdir=$ac_optarg ;;
  1065. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1066. | --syscon | --sysco | --sysc | --sys | --sy)
  1067. ac_prev=sysconfdir ;;
  1068. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1069. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1070. sysconfdir=$ac_optarg ;;
  1071. -target | --target | --targe | --targ | --tar | --ta | --t)
  1072. ac_prev=target_alias ;;
  1073. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1074. target_alias=$ac_optarg ;;
  1075. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1076. verbose=yes ;;
  1077. -version | --version | --versio | --versi | --vers | -V)
  1078. ac_init_version=: ;;
  1079. -with-* | --with-*)
  1080. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1081. # Reject names that are not valid shell variable names.
  1082. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1083. as_fn_error "invalid package name: $ac_useropt"
  1084. ac_useropt_orig=$ac_useropt
  1085. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1086. case $ac_user_opts in
  1087. *"
  1088. "with_$ac_useropt"
  1089. "*) ;;
  1090. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1091. ac_unrecognized_sep=', ';;
  1092. esac
  1093. eval with_$ac_useropt=\$ac_optarg ;;
  1094. -without-* | --without-*)
  1095. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1096. # Reject names that are not valid shell variable names.
  1097. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1098. as_fn_error "invalid package name: $ac_useropt"
  1099. ac_useropt_orig=$ac_useropt
  1100. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1101. case $ac_user_opts in
  1102. *"
  1103. "with_$ac_useropt"
  1104. "*) ;;
  1105. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1106. ac_unrecognized_sep=', ';;
  1107. esac
  1108. eval with_$ac_useropt=no ;;
  1109. --x)
  1110. # Obsolete; use --with-x.
  1111. with_x=yes ;;
  1112. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1113. | --x-incl | --x-inc | --x-in | --x-i)
  1114. ac_prev=x_includes ;;
  1115. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1116. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1117. x_includes=$ac_optarg ;;
  1118. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1119. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1120. ac_prev=x_libraries ;;
  1121. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1122. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1123. x_libraries=$ac_optarg ;;
  1124. -*) as_fn_error "unrecognized option: \`$ac_option'
  1125. Try \`$0 --help' for more information."
  1126. ;;
  1127. *=*)
  1128. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1129. # Reject names that are not valid shell variable names.
  1130. case $ac_envvar in #(
  1131. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1132. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1133. esac
  1134. eval $ac_envvar=\$ac_optarg
  1135. export $ac_envvar ;;
  1136. *)
  1137. # FIXME: should be removed in autoconf 3.0.
  1138. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1139. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1140. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1141. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1142. ;;
  1143. esac
  1144. done
  1145. if test -n "$ac_prev"; then
  1146. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1147. as_fn_error "missing argument to $ac_option"
  1148. fi
  1149. if test -n "$ac_unrecognized_opts"; then
  1150. case $enable_option_checking in
  1151. no) ;;
  1152. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1153. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1154. esac
  1155. fi
  1156. # Check all directory arguments for consistency.
  1157. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1158. datadir sysconfdir sharedstatedir localstatedir includedir \
  1159. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1160. libdir localedir mandir
  1161. do
  1162. eval ac_val=\$$ac_var
  1163. # Remove trailing slashes.
  1164. case $ac_val in
  1165. */ )
  1166. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1167. eval $ac_var=\$ac_val;;
  1168. esac
  1169. # Be sure to have absolute directory names.
  1170. case $ac_val in
  1171. [\\/$]* | ?:[\\/]* ) continue;;
  1172. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1173. esac
  1174. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1175. done
  1176. # There might be people who depend on the old broken behavior: `$host'
  1177. # used to hold the argument of --host etc.
  1178. # FIXME: To remove some day.
  1179. build=$build_alias
  1180. host=$host_alias
  1181. target=$target_alias
  1182. # FIXME: To remove some day.
  1183. if test "x$host_alias" != x; then
  1184. if test "x$build_alias" = x; then
  1185. cross_compiling=maybe
  1186. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1187. If a cross compiler is detected then cross compile mode will be used." >&2
  1188. elif test "x$build_alias" != "x$host_alias"; then
  1189. cross_compiling=yes
  1190. fi
  1191. fi
  1192. ac_tool_prefix=
  1193. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1194. test "$silent" = yes && exec 6>/dev/null
  1195. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1196. ac_ls_di=`ls -di .` &&
  1197. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1198. as_fn_error "working directory cannot be determined"
  1199. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1200. as_fn_error "pwd does not report name of working directory"
  1201. # Find the source files, if location was not specified.
  1202. if test -z "$srcdir"; then
  1203. ac_srcdir_defaulted=yes
  1204. # Try the directory containing this script, then the parent directory.
  1205. ac_confdir=`$as_dirname -- "$as_myself" ||
  1206. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1207. X"$as_myself" : 'X\(//\)[^/]' \| \
  1208. X"$as_myself" : 'X\(//\)$' \| \
  1209. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1210. $as_echo X"$as_myself" |
  1211. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1212. s//\1/
  1213. q
  1214. }
  1215. /^X\(\/\/\)[^/].*/{
  1216. s//\1/
  1217. q
  1218. }
  1219. /^X\(\/\/\)$/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\).*/{
  1224. s//\1/
  1225. q
  1226. }
  1227. s/.*/./; q'`
  1228. srcdir=$ac_confdir
  1229. if test ! -r "$srcdir/$ac_unique_file"; then
  1230. srcdir=..
  1231. fi
  1232. else
  1233. ac_srcdir_defaulted=no
  1234. fi
  1235. if test ! -r "$srcdir/$ac_unique_file"; then
  1236. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1237. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1238. fi
  1239. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1240. ac_abs_confdir=`(
  1241. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1242. pwd)`
  1243. # When building in place, set srcdir=.
  1244. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1245. srcdir=.
  1246. fi
  1247. # Remove unnecessary trailing slashes from srcdir.
  1248. # Double slashes in file names in object file debugging info
  1249. # mess up M-x gdb in Emacs.
  1250. case $srcdir in
  1251. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1252. esac
  1253. for ac_var in $ac_precious_vars; do
  1254. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1255. eval ac_env_${ac_var}_value=\$${ac_var}
  1256. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1257. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1258. done
  1259. #
  1260. # Report the --help message.
  1261. #
  1262. if test "$ac_init_help" = "long"; then
  1263. # Omit some internal or obsolete options to make the list less imposing.
  1264. # This message is too long to be a string in the A/UX 3.1 sh.
  1265. cat <<_ACEOF
  1266. \`configure' configures this package to adapt to many kinds of systems.
  1267. Usage: $0 [OPTION]... [VAR=VALUE]...
  1268. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1269. VAR=VALUE. See below for descriptions of some of the useful variables.
  1270. Defaults for the options are specified in brackets.
  1271. Configuration:
  1272. -h, --help display this help and exit
  1273. --help=short display options specific to this package
  1274. --help=recursive display the short help of all the included packages
  1275. -V, --version display version information and exit
  1276. -q, --quiet, --silent do not print \`checking...' messages
  1277. --cache-file=FILE cache test results in FILE [disabled]
  1278. -C, --config-cache alias for \`--cache-file=config.cache'
  1279. -n, --no-create do not create output files
  1280. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1281. Installation directories:
  1282. --prefix=PREFIX install architecture-independent files in PREFIX
  1283. [$ac_default_prefix]
  1284. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1285. [PREFIX]
  1286. By default, \`make install' will install all the files in
  1287. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1288. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1289. for instance \`--prefix=\$HOME'.
  1290. For better control, use the options below.
  1291. Fine tuning of the installation directories:
  1292. --bindir=DIR user executables [EPREFIX/bin]
  1293. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1294. --libexecdir=DIR program executables [EPREFIX/libexec]
  1295. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1296. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1297. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1298. --libdir=DIR object code libraries [EPREFIX/lib]
  1299. --includedir=DIR C header files [PREFIX/include]
  1300. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1301. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1302. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1303. --infodir=DIR info documentation [DATAROOTDIR/info]
  1304. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1305. --mandir=DIR man documentation [DATAROOTDIR/man]
  1306. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1307. --htmldir=DIR html documentation [DOCDIR]
  1308. --dvidir=DIR dvi documentation [DOCDIR]
  1309. --pdfdir=DIR pdf documentation [DOCDIR]
  1310. --psdir=DIR ps documentation [DOCDIR]
  1311. _ACEOF
  1312. cat <<\_ACEOF
  1313. System types:
  1314. --build=BUILD configure for building on BUILD [guessed]
  1315. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1316. --target=TARGET configure for building compilers for TARGET [HOST]
  1317. _ACEOF
  1318. fi
  1319. if test -n "$ac_init_help"; then
  1320. cat <<\_ACEOF
  1321. Optional Features:
  1322. --disable-option-checking ignore unrecognized --enable/--with options
  1323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1325. --enable-shared[=PKGS] build shared libraries [default=yes]
  1326. --enable-static[=PKGS] build static libraries [default=yes]
  1327. --enable-fast-install[=PKGS]
  1328. optimize for fast installation [default=yes]
  1329. --disable-libtool-lock avoid locking (might break parallel builds)
  1330. Optional Packages:
  1331. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1332. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1333. --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
  1334. --with-php-config=PATH Path to php-config php-config
  1335. --with-v8js Include V8 JavaScript Engine
  1336. --with-pic try to use only PIC/non-PIC objects [default=use
  1337. both]
  1338. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1339. Some influential environment variables:
  1340. CC C compiler command
  1341. CFLAGS C compiler flags
  1342. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1343. nonstandard directory <lib dir>
  1344. LIBS libraries to pass to the linker, e.g. -l<library>
  1345. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1346. you have headers in a nonstandard directory <include dir>
  1347. CPP C preprocessor
  1348. CXX C++ compiler command
  1349. CXXFLAGS C++ compiler flags
  1350. CXXCPP C++ preprocessor
  1351. Use these variables to override the choices made by `configure' or to help
  1352. it to find libraries and programs with nonstandard names/locations.
  1353. Report bugs to the package provider.
  1354. _ACEOF
  1355. ac_status=$?
  1356. fi
  1357. if test "$ac_init_help" = "recursive"; then
  1358. # If there are subdirs, report their specific --help.
  1359. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1360. test -d "$ac_dir" ||
  1361. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1362. continue
  1363. ac_builddir=.
  1364. case "$ac_dir" in
  1365. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1366. *)
  1367. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1368. # A ".." for each directory in $ac_dir_suffix.
  1369. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1370. case $ac_top_builddir_sub in
  1371. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1372. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1373. esac ;;
  1374. esac
  1375. ac_abs_top_builddir=$ac_pwd
  1376. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1377. # for backward compatibility:
  1378. ac_top_builddir=$ac_top_build_prefix
  1379. case $srcdir in
  1380. .) # We are building in place.
  1381. ac_srcdir=.
  1382. ac_top_srcdir=$ac_top_builddir_sub
  1383. ac_abs_top_srcdir=$ac_pwd ;;
  1384. [\\/]* | ?:[\\/]* ) # Absolute name.
  1385. ac_srcdir=$srcdir$ac_dir_suffix;
  1386. ac_top_srcdir=$srcdir
  1387. ac_abs_top_srcdir=$srcdir ;;
  1388. *) # Relative name.
  1389. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1390. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1391. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1392. esac
  1393. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1394. cd "$ac_dir" || { ac_status=$?; continue; }
  1395. # Check for guested configure.
  1396. if test -f "$ac_srcdir/configure.gnu"; then
  1397. echo &&
  1398. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1399. elif test -f "$ac_srcdir/configure"; then
  1400. echo &&
  1401. $SHELL "$ac_srcdir/configure" --help=recursive
  1402. else
  1403. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1404. fi || ac_status=$?
  1405. cd "$ac_pwd" || { ac_status=$?; break; }
  1406. done
  1407. fi
  1408. test -n "$ac_init_help" && exit $ac_status
  1409. if $ac_init_version; then
  1410. cat <<\_ACEOF
  1411. configure
  1412. generated by GNU Autoconf 2.65
  1413. Copyright (C) 2009 Free Software Foundation, Inc.
  1414. This configure script is free software; the Free Software Foundation
  1415. gives unlimited permission to copy, distribute and modify it.
  1416. _ACEOF
  1417. exit
  1418. fi
  1419. ## ------------------------ ##
  1420. ## Autoconf initialization. ##
  1421. ## ------------------------ ##
  1422. # ac_fn_c_try_compile LINENO
  1423. # --------------------------
  1424. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1425. ac_fn_c_try_compile ()
  1426. {
  1427. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1428. rm -f conftest.$ac_objext
  1429. if { { ac_try="$ac_compile"
  1430. case "(($ac_try" in
  1431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1432. *) ac_try_echo=$ac_try;;
  1433. esac
  1434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1435. $as_echo "$ac_try_echo"; } >&5
  1436. (eval "$ac_compile") 2>conftest.err
  1437. ac_status=$?
  1438. if test -s conftest.err; then
  1439. grep -v '^ *+' conftest.err >conftest.er1
  1440. cat conftest.er1 >&5
  1441. mv -f conftest.er1 conftest.err
  1442. fi
  1443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1444. test $ac_status = 0; } && {
  1445. test -z "$ac_c_werror_flag" ||
  1446. test ! -s conftest.err
  1447. } && test -s conftest.$ac_objext; then :
  1448. ac_retval=0
  1449. else
  1450. $as_echo "$as_me: failed program was:" >&5
  1451. sed 's/^/| /' conftest.$ac_ext >&5
  1452. ac_retval=1
  1453. fi
  1454. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1455. as_fn_set_status $ac_retval
  1456. } # ac_fn_c_try_compile
  1457. # ac_fn_c_try_cpp LINENO
  1458. # ----------------------
  1459. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1460. ac_fn_c_try_cpp ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1464. case "(($ac_try" in
  1465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1466. *) ac_try_echo=$ac_try;;
  1467. esac
  1468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1469. $as_echo "$ac_try_echo"; } >&5
  1470. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1471. ac_status=$?
  1472. if test -s conftest.err; then
  1473. grep -v '^ *+' conftest.err >conftest.er1
  1474. cat conftest.er1 >&5
  1475. mv -f conftest.er1 conftest.err
  1476. fi
  1477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1478. test $ac_status = 0; } >/dev/null && {
  1479. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1480. test ! -s conftest.err
  1481. }; then :
  1482. ac_retval=0
  1483. else
  1484. $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486. ac_retval=1
  1487. fi
  1488. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1489. as_fn_set_status $ac_retval
  1490. } # ac_fn_c_try_cpp
  1491. # ac_fn_c_try_link LINENO
  1492. # -----------------------
  1493. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1494. ac_fn_c_try_link ()
  1495. {
  1496. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1497. rm -f conftest.$ac_objext conftest$ac_exeext
  1498. if { { ac_try="$ac_link"
  1499. case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_link") 2>conftest.err
  1506. ac_status=$?
  1507. if test -s conftest.err; then
  1508. grep -v '^ *+' conftest.err >conftest.er1
  1509. cat conftest.er1 >&5
  1510. mv -f conftest.er1 conftest.err
  1511. fi
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } && {
  1514. test -z "$ac_c_werror_flag" ||
  1515. test ! -s conftest.err
  1516. } && test -s conftest$ac_exeext && {
  1517. test "$cross_compiling" = yes ||
  1518. $as_test_x conftest$ac_exeext
  1519. }; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1527. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1528. # interfere with the next link command; also delete a directory that is
  1529. # left behind by Apple's compiler. We do this before executing the actions.
  1530. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1531. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1532. as_fn_set_status $ac_retval
  1533. } # ac_fn_c_try_link
  1534. # ac_fn_cxx_try_compile LINENO
  1535. # ----------------------------
  1536. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1537. ac_fn_cxx_try_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. rm -f conftest.$ac_objext
  1541. if { { ac_try="$ac_compile"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_compile") 2>conftest.err
  1549. ac_status=$?
  1550. if test -s conftest.err; then
  1551. grep -v '^ *+' conftest.err >conftest.er1
  1552. cat conftest.er1 >&5
  1553. mv -f conftest.er1 conftest.err
  1554. fi
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; } && {
  1557. test -z "$ac_cxx_werror_flag" ||
  1558. test ! -s conftest.err
  1559. } && test -s conftest.$ac_objext; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1567. as_fn_set_status $ac_retval
  1568. } # ac_fn_cxx_try_compile
  1569. # ac_fn_cxx_try_cpp LINENO
  1570. # ------------------------
  1571. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1572. ac_fn_cxx_try_cpp ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1576. case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1583. ac_status=$?
  1584. if test -s conftest.err; then
  1585. grep -v '^ *+' conftest.err >conftest.er1
  1586. cat conftest.er1 >&5
  1587. mv -f conftest.er1 conftest.err
  1588. fi
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } >/dev/null && {
  1591. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1592. test ! -s conftest.err
  1593. }; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_cxx_try_cpp
  1603. # ac_fn_cxx_try_run LINENO
  1604. # ------------------------
  1605. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1606. # that executables *can* be run.
  1607. ac_fn_cxx_try_run ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. if { { ac_try="$ac_link"
  1611. case "(($ac_try" in
  1612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1613. *) ac_try_echo=$ac_try;;
  1614. esac
  1615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1616. $as_echo "$ac_try_echo"; } >&5
  1617. (eval "$ac_link") 2>&5
  1618. ac_status=$?
  1619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1620. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1621. { { case "(($ac_try" in
  1622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1623. *) ac_try_echo=$ac_try;;
  1624. esac
  1625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1626. $as_echo "$ac_try_echo"; } >&5
  1627. (eval "$ac_try") 2>&5
  1628. ac_status=$?
  1629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1630. test $ac_status = 0; }; }; then :
  1631. ac_retval=0
  1632. else
  1633. $as_echo "$as_me: program exited with status $ac_status" >&5
  1634. $as_echo "$as_me: failed program was:" >&5
  1635. sed 's/^/| /' conftest.$ac_ext >&5
  1636. ac_retval=$ac_status
  1637. fi
  1638. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1639. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1640. as_fn_set_status $ac_retval
  1641. } # ac_fn_cxx_try_run
  1642. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1643. # -------------------------------------------------------
  1644. # Tests whether HEADER exists and can be compiled using the include files in
  1645. # INCLUDES, setting the cache variable VAR accordingly.
  1646. ac_fn_c_check_header_compile ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1650. $as_echo_n "checking for $2... " >&6; }
  1651. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1655. /* end confdefs.h. */
  1656. $4
  1657. #include <$2>
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. eval "$3=yes"
  1661. else
  1662. eval "$3=no"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. fi
  1666. eval ac_res=\$$3
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1668. $as_echo "$ac_res" >&6; }
  1669. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1670. } # ac_fn_c_check_header_compile
  1671. # ac_fn_c_try_run LINENO
  1672. # ----------------------
  1673. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1674. # that executables *can* be run.
  1675. ac_fn_c_try_run ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. if { { ac_try="$ac_link"
  1679. case "(($ac_try" in
  1680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1681. *) ac_try_echo=$ac_try;;
  1682. esac
  1683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1684. $as_echo "$ac_try_echo"; } >&5
  1685. (eval "$ac_link") 2>&5
  1686. ac_status=$?
  1687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1688. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1689. { { case "(($ac_try" in
  1690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1691. *) ac_try_echo=$ac_try;;
  1692. esac
  1693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1694. $as_echo "$ac_try_echo"; } >&5
  1695. (eval "$ac_try") 2>&5
  1696. ac_status=$?
  1697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1698. test $ac_status = 0; }; }; then :
  1699. ac_retval=0
  1700. else
  1701. $as_echo "$as_me: program exited with status $ac_status" >&5
  1702. $as_echo "$as_me: failed program was:" >&5
  1703. sed 's/^/| /' conftest.$ac_ext >&5
  1704. ac_retval=$ac_status
  1705. fi
  1706. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1707. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1708. as_fn_set_status $ac_retval
  1709. } # ac_fn_c_try_run
  1710. # ac_fn_c_check_func LINENO FUNC VAR
  1711. # ----------------------------------
  1712. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1713. ac_fn_c_check_func ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1717. $as_echo_n "checking for $2... " >&6; }
  1718. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1719. $as_echo_n "(cached) " >&6
  1720. else
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1724. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1725. #define $2 innocuous_$2
  1726. /* System header to define __stub macros and hopefully few prototypes,
  1727. which can conflict with char $2 (); below.
  1728. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1729. <limits.h> exists even on freestanding compilers. */
  1730. #ifdef __STDC__
  1731. # include <limits.h>
  1732. #else
  1733. # include <assert.h>
  1734. #endif
  1735. #undef $2
  1736. /* Override any GCC internal prototype to avoid an error.
  1737. Use char because int might match the return type of a GCC
  1738. builtin and then its argument prototype would still apply. */
  1739. #ifdef __cplusplus
  1740. extern "C"
  1741. #endif
  1742. char $2 ();
  1743. /* The GNU C library defines this for functions which it implements
  1744. to always fail with ENOSYS. Some functions are actually named
  1745. something starting with __ and the normal name is an alias. */
  1746. #if defined __stub_$2 || defined __stub___$2
  1747. choke me
  1748. #endif
  1749. int
  1750. main ()
  1751. {
  1752. return $2 ();
  1753. ;
  1754. return 0;
  1755. }
  1756. _ACEOF
  1757. if ac_fn_c_try_link "$LINENO"; then :
  1758. eval "$3=yes"
  1759. else
  1760. eval "$3=no"
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext \
  1763. conftest$ac_exeext conftest.$ac_ext
  1764. fi
  1765. eval ac_res=\$$3
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1767. $as_echo "$ac_res" >&6; }
  1768. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1769. } # ac_fn_c_check_func
  1770. # ac_fn_cxx_try_link LINENO
  1771. # -------------------------
  1772. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1773. ac_fn_cxx_try_link ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. rm -f conftest.$ac_objext conftest$ac_exeext
  1777. if { { ac_try="$ac_link"
  1778. case "(($ac_try" in
  1779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1780. *) ac_try_echo=$ac_try;;
  1781. esac
  1782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1783. $as_echo "$ac_try_echo"; } >&5
  1784. (eval "$ac_link") 2>conftest.err
  1785. ac_status=$?
  1786. if test -s conftest.err; then
  1787. grep -v '^ *+' conftest.err >conftest.er1
  1788. cat conftest.er1 >&5
  1789. mv -f conftest.er1 conftest.err
  1790. fi
  1791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1792. test $ac_status = 0; } && {
  1793. test -z "$ac_cxx_werror_flag" ||
  1794. test ! -s conftest.err
  1795. } && test -s conftest$ac_exeext && {
  1796. test "$cross_compiling" = yes ||
  1797. $as_test_x conftest$ac_exeext
  1798. }; then :
  1799. ac_retval=0
  1800. else
  1801. $as_echo "$as_me: failed program was:" >&5
  1802. sed 's/^/| /' conftest.$ac_ext >&5
  1803. ac_retval=1
  1804. fi
  1805. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1806. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1807. # interfere with the next link command; also delete a directory that is
  1808. # left behind by Apple's compiler. We do this before executing the actions.
  1809. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1810. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1811. as_fn_set_status $ac_retval
  1812. } # ac_fn_cxx_try_link
  1813. cat >config.log <<_ACEOF
  1814. This file contains any messages produced by compilers while
  1815. running configure, to aid debugging if configure makes a mistake.
  1816. It was created by $as_me, which was
  1817. generated by GNU Autoconf 2.65. Invocation command line was
  1818. $ $0 $@
  1819. _ACEOF
  1820. exec 5>>config.log
  1821. {
  1822. cat <<_ASUNAME
  1823. ## --------- ##
  1824. ## Platform. ##
  1825. ## --------- ##
  1826. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1827. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1828. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1829. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1830. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1831. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1832. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1833. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1834. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1835. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1836. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1837. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1838. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1839. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1840. _ASUNAME
  1841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1842. for as_dir in $PATH
  1843. do
  1844. IFS=$as_save_IFS
  1845. test -z "$as_dir" && as_dir=.
  1846. $as_echo "PATH: $as_dir"
  1847. done
  1848. IFS=$as_save_IFS
  1849. } >&5
  1850. cat >&5 <<_ACEOF
  1851. ## ----------- ##
  1852. ## Core tests. ##
  1853. ## ----------- ##
  1854. _ACEOF
  1855. # Keep a trace of the command line.
  1856. # Strip out --no-create and --no-recursion so they do not pile up.
  1857. # Strip out --silent because we don't want to record it for future runs.
  1858. # Also quote any args containing shell meta-characters.
  1859. # Make two passes to allow for proper duplicate-argument suppression.
  1860. ac_configure_args=
  1861. ac_configure_args0=
  1862. ac_configure_args1=
  1863. ac_must_keep_next=false
  1864. for ac_pass in 1 2
  1865. do
  1866. for ac_arg
  1867. do
  1868. case $ac_arg in
  1869. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1870. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1871. | -silent | --silent | --silen | --sile | --sil)
  1872. continue ;;
  1873. *\'*)
  1874. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1875. esac
  1876. case $ac_pass in
  1877. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1878. 2)
  1879. as_fn_append ac_configure_args1 " '$ac_arg'"
  1880. if test $ac_must_keep_next = true; then
  1881. ac_must_keep_next=false # Got value, back to normal.
  1882. else
  1883. case $ac_arg in
  1884. *=* | --config-cache | -C | -disable-* | --disable-* \
  1885. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1886. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1887. | -with-* | --with-* | -without-* | --without-* | --x)
  1888. case "$ac_configure_args0 " in
  1889. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1890. esac
  1891. ;;
  1892. -* ) ac_must_keep_next=true ;;
  1893. esac
  1894. fi
  1895. as_fn_append ac_configure_args " '$ac_arg'"
  1896. ;;
  1897. esac
  1898. done
  1899. done
  1900. { ac_configure_args0=; unset ac_configure_args0;}
  1901. { ac_configure_args1=; unset ac_configure_args1;}
  1902. # When interrupted or exit'd, cleanup temporary files, and complete
  1903. # config.log. We remove comments because anyway the quotes in there
  1904. # would cause problems or look ugly.
  1905. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1906. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1907. trap 'exit_status=$?
  1908. # Save into config.log some information that might help in debugging.
  1909. {
  1910. echo
  1911. cat <<\_ASBOX
  1912. ## ---------------- ##
  1913. ## Cache variables. ##
  1914. ## ---------------- ##
  1915. _ASBOX
  1916. echo
  1917. # The following way of writing the cache mishandles newlines in values,
  1918. (
  1919. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1920. eval ac_val=\$$ac_var
  1921. case $ac_val in #(
  1922. *${as_nl}*)
  1923. case $ac_var in #(
  1924. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1925. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1926. esac
  1927. case $ac_var in #(
  1928. _ | IFS | as_nl) ;; #(
  1929. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1930. *) { eval $ac_var=; unset $ac_var;} ;;
  1931. esac ;;
  1932. esac
  1933. done
  1934. (set) 2>&1 |
  1935. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1936. *${as_nl}ac_space=\ *)
  1937. sed -n \
  1938. "s/'\''/'\''\\\\'\'''\''/g;
  1939. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1940. ;; #(
  1941. *)
  1942. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1943. ;;
  1944. esac |
  1945. sort
  1946. )
  1947. echo
  1948. cat <<\_ASBOX
  1949. ## ----------------- ##
  1950. ## Output variables. ##
  1951. ## ----------------- ##
  1952. _ASBOX
  1953. echo
  1954. for ac_var in $ac_subst_vars
  1955. do
  1956. eval ac_val=\$$ac_var
  1957. case $ac_val in
  1958. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1959. esac
  1960. $as_echo "$ac_var='\''$ac_val'\''"
  1961. done | sort
  1962. echo
  1963. if test -n "$ac_subst_files"; then
  1964. cat <<\_ASBOX
  1965. ## ------------------- ##
  1966. ## File substitutions. ##
  1967. ## ------------------- ##
  1968. _ASBOX
  1969. echo
  1970. for ac_var in $ac_subst_files
  1971. do
  1972. eval ac_val=\$$ac_var
  1973. case $ac_val in
  1974. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1975. esac
  1976. $as_echo "$ac_var='\''$ac_val'\''"
  1977. done | sort
  1978. echo
  1979. fi
  1980. if test -s confdefs.h; then
  1981. cat <<\_ASBOX
  1982. ## ----------- ##
  1983. ## confdefs.h. ##
  1984. ## ----------- ##
  1985. _ASBOX
  1986. echo
  1987. cat confdefs.h
  1988. echo
  1989. fi
  1990. test "$ac_signal" != 0 &&
  1991. $as_echo "$as_me: caught signal $ac_signal"
  1992. $as_echo "$as_me: exit $exit_status"
  1993. } >&5
  1994. rm -f core *.core core.conftest.* &&
  1995. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1996. exit $exit_status
  1997. ' 0
  1998. for ac_signal in 1 2 13 15; do
  1999. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2000. done
  2001. ac_signal=0
  2002. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2003. rm -f -r conftest* confdefs.h
  2004. $as_echo "/* confdefs.h */" > confdefs.h
  2005. # Predefined preprocessor variables.
  2006. cat >>confdefs.h <<_ACEOF
  2007. #define PACKAGE_NAME "$PACKAGE_NAME"
  2008. _ACEOF
  2009. cat >>confdefs.h <<_ACEOF
  2010. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2011. _ACEOF
  2012. cat >>confdefs.h <<_ACEOF
  2013. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2014. _ACEOF
  2015. cat >>confdefs.h <<_ACEOF
  2016. #define PACKAGE_STRING "$PACKAGE_STRING"
  2017. _ACEOF
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_URL "$PACKAGE_URL"
  2023. _ACEOF
  2024. # Let the site file select an alternate cache file if it wants to.
  2025. # Prefer an explicitly selected file to automatically selected ones.
  2026. ac_site_file1=NONE
  2027. ac_site_file2=NONE
  2028. if test -n "$CONFIG_SITE"; then
  2029. ac_site_file1=$CONFIG_SITE
  2030. elif test "x$prefix" != xNONE; then
  2031. ac_site_file1=$prefix/share/config.site
  2032. ac_site_file2=$prefix/etc/config.site
  2033. else
  2034. ac_site_file1=$ac_default_prefix/share/config.site
  2035. ac_site_file2=$ac_default_prefix/etc/config.site
  2036. fi
  2037. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2038. do
  2039. test "x$ac_site_file" = xNONE && continue
  2040. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2042. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2043. sed 's/^/| /' "$ac_site_file" >&5
  2044. . "$ac_site_file"
  2045. fi
  2046. done
  2047. if test -r "$cache_file"; then
  2048. # Some versions of bash will fail to source /dev/null (special files
  2049. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2050. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2052. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2053. case $cache_file in
  2054. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2055. *) . "./$cache_file";;
  2056. esac
  2057. fi
  2058. else
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2060. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2061. >$cache_file
  2062. fi
  2063. # Check that the precious variables saved in the cache have kept the same
  2064. # value.
  2065. ac_cache_corrupted=false
  2066. for ac_var in $ac_precious_vars; do
  2067. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2068. eval ac_new_set=\$ac_env_${ac_var}_set
  2069. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2070. eval ac_new_val=\$ac_env_${ac_var}_value
  2071. case $ac_old_set,$ac_new_set in
  2072. set,)
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2074. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2075. ac_cache_corrupted=: ;;
  2076. ,set)
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2078. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2079. ac_cache_corrupted=: ;;
  2080. ,);;
  2081. *)
  2082. if test "x$ac_old_val" != "x$ac_new_val"; then
  2083. # differences in whitespace do not lead to failure.
  2084. ac_old_val_w=`echo x $ac_old_val`
  2085. ac_new_val_w=`echo x $ac_new_val`
  2086. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2088. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2089. ac_cache_corrupted=:
  2090. else
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2092. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2093. eval $ac_var=\$ac_old_val
  2094. fi
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2096. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2098. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2099. fi;;
  2100. esac
  2101. # Pass precious variables to config.status.
  2102. if test "$ac_new_set" = set; then
  2103. case $ac_new_val in
  2104. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2105. *) ac_arg=$ac_var=$ac_new_val ;;
  2106. esac
  2107. case " $ac_configure_args " in
  2108. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2109. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2110. esac
  2111. fi
  2112. done
  2113. if $ac_cache_corrupted; then
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2115. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2117. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2118. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2119. fi
  2120. ## -------------------- ##
  2121. ## Main body of script. ##
  2122. ## -------------------- ##
  2123. ac_ext=c
  2124. ac_cpp='$CPP $CPPFLAGS'
  2125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2129. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2130. if test "${ac_cv_path_GREP+set}" = set; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. if test -z "$GREP"; then
  2134. ac_path_GREP_found=false
  2135. # Loop through the user's path and test for each of PROGNAME-LIST
  2136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2137. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2138. do
  2139. IFS=$as_save_IFS
  2140. test -z "$as_dir" && as_dir=.
  2141. for ac_prog in grep ggrep; do
  2142. for ac_exec_ext in '' $ac_executable_extensions; do
  2143. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2144. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2145. # Check for GNU ac_path_GREP and select it if it is found.
  2146. # Check for GNU $ac_path_GREP
  2147. case `"$ac_path_GREP" --version 2>&1` in
  2148. *GNU*)
  2149. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2150. *)
  2151. ac_count=0
  2152. $as_echo_n 0123456789 >"conftest.in"
  2153. while :
  2154. do
  2155. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2156. mv "conftest.tmp" "conftest.in"
  2157. cp "conftest.in" "conftest.nl"
  2158. $as_echo 'GREP' >> "conftest.nl"
  2159. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2160. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2161. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2162. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2163. # Best one so far, save it but keep looking for a better one
  2164. ac_cv_path_GREP="$ac_path_GREP"
  2165. ac_path_GREP_max=$ac_count
  2166. fi
  2167. # 10*(2^10) chars as input seems more than enough
  2168. test $ac_count -gt 10 && break
  2169. done
  2170. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2171. esac
  2172. $ac_path_GREP_found && break 3
  2173. done
  2174. done
  2175. done
  2176. IFS=$as_save_IFS
  2177. if test -z "$ac_cv_path_GREP"; then
  2178. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2179. fi
  2180. else
  2181. ac_cv_path_GREP=$GREP
  2182. fi
  2183. fi
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2185. $as_echo "$ac_cv_path_GREP" >&6; }
  2186. GREP="$ac_cv_path_GREP"
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2188. $as_echo_n "checking for egrep... " >&6; }
  2189. if test "${ac_cv_path_EGREP+set}" = set; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2193. then ac_cv_path_EGREP="$GREP -E"
  2194. else
  2195. if test -z "$EGREP"; then
  2196. ac_path_EGREP_found=false
  2197. # Loop through the user's path and test for each of PROGNAME-LIST
  2198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2199. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2200. do
  2201. IFS=$as_save_IFS
  2202. test -z "$as_dir" && as_dir=.
  2203. for ac_prog in egrep; do
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2206. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2207. # Check for GNU ac_path_EGREP and select it if it is found.
  2208. # Check for GNU $ac_path_EGREP
  2209. case `"$ac_path_EGREP" --version 2>&1` in
  2210. *GNU*)
  2211. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2212. *)
  2213. ac_count=0
  2214. $as_echo_n 0123456789 >"conftest.in"
  2215. while :
  2216. do
  2217. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2218. mv "conftest.tmp" "conftest.in"
  2219. cp "conftest.in" "conftest.nl"
  2220. $as_echo 'EGREP' >> "conftest.nl"
  2221. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2222. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2223. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2224. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2225. # Best one so far, save it but keep looking for a better one
  2226. ac_cv_path_EGREP="$ac_path_EGREP"
  2227. ac_path_EGREP_max=$ac_count
  2228. fi
  2229. # 10*(2^10) chars as input seems more than enough
  2230. test $ac_count -gt 10 && break
  2231. done
  2232. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2233. esac
  2234. $ac_path_EGREP_found && break 3
  2235. done
  2236. done
  2237. done
  2238. IFS=$as_save_IFS
  2239. if test -z "$ac_cv_path_EGREP"; then
  2240. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2241. fi
  2242. else
  2243. ac_cv_path_EGREP=$EGREP
  2244. fi
  2245. fi
  2246. fi
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2248. $as_echo "$ac_cv_path_EGREP" >&6; }
  2249. EGREP="$ac_cv_path_EGREP"
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2251. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2252. if test "${ac_cv_path_SED+set}" = set; then :
  2253. $as_echo_n "(cached) " >&6
  2254. else
  2255. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2256. for ac_i in 1 2 3 4 5 6 7; do
  2257. ac_script="$ac_script$as_nl$ac_script"
  2258. done
  2259. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2260. { ac_script=; unset ac_script;}
  2261. if test -z "$SED"; then
  2262. ac_path_SED_found=false
  2263. # Loop through the user's path and test for each of PROGNAME-LIST
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_prog in sed gsed; do
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2272. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2273. # Check for GNU ac_path_SED and select it if it is found.
  2274. # Check for GNU $ac_path_SED
  2275. case `"$ac_path_SED" --version 2>&1` in
  2276. *GNU*)
  2277. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2278. *)
  2279. ac_count=0
  2280. $as_echo_n 0123456789 >"conftest.in"
  2281. while :
  2282. do
  2283. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2284. mv "conftest.tmp" "conftest.in"
  2285. cp "conftest.in" "conftest.nl"
  2286. $as_echo '' >> "conftest.nl"
  2287. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2288. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2289. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2290. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2291. # Best one so far, save it but keep looking for a better one
  2292. ac_cv_path_SED="$ac_path_SED"
  2293. ac_path_SED_max=$ac_count
  2294. fi
  2295. # 10*(2^10) chars as input seems more than enough
  2296. test $ac_count -gt 10 && break
  2297. done
  2298. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2299. esac
  2300. $ac_path_SED_found && break 3
  2301. done
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. if test -z "$ac_cv_path_SED"; then
  2306. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2307. fi
  2308. else
  2309. ac_cv_path_SED=$SED
  2310. fi
  2311. fi
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2313. $as_echo "$ac_cv_path_SED" >&6; }
  2314. SED="$ac_cv_path_SED"
  2315. rm -f conftest.sed
  2316. PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
  2317. PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
  2318. test -f config.nice && mv config.nice config.nice.old
  2319. rm -f config.nice.old
  2320. cat >config.nice<<EOF
  2321. #! /bin/sh
  2322. #
  2323. # Created by configure
  2324. EOF
  2325. for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
  2326. eval val=\$$var
  2327. if test -n "$val"; then
  2328. echo "$var='$val' \\" >> config.nice
  2329. fi
  2330. done
  2331. echo "'$0' \\" >> config.nice
  2332. if test `expr -- $0 : "'.*"` = 0; then
  2333. CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
  2334. else
  2335. CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
  2336. fi
  2337. for arg in $ac_configure_args; do
  2338. if test `expr -- $arg : "'.*"` = 0; then
  2339. if test `expr -- $arg : "--.*"` = 0; then
  2340. break;
  2341. fi
  2342. echo "'$arg' \\" >> config.nice
  2343. CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
  2344. else
  2345. if test `expr -- $arg : "'--.*"` = 0; then
  2346. break;
  2347. fi
  2348. echo "$arg \\" >> config.nice
  2349. CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
  2350. fi
  2351. done
  2352. echo '"$@"' >> config.nice
  2353. chmod +x config.nice
  2354. CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
  2355. PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
  2356. PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
  2357. test -z "$CFLAGS" && auto_cflags=1
  2358. abs_srcdir=`(cd $srcdir && pwd)`
  2359. abs_builddir=`pwd`
  2360. ac_ext=c
  2361. ac_cpp='$CPP $CPPFLAGS'
  2362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2365. if test -n "$ac_tool_prefix"; then
  2366. for ac_prog in cc gcc
  2367. do
  2368. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2369. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2371. $as_echo_n "checking for $ac_word... " >&6; }
  2372. if test "${ac_cv_prog_CC+set}" = set; then :
  2373. $as_echo_n "(cached) " >&6
  2374. else
  2375. if test -n "$CC"; then
  2376. ac_cv_prog_CC="$CC" # Let the user override the test.
  2377. else
  2378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2379. for as_dir in $PATH
  2380. do
  2381. IFS=$as_save_IFS
  2382. test -z "$as_dir" && as_dir=.
  2383. for ac_exec_ext in '' $ac_executable_extensions; do
  2384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2385. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2387. break 2
  2388. fi
  2389. done
  2390. done
  2391. IFS=$as_save_IFS
  2392. fi
  2393. fi
  2394. CC=$ac_cv_prog_CC
  2395. if test -n "$CC"; then
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2397. $as_echo "$CC" >&6; }
  2398. else
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2400. $as_echo "no" >&6; }
  2401. fi
  2402. test -n "$CC" && break
  2403. done
  2404. fi
  2405. if test -z "$CC"; then
  2406. ac_ct_CC=$CC
  2407. for ac_prog in cc gcc
  2408. do
  2409. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2410. set dummy $ac_prog; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$ac_ct_CC"; then
  2417. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2426. ac_cv_prog_ac_ct_CC="$ac_prog"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2436. if test -n "$ac_ct_CC"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2438. $as_echo "$ac_ct_CC" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. test -n "$ac_ct_CC" && break
  2444. done
  2445. if test "x$ac_ct_CC" = x; then
  2446. CC=""
  2447. else
  2448. case $cross_compiling:$ac_tool_warned in
  2449. yes:)
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2452. ac_tool_warned=yes ;;
  2453. esac
  2454. CC=$ac_ct_CC
  2455. fi
  2456. fi
  2457. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2458. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2459. as_fn_error "no acceptable C compiler found in \$PATH
  2460. See \`config.log' for more details." "$LINENO" 5; }
  2461. # Provide some information about the compiler.
  2462. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2463. set X $ac_compile
  2464. ac_compiler=$2
  2465. for ac_option in --version -v -V -qversion; do
  2466. { { ac_try="$ac_compiler $ac_option >&5"
  2467. case "(($ac_try" in
  2468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2469. *) ac_try_echo=$ac_try;;
  2470. esac
  2471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2472. $as_echo "$ac_try_echo"; } >&5
  2473. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2474. ac_status=$?
  2475. if test -s conftest.err; then
  2476. sed '10a\
  2477. ... rest of stderr output deleted ...
  2478. 10q' conftest.err >conftest.er1
  2479. cat conftest.er1 >&5
  2480. fi
  2481. rm -f conftest.er1 conftest.err
  2482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2483. test $ac_status = 0; }
  2484. done
  2485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2486. /* end confdefs.h. */
  2487. int
  2488. main ()
  2489. {
  2490. ;
  2491. return 0;
  2492. }
  2493. _ACEOF
  2494. ac_clean_files_save=$ac_clean_files
  2495. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2496. # Try to create an executable without -o first, disregard a.out.
  2497. # It will help us diagnose broken compilers, and finding out an intuition
  2498. # of exeext.
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2500. $as_echo_n "checking whether the C compiler works... " >&6; }
  2501. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2502. # The possible output files:
  2503. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2504. ac_rmfiles=
  2505. for ac_file in $ac_files
  2506. do
  2507. case $ac_file in
  2508. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2509. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2510. esac
  2511. done
  2512. rm -f $ac_rmfiles
  2513. if { { ac_try="$ac_link_default"
  2514. case "(($ac_try" in
  2515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2516. *) ac_try_echo=$ac_try;;
  2517. esac
  2518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2519. $as_echo "$ac_try_echo"; } >&5
  2520. (eval "$ac_link_default") 2>&5
  2521. ac_status=$?
  2522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2523. test $ac_status = 0; }; then :
  2524. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2525. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2526. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2527. # so that the user can short-circuit this test for compilers unknown to
  2528. # Autoconf.
  2529. for ac_file in $ac_files ''
  2530. do
  2531. test -f "$ac_file" || continue
  2532. case $ac_file in
  2533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2534. ;;
  2535. [ab].out )
  2536. # We found the default executable, but exeext='' is most
  2537. # certainly right.
  2538. break;;
  2539. *.* )
  2540. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2541. then :; else
  2542. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2543. fi
  2544. # We set ac_cv_exeext here because the later test for it is not
  2545. # safe: cross compilers may not add the suffix if given an `-o'
  2546. # argument, so we may need to know it at that point already.
  2547. # Even if this section looks crufty: it has the advantage of
  2548. # actually working.
  2549. break;;
  2550. * )
  2551. break;;
  2552. esac
  2553. done
  2554. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2555. else
  2556. ac_file=''
  2557. fi
  2558. if test -z "$ac_file"; then :
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2560. $as_echo "no" >&6; }
  2561. $as_echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2565. { as_fn_set_status 77
  2566. as_fn_error "C compiler cannot create executables
  2567. See \`config.log' for more details." "$LINENO" 5; }; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2570. $as_echo "yes" >&6; }
  2571. fi
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2573. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2575. $as_echo "$ac_file" >&6; }
  2576. ac_exeext=$ac_cv_exeext
  2577. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2578. ac_clean_files=$ac_clean_files_save
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2580. $as_echo_n "checking for suffix of executables... " >&6; }
  2581. if { { ac_try="$ac_link"
  2582. case "(($ac_try" in
  2583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2584. *) ac_try_echo=$ac_try;;
  2585. esac
  2586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2587. $as_echo "$ac_try_echo"; } >&5
  2588. (eval "$ac_link") 2>&5
  2589. ac_status=$?
  2590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2591. test $ac_status = 0; }; then :
  2592. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2593. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2594. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2595. # `rm'.
  2596. for ac_file in conftest.exe conftest conftest.*; do
  2597. test -f "$ac_file" || continue
  2598. case $ac_file in
  2599. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2600. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2601. break;;
  2602. * ) break;;
  2603. esac
  2604. done
  2605. else
  2606. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2608. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2609. See \`config.log' for more details." "$LINENO" 5; }
  2610. fi
  2611. rm -f conftest conftest$ac_cv_exeext
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2613. $as_echo "$ac_cv_exeext" >&6; }
  2614. rm -f conftest.$ac_ext
  2615. EXEEXT=$ac_cv_exeext
  2616. ac_exeext=$EXEEXT
  2617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2618. /* end confdefs.h. */
  2619. #include <stdio.h>
  2620. int
  2621. main ()
  2622. {
  2623. FILE *f = fopen ("conftest.out", "w");
  2624. return ferror (f) || fclose (f) != 0;
  2625. ;
  2626. return 0;
  2627. }
  2628. _ACEOF
  2629. ac_clean_files="$ac_clean_files conftest.out"
  2630. # Check that the compiler produces executables we can run. If not, either
  2631. # the compiler is broken, or we cross compile.
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2633. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2634. if test "$cross_compiling" != yes; then
  2635. { { ac_try="$ac_link"
  2636. case "(($ac_try" in
  2637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2638. *) ac_try_echo=$ac_try;;
  2639. esac
  2640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2641. $as_echo "$ac_try_echo"; } >&5
  2642. (eval "$ac_link") 2>&5
  2643. ac_status=$?
  2644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2645. test $ac_status = 0; }
  2646. if { ac_try='./conftest$ac_cv_exeext'
  2647. { { case "(($ac_try" in
  2648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2649. *) ac_try_echo=$ac_try;;
  2650. esac
  2651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2652. $as_echo "$ac_try_echo"; } >&5
  2653. (eval "$ac_try") 2>&5
  2654. ac_status=$?
  2655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2656. test $ac_status = 0; }; }; then
  2657. cross_compiling=no
  2658. else
  2659. if test "$cross_compiling" = maybe; then
  2660. cross_compiling=yes
  2661. else
  2662. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2664. as_fn_error "cannot run C compiled programs.
  2665. If you meant to cross compile, use \`--host'.
  2666. See \`config.log' for more details." "$LINENO" 5; }
  2667. fi
  2668. fi
  2669. fi
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2671. $as_echo "$cross_compiling" >&6; }
  2672. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2673. ac_clean_files=$ac_clean_files_save
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2675. $as_echo_n "checking for suffix of object files... " >&6; }
  2676. if test "${ac_cv_objext+set}" = set; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2680. /* end confdefs.h. */
  2681. int
  2682. main ()
  2683. {
  2684. ;
  2685. return 0;
  2686. }
  2687. _ACEOF
  2688. rm -f conftest.o conftest.obj
  2689. if { { ac_try="$ac_compile"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2695. $as_echo "$ac_try_echo"; } >&5
  2696. (eval "$ac_compile") 2>&5
  2697. ac_status=$?
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2699. test $ac_status = 0; }; then :
  2700. for ac_file in conftest.o conftest.obj conftest.*; do
  2701. test -f "$ac_file" || continue;
  2702. case $ac_file in
  2703. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2704. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2705. break;;
  2706. esac
  2707. done
  2708. else
  2709. $as_echo "$as_me: failed program was:" >&5
  2710. sed 's/^/| /' conftest.$ac_ext >&5
  2711. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2713. as_fn_error "cannot compute suffix of object files: cannot compile
  2714. See \`config.log' for more details." "$LINENO" 5; }
  2715. fi
  2716. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2717. fi
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2719. $as_echo "$ac_cv_objext" >&6; }
  2720. OBJEXT=$ac_cv_objext
  2721. ac_objext=$OBJEXT
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2723. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2724. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2728. /* end confdefs.h. */
  2729. int
  2730. main ()
  2731. {
  2732. #ifndef __GNUC__
  2733. choke me
  2734. #endif
  2735. ;
  2736. return 0;
  2737. }
  2738. _ACEOF
  2739. if ac_fn_c_try_compile "$LINENO"; then :
  2740. ac_compiler_gnu=yes
  2741. else
  2742. ac_compiler_gnu=no
  2743. fi
  2744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2745. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2748. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2749. if test $ac_compiler_gnu = yes; then
  2750. GCC=yes
  2751. else
  2752. GCC=
  2753. fi
  2754. ac_test_CFLAGS=${CFLAGS+set}
  2755. ac_save_CFLAGS=$CFLAGS
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2757. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2758. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2759. $as_echo_n "(cached) " >&6
  2760. else
  2761. ac_save_c_werror_flag=$ac_c_werror_flag
  2762. ac_c_werror_flag=yes
  2763. ac_cv_prog_cc_g=no
  2764. CFLAGS="-g"
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. if ac_fn_c_try_compile "$LINENO"; then :
  2775. ac_cv_prog_cc_g=yes
  2776. else
  2777. CFLAGS=""
  2778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2779. /* end confdefs.h. */
  2780. int
  2781. main ()
  2782. {
  2783. ;
  2784. return 0;
  2785. }
  2786. _ACEOF
  2787. if ac_fn_c_try_compile "$LINENO"; then :
  2788. else
  2789. ac_c_werror_flag=$ac_save_c_werror_flag
  2790. CFLAGS="-g"
  2791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2792. /* end confdefs.h. */
  2793. int
  2794. main ()
  2795. {
  2796. ;
  2797. return 0;
  2798. }
  2799. _ACEOF
  2800. if ac_fn_c_try_compile "$LINENO"; then :
  2801. ac_cv_prog_cc_g=yes
  2802. fi
  2803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2804. fi
  2805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2806. fi
  2807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2808. ac_c_werror_flag=$ac_save_c_werror_flag
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2811. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2812. if test "$ac_test_CFLAGS" = set; then
  2813. CFLAGS=$ac_save_CFLAGS
  2814. elif test $ac_cv_prog_cc_g = yes; then
  2815. if test "$GCC" = yes; then
  2816. CFLAGS="-g -O2"
  2817. else
  2818. CFLAGS="-g"
  2819. fi
  2820. else
  2821. if test "$GCC" = yes; then
  2822. CFLAGS="-O2"
  2823. else
  2824. CFLAGS=
  2825. fi
  2826. fi
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2828. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2829. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. ac_cv_prog_cc_c89=no
  2833. ac_save_CC=$CC
  2834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2835. /* end confdefs.h. */
  2836. #include <stdarg.h>
  2837. #include <stdio.h>
  2838. #include <sys/types.h>
  2839. #include <sys/stat.h>
  2840. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2841. struct buf { int x; };
  2842. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2843. static char *e (p, i)
  2844. char **p;
  2845. int i;
  2846. {
  2847. return p[i];
  2848. }
  2849. static char *f (char * (*g) (char **, int), char **p, ...)
  2850. {
  2851. char *s;
  2852. va_list v;
  2853. va_start (v,p);
  2854. s = g (p, va_arg (v,int));
  2855. va_end (v);
  2856. return s;
  2857. }
  2858. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2859. function prototypes and stuff, but not '\xHH' hex character constants.
  2860. These don't provoke an error unfortunately, instead are silently treated
  2861. as 'x'. The following induces an error, until -std is added to get
  2862. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2863. array size at least. It's necessary to write '\x00'==0 to get something
  2864. that's true only with -std. */
  2865. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2866. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2867. inside strings and character constants. */
  2868. #define FOO(x) 'x'
  2869. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2870. int test (int i, double x);
  2871. struct s1 {int (*f) (int a);};
  2872. struct s2 {int (*f) (double a);};
  2873. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2874. int argc;
  2875. char **argv;
  2876. int
  2877. main ()
  2878. {
  2879. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2885. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2886. do
  2887. CC="$ac_save_CC $ac_arg"
  2888. if ac_fn_c_try_compile "$LINENO"; then :
  2889. ac_cv_prog_cc_c89=$ac_arg
  2890. fi
  2891. rm -f core conftest.err conftest.$ac_objext
  2892. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2893. done
  2894. rm -f conftest.$ac_ext
  2895. CC=$ac_save_CC
  2896. fi
  2897. # AC_CACHE_VAL
  2898. case "x$ac_cv_prog_cc_c89" in
  2899. x)
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2901. $as_echo "none needed" >&6; } ;;
  2902. xno)
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2904. $as_echo "unsupported" >&6; } ;;
  2905. *)
  2906. CC="$CC $ac_cv_prog_cc_c89"
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2908. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2909. esac
  2910. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2911. fi
  2912. ac_ext=c
  2913. ac_cpp='$CPP $CPPFLAGS'
  2914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2917. ac_ext=c
  2918. ac_cpp='$CPP $CPPFLAGS'
  2919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2923. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2924. # On Suns, sometimes $CPP names a directory.
  2925. if test -n "$CPP" && test -d "$CPP"; then
  2926. CPP=
  2927. fi
  2928. if test -z "$CPP"; then
  2929. if test "${ac_cv_prog_CPP+set}" = set; then :
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. # Double quotes because CPP needs to be expanded
  2933. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2934. do
  2935. ac_preproc_ok=false
  2936. for ac_c_preproc_warn_flag in '' yes
  2937. do
  2938. # Use a header file that comes with gcc, so configuring glibc
  2939. # with a fresh cross-compiler works.
  2940. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2941. # <limits.h> exists even on freestanding compilers.
  2942. # On the NeXT, cc -E runs the code through the compiler's parser,
  2943. # not just through cpp. "Syntax error" is here to catch this case.
  2944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2945. /* end confdefs.h. */
  2946. #ifdef __STDC__
  2947. # include <limits.h>
  2948. #else
  2949. # include <assert.h>
  2950. #endif
  2951. Syntax error
  2952. _ACEOF
  2953. if ac_fn_c_try_cpp "$LINENO"; then :
  2954. else
  2955. # Broken: fails on valid input.
  2956. continue
  2957. fi
  2958. rm -f conftest.err conftest.$ac_ext
  2959. # OK, works on sane cases. Now check whether nonexistent headers
  2960. # can be detected and how.
  2961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2962. /* end confdefs.h. */
  2963. #include <ac_nonexistent.h>
  2964. _ACEOF
  2965. if ac_fn_c_try_cpp "$LINENO"; then :
  2966. # Broken: success on invalid input.
  2967. continue
  2968. else
  2969. # Passes both tests.
  2970. ac_preproc_ok=:
  2971. break
  2972. fi
  2973. rm -f conftest.err conftest.$ac_ext
  2974. done
  2975. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2976. rm -f conftest.err conftest.$ac_ext
  2977. if $ac_preproc_ok; then :
  2978. break
  2979. fi
  2980. done
  2981. ac_cv_prog_CPP=$CPP
  2982. fi
  2983. CPP=$ac_cv_prog_CPP
  2984. else
  2985. ac_cv_prog_CPP=$CPP
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2988. $as_echo "$CPP" >&6; }
  2989. ac_preproc_ok=false
  2990. for ac_c_preproc_warn_flag in '' yes
  2991. do
  2992. # Use a header file that comes with gcc, so configuring glibc
  2993. # with a fresh cross-compiler works.
  2994. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2995. # <limits.h> exists even on freestanding compilers.
  2996. # On the NeXT, cc -E runs the code through the compiler's parser,
  2997. # not just through cpp. "Syntax error" is here to catch this case.
  2998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2999. /* end confdefs.h. */
  3000. #ifdef __STDC__
  3001. # include <limits.h>
  3002. #else
  3003. # include <assert.h>
  3004. #endif
  3005. Syntax error
  3006. _ACEOF
  3007. if ac_fn_c_try_cpp "$LINENO"; then :
  3008. else
  3009. # Broken: fails on valid input.
  3010. continue
  3011. fi
  3012. rm -f conftest.err conftest.$ac_ext
  3013. # OK, works on sane cases. Now check whether nonexistent headers
  3014. # can be detected and how.
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. #include <ac_nonexistent.h>
  3018. _ACEOF
  3019. if ac_fn_c_try_cpp "$LINENO"; then :
  3020. # Broken: success on invalid input.
  3021. continue
  3022. else
  3023. # Passes both tests.
  3024. ac_preproc_ok=:
  3025. break
  3026. fi
  3027. rm -f conftest.err conftest.$ac_ext
  3028. done
  3029. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3030. rm -f conftest.err conftest.$ac_ext
  3031. if $ac_preproc_ok; then :
  3032. else
  3033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3036. See \`config.log' for more details." "$LINENO" 5; }
  3037. fi
  3038. ac_ext=c
  3039. ac_cpp='$CPP $CPPFLAGS'
  3040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3043. ICC="no"
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
  3045. $as_echo_n "checking for icc... " >&6; }
  3046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3047. /* end confdefs.h. */
  3048. __INTEL_COMPILER
  3049. _ACEOF
  3050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3051. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
  3052. ICC="no"
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3054. $as_echo "no" >&6; }
  3055. else
  3056. ICC="yes"
  3057. GCC="no"
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3059. $as_echo "yes" >&6; }
  3060. fi
  3061. rm -f conftest*
  3062. SUNCC="no"
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
  3064. $as_echo_n "checking for suncc... " >&6; }
  3065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3066. /* end confdefs.h. */
  3067. __SUNPRO_C
  3068. _ACEOF
  3069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3070. $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
  3071. SUNCC="no"
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3073. $as_echo "no" >&6; }
  3074. else
  3075. SUNCC="yes"
  3076. GCC="no"
  3077. test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
  3078. GCC=""
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3080. $as_echo "yes" >&6; }
  3081. fi
  3082. rm -f conftest*
  3083. if test "x$CC" != xcc; then
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3085. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3086. else
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3088. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3089. fi
  3090. set dummy $CC; ac_cc=`$as_echo "$2" |
  3091. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3092. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3093. $as_echo_n "(cached) " >&6
  3094. else
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. # Make sure it works both with $CC and with simple cc.
  3105. # We do the test twice because some compilers refuse to overwrite an
  3106. # existing .o file with -o, though they will create one.
  3107. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3108. rm -f conftest2.*
  3109. if { { case "(($ac_try" in
  3110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3111. *) ac_try_echo=$ac_try;;
  3112. esac
  3113. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3114. $as_echo "$ac_try_echo"; } >&5
  3115. (eval "$ac_try") 2>&5
  3116. ac_status=$?
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3118. test $ac_status = 0; } &&
  3119. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_try") 2>&5
  3126. ac_status=$?
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3128. test $ac_status = 0; };
  3129. then
  3130. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3131. if test "x$CC" != xcc; then
  3132. # Test first that cc exists at all.
  3133. if { ac_try='cc -c conftest.$ac_ext >&5'
  3134. { { case "(($ac_try" in
  3135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3136. *) ac_try_echo=$ac_try;;
  3137. esac
  3138. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3139. $as_echo "$ac_try_echo"; } >&5
  3140. (eval "$ac_try") 2>&5
  3141. ac_status=$?
  3142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3143. test $ac_status = 0; }; }; then
  3144. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3145. rm -f conftest2.*
  3146. if { { case "(($ac_try" in
  3147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3148. *) ac_try_echo=$ac_try;;
  3149. esac
  3150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3151. $as_echo "$ac_try_echo"; } >&5
  3152. (eval "$ac_try") 2>&5
  3153. ac_status=$?
  3154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3155. test $ac_status = 0; } &&
  3156. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3158. *) ac_try_echo=$ac_try;;
  3159. esac
  3160. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3161. $as_echo "$ac_try_echo"; } >&5
  3162. (eval "$ac_try") 2>&5
  3163. ac_status=$?
  3164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3165. test $ac_status = 0; };
  3166. then
  3167. # cc works too.
  3168. :
  3169. else
  3170. # cc exists but doesn't like -o.
  3171. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3172. fi
  3173. fi
  3174. fi
  3175. else
  3176. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3177. fi
  3178. rm -f core conftest*
  3179. fi
  3180. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3182. $as_echo "yes" >&6; }
  3183. else
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3185. $as_echo "no" >&6; }
  3186. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3187. fi
  3188. php_with_libdir=lib
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
  3190. $as_echo_n "checking for system library directory... " >&6; }
  3191. # Check whether --with-libdir was given.
  3192. if test "${with_libdir+set}" = set; then :
  3193. withval=$with_libdir; PHP_LIBDIR=$withval
  3194. else
  3195. PHP_LIBDIR=lib
  3196. if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
  3197. PHP_LIBDIR=$PHP_ENABLE_ALL
  3198. fi
  3199. fi
  3200. ext_output=$PHP_LIBDIR
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
  3202. $as_echo "$ext_output" >&6; }
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
  3204. $as_echo_n "checking if compiler supports -R... " >&6; }
  3205. if test "${php_cv_cc_dashr+set}" = set; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. SAVE_LIBS=$LIBS
  3209. LIBS="-R /usr/$PHP_LIBDIR $LIBS"
  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_c_try_link "$LINENO"; then :
  3220. php_cv_cc_dashr=yes
  3221. else
  3222. php_cv_cc_dashr=no
  3223. fi
  3224. rm -f core conftest.err conftest.$ac_objext \
  3225. conftest$ac_exeext conftest.$ac_ext
  3226. LIBS=$SAVE_LIBS
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
  3229. $as_echo "$php_cv_cc_dashr" >&6; }
  3230. if test $php_cv_cc_dashr = "yes"; then
  3231. ld_runpath_switch=-R
  3232. else
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
  3234. $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
  3235. if test "${php_cv_cc_rpath+set}" = set; then :
  3236. $as_echo_n "(cached) " >&6
  3237. else
  3238. SAVE_LIBS=$LIBS
  3239. LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
  3240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end confdefs.h. */
  3242. int
  3243. main ()
  3244. {
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. if ac_fn_c_try_link "$LINENO"; then :
  3250. php_cv_cc_rpath=yes
  3251. else
  3252. php_cv_cc_rpath=no
  3253. fi
  3254. rm -f core conftest.err conftest.$ac_objext \
  3255. conftest$ac_exeext conftest.$ac_ext
  3256. LIBS=$SAVE_LIBS
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
  3259. $as_echo "$php_cv_cc_rpath" >&6; }
  3260. if test $php_cv_cc_rpath = "yes"; then
  3261. ld_runpath_switch=-Wl,-rpath,
  3262. else
  3263. ld_runpath_switch=-L
  3264. fi
  3265. fi
  3266. if test "$PHP_RPATH" = "no"; then
  3267. ld_runpath_switch=
  3268. fi
  3269. ac_aux_dir=
  3270. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3271. for ac_t in install-sh install.sh shtool; do
  3272. if test -f "$ac_dir/$ac_t"; then
  3273. ac_aux_dir=$ac_dir
  3274. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3275. break 2
  3276. fi
  3277. done
  3278. done
  3279. if test -z "$ac_aux_dir"; then
  3280. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3281. fi
  3282. # These three variables are undocumented and unsupported,
  3283. # and are intended to be withdrawn in a future Autoconf release.
  3284. # They can cause serious problems if a builder's source tree is in a directory
  3285. # whose full name contains unusual characters.
  3286. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3287. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3288. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3289. # Make sure we can run config.sub.
  3290. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3291. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3293. $as_echo_n "checking build system type... " >&6; }
  3294. if test "${ac_cv_build+set}" = set; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. ac_build_alias=$build_alias
  3298. test "x$ac_build_alias" = x &&
  3299. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3300. test "x$ac_build_alias" = x &&
  3301. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3302. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3303. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3304. fi
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3306. $as_echo "$ac_cv_build" >&6; }
  3307. case $ac_cv_build in
  3308. *-*-*) ;;
  3309. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3310. esac
  3311. build=$ac_cv_build
  3312. ac_save_IFS=$IFS; IFS='-'
  3313. set x $ac_cv_build
  3314. shift
  3315. build_cpu=$1
  3316. build_vendor=$2
  3317. shift; shift
  3318. # Remember, the first character of IFS is used to create $*,
  3319. # except with old shells:
  3320. build_os=$*
  3321. IFS=$ac_save_IFS
  3322. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3324. $as_echo_n "checking host system type... " >&6; }
  3325. if test "${ac_cv_host+set}" = set; then :
  3326. $as_echo_n "(cached) " >&6
  3327. else
  3328. if test "x$host_alias" = x; then
  3329. ac_cv_host=$ac_cv_build
  3330. else
  3331. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3332. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3333. fi
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3336. $as_echo "$ac_cv_host" >&6; }
  3337. case $ac_cv_host in
  3338. *-*-*) ;;
  3339. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3340. esac
  3341. host=$ac_cv_host
  3342. ac_save_IFS=$IFS; IFS='-'
  3343. set x $ac_cv_host
  3344. shift
  3345. host_cpu=$1
  3346. host_vendor=$2
  3347. shift; shift
  3348. # Remember, the first character of IFS is used to create $*,
  3349. # except with old shells:
  3350. host_os=$*
  3351. IFS=$ac_save_IFS
  3352. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3354. $as_echo_n "checking target system type... " >&6; }
  3355. if test "${ac_cv_target+set}" = set; then :
  3356. $as_echo_n "(cached) " >&6
  3357. else
  3358. if test "x$target_alias" = x; then
  3359. ac_cv_target=$ac_cv_host
  3360. else
  3361. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3362. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3363. fi
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3366. $as_echo "$ac_cv_target" >&6; }
  3367. case $ac_cv_target in
  3368. *-*-*) ;;
  3369. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3370. esac
  3371. target=$ac_cv_target
  3372. ac_save_IFS=$IFS; IFS='-'
  3373. set x $ac_cv_target
  3374. shift
  3375. target_cpu=$1
  3376. target_vendor=$2
  3377. shift; shift
  3378. # Remember, the first character of IFS is used to create $*,
  3379. # except with old shells:
  3380. target_os=$*
  3381. IFS=$ac_save_IFS
  3382. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3383. # The aliases save the names the user supplied, while $host etc.
  3384. # will get canonicalized.
  3385. test -n "$target_alias" &&
  3386. test "$program_prefix$program_suffix$program_transform_name" = \
  3387. NONENONEs,x,x, &&
  3388. program_prefix=${target_alias}-
  3389. if test -z "$host_alias" && test -n "$host"; then
  3390. host_alias=$host
  3391. fi
  3392. if test -z "$host_alias"; then
  3393. as_fn_error "host_alias is not set!" "$LINENO" 5
  3394. fi
  3395. PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
  3396. PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
  3397. SHLIB_SUFFIX_NAME=so
  3398. SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
  3399. case $host_alias in
  3400. *hpux*)
  3401. SHLIB_SUFFIX_NAME=sl
  3402. SHLIB_DL_SUFFIX_NAME=sl
  3403. ;;
  3404. *darwin*)
  3405. SHLIB_SUFFIX_NAME=dylib
  3406. SHLIB_DL_SUFFIX_NAME=so
  3407. ;;
  3408. esac
  3409. php_with_php_config=php-config
  3410. # Check whether --with-php-config was given.
  3411. if test "${with_php_config+set}" = set; then :
  3412. withval=$with_php_config; PHP_PHP_CONFIG=$withval
  3413. else
  3414. PHP_PHP_CONFIG=php-config
  3415. if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
  3416. PHP_PHP_CONFIG=$PHP_ENABLE_ALL
  3417. fi
  3418. fi
  3419. ext_output=$PHP_PHP_CONFIG
  3420. PHP_CONFIG=$PHP_PHP_CONFIG
  3421. prefix=`$PHP_CONFIG --prefix 2>/dev/null`
  3422. phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
  3423. INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
  3424. EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
  3425. PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
  3426. if test -z "$prefix"; then
  3427. as_fn_error "Cannot find php-config. Please use --with-php-config=PATH" "$LINENO" 5
  3428. fi
  3429. php_shtool=$srcdir/build/shtool
  3430. test -d include || $php_shtool mkdir include
  3431. > Makefile.objects
  3432. > Makefile.fragments
  3433. pattern=define
  3434. $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP prefix" >&5
  3436. $as_echo_n "checking for PHP prefix... " >&6; }
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $prefix" >&5
  3438. $as_echo "$prefix" >&6; }
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP includes" >&5
  3440. $as_echo_n "checking for PHP includes... " >&6; }
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INCLUDES" >&5
  3442. $as_echo "$INCLUDES" >&6; }
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP extension directory" >&5
  3444. $as_echo_n "checking for PHP extension directory... " >&6; }
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTENSION_DIR" >&5
  3446. $as_echo "$EXTENSION_DIR" >&6; }
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP installed headers prefix" >&5
  3448. $as_echo_n "checking for PHP installed headers prefix... " >&6; }
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phpincludedir" >&5
  3450. $as_echo "$phpincludedir" >&6; }
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if debug is enabled" >&5
  3452. $as_echo_n "checking if debug is enabled... " >&6; }
  3453. old_CPPFLAGS=$CPPFLAGS
  3454. CPPFLAGS="-I$phpincludedir"
  3455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3456. /* end confdefs.h. */
  3457. #include <main/php_config.h>
  3458. #if ZEND_DEBUG
  3459. php_debug_is_enabled
  3460. #endif
  3461. _ACEOF
  3462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3463. $EGREP "php_debug_is_enabled" >/dev/null 2>&1; then :
  3464. PHP_DEBUG=yes
  3465. else
  3466. PHP_DEBUG=no
  3467. fi
  3468. rm -f conftest*
  3469. CPPFLAGS=$old_CPPFLAGS
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
  3471. $as_echo "$PHP_DEBUG" >&6; }
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zts is enabled" >&5
  3473. $as_echo_n "checking if zts is enabled... " >&6; }
  3474. old_CPPFLAGS=$CPPFLAGS
  3475. CPPFLAGS="-I$phpincludedir"
  3476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h. */
  3478. #include <main/php_config.h>
  3479. #if ZTS
  3480. php_zts_is_enabled
  3481. #endif
  3482. _ACEOF
  3483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3484. $EGREP "php_zts_is_enabled" >/dev/null 2>&1; then :
  3485. PHP_THREAD_SAFETY=yes
  3486. else
  3487. PHP_THREAD_SAFETY=no
  3488. fi
  3489. rm -f conftest*
  3490. CPPFLAGS=$old_CPPFLAGS
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
  3492. $as_echo "$PHP_DEBUG" >&6; }
  3493. ZEND_EXT_TYPE="zend_extension"
  3494. PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
  3495. if test "$PHP_DEBUG" = "yes"; then
  3496. PHP_DEBUG=1
  3497. ZEND_DEBUG=yes
  3498. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  3499. CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  3500. if test "$GCC" = "yes" || test "$ICC" = "yes"; then
  3501. CFLAGS="$CFLAGS -O0"
  3502. CXXFLAGS="$CXXFLAGS -O0"
  3503. fi
  3504. if test "$SUNCC" = "yes"; then
  3505. if test -n "$auto_cflags"; then
  3506. CFLAGS="-g"
  3507. CXXFLAGS="-g"
  3508. else
  3509. CFLAGS="$CFLAGS -g"
  3510. CXXFLAGS="$CFLAGS -g"
  3511. fi
  3512. fi
  3513. else
  3514. PHP_DEBUG=0
  3515. ZEND_DEBUG=no
  3516. fi
  3517. OVERALL_TARGET=php
  3518. php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
  3519. php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
  3520. php_c_post=
  3521. php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
  3522. php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
  3523. php_cxx_post=
  3524. php_lo=lo
  3525. case $with_pic in
  3526. yes) pic_setting='-prefer-pic';;
  3527. no) pic_setting='-prefer-non-pic';;
  3528. esac
  3529. shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
  3530. shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
  3531. shared_c_post=
  3532. shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
  3533. shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
  3534. shared_cxx_post=
  3535. shared_lo=lo
  3536. php_build_target=program
  3537. OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
  3538. php_build_target=shared
  3539. php_c_pre=$shared_c_pre
  3540. php_c_meta=$shared_c_meta
  3541. php_c_post=$shared_c_post
  3542. php_cxx_pre=$shared_cxx_pre
  3543. php_cxx_meta=$shared_cxx_meta
  3544. php_cxx_post=$shared_cxx_post
  3545. php_lo=$shared_lo
  3546. # Extract the first word of "re2c", so it can be a program name with args.
  3547. set dummy re2c; ac_word=$2
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3549. $as_echo_n "checking for $ac_word... " >&6; }
  3550. if test "${ac_cv_prog_RE2C+set}" = set; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. if test -n "$RE2C"; then
  3554. ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
  3555. else
  3556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3557. for as_dir in $PATH
  3558. do
  3559. IFS=$as_save_IFS
  3560. test -z "$as_dir" && as_dir=.
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3563. ac_cv_prog_RE2C="re2c"
  3564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3565. break 2
  3566. fi
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. fi
  3571. fi
  3572. RE2C=$ac_cv_prog_RE2C
  3573. if test -n "$RE2C"; then
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
  3575. $as_echo "$RE2C" >&6; }
  3576. else
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3578. $as_echo "no" >&6; }
  3579. fi
  3580. if test -n "$RE2C"; then
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
  3582. $as_echo_n "checking for re2c version... " >&6; }
  3583. if test "${php_cv_re2c_version+set}" = set; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. re2c_vernum=`$RE2C --vernum 2>/dev/null`
  3587. if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
  3588. php_cv_re2c_version=invalid
  3589. else
  3590. php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
  3591. fi
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
  3594. $as_echo "$php_cv_re2c_version" >&6; }
  3595. fi
  3596. case $php_cv_re2c_version in
  3597. ""|invalid)
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
  3599. $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
  3600. RE2C="exit 0;"
  3601. ;;
  3602. esac
  3603. PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
  3604. for ac_prog in gawk nawk awk mawk
  3605. do
  3606. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3607. set dummy $ac_prog; ac_word=$2
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3609. $as_echo_n "checking for $ac_word... " >&6; }
  3610. if test "${ac_cv_prog_AWK+set}" = set; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. if test -n "$AWK"; then
  3614. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3615. else
  3616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3617. as_dummy="/usr/xpg4/bin/:$PATH"
  3618. for as_dir in $as_dummy
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_exec_ext in '' $ac_executable_extensions; do
  3623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3624. ac_cv_prog_AWK="$ac_prog"
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3626. break 2
  3627. fi
  3628. done
  3629. done
  3630. IFS=$as_save_IFS
  3631. fi
  3632. fi
  3633. AWK=$ac_cv_prog_AWK
  3634. if test -n "$AWK"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3636. $as_echo "$AWK" >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. test -n "$AWK" && break
  3642. done
  3643. test -n "$AWK" || AWK="bork"
  3644. case "$AWK" in
  3645. *mawk)
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
  3647. $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
  3648. ;;
  3649. *gawk)
  3650. ;;
  3651. bork)
  3652. as_fn_error "Could not find awk; Install GNU awk" "$LINENO" 5
  3653. ;;
  3654. *)
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
  3656. $as_echo_n "checking if $AWK is broken... " >&6; }
  3657. if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3659. $as_echo "yes" >&6; }
  3660. as_fn_error "You should install GNU awk" "$LINENO" 5
  3661. else
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. fi
  3665. ;;
  3666. esac
  3667. PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
  3668. php_with_v8js=no
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 Javascript Engine" >&5
  3670. $as_echo_n "checking for V8 Javascript Engine... " >&6; }
  3671. # Check whether --with-v8js was given.
  3672. if test "${with_v8js+set}" = set; then :
  3673. withval=$with_v8js; PHP_V8JS=$withval
  3674. else
  3675. PHP_V8JS=no
  3676. if test "$PHP_ENABLE_ALL" && test "yes" = "yes"; then
  3677. PHP_V8JS=$PHP_ENABLE_ALL
  3678. fi
  3679. fi
  3680. ext_output="yes, shared"
  3681. ext_shared=yes
  3682. case $PHP_V8JS in
  3683. shared,*)
  3684. PHP_V8JS=`echo "$PHP_V8JS"|$SED 's/^shared,//'`
  3685. ;;
  3686. shared)
  3687. PHP_V8JS=yes
  3688. ;;
  3689. no)
  3690. ext_output=no
  3691. ext_shared=no
  3692. ;;
  3693. *)
  3694. ext_output=yes
  3695. ext_shared=no
  3696. ;;
  3697. esac
  3698. ext_output="yes, shared"
  3699. ext_shared=yes
  3700. test "$PHP_V8JS" = "no" && PHP_V8JS=yes
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
  3702. $as_echo "$ext_output" >&6; }
  3703. if test "$PHP_V8JS" != "no"; then
  3704. SEARCH_PATH="/usr/local /usr"
  3705. SEARCH_FOR="/include/v8.h"
  3706. if test -r $PHP_V8JS/$SEARCH_FOR; then
  3707. V8_DIR=$PHP_V8JS
  3708. else
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 files in default path" >&5
  3710. $as_echo_n "checking for V8 files in default path... " >&6; }
  3711. for i in $SEARCH_PATH ; do
  3712. if test -r $i/$SEARCH_FOR; then
  3713. V8_DIR=$i
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
  3715. $as_echo "found in $i" >&6; }
  3716. fi
  3717. done
  3718. fi
  3719. if test -z "$V8_DIR"; then
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  3721. $as_echo "not found" >&6; }
  3722. as_fn_error "Please reinstall the v8 distribution" "$LINENO" 5
  3723. fi
  3724. if test "$V8_DIR/include" != "/usr/include"; then
  3725. if test -z "$V8_DIR/include" || echo "$V8_DIR/include" | grep '^/' >/dev/null ; then
  3726. ai_p=$V8_DIR/include
  3727. else
  3728. ep_dir="`echo $V8_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
  3729. ep_realdir="`(cd \"$ep_dir\" && pwd)`"
  3730. ai_p="$ep_realdir/`basename \"$V8_DIR/include\"`"
  3731. fi
  3732. unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
  3733. cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
  3734. if test -n "$unique" && test "`eval $cmd`" = "" ; then
  3735. eval "INCLUDEPATH$unique=set"
  3736. if test ""; then
  3737. INCLUDES="-I$ai_p $INCLUDES"
  3738. else
  3739. INCLUDES="$INCLUDES -I$ai_p"
  3740. fi
  3741. fi
  3742. fi
  3743. if test "$ext_shared" = "yes"; then
  3744. V8JS_SHARED_LIBADD="-lv8 $V8JS_SHARED_LIBADD"
  3745. if test -n "$V8_DIR/$PHP_LIBDIR"; then
  3746. if test "$V8_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$V8_DIR/$PHP_LIBDIR" != "/usr/lib"; then
  3747. if test -z "$V8_DIR/$PHP_LIBDIR" || echo "$V8_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
  3748. ai_p=$V8_DIR/$PHP_LIBDIR
  3749. else
  3750. ep_dir="`echo $V8_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
  3751. ep_realdir="`(cd \"$ep_dir\" && pwd)`"
  3752. ai_p="$ep_realdir/`basename \"$V8_DIR/$PHP_LIBDIR\"`"
  3753. fi
  3754. if test "$ext_shared" = "yes"; then
  3755. V8JS_SHARED_LIBADD="-L$ai_p $V8JS_SHARED_LIBADD"
  3756. test -n "$ld_runpath_switch" && V8JS_SHARED_LIBADD="$ld_runpath_switch$ai_p $V8JS_SHARED_LIBADD"
  3757. else
  3758. unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
  3759. cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
  3760. if test -n "$unique" && test "`eval $cmd`" = "" ; then
  3761. eval "LIBPATH$unique=set"
  3762. test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
  3763. LDFLAGS="$LDFLAGS -L$ai_p"
  3764. PHP_RPATHS="$PHP_RPATHS $ai_p"
  3765. fi
  3766. fi
  3767. fi
  3768. fi
  3769. else
  3770. if test -n "$V8_DIR/$PHP_LIBDIR"; then
  3771. if test "$V8_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$V8_DIR/$PHP_LIBDIR" != "/usr/lib"; then
  3772. if test -z "$V8_DIR/$PHP_LIBDIR" || echo "$V8_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
  3773. ai_p=$V8_DIR/$PHP_LIBDIR
  3774. else
  3775. ep_dir="`echo $V8_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
  3776. ep_realdir="`(cd \"$ep_dir\" && pwd)`"
  3777. ai_p="$ep_realdir/`basename \"$V8_DIR/$PHP_LIBDIR\"`"
  3778. fi
  3779. unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
  3780. cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
  3781. if test -n "$unique" && test "`eval $cmd`" = "" ; then
  3782. eval "LIBPATH$unique=set"
  3783. test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
  3784. LDFLAGS="$LDFLAGS -L$ai_p"
  3785. PHP_RPATHS="$PHP_RPATHS $ai_p"
  3786. fi
  3787. fi
  3788. fi
  3789. case v8 in
  3790. c|c_r|pthread*) ;;
  3791. *)
  3792. LIBS="-lv8 $LIBS"
  3793. ;;
  3794. esac
  3795. fi
  3796. PHP_VAR_SUBST="$PHP_VAR_SUBST V8JS_SHARED_LIBADD"
  3797. if test -z "$php_cxx_done"; then
  3798. ac_ext=cpp
  3799. ac_cpp='$CXXCPP $CPPFLAGS'
  3800. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3801. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3802. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3803. if test -z "$CXX"; then
  3804. if test -n "$CCC"; then
  3805. CXX=$CCC
  3806. else
  3807. if test -n "$ac_tool_prefix"; then
  3808. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3809. do
  3810. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if test "${ac_cv_prog_CXX+set}" = set; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$CXX"; then
  3818. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3827. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. CXX=$ac_cv_prog_CXX
  3837. if test -n "$CXX"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3839. $as_echo "$CXX" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$CXX" && break
  3845. done
  3846. fi
  3847. if test -z "$CXX"; then
  3848. ac_ct_CXX=$CXX
  3849. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3850. do
  3851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3852. set dummy $ac_prog; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$ac_ct_CXX"; then
  3859. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3860. else
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3868. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3870. break 2
  3871. fi
  3872. done
  3873. done
  3874. IFS=$as_save_IFS
  3875. fi
  3876. fi
  3877. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3878. if test -n "$ac_ct_CXX"; then
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3880. $as_echo "$ac_ct_CXX" >&6; }
  3881. else
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3883. $as_echo "no" >&6; }
  3884. fi
  3885. test -n "$ac_ct_CXX" && break
  3886. done
  3887. if test "x$ac_ct_CXX" = x; then
  3888. CXX="g++"
  3889. else
  3890. case $cross_compiling:$ac_tool_warned in
  3891. yes:)
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3894. ac_tool_warned=yes ;;
  3895. esac
  3896. CXX=$ac_ct_CXX
  3897. fi
  3898. fi
  3899. fi
  3900. fi
  3901. # Provide some information about the compiler.
  3902. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3903. set X $ac_compile
  3904. ac_compiler=$2
  3905. for ac_option in --version -v -V -qversion; do
  3906. { { ac_try="$ac_compiler $ac_option >&5"
  3907. case "(($ac_try" in
  3908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3909. *) ac_try_echo=$ac_try;;
  3910. esac
  3911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3912. $as_echo "$ac_try_echo"; } >&5
  3913. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3914. ac_status=$?
  3915. if test -s conftest.err; then
  3916. sed '10a\
  3917. ... rest of stderr output deleted ...
  3918. 10q' conftest.err >conftest.er1
  3919. cat conftest.er1 >&5
  3920. fi
  3921. rm -f conftest.er1 conftest.err
  3922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3923. test $ac_status = 0; }
  3924. done
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3926. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3927. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h. */
  3932. int
  3933. main ()
  3934. {
  3935. #ifndef __GNUC__
  3936. choke me
  3937. #endif
  3938. ;
  3939. return 0;
  3940. }
  3941. _ACEOF
  3942. if ac_fn_cxx_try_compile "$LINENO"; then :
  3943. ac_compiler_gnu=yes
  3944. else
  3945. ac_compiler_gnu=no
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3948. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3951. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3952. if test $ac_compiler_gnu = yes; then
  3953. GXX=yes
  3954. else
  3955. GXX=
  3956. fi
  3957. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3958. ac_save_CXXFLAGS=$CXXFLAGS
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3960. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3961. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3962. $as_echo_n "(cached) " >&6
  3963. else
  3964. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3965. ac_cxx_werror_flag=yes
  3966. ac_cv_prog_cxx_g=no
  3967. CXXFLAGS="-g"
  3968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h. */
  3970. int
  3971. main ()
  3972. {
  3973. ;
  3974. return 0;
  3975. }
  3976. _ACEOF
  3977. if ac_fn_cxx_try_compile "$LINENO"; then :
  3978. ac_cv_prog_cxx_g=yes
  3979. else
  3980. CXXFLAGS=""
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. int
  3984. main ()
  3985. {
  3986. ;
  3987. return 0;
  3988. }
  3989. _ACEOF
  3990. if ac_fn_cxx_try_compile "$LINENO"; then :
  3991. else
  3992. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3993. CXXFLAGS="-g"
  3994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h. */
  3996. int
  3997. main ()
  3998. {
  3999. ;
  4000. return 0;
  4001. }
  4002. _ACEOF
  4003. if ac_fn_cxx_try_compile "$LINENO"; then :
  4004. ac_cv_prog_cxx_g=yes
  4005. fi
  4006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4007. fi
  4008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4009. fi
  4010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4011. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4012. fi
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4014. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4015. if test "$ac_test_CXXFLAGS" = set; then
  4016. CXXFLAGS=$ac_save_CXXFLAGS
  4017. elif test $ac_cv_prog_cxx_g = yes; then
  4018. if test "$GXX" = yes; then
  4019. CXXFLAGS="-g -O2"
  4020. else
  4021. CXXFLAGS="-g"
  4022. fi
  4023. else
  4024. if test "$GXX" = yes; then
  4025. CXXFLAGS="-O2"
  4026. else
  4027. CXXFLAGS=
  4028. fi
  4029. fi
  4030. ac_ext=c
  4031. ac_cpp='$CPP $CPPFLAGS'
  4032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4035. ac_ext=cpp
  4036. ac_cpp='$CXXCPP $CPPFLAGS'
  4037. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4038. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4039. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4041. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4042. if test -z "$CXXCPP"; then
  4043. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. # Double quotes because CXXCPP needs to be expanded
  4047. for CXXCPP in "$CXX -E" "/lib/cpp"
  4048. do
  4049. ac_preproc_ok=false
  4050. for ac_cxx_preproc_warn_flag in '' yes
  4051. do
  4052. # Use a header file that comes with gcc, so configuring glibc
  4053. # with a fresh cross-compiler works.
  4054. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4055. # <limits.h> exists even on freestanding compilers.
  4056. # On the NeXT, cc -E runs the code through the compiler's parser,
  4057. # not just through cpp. "Syntax error" is here to catch this case.
  4058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end confdefs.h. */
  4060. #ifdef __STDC__
  4061. # include <limits.h>
  4062. #else
  4063. # include <assert.h>
  4064. #endif
  4065. Syntax error
  4066. _ACEOF
  4067. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4068. else
  4069. # Broken: fails on valid input.
  4070. continue
  4071. fi
  4072. rm -f conftest.err conftest.$ac_ext
  4073. # OK, works on sane cases. Now check whether nonexistent headers
  4074. # can be detected and how.
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. #include <ac_nonexistent.h>
  4078. _ACEOF
  4079. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4080. # Broken: success on invalid input.
  4081. continue
  4082. else
  4083. # Passes both tests.
  4084. ac_preproc_ok=:
  4085. break
  4086. fi
  4087. rm -f conftest.err conftest.$ac_ext
  4088. done
  4089. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4090. rm -f conftest.err conftest.$ac_ext
  4091. if $ac_preproc_ok; then :
  4092. break
  4093. fi
  4094. done
  4095. ac_cv_prog_CXXCPP=$CXXCPP
  4096. fi
  4097. CXXCPP=$ac_cv_prog_CXXCPP
  4098. else
  4099. ac_cv_prog_CXXCPP=$CXXCPP
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4102. $as_echo "$CXXCPP" >&6; }
  4103. ac_preproc_ok=false
  4104. for ac_cxx_preproc_warn_flag in '' yes
  4105. do
  4106. # Use a header file that comes with gcc, so configuring glibc
  4107. # with a fresh cross-compiler works.
  4108. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4109. # <limits.h> exists even on freestanding compilers.
  4110. # On the NeXT, cc -E runs the code through the compiler's parser,
  4111. # not just through cpp. "Syntax error" is here to catch this case.
  4112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4113. /* end confdefs.h. */
  4114. #ifdef __STDC__
  4115. # include <limits.h>
  4116. #else
  4117. # include <assert.h>
  4118. #endif
  4119. Syntax error
  4120. _ACEOF
  4121. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4122. else
  4123. # Broken: fails on valid input.
  4124. continue
  4125. fi
  4126. rm -f conftest.err conftest.$ac_ext
  4127. # OK, works on sane cases. Now check whether nonexistent headers
  4128. # can be detected and how.
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. #include <ac_nonexistent.h>
  4132. _ACEOF
  4133. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4134. # Broken: success on invalid input.
  4135. continue
  4136. else
  4137. # Passes both tests.
  4138. ac_preproc_ok=:
  4139. break
  4140. fi
  4141. rm -f conftest.err conftest.$ac_ext
  4142. done
  4143. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4144. rm -f conftest.err conftest.$ac_ext
  4145. if $ac_preproc_ok; then :
  4146. else
  4147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4149. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4150. See \`config.log' for more details." "$LINENO" 5; }
  4151. fi
  4152. ac_ext=c
  4153. ac_cpp='$CPP $CPPFLAGS'
  4154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4157. php_cxx_done=yes
  4158. fi
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 version" >&5
  4160. $as_echo_n "checking for V8 version... " >&6; }
  4161. if test "${ac_cv_v8_version+set}" = set; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. old_LIBS=$LIBS
  4165. old_LDFLAGS=$LDFLAGS
  4166. LDFLAGS=-L$V8_DIR/$PHP_LIBDIR
  4167. LIBS=-lv8
  4168. ac_ext=cpp
  4169. ac_cpp='$CXXCPP $CPPFLAGS'
  4170. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4171. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4172. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4173. if test "$cross_compiling" = yes; then :
  4174. ac_cv_v8_version=NONE
  4175. else
  4176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4177. /* end confdefs.h. */
  4178. #include <v8.h>
  4179. #include <iostream>
  4180. #include <fstream>
  4181. using namespace std;
  4182. int main ()
  4183. {
  4184. ofstream testfile ("conftestval");
  4185. if (testfile.is_open()) {
  4186. testfile << v8::V8::GetVersion();
  4187. testfile << "\n";
  4188. testfile.close();
  4189. return 0;
  4190. }
  4191. return 1;
  4192. }
  4193. _ACEOF
  4194. if ac_fn_cxx_try_run "$LINENO"; then :
  4195. ac_cv_v8_version=`cat ./conftestval`
  4196. else
  4197. ac_cv_v8_version=NONE
  4198. fi
  4199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4200. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4201. fi
  4202. ac_ext=c
  4203. ac_cpp='$CPP $CPPFLAGS'
  4204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4207. LIBS=$old_LIBS
  4208. LDFLAGS=$old_LDFLAGS
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_v8_version" >&5
  4211. $as_echo "$ac_cv_v8_version" >&6; }
  4212. if test "$ac_cv_v8_version" != "NONE"; then
  4213. ac_IFS=$IFS
  4214. IFS=.
  4215. set $ac_cv_v8_version
  4216. IFS=$ac_IFS
  4217. V8_API_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
  4218. cat >>confdefs.h <<_ACEOF
  4219. #define PHP_V8_API_VERSION $V8_API_VERSION
  4220. _ACEOF
  4221. cat >>confdefs.h <<_ACEOF
  4222. #define PHP_V8_VERSION "$ac_cv_v8_version"
  4223. _ACEOF
  4224. fi
  4225. ext_builddir=.
  4226. ext_srcdir=$abs_srcdir
  4227. ac_extra=
  4228. if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
  4229. PHP_V8JS_SHARED=no
  4230. case "" in
  4231. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  4232. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  4233. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  4234. esac
  4235. b_c_pre=$php_c_pre
  4236. b_cxx_pre=$php_cxx_pre
  4237. b_c_meta=$php_c_meta
  4238. b_cxx_meta=$php_cxx_meta
  4239. b_c_post=$php_c_post
  4240. b_cxx_post=$php_cxx_post
  4241. b_lo=$php_lo
  4242. old_IFS=$IFS
  4243. for ac_src in v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc; do
  4244. IFS=.
  4245. set $ac_src
  4246. ac_obj=$1
  4247. IFS=$old_IFS
  4248. PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
  4249. case $ac_src in
  4250. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4251. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4252. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4253. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  4254. esac
  4255. cat >>Makefile.objects<<EOF
  4256. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  4257. $ac_comp
  4258. EOF
  4259. done
  4260. EXT_STATIC="$EXT_STATIC v8js"
  4261. if test "$ext_shared" != "nocli"; then
  4262. EXT_CLI_STATIC="$EXT_CLI_STATIC v8js"
  4263. fi
  4264. else
  4265. if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
  4266. PHP_V8JS_SHARED=yes
  4267. case "" in
  4268. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  4269. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  4270. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  4271. esac
  4272. b_c_pre=$shared_c_pre
  4273. b_cxx_pre=$shared_cxx_pre
  4274. b_c_meta=$shared_c_meta
  4275. b_cxx_meta=$shared_cxx_meta
  4276. b_c_post=$shared_c_post
  4277. b_cxx_post=$shared_cxx_post
  4278. b_lo=$shared_lo
  4279. old_IFS=$IFS
  4280. for ac_src in v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc; do
  4281. IFS=.
  4282. set $ac_src
  4283. ac_obj=$1
  4284. IFS=$old_IFS
  4285. shared_objects_v8js="$shared_objects_v8js $ac_bdir$ac_obj.lo"
  4286. case $ac_src in
  4287. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4288. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4289. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4290. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  4291. esac
  4292. cat >>Makefile.objects<<EOF
  4293. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  4294. $ac_comp
  4295. EOF
  4296. done
  4297. case $host_alias in
  4298. *netware*)
  4299. install_modules="install-modules"
  4300. case $host_alias in
  4301. *aix*)
  4302. suffix=so
  4303. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpv8js.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) $(PHPV8JS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpv8js.so '$ext_builddir'/phpv8js.so'
  4304. ;;
  4305. *netware*)
  4306. suffix=nlm
  4307. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) -L$(top_builddir)/netware -lphp5lib $(V8JS_SHARED_LIBADD)'
  4308. ;;
  4309. *)
  4310. suffix=la
  4311. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) $(PHPV8JS_SHARED_LIBADD)'
  4312. ;;
  4313. esac
  4314. if test "x" = "xyes"; then
  4315. PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpv8js.$suffix"
  4316. else
  4317. PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpv8js.$suffix"
  4318. fi
  4319. PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_v8js"
  4320. cat >>Makefile.objects<<EOF
  4321. \$(phplibdir)/phpv8js.$suffix: $ext_builddir/phpv8js.$suffix
  4322. \$(LIBTOOL) --mode=install cp $ext_builddir/phpv8js.$suffix \$(phplibdir)
  4323. $ext_builddir/phpv8js.$suffix: \$(shared_objects_v8js) \$(PHPV8JS_SHARED_DEPENDENCIES)
  4324. $link_cmd
  4325. EOF
  4326. ;;
  4327. *)
  4328. install_modules="install-modules"
  4329. case $host_alias in
  4330. *aix*)
  4331. suffix=so
  4332. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/v8js.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) $(V8JS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/v8js.so '$ext_builddir'/v8js.so'
  4333. ;;
  4334. *netware*)
  4335. suffix=nlm
  4336. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) -L$(top_builddir)/netware -lphp5lib $(S_SHARED_LIBADD)'
  4337. ;;
  4338. *)
  4339. suffix=la
  4340. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_v8js) $(V8JS_SHARED_LIBADD)'
  4341. ;;
  4342. esac
  4343. if test "x" = "xyes"; then
  4344. PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/v8js.$suffix"
  4345. else
  4346. PHP_MODULES="$PHP_MODULES \$(phplibdir)/v8js.$suffix"
  4347. fi
  4348. PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_v8js"
  4349. cat >>Makefile.objects<<EOF
  4350. \$(phplibdir)/v8js.$suffix: $ext_builddir/v8js.$suffix
  4351. \$(LIBTOOL) --mode=install cp $ext_builddir/v8js.$suffix \$(phplibdir)
  4352. $ext_builddir/v8js.$suffix: \$(shared_objects_v8js) \$(V8JS_SHARED_DEPENDENCIES)
  4353. $link_cmd
  4354. EOF
  4355. ;;
  4356. esac
  4357. cat >>confdefs.h <<_ACEOF
  4358. #define COMPILE_DL_V8JS 1
  4359. _ACEOF
  4360. fi
  4361. fi
  4362. if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
  4363. PHP_V8JS_SHARED=no
  4364. case "$PHP_SAPI" in
  4365. cgi|embed)
  4366. case "" in
  4367. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  4368. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  4369. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  4370. esac
  4371. b_c_pre=$php_c_pre
  4372. b_cxx_pre=$php_cxx_pre
  4373. b_c_meta=$php_c_meta
  4374. b_cxx_meta=$php_cxx_meta
  4375. b_c_post=$php_c_post
  4376. b_cxx_post=$php_cxx_post
  4377. b_lo=$php_lo
  4378. old_IFS=$IFS
  4379. for ac_src in v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc; do
  4380. IFS=.
  4381. set $ac_src
  4382. ac_obj=$1
  4383. IFS=$old_IFS
  4384. PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
  4385. case $ac_src in
  4386. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4387. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4388. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4389. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  4390. esac
  4391. cat >>Makefile.objects<<EOF
  4392. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  4393. $ac_comp
  4394. EOF
  4395. done
  4396. EXT_STATIC="$EXT_STATIC v8js"
  4397. ;;
  4398. *)
  4399. case "" in
  4400. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  4401. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  4402. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  4403. esac
  4404. b_c_pre=$php_c_pre
  4405. b_cxx_pre=$php_cxx_pre
  4406. b_c_meta=$php_c_meta
  4407. b_cxx_meta=$php_cxx_meta
  4408. b_c_post=$php_c_post
  4409. b_cxx_post=$php_cxx_post
  4410. b_lo=$php_lo
  4411. old_IFS=$IFS
  4412. for ac_src in v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc; do
  4413. IFS=.
  4414. set $ac_src
  4415. ac_obj=$1
  4416. IFS=$old_IFS
  4417. PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
  4418. case $ac_src in
  4419. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4420. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4421. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  4422. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  4423. esac
  4424. cat >>Makefile.objects<<EOF
  4425. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  4426. $ac_comp
  4427. EOF
  4428. done
  4429. ;;
  4430. esac
  4431. EXT_CLI_STATIC="$EXT_CLI_STATIC v8js"
  4432. fi
  4433. BUILD_DIR="$BUILD_DIR $ext_builddir"
  4434. if test "$ext_builddir" = "."; then
  4435. PHP_PECL_EXTENSION=v8js
  4436. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
  4437. fi
  4438. src=$ext_srcdir/Makefile.frag
  4439. ac_srcdir=$ext_srcdir
  4440. ac_builddir=$ext_builddir
  4441. test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
  4442. fi
  4443. enable_static=no
  4444. enable_shared=yes
  4445. case `pwd` in
  4446. *\ * | *\ *)
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4448. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4449. esac
  4450. macro_version='2.2.6b'
  4451. macro_revision='1.3017'
  4452. ltmain="$ac_aux_dir/ltmain.sh"
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4454. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4455. if test "${ac_cv_path_SED+set}" = set; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4459. for ac_i in 1 2 3 4 5 6 7; do
  4460. ac_script="$ac_script$as_nl$ac_script"
  4461. done
  4462. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4463. { ac_script=; unset ac_script;}
  4464. if test -z "$SED"; then
  4465. ac_path_SED_found=false
  4466. # Loop through the user's path and test for each of PROGNAME-LIST
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_prog in sed gsed; do
  4473. for ac_exec_ext in '' $ac_executable_extensions; do
  4474. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4475. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4476. # Check for GNU ac_path_SED and select it if it is found.
  4477. # Check for GNU $ac_path_SED
  4478. case `"$ac_path_SED" --version 2>&1` in
  4479. *GNU*)
  4480. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4481. *)
  4482. ac_count=0
  4483. $as_echo_n 0123456789 >"conftest.in"
  4484. while :
  4485. do
  4486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4487. mv "conftest.tmp" "conftest.in"
  4488. cp "conftest.in" "conftest.nl"
  4489. $as_echo '' >> "conftest.nl"
  4490. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4493. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4494. # Best one so far, save it but keep looking for a better one
  4495. ac_cv_path_SED="$ac_path_SED"
  4496. ac_path_SED_max=$ac_count
  4497. fi
  4498. # 10*(2^10) chars as input seems more than enough
  4499. test $ac_count -gt 10 && break
  4500. done
  4501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4502. esac
  4503. $ac_path_SED_found && break 3
  4504. done
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. if test -z "$ac_cv_path_SED"; then
  4509. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4510. fi
  4511. else
  4512. ac_cv_path_SED=$SED
  4513. fi
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4516. $as_echo "$ac_cv_path_SED" >&6; }
  4517. SED="$ac_cv_path_SED"
  4518. rm -f conftest.sed
  4519. test -z "$SED" && SED=sed
  4520. Xsed="$SED -e 1s/^X//"
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4522. $as_echo_n "checking for fgrep... " >&6; }
  4523. if test "${ac_cv_path_FGREP+set}" = set; then :
  4524. $as_echo_n "(cached) " >&6
  4525. else
  4526. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4527. then ac_cv_path_FGREP="$GREP -F"
  4528. else
  4529. if test -z "$FGREP"; then
  4530. ac_path_FGREP_found=false
  4531. # Loop through the user's path and test for each of PROGNAME-LIST
  4532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4533. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4534. do
  4535. IFS=$as_save_IFS
  4536. test -z "$as_dir" && as_dir=.
  4537. for ac_prog in fgrep; do
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4540. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4541. # Check for GNU ac_path_FGREP and select it if it is found.
  4542. # Check for GNU $ac_path_FGREP
  4543. case `"$ac_path_FGREP" --version 2>&1` in
  4544. *GNU*)
  4545. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4546. *)
  4547. ac_count=0
  4548. $as_echo_n 0123456789 >"conftest.in"
  4549. while :
  4550. do
  4551. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4552. mv "conftest.tmp" "conftest.in"
  4553. cp "conftest.in" "conftest.nl"
  4554. $as_echo 'FGREP' >> "conftest.nl"
  4555. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4556. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4557. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4558. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4559. # Best one so far, save it but keep looking for a better one
  4560. ac_cv_path_FGREP="$ac_path_FGREP"
  4561. ac_path_FGREP_max=$ac_count
  4562. fi
  4563. # 10*(2^10) chars as input seems more than enough
  4564. test $ac_count -gt 10 && break
  4565. done
  4566. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4567. esac
  4568. $ac_path_FGREP_found && break 3
  4569. done
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. if test -z "$ac_cv_path_FGREP"; then
  4574. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4575. fi
  4576. else
  4577. ac_cv_path_FGREP=$FGREP
  4578. fi
  4579. fi
  4580. fi
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4582. $as_echo "$ac_cv_path_FGREP" >&6; }
  4583. FGREP="$ac_cv_path_FGREP"
  4584. test -z "$GREP" && GREP=grep
  4585. # Check whether --with-gnu-ld was given.
  4586. if test "${with_gnu_ld+set}" = set; then :
  4587. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4588. else
  4589. with_gnu_ld=no
  4590. fi
  4591. ac_prog=ld
  4592. if test "$GCC" = yes; then
  4593. # Check if gcc -print-prog-name=ld gives a path.
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4595. $as_echo_n "checking for ld used by $CC... " >&6; }
  4596. case $host in
  4597. *-*-mingw*)
  4598. # gcc leaves a trailing carriage return which upsets mingw
  4599. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4600. *)
  4601. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4602. esac
  4603. case $ac_prog in
  4604. # Accept absolute paths.
  4605. [\\/]* | ?:[\\/]*)
  4606. re_direlt='/[^/][^/]*/\.\./'
  4607. # Canonicalize the pathname of ld
  4608. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4609. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4610. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4611. done
  4612. test -z "$LD" && LD="$ac_prog"
  4613. ;;
  4614. "")
  4615. # If it fails, then pretend we aren't using GCC.
  4616. ac_prog=ld
  4617. ;;
  4618. *)
  4619. # If it is relative, then search for the first ld in PATH.
  4620. with_gnu_ld=unknown
  4621. ;;
  4622. esac
  4623. elif test "$with_gnu_ld" = yes; then
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4625. $as_echo_n "checking for GNU ld... " >&6; }
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4628. $as_echo_n "checking for non-GNU ld... " >&6; }
  4629. fi
  4630. if test "${lt_cv_path_LD+set}" = set; then :
  4631. $as_echo_n "(cached) " >&6
  4632. else
  4633. if test -z "$LD"; then
  4634. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4635. for ac_dir in $PATH; do
  4636. IFS="$lt_save_ifs"
  4637. test -z "$ac_dir" && ac_dir=.
  4638. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4639. lt_cv_path_LD="$ac_dir/$ac_prog"
  4640. # Check to see if the program is GNU ld. I'd rather use --version,
  4641. # but apparently some variants of GNU ld only accept -v.
  4642. # Break only if it was the GNU/non-GNU ld that we prefer.
  4643. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4644. *GNU* | *'with BFD'*)
  4645. test "$with_gnu_ld" != no && break
  4646. ;;
  4647. *)
  4648. test "$with_gnu_ld" != yes && break
  4649. ;;
  4650. esac
  4651. fi
  4652. done
  4653. IFS="$lt_save_ifs"
  4654. else
  4655. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4656. fi
  4657. fi
  4658. LD="$lt_cv_path_LD"
  4659. if test -n "$LD"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4661. $as_echo "$LD" >&6; }
  4662. else
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4664. $as_echo "no" >&6; }
  4665. fi
  4666. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4668. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4669. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4673. case `$LD -v 2>&1 </dev/null` in
  4674. *GNU* | *'with BFD'*)
  4675. lt_cv_prog_gnu_ld=yes
  4676. ;;
  4677. *)
  4678. lt_cv_prog_gnu_ld=no
  4679. ;;
  4680. esac
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4683. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4684. with_gnu_ld=$lt_cv_prog_gnu_ld
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4686. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4687. if test "${lt_cv_path_NM+set}" = set; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. if test -n "$NM"; then
  4691. # Let the user override the test.
  4692. lt_cv_path_NM="$NM"
  4693. else
  4694. lt_nm_to_check="${ac_tool_prefix}nm"
  4695. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4696. lt_nm_to_check="$lt_nm_to_check nm"
  4697. fi
  4698. for lt_tmp_nm in $lt_nm_to_check; do
  4699. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4700. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4701. IFS="$lt_save_ifs"
  4702. test -z "$ac_dir" && ac_dir=.
  4703. tmp_nm="$ac_dir/$lt_tmp_nm"
  4704. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4705. # Check to see if the nm accepts a BSD-compat flag.
  4706. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4707. # nm: unknown option "B" ignored
  4708. # Tru64's nm complains that /dev/null is an invalid object file
  4709. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4710. */dev/null* | *'Invalid file or object type'*)
  4711. lt_cv_path_NM="$tmp_nm -B"
  4712. break
  4713. ;;
  4714. *)
  4715. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4716. */dev/null*)
  4717. lt_cv_path_NM="$tmp_nm -p"
  4718. break
  4719. ;;
  4720. *)
  4721. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4722. continue # so that we can try to find one that supports BSD flags
  4723. ;;
  4724. esac
  4725. ;;
  4726. esac
  4727. fi
  4728. done
  4729. IFS="$lt_save_ifs"
  4730. done
  4731. : ${lt_cv_path_NM=no}
  4732. fi
  4733. fi
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4735. $as_echo "$lt_cv_path_NM" >&6; }
  4736. if test "$lt_cv_path_NM" != "no"; then
  4737. NM="$lt_cv_path_NM"
  4738. else
  4739. # Didn't find any BSD compatible name lister, look for dumpbin.
  4740. if test -n "$ac_tool_prefix"; then
  4741. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4742. do
  4743. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4744. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4746. $as_echo_n "checking for $ac_word... " >&6; }
  4747. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4748. $as_echo_n "(cached) " >&6
  4749. else
  4750. if test -n "$DUMPBIN"; then
  4751. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4752. else
  4753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4754. for as_dir in $PATH
  4755. do
  4756. IFS=$as_save_IFS
  4757. test -z "$as_dir" && as_dir=.
  4758. for ac_exec_ext in '' $ac_executable_extensions; do
  4759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4760. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4762. break 2
  4763. fi
  4764. done
  4765. done
  4766. IFS=$as_save_IFS
  4767. fi
  4768. fi
  4769. DUMPBIN=$ac_cv_prog_DUMPBIN
  4770. if test -n "$DUMPBIN"; then
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4772. $as_echo "$DUMPBIN" >&6; }
  4773. else
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4775. $as_echo "no" >&6; }
  4776. fi
  4777. test -n "$DUMPBIN" && break
  4778. done
  4779. fi
  4780. if test -z "$DUMPBIN"; then
  4781. ac_ct_DUMPBIN=$DUMPBIN
  4782. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4783. do
  4784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4785. set dummy $ac_prog; ac_word=$2
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4787. $as_echo_n "checking for $ac_word... " >&6; }
  4788. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. if test -n "$ac_ct_DUMPBIN"; then
  4792. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4793. else
  4794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4795. for as_dir in $PATH
  4796. do
  4797. IFS=$as_save_IFS
  4798. test -z "$as_dir" && as_dir=.
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4801. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4803. break 2
  4804. fi
  4805. done
  4806. done
  4807. IFS=$as_save_IFS
  4808. fi
  4809. fi
  4810. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4811. if test -n "$ac_ct_DUMPBIN"; then
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4813. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4814. else
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4816. $as_echo "no" >&6; }
  4817. fi
  4818. test -n "$ac_ct_DUMPBIN" && break
  4819. done
  4820. if test "x$ac_ct_DUMPBIN" = x; then
  4821. DUMPBIN=":"
  4822. else
  4823. case $cross_compiling:$ac_tool_warned in
  4824. yes:)
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4827. ac_tool_warned=yes ;;
  4828. esac
  4829. DUMPBIN=$ac_ct_DUMPBIN
  4830. fi
  4831. fi
  4832. if test "$DUMPBIN" != ":"; then
  4833. NM="$DUMPBIN"
  4834. fi
  4835. fi
  4836. test -z "$NM" && NM=nm
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4838. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4839. if test "${lt_cv_nm_interface+set}" = set; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. lt_cv_nm_interface="BSD nm"
  4843. echo "int some_variable = 0;" > conftest.$ac_ext
  4844. (eval echo "\"\$as_me:5597: $ac_compile\"" >&5)
  4845. (eval "$ac_compile" 2>conftest.err)
  4846. cat conftest.err >&5
  4847. (eval echo "\"\$as_me:5600: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4848. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4849. cat conftest.err >&5
  4850. (eval echo "\"\$as_me:5603: output\"" >&5)
  4851. cat conftest.out >&5
  4852. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4853. lt_cv_nm_interface="MS dumpbin"
  4854. fi
  4855. rm -f conftest*
  4856. fi
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4858. $as_echo "$lt_cv_nm_interface" >&6; }
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4860. $as_echo_n "checking whether ln -s works... " >&6; }
  4861. LN_S=$as_ln_s
  4862. if test "$LN_S" = "ln -s"; then
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4864. $as_echo "yes" >&6; }
  4865. else
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4867. $as_echo "no, using $LN_S" >&6; }
  4868. fi
  4869. # find the maximum length of command line arguments
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4871. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4872. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. i=0
  4876. teststring="ABCD"
  4877. case $build_os in
  4878. msdosdjgpp*)
  4879. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4880. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4881. # during glob expansion). Even if it were fixed, the result of this
  4882. # check would be larger than it should be.
  4883. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4884. ;;
  4885. gnu*)
  4886. # Under GNU Hurd, this test is not required because there is
  4887. # no limit to the length of command line arguments.
  4888. # Libtool will interpret -1 as no limit whatsoever
  4889. lt_cv_sys_max_cmd_len=-1;
  4890. ;;
  4891. cygwin* | mingw* | cegcc*)
  4892. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4893. # about 5 minutes as the teststring grows exponentially.
  4894. # Worse, since 9x/ME are not pre-emptively multitasking,
  4895. # you end up with a "frozen" computer, even though with patience
  4896. # the test eventually succeeds (with a max line length of 256k).
  4897. # Instead, let's just punt: use the minimum linelength reported by
  4898. # all of the supported platforms: 8192 (on NT/2K/XP).
  4899. lt_cv_sys_max_cmd_len=8192;
  4900. ;;
  4901. amigaos*)
  4902. # On AmigaOS with pdksh, this test takes hours, literally.
  4903. # So we just punt and use a minimum line length of 8192.
  4904. lt_cv_sys_max_cmd_len=8192;
  4905. ;;
  4906. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4907. # This has been around since 386BSD, at least. Likely further.
  4908. if test -x /sbin/sysctl; then
  4909. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4910. elif test -x /usr/sbin/sysctl; then
  4911. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4912. else
  4913. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4914. fi
  4915. # And add a safety zone
  4916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4917. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4918. ;;
  4919. interix*)
  4920. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4921. lt_cv_sys_max_cmd_len=196608
  4922. ;;
  4923. osf*)
  4924. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4925. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4926. # nice to cause kernel panics so lets avoid the loop below.
  4927. # First set a reasonable default.
  4928. lt_cv_sys_max_cmd_len=16384
  4929. #
  4930. if test -x /sbin/sysconfig; then
  4931. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4932. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4933. esac
  4934. fi
  4935. ;;
  4936. sco3.2v5*)
  4937. lt_cv_sys_max_cmd_len=102400
  4938. ;;
  4939. sysv5* | sco5v6* | sysv4.2uw2*)
  4940. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4941. if test -n "$kargmax"; then
  4942. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4943. else
  4944. lt_cv_sys_max_cmd_len=32768
  4945. fi
  4946. ;;
  4947. *)
  4948. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4949. if test -n "$lt_cv_sys_max_cmd_len"; then
  4950. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4951. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4952. else
  4953. # Make teststring a little bigger before we do anything with it.
  4954. # a 1K string should be a reasonable start.
  4955. for i in 1 2 3 4 5 6 7 8 ; do
  4956. teststring=$teststring$teststring
  4957. done
  4958. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4959. # If test is not a shell built-in, we'll probably end up computing a
  4960. # maximum length that is only half of the actual maximum length, but
  4961. # we can't tell.
  4962. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4963. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4964. test $i != 17 # 1/2 MB should be enough
  4965. do
  4966. i=`expr $i + 1`
  4967. teststring=$teststring$teststring
  4968. done
  4969. # Only check the string length outside the loop.
  4970. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4971. teststring=
  4972. # Add a significant safety factor because C++ compilers can tack on
  4973. # massive amounts of additional arguments before passing them to the
  4974. # linker. It appears as though 1/2 is a usable value.
  4975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4976. fi
  4977. ;;
  4978. esac
  4979. fi
  4980. if test -n $lt_cv_sys_max_cmd_len ; then
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4982. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4983. else
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4985. $as_echo "none" >&6; }
  4986. fi
  4987. max_cmd_len=$lt_cv_sys_max_cmd_len
  4988. : ${CP="cp -f"}
  4989. : ${MV="mv -f"}
  4990. : ${RM="rm -f"}
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4992. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4993. # Try some XSI features
  4994. xsi_shell=no
  4995. ( _lt_dummy="a/b/c"
  4996. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4997. = c,a/b,, \
  4998. && eval 'test $(( 1 + 1 )) -eq 2 \
  4999. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5000. && xsi_shell=yes
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5002. $as_echo "$xsi_shell" >&6; }
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5004. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5005. lt_shell_append=no
  5006. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5007. >/dev/null 2>&1 \
  5008. && lt_shell_append=yes
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5010. $as_echo "$lt_shell_append" >&6; }
  5011. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5012. lt_unset=unset
  5013. else
  5014. lt_unset=false
  5015. fi
  5016. # test EBCDIC or ASCII
  5017. case `echo X|tr X '\101'` in
  5018. A) # ASCII based system
  5019. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5020. lt_SP2NL='tr \040 \012'
  5021. lt_NL2SP='tr \015\012 \040\040'
  5022. ;;
  5023. *) # EBCDIC based system
  5024. lt_SP2NL='tr \100 \n'
  5025. lt_NL2SP='tr \r\n \100\100'
  5026. ;;
  5027. esac
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5029. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5030. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. lt_cv_ld_reload_flag='-r'
  5034. fi
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5036. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5037. reload_flag=$lt_cv_ld_reload_flag
  5038. case $reload_flag in
  5039. "" | " "*) ;;
  5040. *) reload_flag=" $reload_flag" ;;
  5041. esac
  5042. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5043. case $host_os in
  5044. darwin*)
  5045. if test "$GCC" = yes; then
  5046. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5047. else
  5048. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5049. fi
  5050. ;;
  5051. esac
  5052. if test -n "$ac_tool_prefix"; then
  5053. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5054. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5056. $as_echo_n "checking for $ac_word... " >&6; }
  5057. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. if test -n "$OBJDUMP"; then
  5061. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5062. else
  5063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5064. for as_dir in $PATH
  5065. do
  5066. IFS=$as_save_IFS
  5067. test -z "$as_dir" && as_dir=.
  5068. for ac_exec_ext in '' $ac_executable_extensions; do
  5069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5070. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5072. break 2
  5073. fi
  5074. done
  5075. done
  5076. IFS=$as_save_IFS
  5077. fi
  5078. fi
  5079. OBJDUMP=$ac_cv_prog_OBJDUMP
  5080. if test -n "$OBJDUMP"; then
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5082. $as_echo "$OBJDUMP" >&6; }
  5083. else
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5085. $as_echo "no" >&6; }
  5086. fi
  5087. fi
  5088. if test -z "$ac_cv_prog_OBJDUMP"; then
  5089. ac_ct_OBJDUMP=$OBJDUMP
  5090. # Extract the first word of "objdump", so it can be a program name with args.
  5091. set dummy objdump; ac_word=$2
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5093. $as_echo_n "checking for $ac_word... " >&6; }
  5094. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. if test -n "$ac_ct_OBJDUMP"; then
  5098. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5099. else
  5100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5101. for as_dir in $PATH
  5102. do
  5103. IFS=$as_save_IFS
  5104. test -z "$as_dir" && as_dir=.
  5105. for ac_exec_ext in '' $ac_executable_extensions; do
  5106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5107. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5109. break 2
  5110. fi
  5111. done
  5112. done
  5113. IFS=$as_save_IFS
  5114. fi
  5115. fi
  5116. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5117. if test -n "$ac_ct_OBJDUMP"; then
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5119. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5120. else
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5122. $as_echo "no" >&6; }
  5123. fi
  5124. if test "x$ac_ct_OBJDUMP" = x; then
  5125. OBJDUMP="false"
  5126. else
  5127. case $cross_compiling:$ac_tool_warned in
  5128. yes:)
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5130. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5131. ac_tool_warned=yes ;;
  5132. esac
  5133. OBJDUMP=$ac_ct_OBJDUMP
  5134. fi
  5135. else
  5136. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5137. fi
  5138. test -z "$OBJDUMP" && OBJDUMP=objdump
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5140. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5141. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5142. $as_echo_n "(cached) " >&6
  5143. else
  5144. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5145. lt_cv_file_magic_test_file=
  5146. lt_cv_deplibs_check_method='unknown'
  5147. # Need to set the preceding variable on all platforms that support
  5148. # interlibrary dependencies.
  5149. # 'none' -- dependencies not supported.
  5150. # `unknown' -- same as none, but documents that we really don't know.
  5151. # 'pass_all' -- all dependencies passed with no checks.
  5152. # 'test_compile' -- check by making test program.
  5153. # 'file_magic [[regex]]' -- check by looking for files in library path
  5154. # which responds to the $file_magic_cmd with a given extended regex.
  5155. # If you have `file' or equivalent on your system and you're not sure
  5156. # whether `pass_all' will *always* work, you probably want this one.
  5157. case $host_os in
  5158. aix[4-9]*)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. beos*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. bsdi[45]*)
  5165. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5166. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5167. lt_cv_file_magic_test_file=/shlib/libc.so
  5168. ;;
  5169. cygwin*)
  5170. # func_win32_libid is a shell function defined in ltmain.sh
  5171. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5172. lt_cv_file_magic_cmd='func_win32_libid'
  5173. ;;
  5174. mingw* | pw32*)
  5175. # Base MSYS/MinGW do not provide the 'file' command needed by
  5176. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5177. # unless we find 'file', for example because we are cross-compiling.
  5178. if ( file / ) >/dev/null 2>&1; then
  5179. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5180. lt_cv_file_magic_cmd='func_win32_libid'
  5181. else
  5182. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5183. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5184. fi
  5185. ;;
  5186. cegcc)
  5187. # use the weaker test based on 'objdump'. See mingw*.
  5188. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5189. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5190. ;;
  5191. darwin* | rhapsody*)
  5192. lt_cv_deplibs_check_method=pass_all
  5193. ;;
  5194. freebsd* | dragonfly*)
  5195. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5196. case $host_cpu in
  5197. i*86 )
  5198. # Not sure whether the presence of OpenBSD here was a mistake.
  5199. # Let's accept both of them until this is cleared up.
  5200. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5201. lt_cv_file_magic_cmd=/usr/bin/file
  5202. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5203. ;;
  5204. esac
  5205. else
  5206. lt_cv_deplibs_check_method=pass_all
  5207. fi
  5208. ;;
  5209. gnu*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. hpux10.20* | hpux11*)
  5213. lt_cv_file_magic_cmd=/usr/bin/file
  5214. case $host_cpu in
  5215. ia64*)
  5216. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5217. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5218. ;;
  5219. hppa*64*)
  5220. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5221. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5222. ;;
  5223. *)
  5224. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5225. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5226. ;;
  5227. esac
  5228. ;;
  5229. interix[3-9]*)
  5230. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5231. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5232. ;;
  5233. irix5* | irix6* | nonstopux*)
  5234. case $LD in
  5235. *-32|*"-32 ") libmagic=32-bit;;
  5236. *-n32|*"-n32 ") libmagic=N32;;
  5237. *-64|*"-64 ") libmagic=64-bit;;
  5238. *) libmagic=never-match;;
  5239. esac
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. # This must be Linux ELF.
  5243. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246. netbsd* | netbsdelf*-gnu)
  5247. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5248. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5249. else
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5251. fi
  5252. ;;
  5253. newos6*)
  5254. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5255. lt_cv_file_magic_cmd=/usr/bin/file
  5256. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5257. ;;
  5258. *nto* | *qnx*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. openbsd*)
  5262. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5263. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5264. else
  5265. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5266. fi
  5267. ;;
  5268. osf3* | osf4* | osf5*)
  5269. lt_cv_deplibs_check_method=pass_all
  5270. ;;
  5271. rdos*)
  5272. lt_cv_deplibs_check_method=pass_all
  5273. ;;
  5274. solaris*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280. sysv4 | sysv4.3*)
  5281. case $host_vendor in
  5282. motorola)
  5283. 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]'
  5284. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5285. ;;
  5286. ncr)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. sequent)
  5290. lt_cv_file_magic_cmd='/bin/file'
  5291. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5292. ;;
  5293. sni)
  5294. lt_cv_file_magic_cmd='/bin/file'
  5295. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5296. lt_cv_file_magic_test_file=/lib/libc.so
  5297. ;;
  5298. siemens)
  5299. lt_cv_deplibs_check_method=pass_all
  5300. ;;
  5301. pc)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. esac
  5305. ;;
  5306. tpf*)
  5307. lt_cv_deplibs_check_method=pass_all
  5308. ;;
  5309. esac
  5310. fi
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5312. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5313. file_magic_cmd=$lt_cv_file_magic_cmd
  5314. deplibs_check_method=$lt_cv_deplibs_check_method
  5315. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5316. if test -n "$ac_tool_prefix"; then
  5317. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5318. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5320. $as_echo_n "checking for $ac_word... " >&6; }
  5321. if test "${ac_cv_prog_AR+set}" = set; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. if test -n "$AR"; then
  5325. ac_cv_prog_AR="$AR" # Let the user override the test.
  5326. else
  5327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5328. for as_dir in $PATH
  5329. do
  5330. IFS=$as_save_IFS
  5331. test -z "$as_dir" && as_dir=.
  5332. for ac_exec_ext in '' $ac_executable_extensions; do
  5333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5334. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5336. break 2
  5337. fi
  5338. done
  5339. done
  5340. IFS=$as_save_IFS
  5341. fi
  5342. fi
  5343. AR=$ac_cv_prog_AR
  5344. if test -n "$AR"; then
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5346. $as_echo "$AR" >&6; }
  5347. else
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5349. $as_echo "no" >&6; }
  5350. fi
  5351. fi
  5352. if test -z "$ac_cv_prog_AR"; then
  5353. ac_ct_AR=$AR
  5354. # Extract the first word of "ar", so it can be a program name with args.
  5355. set dummy ar; ac_word=$2
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5357. $as_echo_n "checking for $ac_word... " >&6; }
  5358. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. if test -n "$ac_ct_AR"; then
  5362. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5363. else
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH
  5366. do
  5367. IFS=$as_save_IFS
  5368. test -z "$as_dir" && as_dir=.
  5369. for ac_exec_ext in '' $ac_executable_extensions; do
  5370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5371. ac_cv_prog_ac_ct_AR="ar"
  5372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5373. break 2
  5374. fi
  5375. done
  5376. done
  5377. IFS=$as_save_IFS
  5378. fi
  5379. fi
  5380. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5381. if test -n "$ac_ct_AR"; then
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5383. $as_echo "$ac_ct_AR" >&6; }
  5384. else
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5386. $as_echo "no" >&6; }
  5387. fi
  5388. if test "x$ac_ct_AR" = x; then
  5389. AR="false"
  5390. else
  5391. case $cross_compiling:$ac_tool_warned in
  5392. yes:)
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5395. ac_tool_warned=yes ;;
  5396. esac
  5397. AR=$ac_ct_AR
  5398. fi
  5399. else
  5400. AR="$ac_cv_prog_AR"
  5401. fi
  5402. test -z "$AR" && AR=ar
  5403. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5404. if test -n "$ac_tool_prefix"; then
  5405. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5406. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5408. $as_echo_n "checking for $ac_word... " >&6; }
  5409. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. if test -n "$STRIP"; then
  5413. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5414. else
  5415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5416. for as_dir in $PATH
  5417. do
  5418. IFS=$as_save_IFS
  5419. test -z "$as_dir" && as_dir=.
  5420. for ac_exec_ext in '' $ac_executable_extensions; do
  5421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5422. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5424. break 2
  5425. fi
  5426. done
  5427. done
  5428. IFS=$as_save_IFS
  5429. fi
  5430. fi
  5431. STRIP=$ac_cv_prog_STRIP
  5432. if test -n "$STRIP"; then
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5434. $as_echo "$STRIP" >&6; }
  5435. else
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5437. $as_echo "no" >&6; }
  5438. fi
  5439. fi
  5440. if test -z "$ac_cv_prog_STRIP"; then
  5441. ac_ct_STRIP=$STRIP
  5442. # Extract the first word of "strip", so it can be a program name with args.
  5443. set dummy strip; ac_word=$2
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$ac_ct_STRIP"; then
  5450. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_prog_ac_ct_STRIP="strip"
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5469. if test -n "$ac_ct_STRIP"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5471. $as_echo "$ac_ct_STRIP" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. if test "x$ac_ct_STRIP" = x; then
  5477. STRIP=":"
  5478. else
  5479. case $cross_compiling:$ac_tool_warned in
  5480. yes:)
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5483. ac_tool_warned=yes ;;
  5484. esac
  5485. STRIP=$ac_ct_STRIP
  5486. fi
  5487. else
  5488. STRIP="$ac_cv_prog_STRIP"
  5489. fi
  5490. test -z "$STRIP" && STRIP=:
  5491. if test -n "$ac_tool_prefix"; then
  5492. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5493. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$RANLIB"; then
  5500. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5509. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. RANLIB=$ac_cv_prog_RANLIB
  5519. if test -n "$RANLIB"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5521. $as_echo "$RANLIB" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_RANLIB"; then
  5528. ac_ct_RANLIB=$RANLIB
  5529. # Extract the first word of "ranlib", so it can be a program name with args.
  5530. set dummy ranlib; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$ac_ct_RANLIB"; then
  5537. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5546. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5556. if test -n "$ac_ct_RANLIB"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5558. $as_echo "$ac_ct_RANLIB" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. if test "x$ac_ct_RANLIB" = x; then
  5564. RANLIB=":"
  5565. else
  5566. case $cross_compiling:$ac_tool_warned in
  5567. yes:)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. ac_tool_warned=yes ;;
  5571. esac
  5572. RANLIB=$ac_ct_RANLIB
  5573. fi
  5574. else
  5575. RANLIB="$ac_cv_prog_RANLIB"
  5576. fi
  5577. test -z "$RANLIB" && RANLIB=:
  5578. # Determine commands to create old-style static archives.
  5579. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5580. old_postinstall_cmds='chmod 644 $oldlib'
  5581. old_postuninstall_cmds=
  5582. if test -n "$RANLIB"; then
  5583. case $host_os in
  5584. openbsd*)
  5585. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5586. ;;
  5587. *)
  5588. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5589. ;;
  5590. esac
  5591. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5592. fi
  5593. # If no C compiler was specified, use CC.
  5594. LTCC=${LTCC-"$CC"}
  5595. # If no C compiler flags were specified, use CFLAGS.
  5596. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5597. # Allow CC to be a program name with arguments.
  5598. compiler=$CC
  5599. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5601. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5602. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. # These are sane defaults that work on at least a few old systems.
  5606. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5607. # Character class describing NM global symbol codes.
  5608. symcode='[BCDEGRST]'
  5609. # Regexp to match symbols that can be accessed directly from C.
  5610. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5611. # Define system-specific variables.
  5612. case $host_os in
  5613. aix*)
  5614. symcode='[BCDT]'
  5615. ;;
  5616. cygwin* | mingw* | pw32* | cegcc*)
  5617. symcode='[ABCDGISTW]'
  5618. ;;
  5619. hpux*)
  5620. if test "$host_cpu" = ia64; then
  5621. symcode='[ABCDEGRST]'
  5622. fi
  5623. ;;
  5624. irix* | nonstopux*)
  5625. symcode='[BCDEGRST]'
  5626. ;;
  5627. osf*)
  5628. symcode='[BCDEGQRST]'
  5629. ;;
  5630. solaris*)
  5631. symcode='[BDRT]'
  5632. ;;
  5633. sco3.2v5*)
  5634. symcode='[DT]'
  5635. ;;
  5636. sysv4.2uw2*)
  5637. symcode='[DT]'
  5638. ;;
  5639. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5640. symcode='[ABDT]'
  5641. ;;
  5642. sysv4)
  5643. symcode='[DFNSTU]'
  5644. ;;
  5645. esac
  5646. # If we're using GNU nm, then use its standard symbol codes.
  5647. case `$NM -V 2>&1` in
  5648. *GNU* | *'with BFD'*)
  5649. symcode='[ABCDGIRSTW]' ;;
  5650. esac
  5651. # Transform an extracted symbol line into a proper C declaration.
  5652. # Some systems (esp. on ia64) link data and code symbols differently,
  5653. # so use this general approach.
  5654. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5655. # Transform an extracted symbol line into symbol name and symbol address
  5656. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5657. 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'"
  5658. # Handle CRLF in mingw tool chain
  5659. opt_cr=
  5660. case $build_os in
  5661. mingw*)
  5662. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5663. ;;
  5664. esac
  5665. # Try without a prefix underscore, then with it.
  5666. for ac_symprfx in "" "_"; do
  5667. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5668. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5669. # Write the raw and C identifiers.
  5670. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5671. # Fake it for dumpbin and say T for any non-static function
  5672. # and D for any global variable.
  5673. # Also find C++ and __fastcall symbols from MSVC++,
  5674. # which start with @ or ?.
  5675. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5676. " {last_section=section; section=\$ 3};"\
  5677. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5678. " \$ 0!~/External *\|/{next};"\
  5679. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5680. " {if(hide[section]) next};"\
  5681. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5682. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5683. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5684. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5685. " ' prfx=^$ac_symprfx"
  5686. else
  5687. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5688. fi
  5689. # Check to see that the pipe works correctly.
  5690. pipe_works=no
  5691. rm -f conftest*
  5692. cat > conftest.$ac_ext <<_LT_EOF
  5693. #ifdef __cplusplus
  5694. extern "C" {
  5695. #endif
  5696. char nm_test_var;
  5697. void nm_test_func(void);
  5698. void nm_test_func(void){}
  5699. #ifdef __cplusplus
  5700. }
  5701. #endif
  5702. int main(){nm_test_var='a';nm_test_func();return(0);}
  5703. _LT_EOF
  5704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5705. (eval $ac_compile) 2>&5
  5706. ac_status=$?
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5708. test $ac_status = 0; }; then
  5709. # Now try to grab the symbols.
  5710. nlist=conftest.nm
  5711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5712. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5713. ac_status=$?
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5715. test $ac_status = 0; } && test -s "$nlist"; then
  5716. # Try sorting and uniquifying the output.
  5717. if sort "$nlist" | uniq > "$nlist"T; then
  5718. mv -f "$nlist"T "$nlist"
  5719. else
  5720. rm -f "$nlist"T
  5721. fi
  5722. # Make sure that we snagged all the symbols we need.
  5723. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5724. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5725. cat <<_LT_EOF > conftest.$ac_ext
  5726. #ifdef __cplusplus
  5727. extern "C" {
  5728. #endif
  5729. _LT_EOF
  5730. # Now generate the symbol file.
  5731. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5732. cat <<_LT_EOF >> conftest.$ac_ext
  5733. /* The mapping between symbol names and symbols. */
  5734. const struct {
  5735. const char *name;
  5736. void *address;
  5737. }
  5738. lt__PROGRAM__LTX_preloaded_symbols[] =
  5739. {
  5740. { "@PROGRAM@", (void *) 0 },
  5741. _LT_EOF
  5742. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5743. cat <<\_LT_EOF >> conftest.$ac_ext
  5744. {0, (void *) 0}
  5745. };
  5746. /* This works around a problem in FreeBSD linker */
  5747. #ifdef FREEBSD_WORKAROUND
  5748. static const void *lt_preloaded_setup() {
  5749. return lt__PROGRAM__LTX_preloaded_symbols;
  5750. }
  5751. #endif
  5752. #ifdef __cplusplus
  5753. }
  5754. #endif
  5755. _LT_EOF
  5756. # Now try linking the two files.
  5757. mv conftest.$ac_objext conftstm.$ac_objext
  5758. lt_save_LIBS="$LIBS"
  5759. lt_save_CFLAGS="$CFLAGS"
  5760. LIBS="conftstm.$ac_objext"
  5761. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5762. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5763. (eval $ac_link) 2>&5
  5764. ac_status=$?
  5765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5766. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5767. pipe_works=yes
  5768. fi
  5769. LIBS="$lt_save_LIBS"
  5770. CFLAGS="$lt_save_CFLAGS"
  5771. else
  5772. echo "cannot find nm_test_func in $nlist" >&5
  5773. fi
  5774. else
  5775. echo "cannot find nm_test_var in $nlist" >&5
  5776. fi
  5777. else
  5778. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5779. fi
  5780. else
  5781. echo "$progname: failed program was:" >&5
  5782. cat conftest.$ac_ext >&5
  5783. fi
  5784. rm -rf conftest* conftst*
  5785. # Do not use the global_symbol_pipe unless it works.
  5786. if test "$pipe_works" = yes; then
  5787. break
  5788. else
  5789. lt_cv_sys_global_symbol_pipe=
  5790. fi
  5791. done
  5792. fi
  5793. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5794. lt_cv_sys_global_symbol_to_cdecl=
  5795. fi
  5796. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5798. $as_echo "failed" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5801. $as_echo "ok" >&6; }
  5802. fi
  5803. # Check whether --enable-libtool-lock was given.
  5804. if test "${enable_libtool_lock+set}" = set; then :
  5805. enableval=$enable_libtool_lock;
  5806. fi
  5807. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5808. # Some flags need to be propagated to the compiler or linker for good
  5809. # libtool support.
  5810. case $host in
  5811. ia64-*-hpux*)
  5812. # Find out which ABI we are using.
  5813. echo 'int i;' > conftest.$ac_ext
  5814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5815. (eval $ac_compile) 2>&5
  5816. ac_status=$?
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5818. test $ac_status = 0; }; then
  5819. case `/usr/bin/file conftest.$ac_objext` in
  5820. *ELF-32*)
  5821. HPUX_IA64_MODE="32"
  5822. ;;
  5823. *ELF-64*)
  5824. HPUX_IA64_MODE="64"
  5825. ;;
  5826. esac
  5827. fi
  5828. rm -rf conftest*
  5829. ;;
  5830. *-*-irix6*)
  5831. # Find out which ABI we are using.
  5832. echo '#line 6808 "configure"' > conftest.$ac_ext
  5833. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5834. (eval $ac_compile) 2>&5
  5835. ac_status=$?
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5837. test $ac_status = 0; }; then
  5838. if test "$lt_cv_prog_gnu_ld" = yes; then
  5839. case `/usr/bin/file conftest.$ac_objext` in
  5840. *32-bit*)
  5841. LD="${LD-ld} -melf32bsmip"
  5842. ;;
  5843. *N32*)
  5844. LD="${LD-ld} -melf32bmipn32"
  5845. ;;
  5846. *64-bit*)
  5847. LD="${LD-ld} -melf64bmip"
  5848. ;;
  5849. esac
  5850. else
  5851. case `/usr/bin/file conftest.$ac_objext` in
  5852. *32-bit*)
  5853. LD="${LD-ld} -32"
  5854. ;;
  5855. *N32*)
  5856. LD="${LD-ld} -n32"
  5857. ;;
  5858. *64-bit*)
  5859. LD="${LD-ld} -64"
  5860. ;;
  5861. esac
  5862. fi
  5863. fi
  5864. rm -rf conftest*
  5865. ;;
  5866. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5867. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5868. # Find out which ABI we are using.
  5869. echo 'int i;' > conftest.$ac_ext
  5870. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5871. (eval $ac_compile) 2>&5
  5872. ac_status=$?
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5874. test $ac_status = 0; }; then
  5875. case `/usr/bin/file conftest.o` in
  5876. *32-bit*)
  5877. case $host in
  5878. x86_64-*kfreebsd*-gnu)
  5879. LD="${LD-ld} -m elf_i386_fbsd"
  5880. ;;
  5881. x86_64-*linux*)
  5882. LD="${LD-ld} -m elf_i386"
  5883. ;;
  5884. ppc64-*linux*|powerpc64-*linux*)
  5885. LD="${LD-ld} -m elf32ppclinux"
  5886. ;;
  5887. s390x-*linux*)
  5888. LD="${LD-ld} -m elf_s390"
  5889. ;;
  5890. sparc64-*linux*)
  5891. LD="${LD-ld} -m elf32_sparc"
  5892. ;;
  5893. esac
  5894. ;;
  5895. *64-bit*)
  5896. case $host in
  5897. x86_64-*kfreebsd*-gnu)
  5898. LD="${LD-ld} -m elf_x86_64_fbsd"
  5899. ;;
  5900. x86_64-*linux*)
  5901. LD="${LD-ld} -m elf_x86_64"
  5902. ;;
  5903. ppc*-*linux*|powerpc*-*linux*)
  5904. LD="${LD-ld} -m elf64ppc"
  5905. ;;
  5906. s390*-*linux*|s390*-*tpf*)
  5907. LD="${LD-ld} -m elf64_s390"
  5908. ;;
  5909. sparc*-*linux*)
  5910. LD="${LD-ld} -m elf64_sparc"
  5911. ;;
  5912. esac
  5913. ;;
  5914. esac
  5915. fi
  5916. rm -rf conftest*
  5917. ;;
  5918. *-*-sco3.2v5*)
  5919. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5920. SAVE_CFLAGS="$CFLAGS"
  5921. CFLAGS="$CFLAGS -belf"
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5923. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5924. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. ac_ext=c
  5928. ac_cpp='$CPP $CPPFLAGS'
  5929. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5930. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  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_link "$LINENO"; then :
  5942. lt_cv_cc_needs_belf=yes
  5943. else
  5944. lt_cv_cc_needs_belf=no
  5945. fi
  5946. rm -f core conftest.err conftest.$ac_objext \
  5947. conftest$ac_exeext conftest.$ac_ext
  5948. ac_ext=c
  5949. ac_cpp='$CPP $CPPFLAGS'
  5950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5955. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5956. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5957. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5958. CFLAGS="$SAVE_CFLAGS"
  5959. fi
  5960. ;;
  5961. sparc*-*solaris*)
  5962. # Find out which ABI we are using.
  5963. echo 'int i;' > conftest.$ac_ext
  5964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5968. test $ac_status = 0; }; then
  5969. case `/usr/bin/file conftest.o` in
  5970. *64-bit*)
  5971. case $lt_cv_prog_gnu_ld in
  5972. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5973. *)
  5974. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5975. LD="${LD-ld} -64"
  5976. fi
  5977. ;;
  5978. esac
  5979. ;;
  5980. esac
  5981. fi
  5982. rm -rf conftest*
  5983. ;;
  5984. esac
  5985. need_locks="$enable_libtool_lock"
  5986. case $host_os in
  5987. rhapsody* | darwin*)
  5988. if test -n "$ac_tool_prefix"; then
  5989. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5990. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$DSYMUTIL"; then
  5997. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6006. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6016. if test -n "$DSYMUTIL"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6018. $as_echo "$DSYMUTIL" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. fi
  6024. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6025. ac_ct_DSYMUTIL=$DSYMUTIL
  6026. # Extract the first word of "dsymutil", so it can be a program name with args.
  6027. set dummy dsymutil; ac_word=$2
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6029. $as_echo_n "checking for $ac_word... " >&6; }
  6030. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6031. $as_echo_n "(cached) " >&6
  6032. else
  6033. if test -n "$ac_ct_DSYMUTIL"; then
  6034. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6035. else
  6036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6037. for as_dir in $PATH
  6038. do
  6039. IFS=$as_save_IFS
  6040. test -z "$as_dir" && as_dir=.
  6041. for ac_exec_ext in '' $ac_executable_extensions; do
  6042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6043. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6045. break 2
  6046. fi
  6047. done
  6048. done
  6049. IFS=$as_save_IFS
  6050. fi
  6051. fi
  6052. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6053. if test -n "$ac_ct_DSYMUTIL"; then
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6055. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6056. else
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. $as_echo "no" >&6; }
  6059. fi
  6060. if test "x$ac_ct_DSYMUTIL" = x; then
  6061. DSYMUTIL=":"
  6062. else
  6063. case $cross_compiling:$ac_tool_warned in
  6064. yes:)
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6067. ac_tool_warned=yes ;;
  6068. esac
  6069. DSYMUTIL=$ac_ct_DSYMUTIL
  6070. fi
  6071. else
  6072. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6073. fi
  6074. if test -n "$ac_tool_prefix"; then
  6075. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6076. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6078. $as_echo_n "checking for $ac_word... " >&6; }
  6079. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. if test -n "$NMEDIT"; then
  6083. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6084. else
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_exec_ext in '' $ac_executable_extensions; do
  6091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6092. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6094. break 2
  6095. fi
  6096. done
  6097. done
  6098. IFS=$as_save_IFS
  6099. fi
  6100. fi
  6101. NMEDIT=$ac_cv_prog_NMEDIT
  6102. if test -n "$NMEDIT"; then
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6104. $as_echo "$NMEDIT" >&6; }
  6105. else
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6107. $as_echo "no" >&6; }
  6108. fi
  6109. fi
  6110. if test -z "$ac_cv_prog_NMEDIT"; then
  6111. ac_ct_NMEDIT=$NMEDIT
  6112. # Extract the first word of "nmedit", so it can be a program name with args.
  6113. set dummy nmedit; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$ac_ct_NMEDIT"; then
  6120. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6129. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6139. if test -n "$ac_ct_NMEDIT"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6141. $as_echo "$ac_ct_NMEDIT" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. if test "x$ac_ct_NMEDIT" = x; then
  6147. NMEDIT=":"
  6148. else
  6149. case $cross_compiling:$ac_tool_warned in
  6150. yes:)
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6153. ac_tool_warned=yes ;;
  6154. esac
  6155. NMEDIT=$ac_ct_NMEDIT
  6156. fi
  6157. else
  6158. NMEDIT="$ac_cv_prog_NMEDIT"
  6159. fi
  6160. if test -n "$ac_tool_prefix"; then
  6161. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6162. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$LIPO"; then
  6169. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6178. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. LIPO=$ac_cv_prog_LIPO
  6188. if test -n "$LIPO"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6190. $as_echo "$LIPO" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. fi
  6196. if test -z "$ac_cv_prog_LIPO"; then
  6197. ac_ct_LIPO=$LIPO
  6198. # Extract the first word of "lipo", so it can be a program name with args.
  6199. set dummy lipo; ac_word=$2
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. $as_echo_n "checking for $ac_word... " >&6; }
  6202. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. if test -n "$ac_ct_LIPO"; then
  6206. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6207. else
  6208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6209. for as_dir in $PATH
  6210. do
  6211. IFS=$as_save_IFS
  6212. test -z "$as_dir" && as_dir=.
  6213. for ac_exec_ext in '' $ac_executable_extensions; do
  6214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6215. ac_cv_prog_ac_ct_LIPO="lipo"
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6217. break 2
  6218. fi
  6219. done
  6220. done
  6221. IFS=$as_save_IFS
  6222. fi
  6223. fi
  6224. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6225. if test -n "$ac_ct_LIPO"; then
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6227. $as_echo "$ac_ct_LIPO" >&6; }
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6230. $as_echo "no" >&6; }
  6231. fi
  6232. if test "x$ac_ct_LIPO" = x; then
  6233. LIPO=":"
  6234. else
  6235. case $cross_compiling:$ac_tool_warned in
  6236. yes:)
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6239. ac_tool_warned=yes ;;
  6240. esac
  6241. LIPO=$ac_ct_LIPO
  6242. fi
  6243. else
  6244. LIPO="$ac_cv_prog_LIPO"
  6245. fi
  6246. if test -n "$ac_tool_prefix"; then
  6247. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6248. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. if test -n "$OTOOL"; then
  6255. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6256. else
  6257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6258. for as_dir in $PATH
  6259. do
  6260. IFS=$as_save_IFS
  6261. test -z "$as_dir" && as_dir=.
  6262. for ac_exec_ext in '' $ac_executable_extensions; do
  6263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6264. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6266. break 2
  6267. fi
  6268. done
  6269. done
  6270. IFS=$as_save_IFS
  6271. fi
  6272. fi
  6273. OTOOL=$ac_cv_prog_OTOOL
  6274. if test -n "$OTOOL"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6276. $as_echo "$OTOOL" >&6; }
  6277. else
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6279. $as_echo "no" >&6; }
  6280. fi
  6281. fi
  6282. if test -z "$ac_cv_prog_OTOOL"; then
  6283. ac_ct_OTOOL=$OTOOL
  6284. # Extract the first word of "otool", so it can be a program name with args.
  6285. set dummy otool; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$ac_ct_OTOOL"; then
  6292. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6301. ac_cv_prog_ac_ct_OTOOL="otool"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6311. if test -n "$ac_ct_OTOOL"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6313. $as_echo "$ac_ct_OTOOL" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. if test "x$ac_ct_OTOOL" = x; then
  6319. OTOOL=":"
  6320. else
  6321. case $cross_compiling:$ac_tool_warned in
  6322. yes:)
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6325. ac_tool_warned=yes ;;
  6326. esac
  6327. OTOOL=$ac_ct_OTOOL
  6328. fi
  6329. else
  6330. OTOOL="$ac_cv_prog_OTOOL"
  6331. fi
  6332. if test -n "$ac_tool_prefix"; then
  6333. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6334. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$OTOOL64"; then
  6341. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6350. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. OTOOL64=$ac_cv_prog_OTOOL64
  6360. if test -n "$OTOOL64"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6362. $as_echo "$OTOOL64" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. fi
  6368. if test -z "$ac_cv_prog_OTOOL64"; then
  6369. ac_ct_OTOOL64=$OTOOL64
  6370. # Extract the first word of "otool64", so it can be a program name with args.
  6371. set dummy otool64; ac_word=$2
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. $as_echo_n "checking for $ac_word... " >&6; }
  6374. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. if test -n "$ac_ct_OTOOL64"; then
  6378. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6387. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. IFS=$as_save_IFS
  6394. fi
  6395. fi
  6396. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6397. if test -n "$ac_ct_OTOOL64"; then
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6399. $as_echo "$ac_ct_OTOOL64" >&6; }
  6400. else
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402. $as_echo "no" >&6; }
  6403. fi
  6404. if test "x$ac_ct_OTOOL64" = x; then
  6405. OTOOL64=":"
  6406. else
  6407. case $cross_compiling:$ac_tool_warned in
  6408. yes:)
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6411. ac_tool_warned=yes ;;
  6412. esac
  6413. OTOOL64=$ac_ct_OTOOL64
  6414. fi
  6415. else
  6416. OTOOL64="$ac_cv_prog_OTOOL64"
  6417. fi
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6419. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6420. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. lt_cv_apple_cc_single_mod=no
  6424. if test -z "${LT_MULTI_MODULE}"; then
  6425. # By default we will add the -single_module flag. You can override
  6426. # by either setting the environment variable LT_MULTI_MODULE
  6427. # non-empty at configure time, or by adding -multi_module to the
  6428. # link flags.
  6429. rm -rf libconftest.dylib*
  6430. echo "int foo(void){return 1;}" > conftest.c
  6431. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6432. -dynamiclib -Wl,-single_module conftest.c" >&5
  6433. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6434. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6435. _lt_result=$?
  6436. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6437. lt_cv_apple_cc_single_mod=yes
  6438. else
  6439. cat conftest.err >&5
  6440. fi
  6441. rm -rf libconftest.dylib*
  6442. rm -f conftest.*
  6443. fi
  6444. fi
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6449. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. lt_cv_ld_exported_symbols_list=no
  6453. save_LDFLAGS=$LDFLAGS
  6454. echo "_main" > conftest.sym
  6455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6457. /* end confdefs.h. */
  6458. int
  6459. main ()
  6460. {
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. if ac_fn_c_try_link "$LINENO"; then :
  6466. lt_cv_ld_exported_symbols_list=yes
  6467. else
  6468. lt_cv_ld_exported_symbols_list=no
  6469. fi
  6470. rm -f core conftest.err conftest.$ac_objext \
  6471. conftest$ac_exeext conftest.$ac_ext
  6472. LDFLAGS="$save_LDFLAGS"
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6475. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6476. case $host_os in
  6477. rhapsody* | darwin1.[012])
  6478. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6479. darwin1.*)
  6480. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6481. darwin*) # darwin 5.x on
  6482. # if running on 10.5 or later, the deployment target defaults
  6483. # to the OS version, if on x86, and 10.4, the deployment
  6484. # target defaults to 10.4. Don't you love it?
  6485. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6486. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6487. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6488. 10.[012]*)
  6489. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6490. 10.*)
  6491. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6492. esac
  6493. ;;
  6494. esac
  6495. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6496. _lt_dar_single_mod='$single_module'
  6497. fi
  6498. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6499. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6500. else
  6501. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6502. fi
  6503. if test "$DSYMUTIL" != ":"; then
  6504. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6505. else
  6506. _lt_dsymutil=
  6507. fi
  6508. ;;
  6509. esac
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6511. $as_echo_n "checking for ANSI C header files... " >&6; }
  6512. if test "${ac_cv_header_stdc+set}" = set; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6516. /* end confdefs.h. */
  6517. #include <stdlib.h>
  6518. #include <stdarg.h>
  6519. #include <string.h>
  6520. #include <float.h>
  6521. int
  6522. main ()
  6523. {
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. if ac_fn_c_try_compile "$LINENO"; then :
  6529. ac_cv_header_stdc=yes
  6530. else
  6531. ac_cv_header_stdc=no
  6532. fi
  6533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6534. if test $ac_cv_header_stdc = yes; then
  6535. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6537. /* end confdefs.h. */
  6538. #include <string.h>
  6539. _ACEOF
  6540. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6541. $EGREP "memchr" >/dev/null 2>&1; then :
  6542. else
  6543. ac_cv_header_stdc=no
  6544. fi
  6545. rm -f conftest*
  6546. fi
  6547. if test $ac_cv_header_stdc = yes; then
  6548. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. #include <stdlib.h>
  6552. _ACEOF
  6553. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6554. $EGREP "free" >/dev/null 2>&1; then :
  6555. else
  6556. ac_cv_header_stdc=no
  6557. fi
  6558. rm -f conftest*
  6559. fi
  6560. if test $ac_cv_header_stdc = yes; then
  6561. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6562. if test "$cross_compiling" = yes; then :
  6563. :
  6564. else
  6565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6566. /* end confdefs.h. */
  6567. #include <ctype.h>
  6568. #include <stdlib.h>
  6569. #if ((' ' & 0x0FF) == 0x020)
  6570. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6571. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6572. #else
  6573. # define ISLOWER(c) \
  6574. (('a' <= (c) && (c) <= 'i') \
  6575. || ('j' <= (c) && (c) <= 'r') \
  6576. || ('s' <= (c) && (c) <= 'z'))
  6577. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6578. #endif
  6579. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6580. int
  6581. main ()
  6582. {
  6583. int i;
  6584. for (i = 0; i < 256; i++)
  6585. if (XOR (islower (i), ISLOWER (i))
  6586. || toupper (i) != TOUPPER (i))
  6587. return 2;
  6588. return 0;
  6589. }
  6590. _ACEOF
  6591. if ac_fn_c_try_run "$LINENO"; then :
  6592. else
  6593. ac_cv_header_stdc=no
  6594. fi
  6595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6596. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6597. fi
  6598. fi
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6601. $as_echo "$ac_cv_header_stdc" >&6; }
  6602. if test $ac_cv_header_stdc = yes; then
  6603. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6604. fi
  6605. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6606. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6607. inttypes.h stdint.h unistd.h
  6608. do :
  6609. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6610. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6611. "
  6612. eval as_val=\$$as_ac_Header
  6613. if test "x$as_val" = x""yes; then :
  6614. cat >>confdefs.h <<_ACEOF
  6615. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6616. _ACEOF
  6617. fi
  6618. done
  6619. for ac_header in dlfcn.h
  6620. do :
  6621. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6622. "
  6623. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6624. cat >>confdefs.h <<_ACEOF
  6625. #define HAVE_DLFCN_H 1
  6626. _ACEOF
  6627. fi
  6628. done
  6629. ac_ext=cpp
  6630. ac_cpp='$CXXCPP $CPPFLAGS'
  6631. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6632. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6633. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6634. if test -z "$CXX"; then
  6635. if test -n "$CCC"; then
  6636. CXX=$CCC
  6637. else
  6638. if test -n "$ac_tool_prefix"; then
  6639. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6640. do
  6641. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6642. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6644. $as_echo_n "checking for $ac_word... " >&6; }
  6645. if test "${ac_cv_prog_CXX+set}" = set; then :
  6646. $as_echo_n "(cached) " >&6
  6647. else
  6648. if test -n "$CXX"; then
  6649. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6650. else
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. test -z "$as_dir" && as_dir=.
  6656. for ac_exec_ext in '' $ac_executable_extensions; do
  6657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6658. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6660. break 2
  6661. fi
  6662. done
  6663. done
  6664. IFS=$as_save_IFS
  6665. fi
  6666. fi
  6667. CXX=$ac_cv_prog_CXX
  6668. if test -n "$CXX"; then
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6670. $as_echo "$CXX" >&6; }
  6671. else
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6673. $as_echo "no" >&6; }
  6674. fi
  6675. test -n "$CXX" && break
  6676. done
  6677. fi
  6678. if test -z "$CXX"; then
  6679. ac_ct_CXX=$CXX
  6680. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6681. do
  6682. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6683. set dummy $ac_prog; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$ac_ct_CXX"; then
  6690. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6699. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6709. if test -n "$ac_ct_CXX"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6711. $as_echo "$ac_ct_CXX" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. test -n "$ac_ct_CXX" && break
  6717. done
  6718. if test "x$ac_ct_CXX" = x; then
  6719. CXX="g++"
  6720. else
  6721. case $cross_compiling:$ac_tool_warned in
  6722. yes:)
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6725. ac_tool_warned=yes ;;
  6726. esac
  6727. CXX=$ac_ct_CXX
  6728. fi
  6729. fi
  6730. fi
  6731. fi
  6732. # Provide some information about the compiler.
  6733. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6734. set X $ac_compile
  6735. ac_compiler=$2
  6736. for ac_option in --version -v -V -qversion; do
  6737. { { ac_try="$ac_compiler $ac_option >&5"
  6738. case "(($ac_try" in
  6739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6740. *) ac_try_echo=$ac_try;;
  6741. esac
  6742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6743. $as_echo "$ac_try_echo"; } >&5
  6744. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6745. ac_status=$?
  6746. if test -s conftest.err; then
  6747. sed '10a\
  6748. ... rest of stderr output deleted ...
  6749. 10q' conftest.err >conftest.er1
  6750. cat conftest.er1 >&5
  6751. fi
  6752. rm -f conftest.er1 conftest.err
  6753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6754. test $ac_status = 0; }
  6755. done
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6757. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6758. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h. */
  6763. int
  6764. main ()
  6765. {
  6766. #ifndef __GNUC__
  6767. choke me
  6768. #endif
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. if ac_fn_cxx_try_compile "$LINENO"; then :
  6774. ac_compiler_gnu=yes
  6775. else
  6776. ac_compiler_gnu=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6780. fi
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6782. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6783. if test $ac_compiler_gnu = yes; then
  6784. GXX=yes
  6785. else
  6786. GXX=
  6787. fi
  6788. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6789. ac_save_CXXFLAGS=$CXXFLAGS
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6791. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6792. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6796. ac_cxx_werror_flag=yes
  6797. ac_cv_prog_cxx_g=no
  6798. CXXFLAGS="-g"
  6799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6800. /* end confdefs.h. */
  6801. int
  6802. main ()
  6803. {
  6804. ;
  6805. return 0;
  6806. }
  6807. _ACEOF
  6808. if ac_fn_cxx_try_compile "$LINENO"; then :
  6809. ac_cv_prog_cxx_g=yes
  6810. else
  6811. CXXFLAGS=""
  6812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6813. /* end confdefs.h. */
  6814. int
  6815. main ()
  6816. {
  6817. ;
  6818. return 0;
  6819. }
  6820. _ACEOF
  6821. if ac_fn_cxx_try_compile "$LINENO"; then :
  6822. else
  6823. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6824. CXXFLAGS="-g"
  6825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6826. /* end confdefs.h. */
  6827. int
  6828. main ()
  6829. {
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. if ac_fn_cxx_try_compile "$LINENO"; then :
  6835. ac_cv_prog_cxx_g=yes
  6836. fi
  6837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6838. fi
  6839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6840. fi
  6841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6842. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6843. fi
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6845. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6846. if test "$ac_test_CXXFLAGS" = set; then
  6847. CXXFLAGS=$ac_save_CXXFLAGS
  6848. elif test $ac_cv_prog_cxx_g = yes; then
  6849. if test "$GXX" = yes; then
  6850. CXXFLAGS="-g -O2"
  6851. else
  6852. CXXFLAGS="-g"
  6853. fi
  6854. else
  6855. if test "$GXX" = yes; then
  6856. CXXFLAGS="-O2"
  6857. else
  6858. CXXFLAGS=
  6859. fi
  6860. fi
  6861. ac_ext=c
  6862. ac_cpp='$CPP $CPPFLAGS'
  6863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6866. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6867. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6868. (test "X$CXX" != "Xg++"))) ; then
  6869. ac_ext=cpp
  6870. ac_cpp='$CXXCPP $CPPFLAGS'
  6871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6875. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6876. if test -z "$CXXCPP"; then
  6877. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. # Double quotes because CXXCPP needs to be expanded
  6881. for CXXCPP in "$CXX -E" "/lib/cpp"
  6882. do
  6883. ac_preproc_ok=false
  6884. for ac_cxx_preproc_warn_flag in '' yes
  6885. do
  6886. # Use a header file that comes with gcc, so configuring glibc
  6887. # with a fresh cross-compiler works.
  6888. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6889. # <limits.h> exists even on freestanding compilers.
  6890. # On the NeXT, cc -E runs the code through the compiler's parser,
  6891. # not just through cpp. "Syntax error" is here to catch this case.
  6892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6893. /* end confdefs.h. */
  6894. #ifdef __STDC__
  6895. # include <limits.h>
  6896. #else
  6897. # include <assert.h>
  6898. #endif
  6899. Syntax error
  6900. _ACEOF
  6901. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6902. else
  6903. # Broken: fails on valid input.
  6904. continue
  6905. fi
  6906. rm -f conftest.err conftest.$ac_ext
  6907. # OK, works on sane cases. Now check whether nonexistent headers
  6908. # can be detected and how.
  6909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6910. /* end confdefs.h. */
  6911. #include <ac_nonexistent.h>
  6912. _ACEOF
  6913. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6914. # Broken: success on invalid input.
  6915. continue
  6916. else
  6917. # Passes both tests.
  6918. ac_preproc_ok=:
  6919. break
  6920. fi
  6921. rm -f conftest.err conftest.$ac_ext
  6922. done
  6923. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6924. rm -f conftest.err conftest.$ac_ext
  6925. if $ac_preproc_ok; then :
  6926. break
  6927. fi
  6928. done
  6929. ac_cv_prog_CXXCPP=$CXXCPP
  6930. fi
  6931. CXXCPP=$ac_cv_prog_CXXCPP
  6932. else
  6933. ac_cv_prog_CXXCPP=$CXXCPP
  6934. fi
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6936. $as_echo "$CXXCPP" >&6; }
  6937. ac_preproc_ok=false
  6938. for ac_cxx_preproc_warn_flag in '' yes
  6939. do
  6940. # Use a header file that comes with gcc, so configuring glibc
  6941. # with a fresh cross-compiler works.
  6942. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6943. # <limits.h> exists even on freestanding compilers.
  6944. # On the NeXT, cc -E runs the code through the compiler's parser,
  6945. # not just through cpp. "Syntax error" is here to catch this case.
  6946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6947. /* end confdefs.h. */
  6948. #ifdef __STDC__
  6949. # include <limits.h>
  6950. #else
  6951. # include <assert.h>
  6952. #endif
  6953. Syntax error
  6954. _ACEOF
  6955. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6956. else
  6957. # Broken: fails on valid input.
  6958. continue
  6959. fi
  6960. rm -f conftest.err conftest.$ac_ext
  6961. # OK, works on sane cases. Now check whether nonexistent headers
  6962. # can be detected and how.
  6963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6964. /* end confdefs.h. */
  6965. #include <ac_nonexistent.h>
  6966. _ACEOF
  6967. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6968. # Broken: success on invalid input.
  6969. continue
  6970. else
  6971. # Passes both tests.
  6972. ac_preproc_ok=:
  6973. break
  6974. fi
  6975. rm -f conftest.err conftest.$ac_ext
  6976. done
  6977. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6978. rm -f conftest.err conftest.$ac_ext
  6979. if $ac_preproc_ok; then :
  6980. else
  6981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6983. _lt_caught_CXX_error=yes; }
  6984. fi
  6985. ac_ext=c
  6986. ac_cpp='$CPP $CPPFLAGS'
  6987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6990. else
  6991. _lt_caught_CXX_error=yes
  6992. fi
  6993. # Set options
  6994. enable_dlopen=no
  6995. enable_win32_dll=no
  6996. # Check whether --enable-shared was given.
  6997. if test "${enable_shared+set}" = set; then :
  6998. enableval=$enable_shared; p=${PACKAGE-default}
  6999. case $enableval in
  7000. yes) enable_shared=yes ;;
  7001. no) enable_shared=no ;;
  7002. *)
  7003. enable_shared=no
  7004. # Look at the argument we got. We use all the common list separators.
  7005. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7006. for pkg in $enableval; do
  7007. IFS="$lt_save_ifs"
  7008. if test "X$pkg" = "X$p"; then
  7009. enable_shared=yes
  7010. fi
  7011. done
  7012. IFS="$lt_save_ifs"
  7013. ;;
  7014. esac
  7015. else
  7016. enable_shared=yes
  7017. fi
  7018. # Check whether --enable-static was given.
  7019. if test "${enable_static+set}" = set; then :
  7020. enableval=$enable_static; p=${PACKAGE-default}
  7021. case $enableval in
  7022. yes) enable_static=yes ;;
  7023. no) enable_static=no ;;
  7024. *)
  7025. enable_static=no
  7026. # Look at the argument we got. We use all the common list separators.
  7027. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7028. for pkg in $enableval; do
  7029. IFS="$lt_save_ifs"
  7030. if test "X$pkg" = "X$p"; then
  7031. enable_static=yes
  7032. fi
  7033. done
  7034. IFS="$lt_save_ifs"
  7035. ;;
  7036. esac
  7037. else
  7038. enable_static=yes
  7039. fi
  7040. # Check whether --with-pic was given.
  7041. if test "${with_pic+set}" = set; then :
  7042. withval=$with_pic; pic_mode="$withval"
  7043. else
  7044. pic_mode=default
  7045. fi
  7046. test -z "$pic_mode" && pic_mode=default
  7047. # Check whether --enable-fast-install was given.
  7048. if test "${enable_fast_install+set}" = set; then :
  7049. enableval=$enable_fast_install; p=${PACKAGE-default}
  7050. case $enableval in
  7051. yes) enable_fast_install=yes ;;
  7052. no) enable_fast_install=no ;;
  7053. *)
  7054. enable_fast_install=no
  7055. # Look at the argument we got. We use all the common list separators.
  7056. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7057. for pkg in $enableval; do
  7058. IFS="$lt_save_ifs"
  7059. if test "X$pkg" = "X$p"; then
  7060. enable_fast_install=yes
  7061. fi
  7062. done
  7063. IFS="$lt_save_ifs"
  7064. ;;
  7065. esac
  7066. else
  7067. enable_fast_install=yes
  7068. fi
  7069. # This can be used to rebuild libtool when needed
  7070. LIBTOOL_DEPS="$ltmain"
  7071. # Always use our own libtool.
  7072. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7073. test -z "$LN_S" && LN_S="ln -s"
  7074. if test -n "${ZSH_VERSION+set}" ; then
  7075. setopt NO_GLOB_SUBST
  7076. fi
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7078. $as_echo_n "checking for objdir... " >&6; }
  7079. if test "${lt_cv_objdir+set}" = set; then :
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. rm -f .libs 2>/dev/null
  7083. mkdir .libs 2>/dev/null
  7084. if test -d .libs; then
  7085. lt_cv_objdir=.libs
  7086. else
  7087. # MS-DOS does not allow filenames that begin with a dot.
  7088. lt_cv_objdir=_libs
  7089. fi
  7090. rmdir .libs 2>/dev/null
  7091. fi
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7093. $as_echo "$lt_cv_objdir" >&6; }
  7094. objdir=$lt_cv_objdir
  7095. cat >>confdefs.h <<_ACEOF
  7096. #define LT_OBJDIR "$lt_cv_objdir/"
  7097. _ACEOF
  7098. case $host_os in
  7099. aix3*)
  7100. # AIX sometimes has problems with the GCC collect2 program. For some
  7101. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7102. # vanish in a puff of smoke.
  7103. if test "X${COLLECT_NAMES+set}" != Xset; then
  7104. COLLECT_NAMES=
  7105. export COLLECT_NAMES
  7106. fi
  7107. ;;
  7108. esac
  7109. # Sed substitution that helps us do robust quoting. It backslashifies
  7110. # metacharacters that are still active within double-quoted strings.
  7111. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7112. # Same as above, but do not quote variable references.
  7113. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7114. # Sed substitution to delay expansion of an escaped shell variable in a
  7115. # double_quote_subst'ed string.
  7116. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7117. # Sed substitution to delay expansion of an escaped single quote.
  7118. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7119. # Sed substitution to avoid accidental globbing in evaled expressions
  7120. no_glob_subst='s/\*/\\\*/g'
  7121. # Global variables:
  7122. ofile=libtool
  7123. can_build_shared=yes
  7124. # All known linkers require a `.a' archive for static linking (except MSVC,
  7125. # which needs '.lib').
  7126. libext=a
  7127. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7128. old_CC="$CC"
  7129. old_CFLAGS="$CFLAGS"
  7130. # Set sane defaults for various variables
  7131. test -z "$CC" && CC=cc
  7132. test -z "$LTCC" && LTCC=$CC
  7133. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7134. test -z "$LD" && LD=ld
  7135. test -z "$ac_objext" && ac_objext=o
  7136. for cc_temp in $compiler""; do
  7137. case $cc_temp in
  7138. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7139. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7140. \-*) ;;
  7141. *) break;;
  7142. esac
  7143. done
  7144. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7145. # Only perform the check for file, if the check method requires it
  7146. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7147. case $deplibs_check_method in
  7148. file_magic*)
  7149. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7151. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7152. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7153. $as_echo_n "(cached) " >&6
  7154. else
  7155. case $MAGIC_CMD in
  7156. [\\/*] | ?:[\\/]*)
  7157. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7158. ;;
  7159. *)
  7160. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7161. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7162. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7163. for ac_dir in $ac_dummy; do
  7164. IFS="$lt_save_ifs"
  7165. test -z "$ac_dir" && ac_dir=.
  7166. if test -f $ac_dir/${ac_tool_prefix}file; then
  7167. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7168. if test -n "$file_magic_test_file"; then
  7169. case $deplibs_check_method in
  7170. "file_magic "*)
  7171. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7172. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7173. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7174. $EGREP "$file_magic_regex" > /dev/null; then
  7175. :
  7176. else
  7177. cat <<_LT_EOF 1>&2
  7178. *** Warning: the command libtool uses to detect shared libraries,
  7179. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7180. *** The result is that libtool may fail to recognize shared libraries
  7181. *** as such. This will affect the creation of libtool libraries that
  7182. *** depend on shared libraries, but programs linked with such libtool
  7183. *** libraries will work regardless of this problem. Nevertheless, you
  7184. *** may want to report the problem to your system manager and/or to
  7185. *** [email protected]
  7186. _LT_EOF
  7187. fi ;;
  7188. esac
  7189. fi
  7190. break
  7191. fi
  7192. done
  7193. IFS="$lt_save_ifs"
  7194. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7195. ;;
  7196. esac
  7197. fi
  7198. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7199. if test -n "$MAGIC_CMD"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7201. $as_echo "$MAGIC_CMD" >&6; }
  7202. else
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7204. $as_echo "no" >&6; }
  7205. fi
  7206. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7207. if test -n "$ac_tool_prefix"; then
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7209. $as_echo_n "checking for file... " >&6; }
  7210. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7211. $as_echo_n "(cached) " >&6
  7212. else
  7213. case $MAGIC_CMD in
  7214. [\\/*] | ?:[\\/]*)
  7215. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7216. ;;
  7217. *)
  7218. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7219. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7220. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7221. for ac_dir in $ac_dummy; do
  7222. IFS="$lt_save_ifs"
  7223. test -z "$ac_dir" && ac_dir=.
  7224. if test -f $ac_dir/file; then
  7225. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7226. if test -n "$file_magic_test_file"; then
  7227. case $deplibs_check_method in
  7228. "file_magic "*)
  7229. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7230. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7231. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7232. $EGREP "$file_magic_regex" > /dev/null; then
  7233. :
  7234. else
  7235. cat <<_LT_EOF 1>&2
  7236. *** Warning: the command libtool uses to detect shared libraries,
  7237. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7238. *** The result is that libtool may fail to recognize shared libraries
  7239. *** as such. This will affect the creation of libtool libraries that
  7240. *** depend on shared libraries, but programs linked with such libtool
  7241. *** libraries will work regardless of this problem. Nevertheless, you
  7242. *** may want to report the problem to your system manager and/or to
  7243. *** [email protected]
  7244. _LT_EOF
  7245. fi ;;
  7246. esac
  7247. fi
  7248. break
  7249. fi
  7250. done
  7251. IFS="$lt_save_ifs"
  7252. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7253. ;;
  7254. esac
  7255. fi
  7256. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7257. if test -n "$MAGIC_CMD"; then
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7259. $as_echo "$MAGIC_CMD" >&6; }
  7260. else
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7262. $as_echo "no" >&6; }
  7263. fi
  7264. else
  7265. MAGIC_CMD=:
  7266. fi
  7267. fi
  7268. fi
  7269. ;;
  7270. esac
  7271. # Use C for the default configuration in the libtool script
  7272. lt_save_CC="$CC"
  7273. ac_ext=c
  7274. ac_cpp='$CPP $CPPFLAGS'
  7275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7278. # Source file extension for C test sources.
  7279. ac_ext=c
  7280. # Object file extension for compiled C test sources.
  7281. objext=o
  7282. objext=$objext
  7283. # Code to be used in simple compile tests
  7284. lt_simple_compile_test_code="int some_variable = 0;"
  7285. # Code to be used in simple link tests
  7286. lt_simple_link_test_code='int main(){return(0);}'
  7287. # If no C compiler was specified, use CC.
  7288. LTCC=${LTCC-"$CC"}
  7289. # If no C compiler flags were specified, use CFLAGS.
  7290. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7291. # Allow CC to be a program name with arguments.
  7292. compiler=$CC
  7293. # Save the default compiler, since it gets overwritten when the other
  7294. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7295. compiler_DEFAULT=$CC
  7296. # save warnings/boilerplate of simple test code
  7297. ac_outfile=conftest.$ac_objext
  7298. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7299. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7300. _lt_compiler_boilerplate=`cat conftest.err`
  7301. $RM conftest*
  7302. ac_outfile=conftest.$ac_objext
  7303. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7304. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7305. _lt_linker_boilerplate=`cat conftest.err`
  7306. $RM -r conftest*
  7307. ## CAVEAT EMPTOR:
  7308. ## There is no encapsulation within the following macros, do not change
  7309. ## the running order or otherwise move them around unless you know exactly
  7310. ## what you are doing...
  7311. if test -n "$compiler"; then
  7312. lt_prog_compiler_no_builtin_flag=
  7313. if test "$GCC" = yes; then
  7314. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7316. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7317. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. lt_cv_prog_compiler_rtti_exceptions=no
  7321. ac_outfile=conftest.$ac_objext
  7322. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7323. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7324. # Insert the option either (1) after the last *FLAGS variable, or
  7325. # (2) before a word containing "conftest.", or (3) at the end.
  7326. # Note that $ac_compile itself does not contain backslashes and begins
  7327. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7328. # The option is referenced via a variable to avoid confusing sed.
  7329. lt_compile=`echo "$ac_compile" | $SED \
  7330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7332. -e 's:$: $lt_compiler_flag:'`
  7333. (eval echo "\"\$as_me:8599: $lt_compile\"" >&5)
  7334. (eval "$lt_compile" 2>conftest.err)
  7335. ac_status=$?
  7336. cat conftest.err >&5
  7337. echo "$as_me:8603: \$? = $ac_status" >&5
  7338. if (exit $ac_status) && test -s "$ac_outfile"; then
  7339. # The compiler can only warn and ignore the option if not recognized
  7340. # So say no if there are warnings other than the usual output.
  7341. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7342. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7343. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7344. lt_cv_prog_compiler_rtti_exceptions=yes
  7345. fi
  7346. fi
  7347. $RM conftest*
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7350. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7351. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7352. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7353. else
  7354. :
  7355. fi
  7356. fi
  7357. lt_prog_compiler_wl=
  7358. lt_prog_compiler_pic=
  7359. lt_prog_compiler_static=
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7361. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7362. if test "$GCC" = yes; then
  7363. lt_prog_compiler_wl='-Wl,'
  7364. lt_prog_compiler_static='-static'
  7365. case $host_os in
  7366. aix*)
  7367. # All AIX code is PIC.
  7368. if test "$host_cpu" = ia64; then
  7369. # AIX 5 now supports IA64 processor
  7370. lt_prog_compiler_static='-Bstatic'
  7371. fi
  7372. ;;
  7373. amigaos*)
  7374. case $host_cpu in
  7375. powerpc)
  7376. # see comment about AmigaOS4 .so support
  7377. lt_prog_compiler_pic='-fPIC'
  7378. ;;
  7379. m68k)
  7380. # FIXME: we need at least 68020 code to build shared libraries, but
  7381. # adding the `-m68020' flag to GCC prevents building anything better,
  7382. # like `-m68040'.
  7383. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7384. ;;
  7385. esac
  7386. ;;
  7387. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7388. # PIC is the default for these OSes.
  7389. ;;
  7390. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7391. # This hack is so that the source file can tell whether it is being
  7392. # built for inclusion in a dll (and should export symbols for example).
  7393. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7394. # (--disable-auto-import) libraries
  7395. lt_prog_compiler_pic='-DDLL_EXPORT'
  7396. ;;
  7397. darwin* | rhapsody*)
  7398. # PIC is the default on this platform
  7399. # Common symbols not allowed in MH_DYLIB files
  7400. lt_prog_compiler_pic='-fno-common'
  7401. ;;
  7402. hpux*)
  7403. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7404. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7405. # sets the default TLS model and affects inlining.
  7406. case $host_cpu in
  7407. hppa*64*)
  7408. # +Z the default
  7409. ;;
  7410. *)
  7411. lt_prog_compiler_pic='-fPIC'
  7412. ;;
  7413. esac
  7414. ;;
  7415. interix[3-9]*)
  7416. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7417. # Instead, we relocate shared libraries at runtime.
  7418. ;;
  7419. msdosdjgpp*)
  7420. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7421. # on systems that don't support them.
  7422. lt_prog_compiler_can_build_shared=no
  7423. enable_shared=no
  7424. ;;
  7425. *nto* | *qnx*)
  7426. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7427. # it will coredump.
  7428. lt_prog_compiler_pic='-fPIC -shared'
  7429. ;;
  7430. sysv4*MP*)
  7431. if test -d /usr/nec; then
  7432. lt_prog_compiler_pic=-Kconform_pic
  7433. fi
  7434. ;;
  7435. *)
  7436. lt_prog_compiler_pic='-fPIC'
  7437. ;;
  7438. esac
  7439. else
  7440. # PORTME Check for flag to pass linker flags through the system compiler.
  7441. case $host_os in
  7442. aix*)
  7443. lt_prog_compiler_wl='-Wl,'
  7444. if test "$host_cpu" = ia64; then
  7445. # AIX 5 now supports IA64 processor
  7446. lt_prog_compiler_static='-Bstatic'
  7447. else
  7448. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7449. fi
  7450. ;;
  7451. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7452. # This hack is so that the source file can tell whether it is being
  7453. # built for inclusion in a dll (and should export symbols for example).
  7454. lt_prog_compiler_pic='-DDLL_EXPORT'
  7455. ;;
  7456. hpux9* | hpux10* | hpux11*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7459. # not for PA HP-UX.
  7460. case $host_cpu in
  7461. hppa*64*|ia64*)
  7462. # +Z the default
  7463. ;;
  7464. *)
  7465. lt_prog_compiler_pic='+Z'
  7466. ;;
  7467. esac
  7468. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7469. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7470. ;;
  7471. irix5* | irix6* | nonstopux*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # PIC (with -KPIC) is the default.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7477. case $cc_basename in
  7478. # old Intel for x86_64 which still supported -KPIC.
  7479. ecc*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-KPIC'
  7482. lt_prog_compiler_static='-static'
  7483. ;;
  7484. # icc used to be incompatible with GCC.
  7485. # ICC 10 doesn't accept -KPIC any more.
  7486. icc* | ifort*)
  7487. lt_prog_compiler_wl='-Wl,'
  7488. lt_prog_compiler_pic='-fPIC'
  7489. lt_prog_compiler_static='-static'
  7490. ;;
  7491. # Lahey Fortran 8.1.
  7492. lf95*)
  7493. lt_prog_compiler_wl='-Wl,'
  7494. lt_prog_compiler_pic='--shared'
  7495. lt_prog_compiler_static='--static'
  7496. ;;
  7497. pgcc* | pgf77* | pgf90* | pgf95*)
  7498. # Portland Group compilers (*not* the Pentium gcc compiler,
  7499. # which looks to be a dead project)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. lt_prog_compiler_pic='-fpic'
  7502. lt_prog_compiler_static='-Bstatic'
  7503. ;;
  7504. ccc*)
  7505. lt_prog_compiler_wl='-Wl,'
  7506. # All Alpha code is PIC.
  7507. lt_prog_compiler_static='-non_shared'
  7508. ;;
  7509. xl*)
  7510. # IBM XL C 8.0/Fortran 10.1 on PPC
  7511. lt_prog_compiler_wl='-Wl,'
  7512. lt_prog_compiler_pic='-qpic'
  7513. lt_prog_compiler_static='-qstaticlink'
  7514. ;;
  7515. *)
  7516. case `$CC -V 2>&1 | sed 5q` in
  7517. *Sun\ C*)
  7518. # Sun C 5.9
  7519. lt_prog_compiler_pic='-KPIC'
  7520. lt_prog_compiler_static='-Bstatic'
  7521. lt_prog_compiler_wl='-Wl,'
  7522. ;;
  7523. *Sun\ F*)
  7524. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7525. lt_prog_compiler_pic='-KPIC'
  7526. lt_prog_compiler_static='-Bstatic'
  7527. lt_prog_compiler_wl=''
  7528. ;;
  7529. esac
  7530. ;;
  7531. esac
  7532. ;;
  7533. newsos6)
  7534. lt_prog_compiler_pic='-KPIC'
  7535. lt_prog_compiler_static='-Bstatic'
  7536. ;;
  7537. *nto* | *qnx*)
  7538. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7539. # it will coredump.
  7540. lt_prog_compiler_pic='-fPIC -shared'
  7541. ;;
  7542. osf3* | osf4* | osf5*)
  7543. lt_prog_compiler_wl='-Wl,'
  7544. # All OSF/1 code is PIC.
  7545. lt_prog_compiler_static='-non_shared'
  7546. ;;
  7547. rdos*)
  7548. lt_prog_compiler_static='-non_shared'
  7549. ;;
  7550. solaris*)
  7551. lt_prog_compiler_pic='-KPIC'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. case $cc_basename in
  7554. f77* | f90* | f95*)
  7555. lt_prog_compiler_wl='-Qoption ld ';;
  7556. *)
  7557. lt_prog_compiler_wl='-Wl,';;
  7558. esac
  7559. ;;
  7560. sunos4*)
  7561. lt_prog_compiler_wl='-Qoption ld '
  7562. lt_prog_compiler_pic='-PIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. ;;
  7565. sysv4 | sysv4.2uw2* | sysv4.3*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_pic='-KPIC'
  7568. lt_prog_compiler_static='-Bstatic'
  7569. ;;
  7570. sysv4*MP*)
  7571. if test -d /usr/nec ;then
  7572. lt_prog_compiler_pic='-Kconform_pic'
  7573. lt_prog_compiler_static='-Bstatic'
  7574. fi
  7575. ;;
  7576. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7577. lt_prog_compiler_wl='-Wl,'
  7578. lt_prog_compiler_pic='-KPIC'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. ;;
  7581. unicos*)
  7582. lt_prog_compiler_wl='-Wl,'
  7583. lt_prog_compiler_can_build_shared=no
  7584. ;;
  7585. uts4*)
  7586. lt_prog_compiler_pic='-pic'
  7587. lt_prog_compiler_static='-Bstatic'
  7588. ;;
  7589. *)
  7590. lt_prog_compiler_can_build_shared=no
  7591. ;;
  7592. esac
  7593. fi
  7594. case $host_os in
  7595. # For platforms which do not support PIC, -DPIC is meaningless:
  7596. *djgpp*)
  7597. lt_prog_compiler_pic=
  7598. ;;
  7599. *)
  7600. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7601. ;;
  7602. esac
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7604. $as_echo "$lt_prog_compiler_pic" >&6; }
  7605. #
  7606. # Check to make sure the PIC flag actually works.
  7607. #
  7608. if test -n "$lt_prog_compiler_pic"; then
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7610. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7611. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7612. $as_echo_n "(cached) " >&6
  7613. else
  7614. lt_cv_prog_compiler_pic_works=no
  7615. ac_outfile=conftest.$ac_objext
  7616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7617. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7618. # Insert the option either (1) after the last *FLAGS variable, or
  7619. # (2) before a word containing "conftest.", or (3) at the end.
  7620. # Note that $ac_compile itself does not contain backslashes and begins
  7621. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7622. # The option is referenced via a variable to avoid confusing sed.
  7623. lt_compile=`echo "$ac_compile" | $SED \
  7624. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7625. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7626. -e 's:$: $lt_compiler_flag:'`
  7627. (eval echo "\"\$as_me:8938: $lt_compile\"" >&5)
  7628. (eval "$lt_compile" 2>conftest.err)
  7629. ac_status=$?
  7630. cat conftest.err >&5
  7631. echo "$as_me:8942: \$? = $ac_status" >&5
  7632. if (exit $ac_status) && test -s "$ac_outfile"; then
  7633. # The compiler can only warn and ignore the option if not recognized
  7634. # So say no if there are warnings other than the usual output.
  7635. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7636. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7637. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7638. lt_cv_prog_compiler_pic_works=yes
  7639. fi
  7640. fi
  7641. $RM conftest*
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7644. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7645. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7646. case $lt_prog_compiler_pic in
  7647. "" | " "*) ;;
  7648. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7649. esac
  7650. else
  7651. lt_prog_compiler_pic=
  7652. lt_prog_compiler_can_build_shared=no
  7653. fi
  7654. fi
  7655. #
  7656. # Check to make sure the static flag actually works.
  7657. #
  7658. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7660. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7661. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7662. $as_echo_n "(cached) " >&6
  7663. else
  7664. lt_cv_prog_compiler_static_works=no
  7665. save_LDFLAGS="$LDFLAGS"
  7666. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7667. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7668. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7669. # The linker can only warn and ignore the option if not recognized
  7670. # So say no if there are warnings
  7671. if test -s conftest.err; then
  7672. # Append any errors to the config.log.
  7673. cat conftest.err 1>&5
  7674. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7675. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7676. if diff conftest.exp conftest.er2 >/dev/null; then
  7677. lt_cv_prog_compiler_static_works=yes
  7678. fi
  7679. else
  7680. lt_cv_prog_compiler_static_works=yes
  7681. fi
  7682. fi
  7683. $RM -r conftest*
  7684. LDFLAGS="$save_LDFLAGS"
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7687. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7688. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7689. :
  7690. else
  7691. lt_prog_compiler_static=
  7692. fi
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7694. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7695. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. lt_cv_prog_compiler_c_o=no
  7699. $RM -r conftest 2>/dev/null
  7700. mkdir conftest
  7701. cd conftest
  7702. mkdir out
  7703. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7704. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7705. # Insert the option either (1) after the last *FLAGS variable, or
  7706. # (2) before a word containing "conftest.", or (3) at the end.
  7707. # Note that $ac_compile itself does not contain backslashes and begins
  7708. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7709. lt_compile=`echo "$ac_compile" | $SED \
  7710. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7711. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7712. -e 's:$: $lt_compiler_flag:'`
  7713. (eval echo "\"\$as_me:9043: $lt_compile\"" >&5)
  7714. (eval "$lt_compile" 2>out/conftest.err)
  7715. ac_status=$?
  7716. cat out/conftest.err >&5
  7717. echo "$as_me:9047: \$? = $ac_status" >&5
  7718. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7719. then
  7720. # The compiler can only warn and ignore the option if not recognized
  7721. # So say no if there are warnings
  7722. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7723. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7724. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7725. lt_cv_prog_compiler_c_o=yes
  7726. fi
  7727. fi
  7728. chmod u+w . 2>&5
  7729. $RM conftest*
  7730. # SGI C++ compiler will create directory out/ii_files/ for
  7731. # template instantiation
  7732. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7733. $RM out/* && rmdir out
  7734. cd ..
  7735. $RM -r conftest
  7736. $RM conftest*
  7737. fi
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7739. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7741. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7742. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7743. $as_echo_n "(cached) " >&6
  7744. else
  7745. lt_cv_prog_compiler_c_o=no
  7746. $RM -r conftest 2>/dev/null
  7747. mkdir conftest
  7748. cd conftest
  7749. mkdir out
  7750. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7751. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7752. # Insert the option either (1) after the last *FLAGS variable, or
  7753. # (2) before a word containing "conftest.", or (3) at the end.
  7754. # Note that $ac_compile itself does not contain backslashes and begins
  7755. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7756. lt_compile=`echo "$ac_compile" | $SED \
  7757. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7758. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7759. -e 's:$: $lt_compiler_flag:'`
  7760. (eval echo "\"\$as_me:9098: $lt_compile\"" >&5)
  7761. (eval "$lt_compile" 2>out/conftest.err)
  7762. ac_status=$?
  7763. cat out/conftest.err >&5
  7764. echo "$as_me:9102: \$? = $ac_status" >&5
  7765. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7766. then
  7767. # The compiler can only warn and ignore the option if not recognized
  7768. # So say no if there are warnings
  7769. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7770. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7771. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7772. lt_cv_prog_compiler_c_o=yes
  7773. fi
  7774. fi
  7775. chmod u+w . 2>&5
  7776. $RM conftest*
  7777. # SGI C++ compiler will create directory out/ii_files/ for
  7778. # template instantiation
  7779. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7780. $RM out/* && rmdir out
  7781. cd ..
  7782. $RM -r conftest
  7783. $RM conftest*
  7784. fi
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7786. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7787. hard_links="nottested"
  7788. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7789. # do not overwrite the value of need_locks provided by the user
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7791. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7792. hard_links=yes
  7793. $RM conftest*
  7794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7795. touch conftest.a
  7796. ln conftest.a conftest.b 2>&5 || hard_links=no
  7797. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7799. $as_echo "$hard_links" >&6; }
  7800. if test "$hard_links" = no; then
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7802. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7803. need_locks=warn
  7804. fi
  7805. else
  7806. need_locks=no
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7809. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7810. runpath_var=
  7811. allow_undefined_flag=
  7812. always_export_symbols=no
  7813. archive_cmds=
  7814. archive_expsym_cmds=
  7815. compiler_needs_object=no
  7816. enable_shared_with_static_runtimes=no
  7817. export_dynamic_flag_spec=
  7818. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7819. hardcode_automatic=no
  7820. hardcode_direct=no
  7821. hardcode_direct_absolute=no
  7822. hardcode_libdir_flag_spec=
  7823. hardcode_libdir_flag_spec_ld=
  7824. hardcode_libdir_separator=
  7825. hardcode_minus_L=no
  7826. hardcode_shlibpath_var=unsupported
  7827. inherit_rpath=no
  7828. link_all_deplibs=unknown
  7829. module_cmds=
  7830. module_expsym_cmds=
  7831. old_archive_from_new_cmds=
  7832. old_archive_from_expsyms_cmds=
  7833. thread_safe_flag_spec=
  7834. whole_archive_flag_spec=
  7835. # include_expsyms should be a list of space-separated symbols to be *always*
  7836. # included in the symbol list
  7837. include_expsyms=
  7838. # exclude_expsyms can be an extended regexp of symbols to exclude
  7839. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7840. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7841. # as well as any symbol that contains `d'.
  7842. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7843. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7844. # platforms (ab)use it in PIC code, but their linkers get confused if
  7845. # the symbol is explicitly referenced. Since portable code cannot
  7846. # rely on this symbol name, it's probably fine to never include it in
  7847. # preloaded symbol tables.
  7848. # Exclude shared library initialization/finalization symbols.
  7849. extract_expsyms_cmds=
  7850. case $host_os in
  7851. cygwin* | mingw* | pw32* | cegcc*)
  7852. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7853. # When not using gcc, we currently assume that we are using
  7854. # Microsoft Visual C++.
  7855. if test "$GCC" != yes; then
  7856. with_gnu_ld=no
  7857. fi
  7858. ;;
  7859. interix*)
  7860. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7861. with_gnu_ld=yes
  7862. ;;
  7863. openbsd*)
  7864. with_gnu_ld=no
  7865. ;;
  7866. linux* | k*bsd*-gnu)
  7867. link_all_deplibs=no
  7868. ;;
  7869. esac
  7870. ld_shlibs=yes
  7871. if test "$with_gnu_ld" = yes; then
  7872. # If archive_cmds runs LD, not CC, wlarc should be empty
  7873. wlarc='${wl}'
  7874. # Set some defaults for GNU ld with shared library support. These
  7875. # are reset later if shared libraries are not supported. Putting them
  7876. # here allows them to be overridden if necessary.
  7877. runpath_var=LD_RUN_PATH
  7878. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7879. export_dynamic_flag_spec='${wl}--export-dynamic'
  7880. # ancient GNU ld didn't support --whole-archive et. al.
  7881. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7882. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7883. else
  7884. whole_archive_flag_spec=
  7885. fi
  7886. supports_anon_versioning=no
  7887. case `$LD -v 2>&1` in
  7888. *GNU\ gold*) supports_anon_versioning=yes ;;
  7889. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7890. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7891. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7892. *\ 2.11.*) ;; # other 2.11 versions
  7893. *) supports_anon_versioning=yes ;;
  7894. esac
  7895. # See if GNU ld supports shared libraries.
  7896. case $host_os in
  7897. aix[3-9]*)
  7898. # On AIX/PPC, the GNU linker is very broken
  7899. if test "$host_cpu" != ia64; then
  7900. ld_shlibs=no
  7901. cat <<_LT_EOF 1>&2
  7902. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7903. *** to be unable to reliably create shared libraries on AIX.
  7904. *** Therefore, libtool is disabling shared libraries support. If you
  7905. *** really care for shared libraries, you may want to modify your PATH
  7906. *** so that a non-GNU linker is found, and then restart.
  7907. _LT_EOF
  7908. fi
  7909. ;;
  7910. amigaos*)
  7911. case $host_cpu in
  7912. powerpc)
  7913. # see comment about AmigaOS4 .so support
  7914. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7915. archive_expsym_cmds=''
  7916. ;;
  7917. m68k)
  7918. 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)'
  7919. hardcode_libdir_flag_spec='-L$libdir'
  7920. hardcode_minus_L=yes
  7921. ;;
  7922. esac
  7923. ;;
  7924. beos*)
  7925. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7926. allow_undefined_flag=unsupported
  7927. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7928. # support --undefined. This deserves some investigation. FIXME
  7929. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7930. else
  7931. ld_shlibs=no
  7932. fi
  7933. ;;
  7934. cygwin* | mingw* | pw32* | cegcc*)
  7935. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7936. # as there is no search path for DLLs.
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. allow_undefined_flag=unsupported
  7939. always_export_symbols=no
  7940. enable_shared_with_static_runtimes=yes
  7941. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7942. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7943. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7944. # If the export-symbols file already is a .def file (1st line
  7945. # is EXPORTS), use it as is; otherwise, prepend...
  7946. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7947. cp $export_symbols $output_objdir/$soname.def;
  7948. else
  7949. echo EXPORTS > $output_objdir/$soname.def;
  7950. cat $export_symbols >> $output_objdir/$soname.def;
  7951. fi~
  7952. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7953. else
  7954. ld_shlibs=no
  7955. fi
  7956. ;;
  7957. interix[3-9]*)
  7958. hardcode_direct=no
  7959. hardcode_shlibpath_var=no
  7960. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7961. export_dynamic_flag_spec='${wl}-E'
  7962. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7963. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7964. # default) and relocated if they conflict, which is a slow very memory
  7965. # consuming and fragmenting process. To avoid this, we pick a random,
  7966. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7967. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7968. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7969. 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'
  7970. ;;
  7971. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7972. tmp_diet=no
  7973. if test "$host_os" = linux-dietlibc; then
  7974. case $cc_basename in
  7975. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7976. esac
  7977. fi
  7978. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7979. && test "$tmp_diet" = no
  7980. then
  7981. tmp_addflag=
  7982. tmp_sharedflag='-shared'
  7983. case $cc_basename,$host_cpu in
  7984. pgcc*) # Portland Group C compiler
  7985. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7986. tmp_addflag=' $pic_flag'
  7987. ;;
  7988. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7989. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7990. tmp_addflag=' $pic_flag -Mnomain' ;;
  7991. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7992. tmp_addflag=' -i_dynamic' ;;
  7993. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7994. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7995. ifc* | ifort*) # Intel Fortran compiler
  7996. tmp_addflag=' -nofor_main' ;;
  7997. lf95*) # Lahey Fortran 8.1
  7998. whole_archive_flag_spec=
  7999. tmp_sharedflag='--shared' ;;
  8000. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8001. tmp_sharedflag='-qmkshrobj'
  8002. tmp_addflag= ;;
  8003. esac
  8004. case `$CC -V 2>&1 | sed 5q` in
  8005. *Sun\ C*) # Sun C 5.9
  8006. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8007. compiler_needs_object=yes
  8008. tmp_sharedflag='-G' ;;
  8009. *Sun\ F*) # Sun Fortran 8.3
  8010. tmp_sharedflag='-G' ;;
  8011. esac
  8012. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8013. if test "x$supports_anon_versioning" = xyes; then
  8014. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8015. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8016. echo "local: *; };" >> $output_objdir/$libname.ver~
  8017. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8018. fi
  8019. case $cc_basename in
  8020. xlf*)
  8021. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8022. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8023. hardcode_libdir_flag_spec=
  8024. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8025. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8026. if test "x$supports_anon_versioning" = xyes; then
  8027. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8028. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8029. echo "local: *; };" >> $output_objdir/$libname.ver~
  8030. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8031. fi
  8032. ;;
  8033. esac
  8034. else
  8035. ld_shlibs=no
  8036. fi
  8037. ;;
  8038. netbsd* | netbsdelf*-gnu)
  8039. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8040. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8041. wlarc=
  8042. else
  8043. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8044. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8045. fi
  8046. ;;
  8047. solaris*)
  8048. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8049. ld_shlibs=no
  8050. cat <<_LT_EOF 1>&2
  8051. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8052. *** create shared libraries on Solaris systems. Therefore, libtool
  8053. *** is disabling shared libraries support. We urge you to upgrade GNU
  8054. *** binutils to release 2.9.1 or newer. Another option is to modify
  8055. *** your PATH or compiler configuration so that the native linker is
  8056. *** used, and then restart.
  8057. _LT_EOF
  8058. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8059. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8060. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8061. else
  8062. ld_shlibs=no
  8063. fi
  8064. ;;
  8065. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8066. case `$LD -v 2>&1` in
  8067. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8068. ld_shlibs=no
  8069. cat <<_LT_EOF 1>&2
  8070. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8071. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8072. *** is disabling shared libraries support. We urge you to upgrade GNU
  8073. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8074. *** your PATH or compiler configuration so that the native linker is
  8075. *** used, and then restart.
  8076. _LT_EOF
  8077. ;;
  8078. *)
  8079. # For security reasons, it is highly recommended that you always
  8080. # use absolute paths for naming shared libraries, and exclude the
  8081. # DT_RUNPATH tag from executables and libraries. But doing so
  8082. # requires that you compile everything twice, which is a pain.
  8083. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8084. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8085. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8086. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8087. else
  8088. ld_shlibs=no
  8089. fi
  8090. ;;
  8091. esac
  8092. ;;
  8093. sunos4*)
  8094. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8095. wlarc=
  8096. hardcode_direct=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. *)
  8100. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8101. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8102. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8103. else
  8104. ld_shlibs=no
  8105. fi
  8106. ;;
  8107. esac
  8108. if test "$ld_shlibs" = no; then
  8109. runpath_var=
  8110. hardcode_libdir_flag_spec=
  8111. export_dynamic_flag_spec=
  8112. whole_archive_flag_spec=
  8113. fi
  8114. else
  8115. # PORTME fill in a description of your system's linker (not GNU ld)
  8116. case $host_os in
  8117. aix3*)
  8118. allow_undefined_flag=unsupported
  8119. always_export_symbols=yes
  8120. 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'
  8121. # Note: this linker hardcodes the directories in LIBPATH if there
  8122. # are no directories specified by -L.
  8123. hardcode_minus_L=yes
  8124. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8125. # Neither direct hardcoding nor static linking is supported with a
  8126. # broken collect2.
  8127. hardcode_direct=unsupported
  8128. fi
  8129. ;;
  8130. aix[4-9]*)
  8131. if test "$host_cpu" = ia64; then
  8132. # On IA64, the linker does run time linking by default, so we don't
  8133. # have to do anything special.
  8134. aix_use_runtimelinking=no
  8135. exp_sym_flag='-Bexport'
  8136. no_entry_flag=""
  8137. else
  8138. # If we're using GNU nm, then we don't want the "-C" option.
  8139. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8140. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8141. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8142. else
  8143. 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'
  8144. fi
  8145. aix_use_runtimelinking=no
  8146. # Test if we are trying to use run time linking or normal
  8147. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8148. # need to do runtime linking.
  8149. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8150. for ld_flag in $LDFLAGS; do
  8151. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8152. aix_use_runtimelinking=yes
  8153. break
  8154. fi
  8155. done
  8156. ;;
  8157. esac
  8158. exp_sym_flag='-bexport'
  8159. no_entry_flag='-bnoentry'
  8160. fi
  8161. # When large executables or shared objects are built, AIX ld can
  8162. # have problems creating the table of contents. If linking a library
  8163. # or program results in "error TOC overflow" add -mminimal-toc to
  8164. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8165. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8166. archive_cmds=''
  8167. hardcode_direct=yes
  8168. hardcode_direct_absolute=yes
  8169. hardcode_libdir_separator=':'
  8170. link_all_deplibs=yes
  8171. file_list_spec='${wl}-f,'
  8172. if test "$GCC" = yes; then
  8173. case $host_os in aix4.[012]|aix4.[012].*)
  8174. # We only want to do this on AIX 4.2 and lower, the check
  8175. # below for broken collect2 doesn't work under 4.3+
  8176. collect2name=`${CC} -print-prog-name=collect2`
  8177. if test -f "$collect2name" &&
  8178. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8179. then
  8180. # We have reworked collect2
  8181. :
  8182. else
  8183. # We have old collect2
  8184. hardcode_direct=unsupported
  8185. # It fails to find uninstalled libraries when the uninstalled
  8186. # path is not listed in the libpath. Setting hardcode_minus_L
  8187. # to unsupported forces relinking
  8188. hardcode_minus_L=yes
  8189. hardcode_libdir_flag_spec='-L$libdir'
  8190. hardcode_libdir_separator=
  8191. fi
  8192. ;;
  8193. esac
  8194. shared_flag='-shared'
  8195. if test "$aix_use_runtimelinking" = yes; then
  8196. shared_flag="$shared_flag "'${wl}-G'
  8197. fi
  8198. link_all_deplibs=no
  8199. else
  8200. # not using gcc
  8201. if test "$host_cpu" = ia64; then
  8202. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8203. # chokes on -Wl,-G. The following line is correct:
  8204. shared_flag='-G'
  8205. else
  8206. if test "$aix_use_runtimelinking" = yes; then
  8207. shared_flag='${wl}-G'
  8208. else
  8209. shared_flag='${wl}-bM:SRE'
  8210. fi
  8211. fi
  8212. fi
  8213. export_dynamic_flag_spec='${wl}-bexpall'
  8214. # It seems that -bexpall does not export symbols beginning with
  8215. # underscore (_), so it is better to generate a list of symbols to export.
  8216. always_export_symbols=yes
  8217. if test "$aix_use_runtimelinking" = yes; then
  8218. # Warning - without using the other runtime loading flags (-brtl),
  8219. # -berok will link without error, but may produce a broken library.
  8220. allow_undefined_flag='-berok'
  8221. # Determine the default libpath from the value encoded in an
  8222. # empty executable.
  8223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8224. /* end confdefs.h. */
  8225. int
  8226. main ()
  8227. {
  8228. ;
  8229. return 0;
  8230. }
  8231. _ACEOF
  8232. if ac_fn_c_try_link "$LINENO"; then :
  8233. lt_aix_libpath_sed='
  8234. /Import File Strings/,/^$/ {
  8235. /^0/ {
  8236. s/^0 *\(.*\)$/\1/
  8237. p
  8238. }
  8239. }'
  8240. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8241. # Check for a 64-bit object if we didn't find anything.
  8242. if test -z "$aix_libpath"; then
  8243. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8244. fi
  8245. fi
  8246. rm -f core conftest.err conftest.$ac_objext \
  8247. conftest$ac_exeext conftest.$ac_ext
  8248. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8249. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8250. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8251. else
  8252. if test "$host_cpu" = ia64; then
  8253. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8254. allow_undefined_flag="-z nodefs"
  8255. 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"
  8256. else
  8257. # Determine the default libpath from the value encoded in an
  8258. # empty executable.
  8259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8260. /* end confdefs.h. */
  8261. int
  8262. main ()
  8263. {
  8264. ;
  8265. return 0;
  8266. }
  8267. _ACEOF
  8268. if ac_fn_c_try_link "$LINENO"; then :
  8269. lt_aix_libpath_sed='
  8270. /Import File Strings/,/^$/ {
  8271. /^0/ {
  8272. s/^0 *\(.*\)$/\1/
  8273. p
  8274. }
  8275. }'
  8276. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8277. # Check for a 64-bit object if we didn't find anything.
  8278. if test -z "$aix_libpath"; then
  8279. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8280. fi
  8281. fi
  8282. rm -f core conftest.err conftest.$ac_objext \
  8283. conftest$ac_exeext conftest.$ac_ext
  8284. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8285. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8286. # Warning - without using the other run time loading flags,
  8287. # -berok will link without error, but may produce a broken library.
  8288. no_undefined_flag=' ${wl}-bernotok'
  8289. allow_undefined_flag=' ${wl}-berok'
  8290. # Exported symbols can be pulled into shared objects from archives
  8291. whole_archive_flag_spec='$convenience'
  8292. archive_cmds_need_lc=yes
  8293. # This is similar to how AIX traditionally builds its shared libraries.
  8294. 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'
  8295. fi
  8296. fi
  8297. ;;
  8298. amigaos*)
  8299. case $host_cpu in
  8300. powerpc)
  8301. # see comment about AmigaOS4 .so support
  8302. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8303. archive_expsym_cmds=''
  8304. ;;
  8305. m68k)
  8306. 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)'
  8307. hardcode_libdir_flag_spec='-L$libdir'
  8308. hardcode_minus_L=yes
  8309. ;;
  8310. esac
  8311. ;;
  8312. bsdi[45]*)
  8313. export_dynamic_flag_spec=-rdynamic
  8314. ;;
  8315. cygwin* | mingw* | pw32* | cegcc*)
  8316. # When not using gcc, we currently assume that we are using
  8317. # Microsoft Visual C++.
  8318. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8319. # no search path for DLLs.
  8320. hardcode_libdir_flag_spec=' '
  8321. allow_undefined_flag=unsupported
  8322. # Tell ltmain to make .lib files, not .a files.
  8323. libext=lib
  8324. # Tell ltmain to make .dll files, not .so files.
  8325. shrext_cmds=".dll"
  8326. # FIXME: Setting linknames here is a bad hack.
  8327. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8328. # The linker will automatically build a .lib file if we build a DLL.
  8329. old_archive_from_new_cmds='true'
  8330. # FIXME: Should let the user specify the lib program.
  8331. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8332. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8333. enable_shared_with_static_runtimes=yes
  8334. ;;
  8335. darwin* | rhapsody*)
  8336. archive_cmds_need_lc=no
  8337. hardcode_direct=no
  8338. hardcode_automatic=yes
  8339. hardcode_shlibpath_var=unsupported
  8340. whole_archive_flag_spec=''
  8341. link_all_deplibs=yes
  8342. allow_undefined_flag="$_lt_dar_allow_undefined"
  8343. case $cc_basename in
  8344. ifort*) _lt_dar_can_shared=yes ;;
  8345. *) _lt_dar_can_shared=$GCC ;;
  8346. esac
  8347. if test "$_lt_dar_can_shared" = "yes"; then
  8348. output_verbose_link_cmd=echo
  8349. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8350. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8351. 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}"
  8352. 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}"
  8353. else
  8354. ld_shlibs=no
  8355. fi
  8356. ;;
  8357. dgux*)
  8358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8359. hardcode_libdir_flag_spec='-L$libdir'
  8360. hardcode_shlibpath_var=no
  8361. ;;
  8362. freebsd1*)
  8363. ld_shlibs=no
  8364. ;;
  8365. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8366. # support. Future versions do this automatically, but an explicit c++rt0.o
  8367. # does not break anything, and helps significantly (at the cost of a little
  8368. # extra space).
  8369. freebsd2.2*)
  8370. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8371. hardcode_libdir_flag_spec='-R$libdir'
  8372. hardcode_direct=yes
  8373. hardcode_shlibpath_var=no
  8374. ;;
  8375. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8376. freebsd2*)
  8377. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8378. hardcode_direct=yes
  8379. hardcode_minus_L=yes
  8380. hardcode_shlibpath_var=no
  8381. ;;
  8382. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8383. freebsd* | dragonfly*)
  8384. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8385. hardcode_libdir_flag_spec='-R$libdir'
  8386. hardcode_direct=yes
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. hpux9*)
  8390. if test "$GCC" = yes; then
  8391. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8392. else
  8393. 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'
  8394. fi
  8395. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8396. hardcode_libdir_separator=:
  8397. hardcode_direct=yes
  8398. # hardcode_minus_L: Not really in the search PATH,
  8399. # but as the default location of the library.
  8400. hardcode_minus_L=yes
  8401. export_dynamic_flag_spec='${wl}-E'
  8402. ;;
  8403. hpux10*)
  8404. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8405. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8406. else
  8407. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8408. fi
  8409. if test "$with_gnu_ld" = no; then
  8410. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8411. hardcode_libdir_flag_spec_ld='+b $libdir'
  8412. hardcode_libdir_separator=:
  8413. hardcode_direct=yes
  8414. hardcode_direct_absolute=yes
  8415. export_dynamic_flag_spec='${wl}-E'
  8416. # hardcode_minus_L: Not really in the search PATH,
  8417. # but as the default location of the library.
  8418. hardcode_minus_L=yes
  8419. fi
  8420. ;;
  8421. hpux11*)
  8422. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8423. case $host_cpu in
  8424. hppa*64*)
  8425. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. ;;
  8427. ia64*)
  8428. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8429. ;;
  8430. *)
  8431. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8432. ;;
  8433. esac
  8434. else
  8435. case $host_cpu in
  8436. hppa*64*)
  8437. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. ;;
  8439. ia64*)
  8440. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8441. ;;
  8442. *)
  8443. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8444. ;;
  8445. esac
  8446. fi
  8447. if test "$with_gnu_ld" = no; then
  8448. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8449. hardcode_libdir_separator=:
  8450. case $host_cpu in
  8451. hppa*64*|ia64*)
  8452. hardcode_direct=no
  8453. hardcode_shlibpath_var=no
  8454. ;;
  8455. *)
  8456. hardcode_direct=yes
  8457. hardcode_direct_absolute=yes
  8458. export_dynamic_flag_spec='${wl}-E'
  8459. # hardcode_minus_L: Not really in the search PATH,
  8460. # but as the default location of the library.
  8461. hardcode_minus_L=yes
  8462. ;;
  8463. esac
  8464. fi
  8465. ;;
  8466. irix5* | irix6* | nonstopux*)
  8467. if test "$GCC" = yes; then
  8468. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8469. # Try to use the -exported_symbol ld option, if it does not
  8470. # work, assume that -exports_file does not work either and
  8471. # implicitly export all symbols.
  8472. save_LDFLAGS="$LDFLAGS"
  8473. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8475. /* end confdefs.h. */
  8476. int foo(void) {}
  8477. _ACEOF
  8478. if ac_fn_c_try_link "$LINENO"; then :
  8479. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8480. fi
  8481. rm -f core conftest.err conftest.$ac_objext \
  8482. conftest$ac_exeext conftest.$ac_ext
  8483. LDFLAGS="$save_LDFLAGS"
  8484. else
  8485. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8486. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8487. fi
  8488. archive_cmds_need_lc='no'
  8489. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8490. hardcode_libdir_separator=:
  8491. inherit_rpath=yes
  8492. link_all_deplibs=yes
  8493. ;;
  8494. netbsd* | netbsdelf*-gnu)
  8495. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8496. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8497. else
  8498. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8499. fi
  8500. hardcode_libdir_flag_spec='-R$libdir'
  8501. hardcode_direct=yes
  8502. hardcode_shlibpath_var=no
  8503. ;;
  8504. newsos6)
  8505. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8506. hardcode_direct=yes
  8507. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8508. hardcode_libdir_separator=:
  8509. hardcode_shlibpath_var=no
  8510. ;;
  8511. *nto* | *qnx*)
  8512. ;;
  8513. openbsd*)
  8514. if test -f /usr/libexec/ld.so; then
  8515. hardcode_direct=yes
  8516. hardcode_shlibpath_var=no
  8517. hardcode_direct_absolute=yes
  8518. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8519. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8520. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8521. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8522. export_dynamic_flag_spec='${wl}-E'
  8523. else
  8524. case $host_os in
  8525. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8526. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_libdir_flag_spec='-R$libdir'
  8528. ;;
  8529. *)
  8530. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8531. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8532. ;;
  8533. esac
  8534. fi
  8535. else
  8536. ld_shlibs=no
  8537. fi
  8538. ;;
  8539. os2*)
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_minus_L=yes
  8542. allow_undefined_flag=unsupported
  8543. 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'
  8544. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8545. ;;
  8546. osf3*)
  8547. if test "$GCC" = yes; then
  8548. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8549. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8550. else
  8551. allow_undefined_flag=' -expect_unresolved \*'
  8552. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8553. fi
  8554. archive_cmds_need_lc='no'
  8555. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8556. hardcode_libdir_separator=:
  8557. ;;
  8558. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8559. if test "$GCC" = yes; then
  8560. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8561. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8562. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8563. else
  8564. allow_undefined_flag=' -expect_unresolved \*'
  8565. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8566. 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~
  8567. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8568. # Both c and cxx compiler support -rpath directly
  8569. hardcode_libdir_flag_spec='-rpath $libdir'
  8570. fi
  8571. archive_cmds_need_lc='no'
  8572. hardcode_libdir_separator=:
  8573. ;;
  8574. solaris*)
  8575. no_undefined_flag=' -z defs'
  8576. if test "$GCC" = yes; then
  8577. wlarc='${wl}'
  8578. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8580. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8581. else
  8582. case `$CC -V 2>&1` in
  8583. *"Compilers 5.0"*)
  8584. wlarc=''
  8585. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8586. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8587. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8588. ;;
  8589. *)
  8590. wlarc='${wl}'
  8591. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8592. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8593. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8594. ;;
  8595. esac
  8596. fi
  8597. hardcode_libdir_flag_spec='-R$libdir'
  8598. hardcode_shlibpath_var=no
  8599. case $host_os in
  8600. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8601. *)
  8602. # The compiler driver will combine and reorder linker options,
  8603. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8604. # but is careful enough not to reorder.
  8605. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8606. if test "$GCC" = yes; then
  8607. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8608. else
  8609. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8610. fi
  8611. ;;
  8612. esac
  8613. link_all_deplibs=yes
  8614. ;;
  8615. sunos4*)
  8616. if test "x$host_vendor" = xsequent; then
  8617. # Use $CC to link under sequent, because it throws in some extra .o
  8618. # files that make .init and .fini sections work.
  8619. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8620. else
  8621. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8622. fi
  8623. hardcode_libdir_flag_spec='-L$libdir'
  8624. hardcode_direct=yes
  8625. hardcode_minus_L=yes
  8626. hardcode_shlibpath_var=no
  8627. ;;
  8628. sysv4)
  8629. case $host_vendor in
  8630. sni)
  8631. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8632. hardcode_direct=yes # is this really true???
  8633. ;;
  8634. siemens)
  8635. ## LD is ld it makes a PLAMLIB
  8636. ## CC just makes a GrossModule.
  8637. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8638. reload_cmds='$CC -r -o $output$reload_objs'
  8639. hardcode_direct=no
  8640. ;;
  8641. motorola)
  8642. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8643. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8644. ;;
  8645. esac
  8646. runpath_var='LD_RUN_PATH'
  8647. hardcode_shlibpath_var=no
  8648. ;;
  8649. sysv4.3*)
  8650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8651. hardcode_shlibpath_var=no
  8652. export_dynamic_flag_spec='-Bexport'
  8653. ;;
  8654. sysv4*MP*)
  8655. if test -d /usr/nec; then
  8656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8657. hardcode_shlibpath_var=no
  8658. runpath_var=LD_RUN_PATH
  8659. hardcode_runpath_var=yes
  8660. ld_shlibs=yes
  8661. fi
  8662. ;;
  8663. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8664. no_undefined_flag='${wl}-z,text'
  8665. archive_cmds_need_lc=no
  8666. hardcode_shlibpath_var=no
  8667. runpath_var='LD_RUN_PATH'
  8668. if test "$GCC" = yes; then
  8669. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8670. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8671. else
  8672. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8673. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8674. fi
  8675. ;;
  8676. sysv5* | sco3.2v5* | sco5v6*)
  8677. # Note: We can NOT use -z defs as we might desire, because we do not
  8678. # link with -lc, and that would cause any symbols used from libc to
  8679. # always be unresolved, which means just about no library would
  8680. # ever link correctly. If we're not using GNU ld we use -z text
  8681. # though, which does catch some bad symbols but isn't as heavy-handed
  8682. # as -z defs.
  8683. no_undefined_flag='${wl}-z,text'
  8684. allow_undefined_flag='${wl}-z,nodefs'
  8685. archive_cmds_need_lc=no
  8686. hardcode_shlibpath_var=no
  8687. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8688. hardcode_libdir_separator=':'
  8689. link_all_deplibs=yes
  8690. export_dynamic_flag_spec='${wl}-Bexport'
  8691. runpath_var='LD_RUN_PATH'
  8692. if test "$GCC" = yes; then
  8693. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8694. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8695. else
  8696. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8697. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8698. fi
  8699. ;;
  8700. uts4*)
  8701. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8702. hardcode_libdir_flag_spec='-L$libdir'
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. *)
  8706. ld_shlibs=no
  8707. ;;
  8708. esac
  8709. if test x$host_vendor = xsni; then
  8710. case $host in
  8711. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8712. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8713. ;;
  8714. esac
  8715. fi
  8716. fi
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8718. $as_echo "$ld_shlibs" >&6; }
  8719. test "$ld_shlibs" = no && can_build_shared=no
  8720. with_gnu_ld=$with_gnu_ld
  8721. #
  8722. # Do we need to explicitly link libc?
  8723. #
  8724. case "x$archive_cmds_need_lc" in
  8725. x|xyes)
  8726. # Assume -lc should be added
  8727. archive_cmds_need_lc=yes
  8728. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8729. case $archive_cmds in
  8730. *'~'*)
  8731. # FIXME: we may have to deal with multi-command sequences.
  8732. ;;
  8733. '$CC '*)
  8734. # Test whether the compiler implicitly links with -lc since on some
  8735. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8736. # to ld, don't add -lc before -lgcc.
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8738. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8739. $RM conftest*
  8740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8741. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8742. (eval $ac_compile) 2>&5
  8743. ac_status=$?
  8744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8745. test $ac_status = 0; } 2>conftest.err; then
  8746. soname=conftest
  8747. lib=conftest
  8748. libobjs=conftest.$ac_objext
  8749. deplibs=
  8750. wl=$lt_prog_compiler_wl
  8751. pic_flag=$lt_prog_compiler_pic
  8752. compiler_flags=-v
  8753. linker_flags=-v
  8754. verstring=
  8755. output_objdir=.
  8756. libname=conftest
  8757. lt_save_allow_undefined_flag=$allow_undefined_flag
  8758. allow_undefined_flag=
  8759. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8760. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8761. ac_status=$?
  8762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8763. test $ac_status = 0; }
  8764. then
  8765. archive_cmds_need_lc=no
  8766. else
  8767. archive_cmds_need_lc=yes
  8768. fi
  8769. allow_undefined_flag=$lt_save_allow_undefined_flag
  8770. else
  8771. cat conftest.err 1>&5
  8772. fi
  8773. $RM conftest*
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8775. $as_echo "$archive_cmds_need_lc" >&6; }
  8776. ;;
  8777. esac
  8778. fi
  8779. ;;
  8780. esac
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8782. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8783. if test "$GCC" = yes; then
  8784. case $host_os in
  8785. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8786. *) lt_awk_arg="/^libraries:/" ;;
  8787. esac
  8788. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8789. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8790. # if the path contains ";" then we assume it to be the separator
  8791. # otherwise default to the standard path separator (i.e. ":") - it is
  8792. # assumed that no part of a normal pathname contains ";" but that should
  8793. # okay in the real world where ";" in dirpaths is itself problematic.
  8794. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8795. else
  8796. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8797. fi
  8798. # Ok, now we have the path, separated by spaces, we can step through it
  8799. # and add multilib dir if necessary.
  8800. lt_tmp_lt_search_path_spec=
  8801. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8802. for lt_sys_path in $lt_search_path_spec; do
  8803. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8804. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8805. else
  8806. test -d "$lt_sys_path" && \
  8807. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8808. fi
  8809. done
  8810. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8811. BEGIN {RS=" "; FS="/|\n";} {
  8812. lt_foo="";
  8813. lt_count=0;
  8814. for (lt_i = NF; lt_i > 0; lt_i--) {
  8815. if ($lt_i != "" && $lt_i != ".") {
  8816. if ($lt_i == "..") {
  8817. lt_count++;
  8818. } else {
  8819. if (lt_count == 0) {
  8820. lt_foo="/" $lt_i lt_foo;
  8821. } else {
  8822. lt_count--;
  8823. }
  8824. }
  8825. }
  8826. }
  8827. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8828. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8829. }'`
  8830. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8831. else
  8832. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8833. fi
  8834. library_names_spec=
  8835. libname_spec='lib$name'
  8836. soname_spec=
  8837. shrext_cmds=".so"
  8838. postinstall_cmds=
  8839. postuninstall_cmds=
  8840. finish_cmds=
  8841. finish_eval=
  8842. shlibpath_var=
  8843. shlibpath_overrides_runpath=unknown
  8844. version_type=none
  8845. dynamic_linker="$host_os ld.so"
  8846. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8847. need_lib_prefix=unknown
  8848. hardcode_into_libs=no
  8849. # when you set need_version to no, make sure it does not cause -set_version
  8850. # flags to be left without arguments
  8851. need_version=unknown
  8852. case $host_os in
  8853. aix3*)
  8854. version_type=linux
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8856. shlibpath_var=LIBPATH
  8857. # AIX 3 has no versioning support, so we append a major version to the name.
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. ;;
  8860. aix[4-9]*)
  8861. version_type=linux
  8862. need_lib_prefix=no
  8863. need_version=no
  8864. hardcode_into_libs=yes
  8865. if test "$host_cpu" = ia64; then
  8866. # AIX 5 supports IA64
  8867. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8868. shlibpath_var=LD_LIBRARY_PATH
  8869. else
  8870. # With GCC up to 2.95.x, collect2 would create an import file
  8871. # for dependence libraries. The import file would start with
  8872. # the line `#! .'. This would cause the generated library to
  8873. # depend on `.', always an invalid library. This was fixed in
  8874. # development snapshots of GCC prior to 3.0.
  8875. case $host_os in
  8876. aix4 | aix4.[01] | aix4.[01].*)
  8877. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8878. echo ' yes '
  8879. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8880. :
  8881. else
  8882. can_build_shared=no
  8883. fi
  8884. ;;
  8885. esac
  8886. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8887. # soname into executable. Probably we can add versioning support to
  8888. # collect2, so additional links can be useful in future.
  8889. if test "$aix_use_runtimelinking" = yes; then
  8890. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8891. # instead of lib<name>.a to let people know that these are not
  8892. # typical AIX shared libraries.
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8894. else
  8895. # We preserve .a as extension for shared libraries through AIX4.2
  8896. # and later when we are not doing run time linking.
  8897. library_names_spec='${libname}${release}.a $libname.a'
  8898. soname_spec='${libname}${release}${shared_ext}$major'
  8899. fi
  8900. shlibpath_var=LIBPATH
  8901. fi
  8902. ;;
  8903. amigaos*)
  8904. case $host_cpu in
  8905. powerpc)
  8906. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8907. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8909. ;;
  8910. m68k)
  8911. library_names_spec='$libname.ixlibrary $libname.a'
  8912. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8913. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8914. ;;
  8915. esac
  8916. ;;
  8917. beos*)
  8918. library_names_spec='${libname}${shared_ext}'
  8919. dynamic_linker="$host_os ld.so"
  8920. shlibpath_var=LIBRARY_PATH
  8921. ;;
  8922. bsdi[45]*)
  8923. version_type=linux
  8924. need_version=no
  8925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8926. soname_spec='${libname}${release}${shared_ext}$major'
  8927. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8928. shlibpath_var=LD_LIBRARY_PATH
  8929. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8930. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8931. # the default ld.so.conf also contains /usr/contrib/lib and
  8932. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8933. # libtool to hard-code these into programs
  8934. ;;
  8935. cygwin* | mingw* | pw32* | cegcc*)
  8936. version_type=windows
  8937. shrext_cmds=".dll"
  8938. need_version=no
  8939. need_lib_prefix=no
  8940. case $GCC,$host_os in
  8941. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8942. library_names_spec='$libname.dll.a'
  8943. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8944. postinstall_cmds='base_file=`basename \${file}`~
  8945. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8946. dldir=$destdir/`dirname \$dlpath`~
  8947. test -d \$dldir || mkdir -p \$dldir~
  8948. $install_prog $dir/$dlname \$dldir/$dlname~
  8949. chmod a+x \$dldir/$dlname~
  8950. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8951. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8952. fi'
  8953. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8954. dlpath=$dir/\$dldll~
  8955. $RM \$dlpath'
  8956. shlibpath_overrides_runpath=yes
  8957. case $host_os in
  8958. cygwin*)
  8959. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8960. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8961. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8962. ;;
  8963. mingw* | cegcc*)
  8964. # MinGW DLLs use traditional 'lib' prefix
  8965. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8966. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8967. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8968. # It is most probably a Windows format PATH printed by
  8969. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8970. # path with ; separators, and with drive letters. We can handle the
  8971. # drive letters (cygwin fileutils understands them), so leave them,
  8972. # especially as we might pass files found there to a mingw objdump,
  8973. # which wouldn't understand a cygwinified path. Ahh.
  8974. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8975. else
  8976. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8977. fi
  8978. ;;
  8979. pw32*)
  8980. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8981. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8982. ;;
  8983. esac
  8984. ;;
  8985. *)
  8986. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8987. ;;
  8988. esac
  8989. dynamic_linker='Win32 ld.exe'
  8990. # FIXME: first we should search . and the directory the executable is in
  8991. shlibpath_var=PATH
  8992. ;;
  8993. darwin* | rhapsody*)
  8994. dynamic_linker="$host_os dyld"
  8995. version_type=darwin
  8996. need_lib_prefix=no
  8997. need_version=no
  8998. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8999. soname_spec='${libname}${release}${major}$shared_ext'
  9000. shlibpath_overrides_runpath=yes
  9001. shlibpath_var=DYLD_LIBRARY_PATH
  9002. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9003. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9004. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9005. ;;
  9006. dgux*)
  9007. version_type=linux
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LD_LIBRARY_PATH
  9013. ;;
  9014. freebsd1*)
  9015. dynamic_linker=no
  9016. ;;
  9017. freebsd* | dragonfly*)
  9018. # DragonFly does not have aout. When/if they implement a new
  9019. # versioning mechanism, adjust this.
  9020. if test -x /usr/bin/objformat; then
  9021. objformat=`/usr/bin/objformat`
  9022. else
  9023. case $host_os in
  9024. freebsd[123]*) objformat=aout ;;
  9025. *) objformat=elf ;;
  9026. esac
  9027. fi
  9028. version_type=freebsd-$objformat
  9029. case $version_type in
  9030. freebsd-elf*)
  9031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9032. need_version=no
  9033. need_lib_prefix=no
  9034. ;;
  9035. freebsd-*)
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9037. need_version=yes
  9038. ;;
  9039. esac
  9040. shlibpath_var=LD_LIBRARY_PATH
  9041. case $host_os in
  9042. freebsd2*)
  9043. shlibpath_overrides_runpath=yes
  9044. ;;
  9045. freebsd3.[01]* | freebsdelf3.[01]*)
  9046. shlibpath_overrides_runpath=yes
  9047. hardcode_into_libs=yes
  9048. ;;
  9049. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9050. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9051. shlibpath_overrides_runpath=no
  9052. hardcode_into_libs=yes
  9053. ;;
  9054. *) # from 4.6 on, and DragonFly
  9055. shlibpath_overrides_runpath=yes
  9056. hardcode_into_libs=yes
  9057. ;;
  9058. esac
  9059. ;;
  9060. gnu*)
  9061. version_type=linux
  9062. need_lib_prefix=no
  9063. need_version=no
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. shlibpath_var=LD_LIBRARY_PATH
  9067. hardcode_into_libs=yes
  9068. ;;
  9069. hpux9* | hpux10* | hpux11*)
  9070. # Give a soname corresponding to the major version so that dld.sl refuses to
  9071. # link against other versions.
  9072. version_type=sunos
  9073. need_lib_prefix=no
  9074. need_version=no
  9075. case $host_cpu in
  9076. ia64*)
  9077. shrext_cmds='.so'
  9078. hardcode_into_libs=yes
  9079. dynamic_linker="$host_os dld.so"
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. if test "X$HPUX_IA64_MODE" = X32; then
  9085. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9086. else
  9087. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9088. fi
  9089. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9090. ;;
  9091. hppa*64*)
  9092. shrext_cmds='.sl'
  9093. hardcode_into_libs=yes
  9094. dynamic_linker="$host_os dld.sl"
  9095. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9096. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9100. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9101. ;;
  9102. *)
  9103. shrext_cmds='.sl'
  9104. dynamic_linker="$host_os dld.sl"
  9105. shlibpath_var=SHLIB_PATH
  9106. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9108. soname_spec='${libname}${release}${shared_ext}$major'
  9109. ;;
  9110. esac
  9111. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9112. postinstall_cmds='chmod 555 $lib'
  9113. ;;
  9114. interix[3-9]*)
  9115. version_type=linux
  9116. need_lib_prefix=no
  9117. need_version=no
  9118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9119. soname_spec='${libname}${release}${shared_ext}$major'
  9120. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. shlibpath_overrides_runpath=no
  9123. hardcode_into_libs=yes
  9124. ;;
  9125. irix5* | irix6* | nonstopux*)
  9126. case $host_os in
  9127. nonstopux*) version_type=nonstopux ;;
  9128. *)
  9129. if test "$lt_cv_prog_gnu_ld" = yes; then
  9130. version_type=linux
  9131. else
  9132. version_type=irix
  9133. fi ;;
  9134. esac
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. soname_spec='${libname}${release}${shared_ext}$major'
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9139. case $host_os in
  9140. irix5* | nonstopux*)
  9141. libsuff= shlibsuff=
  9142. ;;
  9143. *)
  9144. case $LD in # libtool.m4 will add one of these switches to LD
  9145. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9146. libsuff= shlibsuff= libmagic=32-bit;;
  9147. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9148. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9149. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9150. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9151. *) libsuff= shlibsuff= libmagic=never-match;;
  9152. esac
  9153. ;;
  9154. esac
  9155. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9156. shlibpath_overrides_runpath=no
  9157. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9158. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9159. hardcode_into_libs=yes
  9160. ;;
  9161. # No shared lib support for Linux oldld, aout, or coff.
  9162. linux*oldld* | linux*aout* | linux*coff*)
  9163. dynamic_linker=no
  9164. ;;
  9165. # This must be Linux ELF.
  9166. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9167. version_type=linux
  9168. need_lib_prefix=no
  9169. need_version=no
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9171. soname_spec='${libname}${release}${shared_ext}$major'
  9172. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=no
  9175. # Some binutils ld are patched to set DT_RUNPATH
  9176. save_LDFLAGS=$LDFLAGS
  9177. save_libdir=$libdir
  9178. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9179. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. int
  9183. main ()
  9184. {
  9185. ;
  9186. return 0;
  9187. }
  9188. _ACEOF
  9189. if ac_fn_c_try_link "$LINENO"; then :
  9190. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9191. shlibpath_overrides_runpath=yes
  9192. fi
  9193. fi
  9194. rm -f core conftest.err conftest.$ac_objext \
  9195. conftest$ac_exeext conftest.$ac_ext
  9196. LDFLAGS=$save_LDFLAGS
  9197. libdir=$save_libdir
  9198. # This implies no fast_install, which is unacceptable.
  9199. # Some rework will be needed to allow for fast_install
  9200. # before this can be enabled.
  9201. hardcode_into_libs=yes
  9202. # Append ld.so.conf contents to the search path
  9203. if test -f /etc/ld.so.conf; then
  9204. 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;/^$/d' | tr '\n' ' '`
  9205. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9206. fi
  9207. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9208. # powerpc, because MkLinux only supported shared libraries with the
  9209. # GNU dynamic linker. Since this was broken with cross compilers,
  9210. # most powerpc-linux boxes support dynamic linking these days and
  9211. # people can always --disable-shared, the test was removed, and we
  9212. # assume the GNU/Linux dynamic linker is in use.
  9213. dynamic_linker='GNU/Linux ld.so'
  9214. ;;
  9215. netbsdelf*-gnu)
  9216. version_type=linux
  9217. need_lib_prefix=no
  9218. need_version=no
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. shlibpath_overrides_runpath=no
  9223. hardcode_into_libs=yes
  9224. dynamic_linker='NetBSD ld.elf_so'
  9225. ;;
  9226. netbsd*)
  9227. version_type=sunos
  9228. need_lib_prefix=no
  9229. need_version=no
  9230. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9232. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9233. dynamic_linker='NetBSD (a.out) ld.so'
  9234. else
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9236. soname_spec='${libname}${release}${shared_ext}$major'
  9237. dynamic_linker='NetBSD ld.elf_so'
  9238. fi
  9239. shlibpath_var=LD_LIBRARY_PATH
  9240. shlibpath_overrides_runpath=yes
  9241. hardcode_into_libs=yes
  9242. ;;
  9243. newsos6)
  9244. version_type=linux
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. shlibpath_overrides_runpath=yes
  9248. ;;
  9249. *nto* | *qnx*)
  9250. version_type=qnx
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9254. soname_spec='${libname}${release}${shared_ext}$major'
  9255. shlibpath_var=LD_LIBRARY_PATH
  9256. shlibpath_overrides_runpath=no
  9257. hardcode_into_libs=yes
  9258. dynamic_linker='ldqnx.so'
  9259. ;;
  9260. openbsd*)
  9261. version_type=sunos
  9262. sys_lib_dlsearch_path_spec="/usr/lib"
  9263. need_lib_prefix=no
  9264. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9265. case $host_os in
  9266. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9267. *) need_version=no ;;
  9268. esac
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9270. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9273. case $host_os in
  9274. openbsd2.[89] | openbsd2.[89].*)
  9275. shlibpath_overrides_runpath=no
  9276. ;;
  9277. *)
  9278. shlibpath_overrides_runpath=yes
  9279. ;;
  9280. esac
  9281. else
  9282. shlibpath_overrides_runpath=yes
  9283. fi
  9284. ;;
  9285. os2*)
  9286. libname_spec='$name'
  9287. shrext_cmds=".dll"
  9288. need_lib_prefix=no
  9289. library_names_spec='$libname${shared_ext} $libname.a'
  9290. dynamic_linker='OS/2 ld.exe'
  9291. shlibpath_var=LIBPATH
  9292. ;;
  9293. osf3* | osf4* | osf5*)
  9294. version_type=osf
  9295. need_lib_prefix=no
  9296. need_version=no
  9297. soname_spec='${libname}${release}${shared_ext}$major'
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9299. shlibpath_var=LD_LIBRARY_PATH
  9300. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9301. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9302. ;;
  9303. rdos*)
  9304. dynamic_linker=no
  9305. ;;
  9306. solaris*)
  9307. version_type=linux
  9308. need_lib_prefix=no
  9309. need_version=no
  9310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9311. soname_spec='${libname}${release}${shared_ext}$major'
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. shlibpath_overrides_runpath=yes
  9314. hardcode_into_libs=yes
  9315. # ldd complains unless libraries are executable
  9316. postinstall_cmds='chmod +x $lib'
  9317. ;;
  9318. sunos4*)
  9319. version_type=sunos
  9320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9321. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. shlibpath_overrides_runpath=yes
  9324. if test "$with_gnu_ld" = yes; then
  9325. need_lib_prefix=no
  9326. fi
  9327. need_version=yes
  9328. ;;
  9329. sysv4 | sysv4.3*)
  9330. version_type=linux
  9331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. shlibpath_var=LD_LIBRARY_PATH
  9334. case $host_vendor in
  9335. sni)
  9336. shlibpath_overrides_runpath=no
  9337. need_lib_prefix=no
  9338. runpath_var=LD_RUN_PATH
  9339. ;;
  9340. siemens)
  9341. need_lib_prefix=no
  9342. ;;
  9343. motorola)
  9344. need_lib_prefix=no
  9345. need_version=no
  9346. shlibpath_overrides_runpath=no
  9347. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9348. ;;
  9349. esac
  9350. ;;
  9351. sysv4*MP*)
  9352. if test -d /usr/nec ;then
  9353. version_type=linux
  9354. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9355. soname_spec='$libname${shared_ext}.$major'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. fi
  9358. ;;
  9359. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9360. version_type=freebsd-elf
  9361. need_lib_prefix=no
  9362. need_version=no
  9363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9364. soname_spec='${libname}${release}${shared_ext}$major'
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. shlibpath_overrides_runpath=yes
  9367. hardcode_into_libs=yes
  9368. if test "$with_gnu_ld" = yes; then
  9369. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9370. else
  9371. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9372. case $host_os in
  9373. sco3.2v5*)
  9374. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9375. ;;
  9376. esac
  9377. fi
  9378. sys_lib_dlsearch_path_spec='/usr/lib'
  9379. ;;
  9380. tpf*)
  9381. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9382. version_type=linux
  9383. need_lib_prefix=no
  9384. need_version=no
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9386. shlibpath_var=LD_LIBRARY_PATH
  9387. shlibpath_overrides_runpath=no
  9388. hardcode_into_libs=yes
  9389. ;;
  9390. uts4*)
  9391. version_type=linux
  9392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9393. soname_spec='${libname}${release}${shared_ext}$major'
  9394. shlibpath_var=LD_LIBRARY_PATH
  9395. ;;
  9396. *)
  9397. dynamic_linker=no
  9398. ;;
  9399. esac
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9401. $as_echo "$dynamic_linker" >&6; }
  9402. test "$dynamic_linker" = no && can_build_shared=no
  9403. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9404. if test "$GCC" = yes; then
  9405. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9406. fi
  9407. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9408. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9409. fi
  9410. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9411. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9414. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9415. hardcode_action=
  9416. if test -n "$hardcode_libdir_flag_spec" ||
  9417. test -n "$runpath_var" ||
  9418. test "X$hardcode_automatic" = "Xyes" ; then
  9419. # We can hardcode non-existent directories.
  9420. if test "$hardcode_direct" != no &&
  9421. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9422. # have to relink, otherwise we might link with an installed library
  9423. # when we should be linking with a yet-to-be-installed one
  9424. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9425. test "$hardcode_minus_L" != no; then
  9426. # Linking always hardcodes the temporary library directory.
  9427. hardcode_action=relink
  9428. else
  9429. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9430. hardcode_action=immediate
  9431. fi
  9432. else
  9433. # We cannot hardcode anything, or else we can only hardcode existing
  9434. # directories.
  9435. hardcode_action=unsupported
  9436. fi
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9438. $as_echo "$hardcode_action" >&6; }
  9439. if test "$hardcode_action" = relink ||
  9440. test "$inherit_rpath" = yes; then
  9441. # Fast installation is not supported
  9442. enable_fast_install=no
  9443. elif test "$shlibpath_overrides_runpath" = yes ||
  9444. test "$enable_shared" = no; then
  9445. # Fast installation is not necessary
  9446. enable_fast_install=needless
  9447. fi
  9448. if test "x$enable_dlopen" != xyes; then
  9449. enable_dlopen=unknown
  9450. enable_dlopen_self=unknown
  9451. enable_dlopen_self_static=unknown
  9452. else
  9453. lt_cv_dlopen=no
  9454. lt_cv_dlopen_libs=
  9455. case $host_os in
  9456. beos*)
  9457. lt_cv_dlopen="load_add_on"
  9458. lt_cv_dlopen_libs=
  9459. lt_cv_dlopen_self=yes
  9460. ;;
  9461. mingw* | pw32* | cegcc*)
  9462. lt_cv_dlopen="LoadLibrary"
  9463. lt_cv_dlopen_libs=
  9464. ;;
  9465. cygwin*)
  9466. lt_cv_dlopen="dlopen"
  9467. lt_cv_dlopen_libs=
  9468. ;;
  9469. darwin*)
  9470. # if libdl is installed we need to link against it
  9471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9472. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9473. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9474. $as_echo_n "(cached) " >&6
  9475. else
  9476. ac_check_lib_save_LIBS=$LIBS
  9477. LIBS="-ldl $LIBS"
  9478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9479. /* end confdefs.h. */
  9480. /* Override any GCC internal prototype to avoid an error.
  9481. Use char because int might match the return type of a GCC
  9482. builtin and then its argument prototype would still apply. */
  9483. #ifdef __cplusplus
  9484. extern "C"
  9485. #endif
  9486. char dlopen ();
  9487. int
  9488. main ()
  9489. {
  9490. return dlopen ();
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. if ac_fn_c_try_link "$LINENO"; then :
  9496. ac_cv_lib_dl_dlopen=yes
  9497. else
  9498. ac_cv_lib_dl_dlopen=no
  9499. fi
  9500. rm -f core conftest.err conftest.$ac_objext \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. LIBS=$ac_check_lib_save_LIBS
  9503. fi
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9505. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9506. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9507. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9508. else
  9509. lt_cv_dlopen="dyld"
  9510. lt_cv_dlopen_libs=
  9511. lt_cv_dlopen_self=yes
  9512. fi
  9513. ;;
  9514. *)
  9515. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9516. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9517. lt_cv_dlopen="shl_load"
  9518. else
  9519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9520. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9521. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9522. $as_echo_n "(cached) " >&6
  9523. else
  9524. ac_check_lib_save_LIBS=$LIBS
  9525. LIBS="-ldld $LIBS"
  9526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9527. /* end confdefs.h. */
  9528. /* Override any GCC internal prototype to avoid an error.
  9529. Use char because int might match the return type of a GCC
  9530. builtin and then its argument prototype would still apply. */
  9531. #ifdef __cplusplus
  9532. extern "C"
  9533. #endif
  9534. char shl_load ();
  9535. int
  9536. main ()
  9537. {
  9538. return shl_load ();
  9539. ;
  9540. return 0;
  9541. }
  9542. _ACEOF
  9543. if ac_fn_c_try_link "$LINENO"; then :
  9544. ac_cv_lib_dld_shl_load=yes
  9545. else
  9546. ac_cv_lib_dld_shl_load=no
  9547. fi
  9548. rm -f core conftest.err conftest.$ac_objext \
  9549. conftest$ac_exeext conftest.$ac_ext
  9550. LIBS=$ac_check_lib_save_LIBS
  9551. fi
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9553. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9554. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9555. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9556. else
  9557. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9558. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9559. lt_cv_dlopen="dlopen"
  9560. else
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9562. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9563. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9564. $as_echo_n "(cached) " >&6
  9565. else
  9566. ac_check_lib_save_LIBS=$LIBS
  9567. LIBS="-ldl $LIBS"
  9568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9569. /* end confdefs.h. */
  9570. /* Override any GCC internal prototype to avoid an error.
  9571. Use char because int might match the return type of a GCC
  9572. builtin and then its argument prototype would still apply. */
  9573. #ifdef __cplusplus
  9574. extern "C"
  9575. #endif
  9576. char dlopen ();
  9577. int
  9578. main ()
  9579. {
  9580. return dlopen ();
  9581. ;
  9582. return 0;
  9583. }
  9584. _ACEOF
  9585. if ac_fn_c_try_link "$LINENO"; then :
  9586. ac_cv_lib_dl_dlopen=yes
  9587. else
  9588. ac_cv_lib_dl_dlopen=no
  9589. fi
  9590. rm -f core conftest.err conftest.$ac_objext \
  9591. conftest$ac_exeext conftest.$ac_ext
  9592. LIBS=$ac_check_lib_save_LIBS
  9593. fi
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9595. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9596. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9597. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9598. else
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9600. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9601. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. ac_check_lib_save_LIBS=$LIBS
  9605. LIBS="-lsvld $LIBS"
  9606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9607. /* end confdefs.h. */
  9608. /* Override any GCC internal prototype to avoid an error.
  9609. Use char because int might match the return type of a GCC
  9610. builtin and then its argument prototype would still apply. */
  9611. #ifdef __cplusplus
  9612. extern "C"
  9613. #endif
  9614. char dlopen ();
  9615. int
  9616. main ()
  9617. {
  9618. return dlopen ();
  9619. ;
  9620. return 0;
  9621. }
  9622. _ACEOF
  9623. if ac_fn_c_try_link "$LINENO"; then :
  9624. ac_cv_lib_svld_dlopen=yes
  9625. else
  9626. ac_cv_lib_svld_dlopen=no
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext \
  9629. conftest$ac_exeext conftest.$ac_ext
  9630. LIBS=$ac_check_lib_save_LIBS
  9631. fi
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9633. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9634. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9635. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9636. else
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9638. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9639. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. ac_check_lib_save_LIBS=$LIBS
  9643. LIBS="-ldld $LIBS"
  9644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9645. /* end confdefs.h. */
  9646. /* Override any GCC internal prototype to avoid an error.
  9647. Use char because int might match the return type of a GCC
  9648. builtin and then its argument prototype would still apply. */
  9649. #ifdef __cplusplus
  9650. extern "C"
  9651. #endif
  9652. char dld_link ();
  9653. int
  9654. main ()
  9655. {
  9656. return dld_link ();
  9657. ;
  9658. return 0;
  9659. }
  9660. _ACEOF
  9661. if ac_fn_c_try_link "$LINENO"; then :
  9662. ac_cv_lib_dld_dld_link=yes
  9663. else
  9664. ac_cv_lib_dld_dld_link=no
  9665. fi
  9666. rm -f core conftest.err conftest.$ac_objext \
  9667. conftest$ac_exeext conftest.$ac_ext
  9668. LIBS=$ac_check_lib_save_LIBS
  9669. fi
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9671. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9672. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9673. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9674. fi
  9675. fi
  9676. fi
  9677. fi
  9678. fi
  9679. fi
  9680. ;;
  9681. esac
  9682. if test "x$lt_cv_dlopen" != xno; then
  9683. enable_dlopen=yes
  9684. else
  9685. enable_dlopen=no
  9686. fi
  9687. case $lt_cv_dlopen in
  9688. dlopen)
  9689. save_CPPFLAGS="$CPPFLAGS"
  9690. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9691. save_LDFLAGS="$LDFLAGS"
  9692. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9693. save_LIBS="$LIBS"
  9694. LIBS="$lt_cv_dlopen_libs $LIBS"
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9696. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9697. if test "${lt_cv_dlopen_self+set}" = set; then :
  9698. $as_echo_n "(cached) " >&6
  9699. else
  9700. if test "$cross_compiling" = yes; then :
  9701. lt_cv_dlopen_self=cross
  9702. else
  9703. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9704. lt_status=$lt_dlunknown
  9705. cat > conftest.$ac_ext <<_LT_EOF
  9706. #line 11482 "configure"
  9707. #include "confdefs.h"
  9708. #if HAVE_DLFCN_H
  9709. #include <dlfcn.h>
  9710. #endif
  9711. #include <stdio.h>
  9712. #ifdef RTLD_GLOBAL
  9713. # define LT_DLGLOBAL RTLD_GLOBAL
  9714. #else
  9715. # ifdef DL_GLOBAL
  9716. # define LT_DLGLOBAL DL_GLOBAL
  9717. # else
  9718. # define LT_DLGLOBAL 0
  9719. # endif
  9720. #endif
  9721. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9722. find out it does not work in some platform. */
  9723. #ifndef LT_DLLAZY_OR_NOW
  9724. # ifdef RTLD_LAZY
  9725. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9726. # else
  9727. # ifdef DL_LAZY
  9728. # define LT_DLLAZY_OR_NOW DL_LAZY
  9729. # else
  9730. # ifdef RTLD_NOW
  9731. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9732. # else
  9733. # ifdef DL_NOW
  9734. # define LT_DLLAZY_OR_NOW DL_NOW
  9735. # else
  9736. # define LT_DLLAZY_OR_NOW 0
  9737. # endif
  9738. # endif
  9739. # endif
  9740. # endif
  9741. #endif
  9742. void fnord() { int i=42;}
  9743. int main ()
  9744. {
  9745. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9746. int status = $lt_dlunknown;
  9747. if (self)
  9748. {
  9749. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9750. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9751. /* dlclose (self); */
  9752. }
  9753. else
  9754. puts (dlerror ());
  9755. return status;
  9756. }
  9757. _LT_EOF
  9758. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9759. (eval $ac_link) 2>&5
  9760. ac_status=$?
  9761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9762. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9763. (./conftest; exit; ) >&5 2>/dev/null
  9764. lt_status=$?
  9765. case x$lt_status in
  9766. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9767. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9768. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9769. esac
  9770. else :
  9771. # compilation failed
  9772. lt_cv_dlopen_self=no
  9773. fi
  9774. fi
  9775. rm -fr conftest*
  9776. fi
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9778. $as_echo "$lt_cv_dlopen_self" >&6; }
  9779. if test "x$lt_cv_dlopen_self" = xyes; then
  9780. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9782. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9783. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9784. $as_echo_n "(cached) " >&6
  9785. else
  9786. if test "$cross_compiling" = yes; then :
  9787. lt_cv_dlopen_self_static=cross
  9788. else
  9789. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9790. lt_status=$lt_dlunknown
  9791. cat > conftest.$ac_ext <<_LT_EOF
  9792. #line 11578 "configure"
  9793. #include "confdefs.h"
  9794. #if HAVE_DLFCN_H
  9795. #include <dlfcn.h>
  9796. #endif
  9797. #include <stdio.h>
  9798. #ifdef RTLD_GLOBAL
  9799. # define LT_DLGLOBAL RTLD_GLOBAL
  9800. #else
  9801. # ifdef DL_GLOBAL
  9802. # define LT_DLGLOBAL DL_GLOBAL
  9803. # else
  9804. # define LT_DLGLOBAL 0
  9805. # endif
  9806. #endif
  9807. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9808. find out it does not work in some platform. */
  9809. #ifndef LT_DLLAZY_OR_NOW
  9810. # ifdef RTLD_LAZY
  9811. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9812. # else
  9813. # ifdef DL_LAZY
  9814. # define LT_DLLAZY_OR_NOW DL_LAZY
  9815. # else
  9816. # ifdef RTLD_NOW
  9817. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9818. # else
  9819. # ifdef DL_NOW
  9820. # define LT_DLLAZY_OR_NOW DL_NOW
  9821. # else
  9822. # define LT_DLLAZY_OR_NOW 0
  9823. # endif
  9824. # endif
  9825. # endif
  9826. # endif
  9827. #endif
  9828. void fnord() { int i=42;}
  9829. int main ()
  9830. {
  9831. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9832. int status = $lt_dlunknown;
  9833. if (self)
  9834. {
  9835. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9836. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9837. /* dlclose (self); */
  9838. }
  9839. else
  9840. puts (dlerror ());
  9841. return status;
  9842. }
  9843. _LT_EOF
  9844. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9845. (eval $ac_link) 2>&5
  9846. ac_status=$?
  9847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9848. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9849. (./conftest; exit; ) >&5 2>/dev/null
  9850. lt_status=$?
  9851. case x$lt_status in
  9852. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9853. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9854. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9855. esac
  9856. else :
  9857. # compilation failed
  9858. lt_cv_dlopen_self_static=no
  9859. fi
  9860. fi
  9861. rm -fr conftest*
  9862. fi
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9864. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9865. fi
  9866. CPPFLAGS="$save_CPPFLAGS"
  9867. LDFLAGS="$save_LDFLAGS"
  9868. LIBS="$save_LIBS"
  9869. ;;
  9870. esac
  9871. case $lt_cv_dlopen_self in
  9872. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9873. *) enable_dlopen_self=unknown ;;
  9874. esac
  9875. case $lt_cv_dlopen_self_static in
  9876. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9877. *) enable_dlopen_self_static=unknown ;;
  9878. esac
  9879. fi
  9880. striplib=
  9881. old_striplib=
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9883. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9884. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9885. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9886. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9888. $as_echo "yes" >&6; }
  9889. else
  9890. # FIXME - insert some real tests, host_os isn't really good enough
  9891. case $host_os in
  9892. darwin*)
  9893. if test -n "$STRIP" ; then
  9894. striplib="$STRIP -x"
  9895. old_striplib="$STRIP -S"
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9897. $as_echo "yes" >&6; }
  9898. else
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9900. $as_echo "no" >&6; }
  9901. fi
  9902. ;;
  9903. *)
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9905. $as_echo "no" >&6; }
  9906. ;;
  9907. esac
  9908. fi
  9909. # Report which library types will actually be built
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9911. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9913. $as_echo "$can_build_shared" >&6; }
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9915. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9916. test "$can_build_shared" = "no" && enable_shared=no
  9917. # On AIX, shared libraries and static libraries use the same namespace, and
  9918. # are all built from PIC.
  9919. case $host_os in
  9920. aix3*)
  9921. test "$enable_shared" = yes && enable_static=no
  9922. if test -n "$RANLIB"; then
  9923. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9924. postinstall_cmds='$RANLIB $lib'
  9925. fi
  9926. ;;
  9927. aix[4-9]*)
  9928. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9929. test "$enable_shared" = yes && enable_static=no
  9930. fi
  9931. ;;
  9932. esac
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9934. $as_echo "$enable_shared" >&6; }
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9936. $as_echo_n "checking whether to build static libraries... " >&6; }
  9937. # Make sure either enable_shared or enable_static is yes.
  9938. test "$enable_shared" = yes || enable_static=yes
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9940. $as_echo "$enable_static" >&6; }
  9941. fi
  9942. ac_ext=c
  9943. ac_cpp='$CPP $CPPFLAGS'
  9944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9947. CC="$lt_save_CC"
  9948. ac_ext=cpp
  9949. ac_cpp='$CXXCPP $CPPFLAGS'
  9950. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9951. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9952. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9953. archive_cmds_need_lc_CXX=no
  9954. allow_undefined_flag_CXX=
  9955. always_export_symbols_CXX=no
  9956. archive_expsym_cmds_CXX=
  9957. compiler_needs_object_CXX=no
  9958. export_dynamic_flag_spec_CXX=
  9959. hardcode_direct_CXX=no
  9960. hardcode_direct_absolute_CXX=no
  9961. hardcode_libdir_flag_spec_CXX=
  9962. hardcode_libdir_flag_spec_ld_CXX=
  9963. hardcode_libdir_separator_CXX=
  9964. hardcode_minus_L_CXX=no
  9965. hardcode_shlibpath_var_CXX=unsupported
  9966. hardcode_automatic_CXX=no
  9967. inherit_rpath_CXX=no
  9968. module_cmds_CXX=
  9969. module_expsym_cmds_CXX=
  9970. link_all_deplibs_CXX=unknown
  9971. old_archive_cmds_CXX=$old_archive_cmds
  9972. no_undefined_flag_CXX=
  9973. whole_archive_flag_spec_CXX=
  9974. enable_shared_with_static_runtimes_CXX=no
  9975. # Source file extension for C++ test sources.
  9976. ac_ext=cpp
  9977. # Object file extension for compiled C++ test sources.
  9978. objext=o
  9979. objext_CXX=$objext
  9980. # No sense in running all these tests if we already determined that
  9981. # the CXX compiler isn't working. Some variables (like enable_shared)
  9982. # are currently assumed to apply to all compilers on this platform,
  9983. # and will be corrupted by setting them based on a non-working compiler.
  9984. if test "$_lt_caught_CXX_error" != yes; then
  9985. # Code to be used in simple compile tests
  9986. lt_simple_compile_test_code="int some_variable = 0;"
  9987. # Code to be used in simple link tests
  9988. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9989. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9990. # If no C compiler was specified, use CC.
  9991. LTCC=${LTCC-"$CC"}
  9992. # If no C compiler flags were specified, use CFLAGS.
  9993. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9994. # Allow CC to be a program name with arguments.
  9995. compiler=$CC
  9996. # save warnings/boilerplate of simple test code
  9997. ac_outfile=conftest.$ac_objext
  9998. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9999. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10000. _lt_compiler_boilerplate=`cat conftest.err`
  10001. $RM conftest*
  10002. ac_outfile=conftest.$ac_objext
  10003. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10004. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10005. _lt_linker_boilerplate=`cat conftest.err`
  10006. $RM -r conftest*
  10007. # Allow CC to be a program name with arguments.
  10008. lt_save_CC=$CC
  10009. lt_save_LD=$LD
  10010. lt_save_GCC=$GCC
  10011. GCC=$GXX
  10012. lt_save_with_gnu_ld=$with_gnu_ld
  10013. lt_save_path_LD=$lt_cv_path_LD
  10014. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10015. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10016. else
  10017. $as_unset lt_cv_prog_gnu_ld
  10018. fi
  10019. if test -n "${lt_cv_path_LDCXX+set}"; then
  10020. lt_cv_path_LD=$lt_cv_path_LDCXX
  10021. else
  10022. $as_unset lt_cv_path_LD
  10023. fi
  10024. test -z "${LDCXX+set}" || LD=$LDCXX
  10025. CC=${CXX-"c++"}
  10026. compiler=$CC
  10027. compiler_CXX=$CC
  10028. for cc_temp in $compiler""; do
  10029. case $cc_temp in
  10030. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10031. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10032. \-*) ;;
  10033. *) break;;
  10034. esac
  10035. done
  10036. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10037. if test -n "$compiler"; then
  10038. # We don't want -fno-exception when compiling C++ code, so set the
  10039. # no_builtin_flag separately
  10040. if test "$GXX" = yes; then
  10041. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10042. else
  10043. lt_prog_compiler_no_builtin_flag_CXX=
  10044. fi
  10045. if test "$GXX" = yes; then
  10046. # Set up default GNU C++ configuration
  10047. # Check whether --with-gnu-ld was given.
  10048. if test "${with_gnu_ld+set}" = set; then :
  10049. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10050. else
  10051. with_gnu_ld=no
  10052. fi
  10053. ac_prog=ld
  10054. if test "$GCC" = yes; then
  10055. # Check if gcc -print-prog-name=ld gives a path.
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10057. $as_echo_n "checking for ld used by $CC... " >&6; }
  10058. case $host in
  10059. *-*-mingw*)
  10060. # gcc leaves a trailing carriage return which upsets mingw
  10061. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10062. *)
  10063. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10064. esac
  10065. case $ac_prog in
  10066. # Accept absolute paths.
  10067. [\\/]* | ?:[\\/]*)
  10068. re_direlt='/[^/][^/]*/\.\./'
  10069. # Canonicalize the pathname of ld
  10070. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10071. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10072. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10073. done
  10074. test -z "$LD" && LD="$ac_prog"
  10075. ;;
  10076. "")
  10077. # If it fails, then pretend we aren't using GCC.
  10078. ac_prog=ld
  10079. ;;
  10080. *)
  10081. # If it is relative, then search for the first ld in PATH.
  10082. with_gnu_ld=unknown
  10083. ;;
  10084. esac
  10085. elif test "$with_gnu_ld" = yes; then
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10087. $as_echo_n "checking for GNU ld... " >&6; }
  10088. else
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10090. $as_echo_n "checking for non-GNU ld... " >&6; }
  10091. fi
  10092. if test "${lt_cv_path_LD+set}" = set; then :
  10093. $as_echo_n "(cached) " >&6
  10094. else
  10095. if test -z "$LD"; then
  10096. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10097. for ac_dir in $PATH; do
  10098. IFS="$lt_save_ifs"
  10099. test -z "$ac_dir" && ac_dir=.
  10100. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10101. lt_cv_path_LD="$ac_dir/$ac_prog"
  10102. # Check to see if the program is GNU ld. I'd rather use --version,
  10103. # but apparently some variants of GNU ld only accept -v.
  10104. # Break only if it was the GNU/non-GNU ld that we prefer.
  10105. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10106. *GNU* | *'with BFD'*)
  10107. test "$with_gnu_ld" != no && break
  10108. ;;
  10109. *)
  10110. test "$with_gnu_ld" != yes && break
  10111. ;;
  10112. esac
  10113. fi
  10114. done
  10115. IFS="$lt_save_ifs"
  10116. else
  10117. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10118. fi
  10119. fi
  10120. LD="$lt_cv_path_LD"
  10121. if test -n "$LD"; then
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10123. $as_echo "$LD" >&6; }
  10124. else
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10126. $as_echo "no" >&6; }
  10127. fi
  10128. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10130. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10131. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10132. $as_echo_n "(cached) " >&6
  10133. else
  10134. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10135. case `$LD -v 2>&1 </dev/null` in
  10136. *GNU* | *'with BFD'*)
  10137. lt_cv_prog_gnu_ld=yes
  10138. ;;
  10139. *)
  10140. lt_cv_prog_gnu_ld=no
  10141. ;;
  10142. esac
  10143. fi
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10145. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10146. with_gnu_ld=$lt_cv_prog_gnu_ld
  10147. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10148. # archiving commands below assume that GNU ld is being used.
  10149. if test "$with_gnu_ld" = yes; then
  10150. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10151. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10152. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10153. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10154. # If archive_cmds runs LD, not CC, wlarc should be empty
  10155. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10156. # investigate it a little bit more. (MM)
  10157. wlarc='${wl}'
  10158. # ancient GNU ld didn't support --whole-archive et. al.
  10159. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10160. $GREP 'no-whole-archive' > /dev/null; then
  10161. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10162. else
  10163. whole_archive_flag_spec_CXX=
  10164. fi
  10165. else
  10166. with_gnu_ld=no
  10167. wlarc=
  10168. # A generic and very simple default shared library creation
  10169. # command for GNU C++ for the case where it uses the native
  10170. # linker, instead of GNU ld. If possible, this setting should
  10171. # overridden to take advantage of the native linker features on
  10172. # the platform it is being used on.
  10173. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10174. fi
  10175. # Commands to make compiler produce verbose output that lists
  10176. # what "hidden" libraries, object files and flags are used when
  10177. # linking a shared library.
  10178. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10179. else
  10180. GXX=no
  10181. with_gnu_ld=no
  10182. wlarc=
  10183. fi
  10184. # PORTME: fill in a description of your system's C++ link characteristics
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10186. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10187. ld_shlibs_CXX=yes
  10188. case $host_os in
  10189. aix3*)
  10190. # FIXME: insert proper C++ library support
  10191. ld_shlibs_CXX=no
  10192. ;;
  10193. aix[4-9]*)
  10194. if test "$host_cpu" = ia64; then
  10195. # On IA64, the linker does run time linking by default, so we don't
  10196. # have to do anything special.
  10197. aix_use_runtimelinking=no
  10198. exp_sym_flag='-Bexport'
  10199. no_entry_flag=""
  10200. else
  10201. aix_use_runtimelinking=no
  10202. # Test if we are trying to use run time linking or normal
  10203. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10204. # need to do runtime linking.
  10205. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10206. for ld_flag in $LDFLAGS; do
  10207. case $ld_flag in
  10208. *-brtl*)
  10209. aix_use_runtimelinking=yes
  10210. break
  10211. ;;
  10212. esac
  10213. done
  10214. ;;
  10215. esac
  10216. exp_sym_flag='-bexport'
  10217. no_entry_flag='-bnoentry'
  10218. fi
  10219. # When large executables or shared objects are built, AIX ld can
  10220. # have problems creating the table of contents. If linking a library
  10221. # or program results in "error TOC overflow" add -mminimal-toc to
  10222. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10223. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10224. archive_cmds_CXX=''
  10225. hardcode_direct_CXX=yes
  10226. hardcode_direct_absolute_CXX=yes
  10227. hardcode_libdir_separator_CXX=':'
  10228. link_all_deplibs_CXX=yes
  10229. file_list_spec_CXX='${wl}-f,'
  10230. if test "$GXX" = yes; then
  10231. case $host_os in aix4.[012]|aix4.[012].*)
  10232. # We only want to do this on AIX 4.2 and lower, the check
  10233. # below for broken collect2 doesn't work under 4.3+
  10234. collect2name=`${CC} -print-prog-name=collect2`
  10235. if test -f "$collect2name" &&
  10236. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10237. then
  10238. # We have reworked collect2
  10239. :
  10240. else
  10241. # We have old collect2
  10242. hardcode_direct_CXX=unsupported
  10243. # It fails to find uninstalled libraries when the uninstalled
  10244. # path is not listed in the libpath. Setting hardcode_minus_L
  10245. # to unsupported forces relinking
  10246. hardcode_minus_L_CXX=yes
  10247. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10248. hardcode_libdir_separator_CXX=
  10249. fi
  10250. esac
  10251. shared_flag='-shared'
  10252. if test "$aix_use_runtimelinking" = yes; then
  10253. shared_flag="$shared_flag "'${wl}-G'
  10254. fi
  10255. else
  10256. # not using gcc
  10257. if test "$host_cpu" = ia64; then
  10258. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10259. # chokes on -Wl,-G. The following line is correct:
  10260. shared_flag='-G'
  10261. else
  10262. if test "$aix_use_runtimelinking" = yes; then
  10263. shared_flag='${wl}-G'
  10264. else
  10265. shared_flag='${wl}-bM:SRE'
  10266. fi
  10267. fi
  10268. fi
  10269. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10270. # It seems that -bexpall does not export symbols beginning with
  10271. # underscore (_), so it is better to generate a list of symbols to
  10272. # export.
  10273. always_export_symbols_CXX=yes
  10274. if test "$aix_use_runtimelinking" = yes; then
  10275. # Warning - without using the other runtime loading flags (-brtl),
  10276. # -berok will link without error, but may produce a broken library.
  10277. allow_undefined_flag_CXX='-berok'
  10278. # Determine the default libpath from the value encoded in an empty
  10279. # executable.
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. int
  10283. main ()
  10284. {
  10285. ;
  10286. return 0;
  10287. }
  10288. _ACEOF
  10289. if ac_fn_cxx_try_link "$LINENO"; then :
  10290. lt_aix_libpath_sed='
  10291. /Import File Strings/,/^$/ {
  10292. /^0/ {
  10293. s/^0 *\(.*\)$/\1/
  10294. p
  10295. }
  10296. }'
  10297. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10298. # Check for a 64-bit object if we didn't find anything.
  10299. if test -z "$aix_libpath"; then
  10300. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10301. fi
  10302. fi
  10303. rm -f core conftest.err conftest.$ac_objext \
  10304. conftest$ac_exeext conftest.$ac_ext
  10305. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10306. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10307. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10308. else
  10309. if test "$host_cpu" = ia64; then
  10310. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10311. allow_undefined_flag_CXX="-z nodefs"
  10312. 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"
  10313. else
  10314. # Determine the default libpath from the value encoded in an
  10315. # empty executable.
  10316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10317. /* end confdefs.h. */
  10318. int
  10319. main ()
  10320. {
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. if ac_fn_cxx_try_link "$LINENO"; then :
  10326. lt_aix_libpath_sed='
  10327. /Import File Strings/,/^$/ {
  10328. /^0/ {
  10329. s/^0 *\(.*\)$/\1/
  10330. p
  10331. }
  10332. }'
  10333. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10334. # Check for a 64-bit object if we didn't find anything.
  10335. if test -z "$aix_libpath"; then
  10336. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10337. fi
  10338. fi
  10339. rm -f core conftest.err conftest.$ac_objext \
  10340. conftest$ac_exeext conftest.$ac_ext
  10341. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10342. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10343. # Warning - without using the other run time loading flags,
  10344. # -berok will link without error, but may produce a broken library.
  10345. no_undefined_flag_CXX=' ${wl}-bernotok'
  10346. allow_undefined_flag_CXX=' ${wl}-berok'
  10347. # Exported symbols can be pulled into shared objects from archives
  10348. whole_archive_flag_spec_CXX='$convenience'
  10349. archive_cmds_need_lc_CXX=yes
  10350. # This is similar to how AIX traditionally builds its shared
  10351. # libraries.
  10352. 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'
  10353. fi
  10354. fi
  10355. ;;
  10356. beos*)
  10357. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10358. allow_undefined_flag_CXX=unsupported
  10359. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10360. # support --undefined. This deserves some investigation. FIXME
  10361. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10362. else
  10363. ld_shlibs_CXX=no
  10364. fi
  10365. ;;
  10366. chorus*)
  10367. case $cc_basename in
  10368. *)
  10369. # FIXME: insert proper C++ library support
  10370. ld_shlibs_CXX=no
  10371. ;;
  10372. esac
  10373. ;;
  10374. cygwin* | mingw* | pw32* | cegcc*)
  10375. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10376. # as there is no search path for DLLs.
  10377. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10378. allow_undefined_flag_CXX=unsupported
  10379. always_export_symbols_CXX=no
  10380. enable_shared_with_static_runtimes_CXX=yes
  10381. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10382. 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'
  10383. # If the export-symbols file already is a .def file (1st line
  10384. # is EXPORTS), use it as is; otherwise, prepend...
  10385. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10386. cp $export_symbols $output_objdir/$soname.def;
  10387. else
  10388. echo EXPORTS > $output_objdir/$soname.def;
  10389. cat $export_symbols >> $output_objdir/$soname.def;
  10390. fi~
  10391. $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'
  10392. else
  10393. ld_shlibs_CXX=no
  10394. fi
  10395. ;;
  10396. darwin* | rhapsody*)
  10397. archive_cmds_need_lc_CXX=no
  10398. hardcode_direct_CXX=no
  10399. hardcode_automatic_CXX=yes
  10400. hardcode_shlibpath_var_CXX=unsupported
  10401. whole_archive_flag_spec_CXX=''
  10402. link_all_deplibs_CXX=yes
  10403. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10404. case $cc_basename in
  10405. ifort*) _lt_dar_can_shared=yes ;;
  10406. *) _lt_dar_can_shared=$GCC ;;
  10407. esac
  10408. if test "$_lt_dar_can_shared" = "yes"; then
  10409. output_verbose_link_cmd=echo
  10410. 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}"
  10411. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10412. 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}"
  10413. 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}"
  10414. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10415. 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}"
  10416. 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}"
  10417. fi
  10418. else
  10419. ld_shlibs_CXX=no
  10420. fi
  10421. ;;
  10422. dgux*)
  10423. case $cc_basename in
  10424. ec++*)
  10425. # FIXME: insert proper C++ library support
  10426. ld_shlibs_CXX=no
  10427. ;;
  10428. ghcx*)
  10429. # Green Hills C++ Compiler
  10430. # FIXME: insert proper C++ library support
  10431. ld_shlibs_CXX=no
  10432. ;;
  10433. *)
  10434. # FIXME: insert proper C++ library support
  10435. ld_shlibs_CXX=no
  10436. ;;
  10437. esac
  10438. ;;
  10439. freebsd[12]*)
  10440. # C++ shared libraries reported to be fairly broken before
  10441. # switch to ELF
  10442. ld_shlibs_CXX=no
  10443. ;;
  10444. freebsd-elf*)
  10445. archive_cmds_need_lc_CXX=no
  10446. ;;
  10447. freebsd* | dragonfly*)
  10448. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10449. # conventions
  10450. ld_shlibs_CXX=yes
  10451. ;;
  10452. gnu*)
  10453. ;;
  10454. hpux9*)
  10455. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10456. hardcode_libdir_separator_CXX=:
  10457. export_dynamic_flag_spec_CXX='${wl}-E'
  10458. hardcode_direct_CXX=yes
  10459. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10460. # but as the default
  10461. # location of the library.
  10462. case $cc_basename in
  10463. CC*)
  10464. # FIXME: insert proper C++ library support
  10465. ld_shlibs_CXX=no
  10466. ;;
  10467. aCC*)
  10468. 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'
  10469. # Commands to make compiler produce verbose output that lists
  10470. # what "hidden" libraries, object files and flags are used when
  10471. # linking a shared library.
  10472. #
  10473. # There doesn't appear to be a way to prevent this compiler from
  10474. # explicitly linking system object files so we need to strip them
  10475. # from the output so that they don't get included in the library
  10476. # dependencies.
  10477. 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; $ECHO "X$list" | $Xsed'
  10478. ;;
  10479. *)
  10480. if test "$GXX" = yes; then
  10481. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10482. else
  10483. # FIXME: insert proper C++ library support
  10484. ld_shlibs_CXX=no
  10485. fi
  10486. ;;
  10487. esac
  10488. ;;
  10489. hpux10*|hpux11*)
  10490. if test $with_gnu_ld = no; then
  10491. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10492. hardcode_libdir_separator_CXX=:
  10493. case $host_cpu in
  10494. hppa*64*|ia64*)
  10495. ;;
  10496. *)
  10497. export_dynamic_flag_spec_CXX='${wl}-E'
  10498. ;;
  10499. esac
  10500. fi
  10501. case $host_cpu in
  10502. hppa*64*|ia64*)
  10503. hardcode_direct_CXX=no
  10504. hardcode_shlibpath_var_CXX=no
  10505. ;;
  10506. *)
  10507. hardcode_direct_CXX=yes
  10508. hardcode_direct_absolute_CXX=yes
  10509. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10510. # but as the default
  10511. # location of the library.
  10512. ;;
  10513. esac
  10514. case $cc_basename in
  10515. CC*)
  10516. # FIXME: insert proper C++ library support
  10517. ld_shlibs_CXX=no
  10518. ;;
  10519. aCC*)
  10520. case $host_cpu in
  10521. hppa*64*)
  10522. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10523. ;;
  10524. ia64*)
  10525. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10526. ;;
  10527. *)
  10528. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10529. ;;
  10530. esac
  10531. # Commands to make compiler produce verbose output that lists
  10532. # what "hidden" libraries, object files and flags are used when
  10533. # linking a shared library.
  10534. #
  10535. # There doesn't appear to be a way to prevent this compiler from
  10536. # explicitly linking system object files so we need to strip them
  10537. # from the output so that they don't get included in the library
  10538. # dependencies.
  10539. 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; $ECHO "X$list" | $Xsed'
  10540. ;;
  10541. *)
  10542. if test "$GXX" = yes; then
  10543. if test $with_gnu_ld = no; then
  10544. case $host_cpu in
  10545. hppa*64*)
  10546. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10547. ;;
  10548. ia64*)
  10549. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10550. ;;
  10551. *)
  10552. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10553. ;;
  10554. esac
  10555. fi
  10556. else
  10557. # FIXME: insert proper C++ library support
  10558. ld_shlibs_CXX=no
  10559. fi
  10560. ;;
  10561. esac
  10562. ;;
  10563. interix[3-9]*)
  10564. hardcode_direct_CXX=no
  10565. hardcode_shlibpath_var_CXX=no
  10566. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10567. export_dynamic_flag_spec_CXX='${wl}-E'
  10568. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10569. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10570. # default) and relocated if they conflict, which is a slow very memory
  10571. # consuming and fragmenting process. To avoid this, we pick a random,
  10572. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10573. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10574. 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'
  10575. 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'
  10576. ;;
  10577. irix5* | irix6*)
  10578. case $cc_basename in
  10579. CC*)
  10580. # SGI C++
  10581. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10582. # Archives containing C++ object files must be created using
  10583. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10584. # necessary to make sure instantiated templates are included
  10585. # in the archive.
  10586. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10587. ;;
  10588. *)
  10589. if test "$GXX" = yes; then
  10590. if test "$with_gnu_ld" = no; then
  10591. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10592. else
  10593. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10594. fi
  10595. fi
  10596. link_all_deplibs_CXX=yes
  10597. ;;
  10598. esac
  10599. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10600. hardcode_libdir_separator_CXX=:
  10601. inherit_rpath_CXX=yes
  10602. ;;
  10603. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10604. case $cc_basename in
  10605. KCC*)
  10606. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10607. # KCC will only create a shared library if the output file
  10608. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10609. # to its proper name (with version) after linking.
  10610. 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'
  10611. 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'
  10612. # Commands to make compiler produce verbose output that lists
  10613. # what "hidden" libraries, object files and flags are used when
  10614. # linking a shared library.
  10615. #
  10616. # There doesn't appear to be a way to prevent this compiler from
  10617. # explicitly linking system object files so we need to strip them
  10618. # from the output so that they don't get included in the library
  10619. # dependencies.
  10620. 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; $ECHO "X$list" | $Xsed'
  10621. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10622. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10623. # Archives containing C++ object files must be created using
  10624. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10625. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10626. ;;
  10627. icpc* | ecpc* )
  10628. # Intel C++
  10629. with_gnu_ld=yes
  10630. # version 8.0 and above of icpc choke on multiply defined symbols
  10631. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10632. # earlier do not add the objects themselves.
  10633. case `$CC -V 2>&1` in
  10634. *"Version 7."*)
  10635. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10636. 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'
  10637. ;;
  10638. *) # Version 8.0 or newer
  10639. tmp_idyn=
  10640. case $host_cpu in
  10641. ia64*) tmp_idyn=' -i_dynamic';;
  10642. esac
  10643. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10644. 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'
  10645. ;;
  10646. esac
  10647. archive_cmds_need_lc_CXX=no
  10648. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10649. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10650. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10651. ;;
  10652. pgCC* | pgcpp*)
  10653. # Portland Group C++ compiler
  10654. case `$CC -V` in
  10655. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10656. prelink_cmds_CXX='tpldir=Template.dir~
  10657. rm -rf $tpldir~
  10658. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10659. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10660. old_archive_cmds_CXX='tpldir=Template.dir~
  10661. rm -rf $tpldir~
  10662. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10663. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10664. $RANLIB $oldlib'
  10665. archive_cmds_CXX='tpldir=Template.dir~
  10666. rm -rf $tpldir~
  10667. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10668. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10669. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10670. rm -rf $tpldir~
  10671. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10672. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10673. ;;
  10674. *) # Version 6 will use weak symbols
  10675. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10676. 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'
  10677. ;;
  10678. esac
  10679. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10680. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10681. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10682. ;;
  10683. cxx*)
  10684. # Compaq C++
  10685. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10686. 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'
  10687. runpath_var=LD_RUN_PATH
  10688. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10689. hardcode_libdir_separator_CXX=:
  10690. # Commands to make compiler produce verbose output that lists
  10691. # what "hidden" libraries, object files and flags are used when
  10692. # linking a shared library.
  10693. #
  10694. # There doesn't appear to be a way to prevent this compiler from
  10695. # explicitly linking system object files so we need to strip them
  10696. # from the output so that they don't get included in the library
  10697. # dependencies.
  10698. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10699. ;;
  10700. xl*)
  10701. # IBM XL 8.0 on PPC, with GNU ld
  10702. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10703. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10704. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10705. if test "x$supports_anon_versioning" = xyes; then
  10706. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10707. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10708. echo "local: *; };" >> $output_objdir/$libname.ver~
  10709. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10710. fi
  10711. ;;
  10712. *)
  10713. case `$CC -V 2>&1 | sed 5q` in
  10714. *Sun\ C*)
  10715. # Sun C++ 5.9
  10716. no_undefined_flag_CXX=' -zdefs'
  10717. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10718. 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'
  10719. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10720. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10721. compiler_needs_object_CXX=yes
  10722. # Not sure whether something based on
  10723. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10724. # would be better.
  10725. output_verbose_link_cmd='echo'
  10726. # Archives containing C++ object files must be created using
  10727. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10728. # necessary to make sure instantiated templates are included
  10729. # in the archive.
  10730. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10731. ;;
  10732. esac
  10733. ;;
  10734. esac
  10735. ;;
  10736. lynxos*)
  10737. # FIXME: insert proper C++ library support
  10738. ld_shlibs_CXX=no
  10739. ;;
  10740. m88k*)
  10741. # FIXME: insert proper C++ library support
  10742. ld_shlibs_CXX=no
  10743. ;;
  10744. mvs*)
  10745. case $cc_basename in
  10746. cxx*)
  10747. # FIXME: insert proper C++ library support
  10748. ld_shlibs_CXX=no
  10749. ;;
  10750. *)
  10751. # FIXME: insert proper C++ library support
  10752. ld_shlibs_CXX=no
  10753. ;;
  10754. esac
  10755. ;;
  10756. netbsd*)
  10757. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10758. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10759. wlarc=
  10760. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10761. hardcode_direct_CXX=yes
  10762. hardcode_shlibpath_var_CXX=no
  10763. fi
  10764. # Workaround some broken pre-1.5 toolchains
  10765. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10766. ;;
  10767. *nto* | *qnx*)
  10768. ld_shlibs_CXX=yes
  10769. ;;
  10770. openbsd2*)
  10771. # C++ shared libraries are fairly broken
  10772. ld_shlibs_CXX=no
  10773. ;;
  10774. openbsd*)
  10775. if test -f /usr/libexec/ld.so; then
  10776. hardcode_direct_CXX=yes
  10777. hardcode_shlibpath_var_CXX=no
  10778. hardcode_direct_absolute_CXX=yes
  10779. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10780. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10781. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10782. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10783. export_dynamic_flag_spec_CXX='${wl}-E'
  10784. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10785. fi
  10786. output_verbose_link_cmd=echo
  10787. else
  10788. ld_shlibs_CXX=no
  10789. fi
  10790. ;;
  10791. osf3* | osf4* | osf5*)
  10792. case $cc_basename in
  10793. KCC*)
  10794. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10795. # KCC will only create a shared library if the output file
  10796. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10797. # to its proper name (with version) after linking.
  10798. 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'
  10799. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10800. hardcode_libdir_separator_CXX=:
  10801. # Archives containing C++ object files must be created using
  10802. # the KAI C++ compiler.
  10803. case $host in
  10804. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10805. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10806. esac
  10807. ;;
  10808. RCC*)
  10809. # Rational C++ 2.4.1
  10810. # FIXME: insert proper C++ library support
  10811. ld_shlibs_CXX=no
  10812. ;;
  10813. cxx*)
  10814. case $host in
  10815. osf3*)
  10816. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10817. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10818. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10819. ;;
  10820. *)
  10821. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10822. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10823. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10824. echo "-hidden">> $lib.exp~
  10825. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10826. $RM $lib.exp'
  10827. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10828. ;;
  10829. esac
  10830. hardcode_libdir_separator_CXX=:
  10831. # Commands to make compiler produce verbose output that lists
  10832. # what "hidden" libraries, object files and flags are used when
  10833. # linking a shared library.
  10834. #
  10835. # There doesn't appear to be a way to prevent this compiler from
  10836. # explicitly linking system object files so we need to strip them
  10837. # from the output so that they don't get included in the library
  10838. # dependencies.
  10839. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10840. ;;
  10841. *)
  10842. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10843. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10844. case $host in
  10845. osf3*)
  10846. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10847. ;;
  10848. *)
  10849. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10850. ;;
  10851. esac
  10852. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10853. hardcode_libdir_separator_CXX=:
  10854. # Commands to make compiler produce verbose output that lists
  10855. # what "hidden" libraries, object files and flags are used when
  10856. # linking a shared library.
  10857. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10858. else
  10859. # FIXME: insert proper C++ library support
  10860. ld_shlibs_CXX=no
  10861. fi
  10862. ;;
  10863. esac
  10864. ;;
  10865. psos*)
  10866. # FIXME: insert proper C++ library support
  10867. ld_shlibs_CXX=no
  10868. ;;
  10869. sunos4*)
  10870. case $cc_basename in
  10871. CC*)
  10872. # Sun C++ 4.x
  10873. # FIXME: insert proper C++ library support
  10874. ld_shlibs_CXX=no
  10875. ;;
  10876. lcc*)
  10877. # Lucid
  10878. # FIXME: insert proper C++ library support
  10879. ld_shlibs_CXX=no
  10880. ;;
  10881. *)
  10882. # FIXME: insert proper C++ library support
  10883. ld_shlibs_CXX=no
  10884. ;;
  10885. esac
  10886. ;;
  10887. solaris*)
  10888. case $cc_basename in
  10889. CC*)
  10890. # Sun C++ 4.2, 5.x and Centerline C++
  10891. archive_cmds_need_lc_CXX=yes
  10892. no_undefined_flag_CXX=' -zdefs'
  10893. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10894. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10895. $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'
  10896. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10897. hardcode_shlibpath_var_CXX=no
  10898. case $host_os in
  10899. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10900. *)
  10901. # The compiler driver will combine and reorder linker options,
  10902. # but understands `-z linker_flag'.
  10903. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10904. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10905. ;;
  10906. esac
  10907. link_all_deplibs_CXX=yes
  10908. output_verbose_link_cmd='echo'
  10909. # Archives containing C++ object files must be created using
  10910. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10911. # necessary to make sure instantiated templates are included
  10912. # in the archive.
  10913. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10914. ;;
  10915. gcx*)
  10916. # Green Hills C++ Compiler
  10917. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10918. # The C++ compiler must be used to create the archive.
  10919. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10920. ;;
  10921. *)
  10922. # GNU C++ compiler with Solaris linker
  10923. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10924. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10925. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10926. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10927. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10928. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10929. # Commands to make compiler produce verbose output that lists
  10930. # what "hidden" libraries, object files and flags are used when
  10931. # linking a shared library.
  10932. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10933. else
  10934. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10935. # platform.
  10936. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10937. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10938. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10939. # Commands to make compiler produce verbose output that lists
  10940. # what "hidden" libraries, object files and flags are used when
  10941. # linking a shared library.
  10942. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10943. fi
  10944. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10945. case $host_os in
  10946. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10947. *)
  10948. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10949. ;;
  10950. esac
  10951. fi
  10952. ;;
  10953. esac
  10954. ;;
  10955. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10956. no_undefined_flag_CXX='${wl}-z,text'
  10957. archive_cmds_need_lc_CXX=no
  10958. hardcode_shlibpath_var_CXX=no
  10959. runpath_var='LD_RUN_PATH'
  10960. case $cc_basename in
  10961. CC*)
  10962. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10963. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10964. ;;
  10965. *)
  10966. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10967. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10968. ;;
  10969. esac
  10970. ;;
  10971. sysv5* | sco3.2v5* | sco5v6*)
  10972. # Note: We can NOT use -z defs as we might desire, because we do not
  10973. # link with -lc, and that would cause any symbols used from libc to
  10974. # always be unresolved, which means just about no library would
  10975. # ever link correctly. If we're not using GNU ld we use -z text
  10976. # though, which does catch some bad symbols but isn't as heavy-handed
  10977. # as -z defs.
  10978. no_undefined_flag_CXX='${wl}-z,text'
  10979. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10980. archive_cmds_need_lc_CXX=no
  10981. hardcode_shlibpath_var_CXX=no
  10982. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10983. hardcode_libdir_separator_CXX=':'
  10984. link_all_deplibs_CXX=yes
  10985. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10986. runpath_var='LD_RUN_PATH'
  10987. case $cc_basename in
  10988. CC*)
  10989. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10990. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10991. ;;
  10992. *)
  10993. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10994. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10995. ;;
  10996. esac
  10997. ;;
  10998. tandem*)
  10999. case $cc_basename in
  11000. NCC*)
  11001. # NonStop-UX NCC 3.20
  11002. # FIXME: insert proper C++ library support
  11003. ld_shlibs_CXX=no
  11004. ;;
  11005. *)
  11006. # FIXME: insert proper C++ library support
  11007. ld_shlibs_CXX=no
  11008. ;;
  11009. esac
  11010. ;;
  11011. vxworks*)
  11012. # FIXME: insert proper C++ library support
  11013. ld_shlibs_CXX=no
  11014. ;;
  11015. *)
  11016. # FIXME: insert proper C++ library support
  11017. ld_shlibs_CXX=no
  11018. ;;
  11019. esac
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11021. $as_echo "$ld_shlibs_CXX" >&6; }
  11022. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11023. GCC_CXX="$GXX"
  11024. LD_CXX="$LD"
  11025. ## CAVEAT EMPTOR:
  11026. ## There is no encapsulation within the following macros, do not change
  11027. ## the running order or otherwise move them around unless you know exactly
  11028. ## what you are doing...
  11029. # Dependencies to place before and after the object being linked:
  11030. predep_objects_CXX=
  11031. postdep_objects_CXX=
  11032. predeps_CXX=
  11033. postdeps_CXX=
  11034. compiler_lib_search_path_CXX=
  11035. cat > conftest.$ac_ext <<_LT_EOF
  11036. class Foo
  11037. {
  11038. public:
  11039. Foo (void) { a = 0; }
  11040. private:
  11041. int a;
  11042. };
  11043. _LT_EOF
  11044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11045. (eval $ac_compile) 2>&5
  11046. ac_status=$?
  11047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11048. test $ac_status = 0; }; then
  11049. # Parse the compiler output and extract the necessary
  11050. # objects, libraries and library flags.
  11051. # Sentinel used to keep track of whether or not we are before
  11052. # the conftest object file.
  11053. pre_test_object_deps_done=no
  11054. for p in `eval "$output_verbose_link_cmd"`; do
  11055. case $p in
  11056. -L* | -R* | -l*)
  11057. # Some compilers place space between "-{L,R}" and the path.
  11058. # Remove the space.
  11059. if test $p = "-L" ||
  11060. test $p = "-R"; then
  11061. prev=$p
  11062. continue
  11063. else
  11064. prev=
  11065. fi
  11066. if test "$pre_test_object_deps_done" = no; then
  11067. case $p in
  11068. -L* | -R*)
  11069. # Internal compiler library paths should come after those
  11070. # provided the user. The postdeps already come after the
  11071. # user supplied libs so there is no need to process them.
  11072. if test -z "$compiler_lib_search_path_CXX"; then
  11073. compiler_lib_search_path_CXX="${prev}${p}"
  11074. else
  11075. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11076. fi
  11077. ;;
  11078. # The "-l" case would never come before the object being
  11079. # linked, so don't bother handling this case.
  11080. esac
  11081. else
  11082. if test -z "$postdeps_CXX"; then
  11083. postdeps_CXX="${prev}${p}"
  11084. else
  11085. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11086. fi
  11087. fi
  11088. ;;
  11089. *.$objext)
  11090. # This assumes that the test object file only shows up
  11091. # once in the compiler output.
  11092. if test "$p" = "conftest.$objext"; then
  11093. pre_test_object_deps_done=yes
  11094. continue
  11095. fi
  11096. if test "$pre_test_object_deps_done" = no; then
  11097. if test -z "$predep_objects_CXX"; then
  11098. predep_objects_CXX="$p"
  11099. else
  11100. predep_objects_CXX="$predep_objects_CXX $p"
  11101. fi
  11102. else
  11103. if test -z "$postdep_objects_CXX"; then
  11104. postdep_objects_CXX="$p"
  11105. else
  11106. postdep_objects_CXX="$postdep_objects_CXX $p"
  11107. fi
  11108. fi
  11109. ;;
  11110. *) ;; # Ignore the rest.
  11111. esac
  11112. done
  11113. # Clean up.
  11114. rm -f a.out a.exe
  11115. else
  11116. echo "libtool.m4: error: problem compiling CXX test program"
  11117. fi
  11118. $RM -f confest.$objext
  11119. # PORTME: override above test on systems where it is broken
  11120. case $host_os in
  11121. interix[3-9]*)
  11122. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11123. # hack all around it, let's just trust "g++" to DTRT.
  11124. predep_objects_CXX=
  11125. postdep_objects_CXX=
  11126. postdeps_CXX=
  11127. ;;
  11128. linux*)
  11129. case `$CC -V 2>&1 | sed 5q` in
  11130. *Sun\ C*)
  11131. # Sun C++ 5.9
  11132. # The more standards-conforming stlport4 library is
  11133. # incompatible with the Cstd library. Avoid specifying
  11134. # it if it's in CXXFLAGS. Ignore libCrun as
  11135. # -library=stlport4 depends on it.
  11136. case " $CXX $CXXFLAGS " in
  11137. *" -library=stlport4 "*)
  11138. solaris_use_stlport4=yes
  11139. ;;
  11140. esac
  11141. if test "$solaris_use_stlport4" != yes; then
  11142. postdeps_CXX='-library=Cstd -library=Crun'
  11143. fi
  11144. ;;
  11145. esac
  11146. ;;
  11147. solaris*)
  11148. case $cc_basename in
  11149. CC*)
  11150. # The more standards-conforming stlport4 library is
  11151. # incompatible with the Cstd library. Avoid specifying
  11152. # it if it's in CXXFLAGS. Ignore libCrun as
  11153. # -library=stlport4 depends on it.
  11154. case " $CXX $CXXFLAGS " in
  11155. *" -library=stlport4 "*)
  11156. solaris_use_stlport4=yes
  11157. ;;
  11158. esac
  11159. # Adding this requires a known-good setup of shared libraries for
  11160. # Sun compiler versions before 5.6, else PIC objects from an old
  11161. # archive will be linked into the output, leading to subtle bugs.
  11162. if test "$solaris_use_stlport4" != yes; then
  11163. postdeps_CXX='-library=Cstd -library=Crun'
  11164. fi
  11165. ;;
  11166. esac
  11167. ;;
  11168. esac
  11169. case " $postdeps_CXX " in
  11170. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11171. esac
  11172. compiler_lib_search_dirs_CXX=
  11173. if test -n "${compiler_lib_search_path_CXX}"; then
  11174. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11175. fi
  11176. lt_prog_compiler_wl_CXX=
  11177. lt_prog_compiler_pic_CXX=
  11178. lt_prog_compiler_static_CXX=
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11180. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11181. # C++ specific cases for pic, static, wl, etc.
  11182. if test "$GXX" = yes; then
  11183. lt_prog_compiler_wl_CXX='-Wl,'
  11184. lt_prog_compiler_static_CXX='-static'
  11185. case $host_os in
  11186. aix*)
  11187. # All AIX code is PIC.
  11188. if test "$host_cpu" = ia64; then
  11189. # AIX 5 now supports IA64 processor
  11190. lt_prog_compiler_static_CXX='-Bstatic'
  11191. fi
  11192. ;;
  11193. amigaos*)
  11194. case $host_cpu in
  11195. powerpc)
  11196. # see comment about AmigaOS4 .so support
  11197. lt_prog_compiler_pic_CXX='-fPIC'
  11198. ;;
  11199. m68k)
  11200. # FIXME: we need at least 68020 code to build shared libraries, but
  11201. # adding the `-m68020' flag to GCC prevents building anything better,
  11202. # like `-m68040'.
  11203. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11204. ;;
  11205. esac
  11206. ;;
  11207. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11208. # PIC is the default for these OSes.
  11209. ;;
  11210. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11211. # This hack is so that the source file can tell whether it is being
  11212. # built for inclusion in a dll (and should export symbols for example).
  11213. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11214. # (--disable-auto-import) libraries
  11215. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11216. ;;
  11217. darwin* | rhapsody*)
  11218. # PIC is the default on this platform
  11219. # Common symbols not allowed in MH_DYLIB files
  11220. lt_prog_compiler_pic_CXX='-fno-common'
  11221. ;;
  11222. *djgpp*)
  11223. # DJGPP does not support shared libraries at all
  11224. lt_prog_compiler_pic_CXX=
  11225. ;;
  11226. interix[3-9]*)
  11227. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11228. # Instead, we relocate shared libraries at runtime.
  11229. ;;
  11230. sysv4*MP*)
  11231. if test -d /usr/nec; then
  11232. lt_prog_compiler_pic_CXX=-Kconform_pic
  11233. fi
  11234. ;;
  11235. hpux*)
  11236. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11237. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11238. # sets the default TLS model and affects inlining.
  11239. case $host_cpu in
  11240. hppa*64*)
  11241. ;;
  11242. *)
  11243. lt_prog_compiler_pic_CXX='-fPIC'
  11244. ;;
  11245. esac
  11246. ;;
  11247. *qnx* | *nto*)
  11248. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11249. # it will coredump.
  11250. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11251. ;;
  11252. *)
  11253. lt_prog_compiler_pic_CXX='-fPIC'
  11254. ;;
  11255. esac
  11256. else
  11257. case $host_os in
  11258. aix[4-9]*)
  11259. # All AIX code is PIC.
  11260. if test "$host_cpu" = ia64; then
  11261. # AIX 5 now supports IA64 processor
  11262. lt_prog_compiler_static_CXX='-Bstatic'
  11263. else
  11264. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11265. fi
  11266. ;;
  11267. chorus*)
  11268. case $cc_basename in
  11269. cxch68*)
  11270. # Green Hills C++ Compiler
  11271. # _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"
  11272. ;;
  11273. esac
  11274. ;;
  11275. dgux*)
  11276. case $cc_basename in
  11277. ec++*)
  11278. lt_prog_compiler_pic_CXX='-KPIC'
  11279. ;;
  11280. ghcx*)
  11281. # Green Hills C++ Compiler
  11282. lt_prog_compiler_pic_CXX='-pic'
  11283. ;;
  11284. *)
  11285. ;;
  11286. esac
  11287. ;;
  11288. freebsd* | dragonfly*)
  11289. # FreeBSD uses GNU C++
  11290. ;;
  11291. hpux9* | hpux10* | hpux11*)
  11292. case $cc_basename in
  11293. CC*)
  11294. lt_prog_compiler_wl_CXX='-Wl,'
  11295. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11296. if test "$host_cpu" != ia64; then
  11297. lt_prog_compiler_pic_CXX='+Z'
  11298. fi
  11299. ;;
  11300. aCC*)
  11301. lt_prog_compiler_wl_CXX='-Wl,'
  11302. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11303. case $host_cpu in
  11304. hppa*64*|ia64*)
  11305. # +Z the default
  11306. ;;
  11307. *)
  11308. lt_prog_compiler_pic_CXX='+Z'
  11309. ;;
  11310. esac
  11311. ;;
  11312. *)
  11313. ;;
  11314. esac
  11315. ;;
  11316. interix*)
  11317. # This is c89, which is MS Visual C++ (no shared libs)
  11318. # Anyone wants to do a port?
  11319. ;;
  11320. irix5* | irix6* | nonstopux*)
  11321. case $cc_basename in
  11322. CC*)
  11323. lt_prog_compiler_wl_CXX='-Wl,'
  11324. lt_prog_compiler_static_CXX='-non_shared'
  11325. # CC pic flag -KPIC is the default.
  11326. ;;
  11327. *)
  11328. ;;
  11329. esac
  11330. ;;
  11331. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11332. case $cc_basename in
  11333. KCC*)
  11334. # KAI C++ Compiler
  11335. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11336. lt_prog_compiler_pic_CXX='-fPIC'
  11337. ;;
  11338. ecpc* )
  11339. # old Intel C++ for x86_64 which still supported -KPIC.
  11340. lt_prog_compiler_wl_CXX='-Wl,'
  11341. lt_prog_compiler_pic_CXX='-KPIC'
  11342. lt_prog_compiler_static_CXX='-static'
  11343. ;;
  11344. icpc* )
  11345. # Intel C++, used to be incompatible with GCC.
  11346. # ICC 10 doesn't accept -KPIC any more.
  11347. lt_prog_compiler_wl_CXX='-Wl,'
  11348. lt_prog_compiler_pic_CXX='-fPIC'
  11349. lt_prog_compiler_static_CXX='-static'
  11350. ;;
  11351. pgCC* | pgcpp*)
  11352. # Portland Group C++ compiler
  11353. lt_prog_compiler_wl_CXX='-Wl,'
  11354. lt_prog_compiler_pic_CXX='-fpic'
  11355. lt_prog_compiler_static_CXX='-Bstatic'
  11356. ;;
  11357. cxx*)
  11358. # Compaq C++
  11359. # Make sure the PIC flag is empty. It appears that all Alpha
  11360. # Linux and Compaq Tru64 Unix objects are PIC.
  11361. lt_prog_compiler_pic_CXX=
  11362. lt_prog_compiler_static_CXX='-non_shared'
  11363. ;;
  11364. xlc* | xlC*)
  11365. # IBM XL 8.0 on PPC
  11366. lt_prog_compiler_wl_CXX='-Wl,'
  11367. lt_prog_compiler_pic_CXX='-qpic'
  11368. lt_prog_compiler_static_CXX='-qstaticlink'
  11369. ;;
  11370. *)
  11371. case `$CC -V 2>&1 | sed 5q` in
  11372. *Sun\ C*)
  11373. # Sun C++ 5.9
  11374. lt_prog_compiler_pic_CXX='-KPIC'
  11375. lt_prog_compiler_static_CXX='-Bstatic'
  11376. lt_prog_compiler_wl_CXX='-Qoption ld '
  11377. ;;
  11378. esac
  11379. ;;
  11380. esac
  11381. ;;
  11382. lynxos*)
  11383. ;;
  11384. m88k*)
  11385. ;;
  11386. mvs*)
  11387. case $cc_basename in
  11388. cxx*)
  11389. lt_prog_compiler_pic_CXX='-W c,exportall'
  11390. ;;
  11391. *)
  11392. ;;
  11393. esac
  11394. ;;
  11395. netbsd* | netbsdelf*-gnu)
  11396. ;;
  11397. *qnx* | *nto*)
  11398. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11399. # it will coredump.
  11400. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11401. ;;
  11402. osf3* | osf4* | osf5*)
  11403. case $cc_basename in
  11404. KCC*)
  11405. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11406. ;;
  11407. RCC*)
  11408. # Rational C++ 2.4.1
  11409. lt_prog_compiler_pic_CXX='-pic'
  11410. ;;
  11411. cxx*)
  11412. # Digital/Compaq C++
  11413. lt_prog_compiler_wl_CXX='-Wl,'
  11414. # Make sure the PIC flag is empty. It appears that all Alpha
  11415. # Linux and Compaq Tru64 Unix objects are PIC.
  11416. lt_prog_compiler_pic_CXX=
  11417. lt_prog_compiler_static_CXX='-non_shared'
  11418. ;;
  11419. *)
  11420. ;;
  11421. esac
  11422. ;;
  11423. psos*)
  11424. ;;
  11425. solaris*)
  11426. case $cc_basename in
  11427. CC*)
  11428. # Sun C++ 4.2, 5.x and Centerline C++
  11429. lt_prog_compiler_pic_CXX='-KPIC'
  11430. lt_prog_compiler_static_CXX='-Bstatic'
  11431. lt_prog_compiler_wl_CXX='-Qoption ld '
  11432. ;;
  11433. gcx*)
  11434. # Green Hills C++ Compiler
  11435. lt_prog_compiler_pic_CXX='-PIC'
  11436. ;;
  11437. *)
  11438. ;;
  11439. esac
  11440. ;;
  11441. sunos4*)
  11442. case $cc_basename in
  11443. CC*)
  11444. # Sun C++ 4.x
  11445. lt_prog_compiler_pic_CXX='-pic'
  11446. lt_prog_compiler_static_CXX='-Bstatic'
  11447. ;;
  11448. lcc*)
  11449. # Lucid
  11450. lt_prog_compiler_pic_CXX='-pic'
  11451. ;;
  11452. *)
  11453. ;;
  11454. esac
  11455. ;;
  11456. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11457. case $cc_basename in
  11458. CC*)
  11459. lt_prog_compiler_wl_CXX='-Wl,'
  11460. lt_prog_compiler_pic_CXX='-KPIC'
  11461. lt_prog_compiler_static_CXX='-Bstatic'
  11462. ;;
  11463. esac
  11464. ;;
  11465. tandem*)
  11466. case $cc_basename in
  11467. NCC*)
  11468. # NonStop-UX NCC 3.20
  11469. lt_prog_compiler_pic_CXX='-KPIC'
  11470. ;;
  11471. *)
  11472. ;;
  11473. esac
  11474. ;;
  11475. vxworks*)
  11476. ;;
  11477. *)
  11478. lt_prog_compiler_can_build_shared_CXX=no
  11479. ;;
  11480. esac
  11481. fi
  11482. case $host_os in
  11483. # For platforms which do not support PIC, -DPIC is meaningless:
  11484. *djgpp*)
  11485. lt_prog_compiler_pic_CXX=
  11486. ;;
  11487. *)
  11488. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11489. ;;
  11490. esac
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11492. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11493. #
  11494. # Check to make sure the PIC flag actually works.
  11495. #
  11496. if test -n "$lt_prog_compiler_pic_CXX"; then
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11498. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11499. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11500. $as_echo_n "(cached) " >&6
  11501. else
  11502. lt_cv_prog_compiler_pic_works_CXX=no
  11503. ac_outfile=conftest.$ac_objext
  11504. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11505. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11506. # Insert the option either (1) after the last *FLAGS variable, or
  11507. # (2) before a word containing "conftest.", or (3) at the end.
  11508. # Note that $ac_compile itself does not contain backslashes and begins
  11509. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11510. # The option is referenced via a variable to avoid confusing sed.
  11511. lt_compile=`echo "$ac_compile" | $SED \
  11512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11514. -e 's:$: $lt_compiler_flag:'`
  11515. (eval echo "\"\$as_me:13534: $lt_compile\"" >&5)
  11516. (eval "$lt_compile" 2>conftest.err)
  11517. ac_status=$?
  11518. cat conftest.err >&5
  11519. echo "$as_me:13538: \$? = $ac_status" >&5
  11520. if (exit $ac_status) && test -s "$ac_outfile"; then
  11521. # The compiler can only warn and ignore the option if not recognized
  11522. # So say no if there are warnings other than the usual output.
  11523. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11524. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11525. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11526. lt_cv_prog_compiler_pic_works_CXX=yes
  11527. fi
  11528. fi
  11529. $RM conftest*
  11530. fi
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11532. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11533. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11534. case $lt_prog_compiler_pic_CXX in
  11535. "" | " "*) ;;
  11536. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11537. esac
  11538. else
  11539. lt_prog_compiler_pic_CXX=
  11540. lt_prog_compiler_can_build_shared_CXX=no
  11541. fi
  11542. fi
  11543. #
  11544. # Check to make sure the static flag actually works.
  11545. #
  11546. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11548. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11549. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. lt_cv_prog_compiler_static_works_CXX=no
  11553. save_LDFLAGS="$LDFLAGS"
  11554. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11555. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11556. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11557. # The linker can only warn and ignore the option if not recognized
  11558. # So say no if there are warnings
  11559. if test -s conftest.err; then
  11560. # Append any errors to the config.log.
  11561. cat conftest.err 1>&5
  11562. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11563. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11564. if diff conftest.exp conftest.er2 >/dev/null; then
  11565. lt_cv_prog_compiler_static_works_CXX=yes
  11566. fi
  11567. else
  11568. lt_cv_prog_compiler_static_works_CXX=yes
  11569. fi
  11570. fi
  11571. $RM -r conftest*
  11572. LDFLAGS="$save_LDFLAGS"
  11573. fi
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11575. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11576. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11577. :
  11578. else
  11579. lt_prog_compiler_static_CXX=
  11580. fi
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11582. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11583. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11584. $as_echo_n "(cached) " >&6
  11585. else
  11586. lt_cv_prog_compiler_c_o_CXX=no
  11587. $RM -r conftest 2>/dev/null
  11588. mkdir conftest
  11589. cd conftest
  11590. mkdir out
  11591. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11592. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11593. # Insert the option either (1) after the last *FLAGS variable, or
  11594. # (2) before a word containing "conftest.", or (3) at the end.
  11595. # Note that $ac_compile itself does not contain backslashes and begins
  11596. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11597. lt_compile=`echo "$ac_compile" | $SED \
  11598. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11599. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11600. -e 's:$: $lt_compiler_flag:'`
  11601. (eval echo "\"\$as_me:13633: $lt_compile\"" >&5)
  11602. (eval "$lt_compile" 2>out/conftest.err)
  11603. ac_status=$?
  11604. cat out/conftest.err >&5
  11605. echo "$as_me:13637: \$? = $ac_status" >&5
  11606. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11607. then
  11608. # The compiler can only warn and ignore the option if not recognized
  11609. # So say no if there are warnings
  11610. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11611. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11612. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11613. lt_cv_prog_compiler_c_o_CXX=yes
  11614. fi
  11615. fi
  11616. chmod u+w . 2>&5
  11617. $RM conftest*
  11618. # SGI C++ compiler will create directory out/ii_files/ for
  11619. # template instantiation
  11620. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11621. $RM out/* && rmdir out
  11622. cd ..
  11623. $RM -r conftest
  11624. $RM conftest*
  11625. fi
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11627. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11629. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11630. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11631. $as_echo_n "(cached) " >&6
  11632. else
  11633. lt_cv_prog_compiler_c_o_CXX=no
  11634. $RM -r conftest 2>/dev/null
  11635. mkdir conftest
  11636. cd conftest
  11637. mkdir out
  11638. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11639. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11640. # Insert the option either (1) after the last *FLAGS variable, or
  11641. # (2) before a word containing "conftest.", or (3) at the end.
  11642. # Note that $ac_compile itself does not contain backslashes and begins
  11643. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11644. lt_compile=`echo "$ac_compile" | $SED \
  11645. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11646. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11647. -e 's:$: $lt_compiler_flag:'`
  11648. (eval echo "\"\$as_me:13685: $lt_compile\"" >&5)
  11649. (eval "$lt_compile" 2>out/conftest.err)
  11650. ac_status=$?
  11651. cat out/conftest.err >&5
  11652. echo "$as_me:13689: \$? = $ac_status" >&5
  11653. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11654. then
  11655. # The compiler can only warn and ignore the option if not recognized
  11656. # So say no if there are warnings
  11657. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11658. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11659. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11660. lt_cv_prog_compiler_c_o_CXX=yes
  11661. fi
  11662. fi
  11663. chmod u+w . 2>&5
  11664. $RM conftest*
  11665. # SGI C++ compiler will create directory out/ii_files/ for
  11666. # template instantiation
  11667. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11668. $RM out/* && rmdir out
  11669. cd ..
  11670. $RM -r conftest
  11671. $RM conftest*
  11672. fi
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11674. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11675. hard_links="nottested"
  11676. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11677. # do not overwrite the value of need_locks provided by the user
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11679. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11680. hard_links=yes
  11681. $RM conftest*
  11682. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11683. touch conftest.a
  11684. ln conftest.a conftest.b 2>&5 || hard_links=no
  11685. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11687. $as_echo "$hard_links" >&6; }
  11688. if test "$hard_links" = no; then
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11690. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11691. need_locks=warn
  11692. fi
  11693. else
  11694. need_locks=no
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11697. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11698. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11699. case $host_os in
  11700. aix[4-9]*)
  11701. # If we're using GNU nm, then we don't want the "-C" option.
  11702. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11703. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11704. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11705. else
  11706. 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'
  11707. fi
  11708. ;;
  11709. pw32*)
  11710. export_symbols_cmds_CXX="$ltdll_cmds"
  11711. ;;
  11712. cygwin* | mingw* | cegcc*)
  11713. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11714. ;;
  11715. linux* | k*bsd*-gnu)
  11716. link_all_deplibs_CXX=no
  11717. ;;
  11718. *)
  11719. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11720. ;;
  11721. esac
  11722. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11724. $as_echo "$ld_shlibs_CXX" >&6; }
  11725. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11726. with_gnu_ld_CXX=$with_gnu_ld
  11727. #
  11728. # Do we need to explicitly link libc?
  11729. #
  11730. case "x$archive_cmds_need_lc_CXX" in
  11731. x|xyes)
  11732. # Assume -lc should be added
  11733. archive_cmds_need_lc_CXX=yes
  11734. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11735. case $archive_cmds_CXX in
  11736. *'~'*)
  11737. # FIXME: we may have to deal with multi-command sequences.
  11738. ;;
  11739. '$CC '*)
  11740. # Test whether the compiler implicitly links with -lc since on some
  11741. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11742. # to ld, don't add -lc before -lgcc.
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11744. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11745. $RM conftest*
  11746. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11747. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11748. (eval $ac_compile) 2>&5
  11749. ac_status=$?
  11750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11751. test $ac_status = 0; } 2>conftest.err; then
  11752. soname=conftest
  11753. lib=conftest
  11754. libobjs=conftest.$ac_objext
  11755. deplibs=
  11756. wl=$lt_prog_compiler_wl_CXX
  11757. pic_flag=$lt_prog_compiler_pic_CXX
  11758. compiler_flags=-v
  11759. linker_flags=-v
  11760. verstring=
  11761. output_objdir=.
  11762. libname=conftest
  11763. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11764. allow_undefined_flag_CXX=
  11765. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11766. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11767. ac_status=$?
  11768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11769. test $ac_status = 0; }
  11770. then
  11771. archive_cmds_need_lc_CXX=no
  11772. else
  11773. archive_cmds_need_lc_CXX=yes
  11774. fi
  11775. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11776. else
  11777. cat conftest.err 1>&5
  11778. fi
  11779. $RM conftest*
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11781. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11782. ;;
  11783. esac
  11784. fi
  11785. ;;
  11786. esac
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11788. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11789. library_names_spec=
  11790. libname_spec='lib$name'
  11791. soname_spec=
  11792. shrext_cmds=".so"
  11793. postinstall_cmds=
  11794. postuninstall_cmds=
  11795. finish_cmds=
  11796. finish_eval=
  11797. shlibpath_var=
  11798. shlibpath_overrides_runpath=unknown
  11799. version_type=none
  11800. dynamic_linker="$host_os ld.so"
  11801. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11802. need_lib_prefix=unknown
  11803. hardcode_into_libs=no
  11804. # when you set need_version to no, make sure it does not cause -set_version
  11805. # flags to be left without arguments
  11806. need_version=unknown
  11807. case $host_os in
  11808. aix3*)
  11809. version_type=linux
  11810. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11811. shlibpath_var=LIBPATH
  11812. # AIX 3 has no versioning support, so we append a major version to the name.
  11813. soname_spec='${libname}${release}${shared_ext}$major'
  11814. ;;
  11815. aix[4-9]*)
  11816. version_type=linux
  11817. need_lib_prefix=no
  11818. need_version=no
  11819. hardcode_into_libs=yes
  11820. if test "$host_cpu" = ia64; then
  11821. # AIX 5 supports IA64
  11822. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11823. shlibpath_var=LD_LIBRARY_PATH
  11824. else
  11825. # With GCC up to 2.95.x, collect2 would create an import file
  11826. # for dependence libraries. The import file would start with
  11827. # the line `#! .'. This would cause the generated library to
  11828. # depend on `.', always an invalid library. This was fixed in
  11829. # development snapshots of GCC prior to 3.0.
  11830. case $host_os in
  11831. aix4 | aix4.[01] | aix4.[01].*)
  11832. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11833. echo ' yes '
  11834. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11835. :
  11836. else
  11837. can_build_shared=no
  11838. fi
  11839. ;;
  11840. esac
  11841. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11842. # soname into executable. Probably we can add versioning support to
  11843. # collect2, so additional links can be useful in future.
  11844. if test "$aix_use_runtimelinking" = yes; then
  11845. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11846. # instead of lib<name>.a to let people know that these are not
  11847. # typical AIX shared libraries.
  11848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11849. else
  11850. # We preserve .a as extension for shared libraries through AIX4.2
  11851. # and later when we are not doing run time linking.
  11852. library_names_spec='${libname}${release}.a $libname.a'
  11853. soname_spec='${libname}${release}${shared_ext}$major'
  11854. fi
  11855. shlibpath_var=LIBPATH
  11856. fi
  11857. ;;
  11858. amigaos*)
  11859. case $host_cpu in
  11860. powerpc)
  11861. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11862. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11864. ;;
  11865. m68k)
  11866. library_names_spec='$libname.ixlibrary $libname.a'
  11867. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11868. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11869. ;;
  11870. esac
  11871. ;;
  11872. beos*)
  11873. library_names_spec='${libname}${shared_ext}'
  11874. dynamic_linker="$host_os ld.so"
  11875. shlibpath_var=LIBRARY_PATH
  11876. ;;
  11877. bsdi[45]*)
  11878. version_type=linux
  11879. need_version=no
  11880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11881. soname_spec='${libname}${release}${shared_ext}$major'
  11882. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11883. shlibpath_var=LD_LIBRARY_PATH
  11884. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11885. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11886. # the default ld.so.conf also contains /usr/contrib/lib and
  11887. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11888. # libtool to hard-code these into programs
  11889. ;;
  11890. cygwin* | mingw* | pw32* | cegcc*)
  11891. version_type=windows
  11892. shrext_cmds=".dll"
  11893. need_version=no
  11894. need_lib_prefix=no
  11895. case $GCC,$host_os in
  11896. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11897. library_names_spec='$libname.dll.a'
  11898. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11899. postinstall_cmds='base_file=`basename \${file}`~
  11900. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11901. dldir=$destdir/`dirname \$dlpath`~
  11902. test -d \$dldir || mkdir -p \$dldir~
  11903. $install_prog $dir/$dlname \$dldir/$dlname~
  11904. chmod a+x \$dldir/$dlname~
  11905. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11906. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11907. fi'
  11908. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11909. dlpath=$dir/\$dldll~
  11910. $RM \$dlpath'
  11911. shlibpath_overrides_runpath=yes
  11912. case $host_os in
  11913. cygwin*)
  11914. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11915. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11916. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11917. ;;
  11918. mingw* | cegcc*)
  11919. # MinGW DLLs use traditional 'lib' prefix
  11920. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11921. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11922. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11923. # It is most probably a Windows format PATH printed by
  11924. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11925. # path with ; separators, and with drive letters. We can handle the
  11926. # drive letters (cygwin fileutils understands them), so leave them,
  11927. # especially as we might pass files found there to a mingw objdump,
  11928. # which wouldn't understand a cygwinified path. Ahh.
  11929. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11930. else
  11931. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11932. fi
  11933. ;;
  11934. pw32*)
  11935. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11936. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11937. ;;
  11938. esac
  11939. ;;
  11940. *)
  11941. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11942. ;;
  11943. esac
  11944. dynamic_linker='Win32 ld.exe'
  11945. # FIXME: first we should search . and the directory the executable is in
  11946. shlibpath_var=PATH
  11947. ;;
  11948. darwin* | rhapsody*)
  11949. dynamic_linker="$host_os dyld"
  11950. version_type=darwin
  11951. need_lib_prefix=no
  11952. need_version=no
  11953. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11954. soname_spec='${libname}${release}${major}$shared_ext'
  11955. shlibpath_overrides_runpath=yes
  11956. shlibpath_var=DYLD_LIBRARY_PATH
  11957. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11958. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11959. ;;
  11960. dgux*)
  11961. version_type=linux
  11962. need_lib_prefix=no
  11963. need_version=no
  11964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11965. soname_spec='${libname}${release}${shared_ext}$major'
  11966. shlibpath_var=LD_LIBRARY_PATH
  11967. ;;
  11968. freebsd1*)
  11969. dynamic_linker=no
  11970. ;;
  11971. freebsd* | dragonfly*)
  11972. # DragonFly does not have aout. When/if they implement a new
  11973. # versioning mechanism, adjust this.
  11974. if test -x /usr/bin/objformat; then
  11975. objformat=`/usr/bin/objformat`
  11976. else
  11977. case $host_os in
  11978. freebsd[123]*) objformat=aout ;;
  11979. *) objformat=elf ;;
  11980. esac
  11981. fi
  11982. version_type=freebsd-$objformat
  11983. case $version_type in
  11984. freebsd-elf*)
  11985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11986. need_version=no
  11987. need_lib_prefix=no
  11988. ;;
  11989. freebsd-*)
  11990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11991. need_version=yes
  11992. ;;
  11993. esac
  11994. shlibpath_var=LD_LIBRARY_PATH
  11995. case $host_os in
  11996. freebsd2*)
  11997. shlibpath_overrides_runpath=yes
  11998. ;;
  11999. freebsd3.[01]* | freebsdelf3.[01]*)
  12000. shlibpath_overrides_runpath=yes
  12001. hardcode_into_libs=yes
  12002. ;;
  12003. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12004. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12005. shlibpath_overrides_runpath=no
  12006. hardcode_into_libs=yes
  12007. ;;
  12008. *) # from 4.6 on, and DragonFly
  12009. shlibpath_overrides_runpath=yes
  12010. hardcode_into_libs=yes
  12011. ;;
  12012. esac
  12013. ;;
  12014. gnu*)
  12015. version_type=linux
  12016. need_lib_prefix=no
  12017. need_version=no
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12019. soname_spec='${libname}${release}${shared_ext}$major'
  12020. shlibpath_var=LD_LIBRARY_PATH
  12021. hardcode_into_libs=yes
  12022. ;;
  12023. hpux9* | hpux10* | hpux11*)
  12024. # Give a soname corresponding to the major version so that dld.sl refuses to
  12025. # link against other versions.
  12026. version_type=sunos
  12027. need_lib_prefix=no
  12028. need_version=no
  12029. case $host_cpu in
  12030. ia64*)
  12031. shrext_cmds='.so'
  12032. hardcode_into_libs=yes
  12033. dynamic_linker="$host_os dld.so"
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12037. soname_spec='${libname}${release}${shared_ext}$major'
  12038. if test "X$HPUX_IA64_MODE" = X32; then
  12039. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12040. else
  12041. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12042. fi
  12043. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12044. ;;
  12045. hppa*64*)
  12046. shrext_cmds='.sl'
  12047. hardcode_into_libs=yes
  12048. dynamic_linker="$host_os dld.sl"
  12049. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12052. soname_spec='${libname}${release}${shared_ext}$major'
  12053. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12055. ;;
  12056. *)
  12057. shrext_cmds='.sl'
  12058. dynamic_linker="$host_os dld.sl"
  12059. shlibpath_var=SHLIB_PATH
  12060. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. soname_spec='${libname}${release}${shared_ext}$major'
  12063. ;;
  12064. esac
  12065. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12066. postinstall_cmds='chmod 555 $lib'
  12067. ;;
  12068. interix[3-9]*)
  12069. version_type=linux
  12070. need_lib_prefix=no
  12071. need_version=no
  12072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12073. soname_spec='${libname}${release}${shared_ext}$major'
  12074. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12075. shlibpath_var=LD_LIBRARY_PATH
  12076. shlibpath_overrides_runpath=no
  12077. hardcode_into_libs=yes
  12078. ;;
  12079. irix5* | irix6* | nonstopux*)
  12080. case $host_os in
  12081. nonstopux*) version_type=nonstopux ;;
  12082. *)
  12083. if test "$lt_cv_prog_gnu_ld" = yes; then
  12084. version_type=linux
  12085. else
  12086. version_type=irix
  12087. fi ;;
  12088. esac
  12089. need_lib_prefix=no
  12090. need_version=no
  12091. soname_spec='${libname}${release}${shared_ext}$major'
  12092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12093. case $host_os in
  12094. irix5* | nonstopux*)
  12095. libsuff= shlibsuff=
  12096. ;;
  12097. *)
  12098. case $LD in # libtool.m4 will add one of these switches to LD
  12099. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12100. libsuff= shlibsuff= libmagic=32-bit;;
  12101. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12102. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12103. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12104. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12105. *) libsuff= shlibsuff= libmagic=never-match;;
  12106. esac
  12107. ;;
  12108. esac
  12109. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12110. shlibpath_overrides_runpath=no
  12111. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12112. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12113. hardcode_into_libs=yes
  12114. ;;
  12115. # No shared lib support for Linux oldld, aout, or coff.
  12116. linux*oldld* | linux*aout* | linux*coff*)
  12117. dynamic_linker=no
  12118. ;;
  12119. # This must be Linux ELF.
  12120. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12121. version_type=linux
  12122. need_lib_prefix=no
  12123. need_version=no
  12124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12125. soname_spec='${libname}${release}${shared_ext}$major'
  12126. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12127. shlibpath_var=LD_LIBRARY_PATH
  12128. shlibpath_overrides_runpath=no
  12129. # Some binutils ld are patched to set DT_RUNPATH
  12130. save_LDFLAGS=$LDFLAGS
  12131. save_libdir=$libdir
  12132. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12133. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12135. /* end confdefs.h. */
  12136. int
  12137. main ()
  12138. {
  12139. ;
  12140. return 0;
  12141. }
  12142. _ACEOF
  12143. if ac_fn_cxx_try_link "$LINENO"; then :
  12144. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12145. shlibpath_overrides_runpath=yes
  12146. fi
  12147. fi
  12148. rm -f core conftest.err conftest.$ac_objext \
  12149. conftest$ac_exeext conftest.$ac_ext
  12150. LDFLAGS=$save_LDFLAGS
  12151. libdir=$save_libdir
  12152. # This implies no fast_install, which is unacceptable.
  12153. # Some rework will be needed to allow for fast_install
  12154. # before this can be enabled.
  12155. hardcode_into_libs=yes
  12156. # Append ld.so.conf contents to the search path
  12157. if test -f /etc/ld.so.conf; then
  12158. 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;/^$/d' | tr '\n' ' '`
  12159. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12160. fi
  12161. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12162. # powerpc, because MkLinux only supported shared libraries with the
  12163. # GNU dynamic linker. Since this was broken with cross compilers,
  12164. # most powerpc-linux boxes support dynamic linking these days and
  12165. # people can always --disable-shared, the test was removed, and we
  12166. # assume the GNU/Linux dynamic linker is in use.
  12167. dynamic_linker='GNU/Linux ld.so'
  12168. ;;
  12169. netbsdelf*-gnu)
  12170. version_type=linux
  12171. need_lib_prefix=no
  12172. need_version=no
  12173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12174. soname_spec='${libname}${release}${shared_ext}$major'
  12175. shlibpath_var=LD_LIBRARY_PATH
  12176. shlibpath_overrides_runpath=no
  12177. hardcode_into_libs=yes
  12178. dynamic_linker='NetBSD ld.elf_so'
  12179. ;;
  12180. netbsd*)
  12181. version_type=sunos
  12182. need_lib_prefix=no
  12183. need_version=no
  12184. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12186. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12187. dynamic_linker='NetBSD (a.out) ld.so'
  12188. else
  12189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12190. soname_spec='${libname}${release}${shared_ext}$major'
  12191. dynamic_linker='NetBSD ld.elf_so'
  12192. fi
  12193. shlibpath_var=LD_LIBRARY_PATH
  12194. shlibpath_overrides_runpath=yes
  12195. hardcode_into_libs=yes
  12196. ;;
  12197. newsos6)
  12198. version_type=linux
  12199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12200. shlibpath_var=LD_LIBRARY_PATH
  12201. shlibpath_overrides_runpath=yes
  12202. ;;
  12203. *nto* | *qnx*)
  12204. version_type=qnx
  12205. need_lib_prefix=no
  12206. need_version=no
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12208. soname_spec='${libname}${release}${shared_ext}$major'
  12209. shlibpath_var=LD_LIBRARY_PATH
  12210. shlibpath_overrides_runpath=no
  12211. hardcode_into_libs=yes
  12212. dynamic_linker='ldqnx.so'
  12213. ;;
  12214. openbsd*)
  12215. version_type=sunos
  12216. sys_lib_dlsearch_path_spec="/usr/lib"
  12217. need_lib_prefix=no
  12218. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12219. case $host_os in
  12220. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12221. *) need_version=no ;;
  12222. esac
  12223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12224. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12225. shlibpath_var=LD_LIBRARY_PATH
  12226. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12227. case $host_os in
  12228. openbsd2.[89] | openbsd2.[89].*)
  12229. shlibpath_overrides_runpath=no
  12230. ;;
  12231. *)
  12232. shlibpath_overrides_runpath=yes
  12233. ;;
  12234. esac
  12235. else
  12236. shlibpath_overrides_runpath=yes
  12237. fi
  12238. ;;
  12239. os2*)
  12240. libname_spec='$name'
  12241. shrext_cmds=".dll"
  12242. need_lib_prefix=no
  12243. library_names_spec='$libname${shared_ext} $libname.a'
  12244. dynamic_linker='OS/2 ld.exe'
  12245. shlibpath_var=LIBPATH
  12246. ;;
  12247. osf3* | osf4* | osf5*)
  12248. version_type=osf
  12249. need_lib_prefix=no
  12250. need_version=no
  12251. soname_spec='${libname}${release}${shared_ext}$major'
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12253. shlibpath_var=LD_LIBRARY_PATH
  12254. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12255. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12256. ;;
  12257. rdos*)
  12258. dynamic_linker=no
  12259. ;;
  12260. solaris*)
  12261. version_type=linux
  12262. need_lib_prefix=no
  12263. need_version=no
  12264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12265. soname_spec='${libname}${release}${shared_ext}$major'
  12266. shlibpath_var=LD_LIBRARY_PATH
  12267. shlibpath_overrides_runpath=yes
  12268. hardcode_into_libs=yes
  12269. # ldd complains unless libraries are executable
  12270. postinstall_cmds='chmod +x $lib'
  12271. ;;
  12272. sunos4*)
  12273. version_type=sunos
  12274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12275. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12276. shlibpath_var=LD_LIBRARY_PATH
  12277. shlibpath_overrides_runpath=yes
  12278. if test "$with_gnu_ld" = yes; then
  12279. need_lib_prefix=no
  12280. fi
  12281. need_version=yes
  12282. ;;
  12283. sysv4 | sysv4.3*)
  12284. version_type=linux
  12285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12286. soname_spec='${libname}${release}${shared_ext}$major'
  12287. shlibpath_var=LD_LIBRARY_PATH
  12288. case $host_vendor in
  12289. sni)
  12290. shlibpath_overrides_runpath=no
  12291. need_lib_prefix=no
  12292. runpath_var=LD_RUN_PATH
  12293. ;;
  12294. siemens)
  12295. need_lib_prefix=no
  12296. ;;
  12297. motorola)
  12298. need_lib_prefix=no
  12299. need_version=no
  12300. shlibpath_overrides_runpath=no
  12301. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12302. ;;
  12303. esac
  12304. ;;
  12305. sysv4*MP*)
  12306. if test -d /usr/nec ;then
  12307. version_type=linux
  12308. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12309. soname_spec='$libname${shared_ext}.$major'
  12310. shlibpath_var=LD_LIBRARY_PATH
  12311. fi
  12312. ;;
  12313. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12314. version_type=freebsd-elf
  12315. need_lib_prefix=no
  12316. need_version=no
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12318. soname_spec='${libname}${release}${shared_ext}$major'
  12319. shlibpath_var=LD_LIBRARY_PATH
  12320. shlibpath_overrides_runpath=yes
  12321. hardcode_into_libs=yes
  12322. if test "$with_gnu_ld" = yes; then
  12323. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12324. else
  12325. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12326. case $host_os in
  12327. sco3.2v5*)
  12328. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12329. ;;
  12330. esac
  12331. fi
  12332. sys_lib_dlsearch_path_spec='/usr/lib'
  12333. ;;
  12334. tpf*)
  12335. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12336. version_type=linux
  12337. need_lib_prefix=no
  12338. need_version=no
  12339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12340. shlibpath_var=LD_LIBRARY_PATH
  12341. shlibpath_overrides_runpath=no
  12342. hardcode_into_libs=yes
  12343. ;;
  12344. uts4*)
  12345. version_type=linux
  12346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12347. soname_spec='${libname}${release}${shared_ext}$major'
  12348. shlibpath_var=LD_LIBRARY_PATH
  12349. ;;
  12350. *)
  12351. dynamic_linker=no
  12352. ;;
  12353. esac
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12355. $as_echo "$dynamic_linker" >&6; }
  12356. test "$dynamic_linker" = no && can_build_shared=no
  12357. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12358. if test "$GCC" = yes; then
  12359. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12360. fi
  12361. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12362. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12363. fi
  12364. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12365. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12366. fi
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12368. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12369. hardcode_action_CXX=
  12370. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12371. test -n "$runpath_var_CXX" ||
  12372. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12373. # We can hardcode non-existent directories.
  12374. if test "$hardcode_direct_CXX" != no &&
  12375. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12376. # have to relink, otherwise we might link with an installed library
  12377. # when we should be linking with a yet-to-be-installed one
  12378. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12379. test "$hardcode_minus_L_CXX" != no; then
  12380. # Linking always hardcodes the temporary library directory.
  12381. hardcode_action_CXX=relink
  12382. else
  12383. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12384. hardcode_action_CXX=immediate
  12385. fi
  12386. else
  12387. # We cannot hardcode anything, or else we can only hardcode existing
  12388. # directories.
  12389. hardcode_action_CXX=unsupported
  12390. fi
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12392. $as_echo "$hardcode_action_CXX" >&6; }
  12393. if test "$hardcode_action_CXX" = relink ||
  12394. test "$inherit_rpath_CXX" = yes; then
  12395. # Fast installation is not supported
  12396. enable_fast_install=no
  12397. elif test "$shlibpath_overrides_runpath" = yes ||
  12398. test "$enable_shared" = no; then
  12399. # Fast installation is not necessary
  12400. enable_fast_install=needless
  12401. fi
  12402. fi # test -n "$compiler"
  12403. CC=$lt_save_CC
  12404. LDCXX=$LD
  12405. LD=$lt_save_LD
  12406. GCC=$lt_save_GCC
  12407. with_gnu_ld=$lt_save_with_gnu_ld
  12408. lt_cv_path_LDCXX=$lt_cv_path_LD
  12409. lt_cv_path_LD=$lt_save_path_LD
  12410. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12411. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12412. fi # test "$_lt_caught_CXX_error" != yes
  12413. ac_ext=c
  12414. ac_cpp='$CPP $CPPFLAGS'
  12415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12418. ac_config_commands="$ac_config_commands libtool"
  12419. # Only expand once:
  12420. all_targets='$(PHP_MODULES) $(PHP_ZEND_EX)'
  12421. install_targets="install-modules install-headers"
  12422. phplibdir="`pwd`/modules"
  12423. CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
  12424. CFLAGS_CLEAN='$(CFLAGS)'
  12425. CXXFLAGS_CLEAN='$(CXXFLAGS)'
  12426. test "$prefix" = "NONE" && prefix="/usr/local"
  12427. test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
  12428. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
  12429. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
  12430. PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
  12431. PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
  12432. PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
  12433. PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
  12434. PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
  12435. PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
  12436. PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
  12437. PHP_VAR_SUBST="$PHP_VAR_SUBST phpincludedir"
  12438. PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
  12439. PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
  12440. PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
  12441. PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
  12442. PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
  12443. PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
  12444. PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
  12445. PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
  12446. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
  12447. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
  12448. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
  12449. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
  12450. PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
  12451. PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
  12452. PHP_VAR_SUBST="$PHP_VAR_SUBST LDFLAGS"
  12453. PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
  12454. PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
  12455. PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
  12456. PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
  12457. $php_shtool mkdir -p $BUILD_DIR
  12458. cat >Makefile <<EOF
  12459. srcdir = $abs_srcdir
  12460. builddir = $abs_builddir
  12461. top_srcdir = $abs_srcdir
  12462. top_builddir = $abs_builddir
  12463. EOF
  12464. for i in $PHP_VAR_SUBST; do
  12465. eval echo "$i = \$$i" >> Makefile
  12466. done
  12467. cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
  12468. test -d modules || $php_shtool mkdir modules
  12469. touch .deps
  12470. ac_config_headers="$ac_config_headers config.h"
  12471. cat >confcache <<\_ACEOF
  12472. # This file is a shell script that caches the results of configure
  12473. # tests run on this system so they can be shared between configure
  12474. # scripts and configure runs, see configure's option --config-cache.
  12475. # It is not useful on other systems. If it contains results you don't
  12476. # want to keep, you may remove or edit it.
  12477. #
  12478. # config.status only pays attention to the cache file if you give it
  12479. # the --recheck option to rerun configure.
  12480. #
  12481. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12482. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12483. # following values.
  12484. _ACEOF
  12485. # The following way of writing the cache mishandles newlines in values,
  12486. # but we know of no workaround that is simple, portable, and efficient.
  12487. # So, we kill variables containing newlines.
  12488. # Ultrix sh set writes to stderr and can't be redirected directly,
  12489. # and sets the high bit in the cache file unless we assign to the vars.
  12490. (
  12491. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12492. eval ac_val=\$$ac_var
  12493. case $ac_val in #(
  12494. *${as_nl}*)
  12495. case $ac_var in #(
  12496. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12497. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12498. esac
  12499. case $ac_var in #(
  12500. _ | IFS | as_nl) ;; #(
  12501. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12502. *) { eval $ac_var=; unset $ac_var;} ;;
  12503. esac ;;
  12504. esac
  12505. done
  12506. (set) 2>&1 |
  12507. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12508. *${as_nl}ac_space=\ *)
  12509. # `set' does not quote correctly, so add quotes: double-quote
  12510. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12511. sed -n \
  12512. "s/'/'\\\\''/g;
  12513. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12514. ;; #(
  12515. *)
  12516. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12517. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12518. ;;
  12519. esac |
  12520. sort
  12521. ) |
  12522. sed '
  12523. /^ac_cv_env_/b end
  12524. t clear
  12525. :clear
  12526. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12527. t end
  12528. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12529. :end' >>confcache
  12530. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12531. if test -w "$cache_file"; then
  12532. test "x$cache_file" != "x/dev/null" &&
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12534. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12535. cat confcache >$cache_file
  12536. else
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12538. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12539. fi
  12540. fi
  12541. rm -f confcache
  12542. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12543. # Let make expand exec_prefix.
  12544. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12545. DEFS=-DHAVE_CONFIG_H
  12546. ac_libobjs=
  12547. ac_ltlibobjs=
  12548. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12549. # 1. Remove the extension, and $U if already installed.
  12550. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12551. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12552. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12553. # will be set to the directory where LIBOBJS objects are built.
  12554. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12555. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12556. done
  12557. LIBOBJS=$ac_libobjs
  12558. LTLIBOBJS=$ac_ltlibobjs
  12559. : ${CONFIG_STATUS=./config.status}
  12560. ac_write_fail=0
  12561. ac_clean_files_save=$ac_clean_files
  12562. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12564. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12565. as_write_fail=0
  12566. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12567. #! $SHELL
  12568. # Generated by $as_me.
  12569. # Run this file to recreate the current configuration.
  12570. # Compiler output produced by configure, useful for debugging
  12571. # configure, is in config.log if it exists.
  12572. debug=false
  12573. ac_cs_recheck=false
  12574. ac_cs_silent=false
  12575. SHELL=\${CONFIG_SHELL-$SHELL}
  12576. export SHELL
  12577. _ASEOF
  12578. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12579. ## -------------------- ##
  12580. ## M4sh Initialization. ##
  12581. ## -------------------- ##
  12582. # Be more Bourne compatible
  12583. DUALCASE=1; export DUALCASE # for MKS sh
  12584. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12585. emulate sh
  12586. NULLCMD=:
  12587. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12588. # is contrary to our usage. Disable this feature.
  12589. alias -g '${1+"$@"}'='"$@"'
  12590. setopt NO_GLOB_SUBST
  12591. else
  12592. case `(set -o) 2>/dev/null` in #(
  12593. *posix*) :
  12594. set -o posix ;; #(
  12595. *) :
  12596. ;;
  12597. esac
  12598. fi
  12599. as_nl='
  12600. '
  12601. export as_nl
  12602. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12603. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12604. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12605. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12606. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12607. # but without wasting forks for bash or zsh.
  12608. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12609. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12610. as_echo='print -r --'
  12611. as_echo_n='print -rn --'
  12612. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12613. as_echo='printf %s\n'
  12614. as_echo_n='printf %s'
  12615. else
  12616. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12617. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12618. as_echo_n='/usr/ucb/echo -n'
  12619. else
  12620. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12621. as_echo_n_body='eval
  12622. arg=$1;
  12623. case $arg in #(
  12624. *"$as_nl"*)
  12625. expr "X$arg" : "X\\(.*\\)$as_nl";
  12626. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12627. esac;
  12628. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12629. '
  12630. export as_echo_n_body
  12631. as_echo_n='sh -c $as_echo_n_body as_echo'
  12632. fi
  12633. export as_echo_body
  12634. as_echo='sh -c $as_echo_body as_echo'
  12635. fi
  12636. # The user is always right.
  12637. if test "${PATH_SEPARATOR+set}" != set; then
  12638. PATH_SEPARATOR=:
  12639. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12640. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12641. PATH_SEPARATOR=';'
  12642. }
  12643. fi
  12644. # IFS
  12645. # We need space, tab and new line, in precisely that order. Quoting is
  12646. # there to prevent editors from complaining about space-tab.
  12647. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12648. # splitting by setting IFS to empty value.)
  12649. IFS=" "" $as_nl"
  12650. # Find who we are. Look in the path if we contain no directory separator.
  12651. case $0 in #((
  12652. *[\\/]* ) as_myself=$0 ;;
  12653. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12654. for as_dir in $PATH
  12655. do
  12656. IFS=$as_save_IFS
  12657. test -z "$as_dir" && as_dir=.
  12658. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12659. done
  12660. IFS=$as_save_IFS
  12661. ;;
  12662. esac
  12663. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12664. # in which case we are not to be found in the path.
  12665. if test "x$as_myself" = x; then
  12666. as_myself=$0
  12667. fi
  12668. if test ! -f "$as_myself"; then
  12669. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12670. exit 1
  12671. fi
  12672. # Unset variables that we do not need and which cause bugs (e.g. in
  12673. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12674. # suppresses any "Segmentation fault" message there. '((' could
  12675. # trigger a bug in pdksh 5.2.14.
  12676. for as_var in BASH_ENV ENV MAIL MAILPATH
  12677. do eval test x\${$as_var+set} = xset \
  12678. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12679. done
  12680. PS1='$ '
  12681. PS2='> '
  12682. PS4='+ '
  12683. # NLS nuisances.
  12684. LC_ALL=C
  12685. export LC_ALL
  12686. LANGUAGE=C
  12687. export LANGUAGE
  12688. # CDPATH.
  12689. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12690. # as_fn_error ERROR [LINENO LOG_FD]
  12691. # ---------------------------------
  12692. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12693. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12694. # script with status $?, using 1 if that was 0.
  12695. as_fn_error ()
  12696. {
  12697. as_status=$?; test $as_status -eq 0 && as_status=1
  12698. if test "$3"; then
  12699. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12700. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12701. fi
  12702. $as_echo "$as_me: error: $1" >&2
  12703. as_fn_exit $as_status
  12704. } # as_fn_error
  12705. # as_fn_set_status STATUS
  12706. # -----------------------
  12707. # Set $? to STATUS, without forking.
  12708. as_fn_set_status ()
  12709. {
  12710. return $1
  12711. } # as_fn_set_status
  12712. # as_fn_exit STATUS
  12713. # -----------------
  12714. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12715. as_fn_exit ()
  12716. {
  12717. set +e
  12718. as_fn_set_status $1
  12719. exit $1
  12720. } # as_fn_exit
  12721. # as_fn_unset VAR
  12722. # ---------------
  12723. # Portably unset VAR.
  12724. as_fn_unset ()
  12725. {
  12726. { eval $1=; unset $1;}
  12727. }
  12728. as_unset=as_fn_unset
  12729. # as_fn_append VAR VALUE
  12730. # ----------------------
  12731. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12732. # advantage of any shell optimizations that allow amortized linear growth over
  12733. # repeated appends, instead of the typical quadratic growth present in naive
  12734. # implementations.
  12735. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12736. eval 'as_fn_append ()
  12737. {
  12738. eval $1+=\$2
  12739. }'
  12740. else
  12741. as_fn_append ()
  12742. {
  12743. eval $1=\$$1\$2
  12744. }
  12745. fi # as_fn_append
  12746. # as_fn_arith ARG...
  12747. # ------------------
  12748. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12749. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12750. # must be portable across $(()) and expr.
  12751. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12752. eval 'as_fn_arith ()
  12753. {
  12754. as_val=$(( $* ))
  12755. }'
  12756. else
  12757. as_fn_arith ()
  12758. {
  12759. as_val=`expr "$@" || test $? -eq 1`
  12760. }
  12761. fi # as_fn_arith
  12762. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12763. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12764. as_expr=expr
  12765. else
  12766. as_expr=false
  12767. fi
  12768. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12769. as_basename=basename
  12770. else
  12771. as_basename=false
  12772. fi
  12773. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12774. as_dirname=dirname
  12775. else
  12776. as_dirname=false
  12777. fi
  12778. as_me=`$as_basename -- "$0" ||
  12779. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12780. X"$0" : 'X\(//\)$' \| \
  12781. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12782. $as_echo X/"$0" |
  12783. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12784. s//\1/
  12785. q
  12786. }
  12787. /^X\/\(\/\/\)$/{
  12788. s//\1/
  12789. q
  12790. }
  12791. /^X\/\(\/\).*/{
  12792. s//\1/
  12793. q
  12794. }
  12795. s/.*/./; q'`
  12796. # Avoid depending upon Character Ranges.
  12797. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12798. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12799. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12800. as_cr_digits='0123456789'
  12801. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12802. ECHO_C= ECHO_N= ECHO_T=
  12803. case `echo -n x` in #(((((
  12804. -n*)
  12805. case `echo 'xy\c'` in
  12806. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12807. xy) ECHO_C='\c';;
  12808. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12809. ECHO_T=' ';;
  12810. esac;;
  12811. *)
  12812. ECHO_N='-n';;
  12813. esac
  12814. rm -f conf$$ conf$$.exe conf$$.file
  12815. if test -d conf$$.dir; then
  12816. rm -f conf$$.dir/conf$$.file
  12817. else
  12818. rm -f conf$$.dir
  12819. mkdir conf$$.dir 2>/dev/null
  12820. fi
  12821. if (echo >conf$$.file) 2>/dev/null; then
  12822. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12823. as_ln_s='ln -s'
  12824. # ... but there are two gotchas:
  12825. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12826. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12827. # In both cases, we have to default to `cp -p'.
  12828. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12829. as_ln_s='cp -p'
  12830. elif ln conf$$.file conf$$ 2>/dev/null; then
  12831. as_ln_s=ln
  12832. else
  12833. as_ln_s='cp -p'
  12834. fi
  12835. else
  12836. as_ln_s='cp -p'
  12837. fi
  12838. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12839. rmdir conf$$.dir 2>/dev/null
  12840. # as_fn_mkdir_p
  12841. # -------------
  12842. # Create "$as_dir" as a directory, including parents if necessary.
  12843. as_fn_mkdir_p ()
  12844. {
  12845. case $as_dir in #(
  12846. -*) as_dir=./$as_dir;;
  12847. esac
  12848. test -d "$as_dir" || eval $as_mkdir_p || {
  12849. as_dirs=
  12850. while :; do
  12851. case $as_dir in #(
  12852. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12853. *) as_qdir=$as_dir;;
  12854. esac
  12855. as_dirs="'$as_qdir' $as_dirs"
  12856. as_dir=`$as_dirname -- "$as_dir" ||
  12857. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12858. X"$as_dir" : 'X\(//\)[^/]' \| \
  12859. X"$as_dir" : 'X\(//\)$' \| \
  12860. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12861. $as_echo X"$as_dir" |
  12862. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12863. s//\1/
  12864. q
  12865. }
  12866. /^X\(\/\/\)[^/].*/{
  12867. s//\1/
  12868. q
  12869. }
  12870. /^X\(\/\/\)$/{
  12871. s//\1/
  12872. q
  12873. }
  12874. /^X\(\/\).*/{
  12875. s//\1/
  12876. q
  12877. }
  12878. s/.*/./; q'`
  12879. test -d "$as_dir" && break
  12880. done
  12881. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12882. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12883. } # as_fn_mkdir_p
  12884. if mkdir -p . 2>/dev/null; then
  12885. as_mkdir_p='mkdir -p "$as_dir"'
  12886. else
  12887. test -d ./-p && rmdir ./-p
  12888. as_mkdir_p=false
  12889. fi
  12890. if test -x / >/dev/null 2>&1; then
  12891. as_test_x='test -x'
  12892. else
  12893. if ls -dL / >/dev/null 2>&1; then
  12894. as_ls_L_option=L
  12895. else
  12896. as_ls_L_option=
  12897. fi
  12898. as_test_x='
  12899. eval sh -c '\''
  12900. if test -d "$1"; then
  12901. test -d "$1/.";
  12902. else
  12903. case $1 in #(
  12904. -*)set "./$1";;
  12905. esac;
  12906. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12907. ???[sx]*):;;*)false;;esac;fi
  12908. '\'' sh
  12909. '
  12910. fi
  12911. as_executable_p=$as_test_x
  12912. # Sed expression to map a string onto a valid CPP name.
  12913. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12914. # Sed expression to map a string onto a valid variable name.
  12915. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12916. exec 6>&1
  12917. ## ----------------------------------- ##
  12918. ## Main body of $CONFIG_STATUS script. ##
  12919. ## ----------------------------------- ##
  12920. _ASEOF
  12921. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12923. # Save the log message, to keep $0 and so on meaningful, and to
  12924. # report actual input values of CONFIG_FILES etc. instead of their
  12925. # values after options handling.
  12926. ac_log="
  12927. This file was extended by $as_me, which was
  12928. generated by GNU Autoconf 2.65. Invocation command line was
  12929. CONFIG_FILES = $CONFIG_FILES
  12930. CONFIG_HEADERS = $CONFIG_HEADERS
  12931. CONFIG_LINKS = $CONFIG_LINKS
  12932. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12933. $ $0 $@
  12934. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12935. "
  12936. _ACEOF
  12937. case $ac_config_headers in *"
  12938. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12939. esac
  12940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12941. # Files that config.status was made for.
  12942. config_headers="$ac_config_headers"
  12943. config_commands="$ac_config_commands"
  12944. _ACEOF
  12945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12946. ac_cs_usage="\
  12947. \`$as_me' instantiates files and other configuration actions
  12948. from templates according to the current configuration. Unless the files
  12949. and actions are specified as TAGs, all are instantiated by default.
  12950. Usage: $0 [OPTION]... [TAG]...
  12951. -h, --help print this help, then exit
  12952. -V, --version print version number and configuration settings, then exit
  12953. --config print configuration, then exit
  12954. -q, --quiet, --silent
  12955. do not print progress messages
  12956. -d, --debug don't remove temporary files
  12957. --recheck update $as_me by reconfiguring in the same conditions
  12958. --header=FILE[:TEMPLATE]
  12959. instantiate the configuration header FILE
  12960. Configuration headers:
  12961. $config_headers
  12962. Configuration commands:
  12963. $config_commands
  12964. Report bugs to the package provider."
  12965. _ACEOF
  12966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12967. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12968. ac_cs_version="\\
  12969. config.status
  12970. configured by $0, generated by GNU Autoconf 2.65,
  12971. with options \\"\$ac_cs_config\\"
  12972. Copyright (C) 2009 Free Software Foundation, Inc.
  12973. This config.status script is free software; the Free Software Foundation
  12974. gives unlimited permission to copy, distribute and modify it."
  12975. ac_pwd='$ac_pwd'
  12976. srcdir='$srcdir'
  12977. test -n "\$AWK" || AWK=awk
  12978. _ACEOF
  12979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12980. # The default lists apply if the user does not specify any file.
  12981. ac_need_defaults=:
  12982. while test $# != 0
  12983. do
  12984. case $1 in
  12985. --*=*)
  12986. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12987. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12988. ac_shift=:
  12989. ;;
  12990. *)
  12991. ac_option=$1
  12992. ac_optarg=$2
  12993. ac_shift=shift
  12994. ;;
  12995. esac
  12996. case $ac_option in
  12997. # Handling of the options.
  12998. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12999. ac_cs_recheck=: ;;
  13000. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13001. $as_echo "$ac_cs_version"; exit ;;
  13002. --config | --confi | --conf | --con | --co | --c )
  13003. $as_echo "$ac_cs_config"; exit ;;
  13004. --debug | --debu | --deb | --de | --d | -d )
  13005. debug=: ;;
  13006. --header | --heade | --head | --hea )
  13007. $ac_shift
  13008. case $ac_optarg in
  13009. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13010. esac
  13011. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13012. ac_need_defaults=false;;
  13013. --he | --h)
  13014. # Conflict between --help and --header
  13015. as_fn_error "ambiguous option: \`$1'
  13016. Try \`$0 --help' for more information.";;
  13017. --help | --hel | -h )
  13018. $as_echo "$ac_cs_usage"; exit ;;
  13019. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13020. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13021. ac_cs_silent=: ;;
  13022. # This is an error.
  13023. -*) as_fn_error "unrecognized option: \`$1'
  13024. Try \`$0 --help' for more information." ;;
  13025. *) as_fn_append ac_config_targets " $1"
  13026. ac_need_defaults=false ;;
  13027. esac
  13028. shift
  13029. done
  13030. ac_configure_extra_args=
  13031. if $ac_cs_silent; then
  13032. exec 6>/dev/null
  13033. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13034. fi
  13035. _ACEOF
  13036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13037. if \$ac_cs_recheck; then
  13038. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13039. shift
  13040. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13041. CONFIG_SHELL='$SHELL'
  13042. export CONFIG_SHELL
  13043. exec "\$@"
  13044. fi
  13045. _ACEOF
  13046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13047. exec 5>>config.log
  13048. {
  13049. echo
  13050. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13051. ## Running $as_me. ##
  13052. _ASBOX
  13053. $as_echo "$ac_log"
  13054. } >&5
  13055. _ACEOF
  13056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13057. #
  13058. # INIT-COMMANDS
  13059. #
  13060. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13061. # if CDPATH is set.
  13062. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13063. sed_quote_subst='$sed_quote_subst'
  13064. double_quote_subst='$double_quote_subst'
  13065. delay_variable_subst='$delay_variable_subst'
  13066. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13067. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13068. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13069. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13070. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13071. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13072. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13073. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13074. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13075. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13076. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13077. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13078. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13079. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13080. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13081. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13082. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13083. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13084. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13085. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13086. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13087. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13088. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13089. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13090. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13091. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13092. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13093. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13094. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13095. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13096. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13097. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13098. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13099. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13100. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13101. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13102. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13103. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13104. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13105. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13106. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13107. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13108. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13109. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13110. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13111. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13112. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13113. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13114. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13115. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13116. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13117. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13118. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13119. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13120. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13121. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13122. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13123. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13124. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13125. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13126. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13127. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13128. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13129. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13130. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13131. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13132. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13133. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13134. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13135. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13136. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13137. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13138. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13139. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13140. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13141. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13142. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13143. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13144. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13145. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13146. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13147. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13148. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13149. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13150. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13151. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13152. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13153. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13154. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13155. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13156. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13157. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13158. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13159. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13160. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13161. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13162. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13163. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13164. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13165. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13166. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13167. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13168. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13169. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13170. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13171. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13172. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13173. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13174. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13175. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13176. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13177. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13178. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13179. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13180. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13181. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13182. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13183. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13184. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13185. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13186. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13187. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13188. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13189. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13190. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13191. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13192. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13193. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13194. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13195. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13196. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13197. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13198. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13199. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13200. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13201. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13202. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13203. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13204. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13205. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13206. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13207. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13208. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13209. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13210. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13211. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13212. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13213. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13214. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13215. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13216. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13217. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13218. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13219. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13220. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13221. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13222. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13223. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13224. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13225. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13226. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13227. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13228. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13229. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13230. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13231. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13232. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13233. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13234. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13235. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13236. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13237. LTCC='$LTCC'
  13238. LTCFLAGS='$LTCFLAGS'
  13239. compiler='$compiler_DEFAULT'
  13240. # Quote evaled strings.
  13241. for var in SED \
  13242. GREP \
  13243. EGREP \
  13244. FGREP \
  13245. LD \
  13246. NM \
  13247. LN_S \
  13248. lt_SP2NL \
  13249. lt_NL2SP \
  13250. reload_flag \
  13251. OBJDUMP \
  13252. deplibs_check_method \
  13253. file_magic_cmd \
  13254. AR \
  13255. AR_FLAGS \
  13256. STRIP \
  13257. RANLIB \
  13258. CC \
  13259. CFLAGS \
  13260. compiler \
  13261. lt_cv_sys_global_symbol_pipe \
  13262. lt_cv_sys_global_symbol_to_cdecl \
  13263. lt_cv_sys_global_symbol_to_c_name_address \
  13264. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13265. SHELL \
  13266. ECHO \
  13267. lt_prog_compiler_no_builtin_flag \
  13268. lt_prog_compiler_wl \
  13269. lt_prog_compiler_pic \
  13270. lt_prog_compiler_static \
  13271. lt_cv_prog_compiler_c_o \
  13272. need_locks \
  13273. DSYMUTIL \
  13274. NMEDIT \
  13275. LIPO \
  13276. OTOOL \
  13277. OTOOL64 \
  13278. shrext_cmds \
  13279. export_dynamic_flag_spec \
  13280. whole_archive_flag_spec \
  13281. compiler_needs_object \
  13282. with_gnu_ld \
  13283. allow_undefined_flag \
  13284. no_undefined_flag \
  13285. hardcode_libdir_flag_spec \
  13286. hardcode_libdir_flag_spec_ld \
  13287. hardcode_libdir_separator \
  13288. fix_srcfile_path \
  13289. exclude_expsyms \
  13290. include_expsyms \
  13291. file_list_spec \
  13292. variables_saved_for_relink \
  13293. libname_spec \
  13294. library_names_spec \
  13295. soname_spec \
  13296. finish_eval \
  13297. old_striplib \
  13298. striplib \
  13299. compiler_lib_search_dirs \
  13300. predep_objects \
  13301. postdep_objects \
  13302. predeps \
  13303. postdeps \
  13304. compiler_lib_search_path \
  13305. LD_CXX \
  13306. compiler_CXX \
  13307. lt_prog_compiler_no_builtin_flag_CXX \
  13308. lt_prog_compiler_wl_CXX \
  13309. lt_prog_compiler_pic_CXX \
  13310. lt_prog_compiler_static_CXX \
  13311. lt_cv_prog_compiler_c_o_CXX \
  13312. export_dynamic_flag_spec_CXX \
  13313. whole_archive_flag_spec_CXX \
  13314. compiler_needs_object_CXX \
  13315. with_gnu_ld_CXX \
  13316. allow_undefined_flag_CXX \
  13317. no_undefined_flag_CXX \
  13318. hardcode_libdir_flag_spec_CXX \
  13319. hardcode_libdir_flag_spec_ld_CXX \
  13320. hardcode_libdir_separator_CXX \
  13321. fix_srcfile_path_CXX \
  13322. exclude_expsyms_CXX \
  13323. include_expsyms_CXX \
  13324. file_list_spec_CXX \
  13325. compiler_lib_search_dirs_CXX \
  13326. predep_objects_CXX \
  13327. postdep_objects_CXX \
  13328. predeps_CXX \
  13329. postdeps_CXX \
  13330. compiler_lib_search_path_CXX; do
  13331. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13332. *[\\\\\\\`\\"\\\$]*)
  13333. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13334. ;;
  13335. *)
  13336. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13337. ;;
  13338. esac
  13339. done
  13340. # Double-quote double-evaled strings.
  13341. for var in reload_cmds \
  13342. old_postinstall_cmds \
  13343. old_postuninstall_cmds \
  13344. old_archive_cmds \
  13345. extract_expsyms_cmds \
  13346. old_archive_from_new_cmds \
  13347. old_archive_from_expsyms_cmds \
  13348. archive_cmds \
  13349. archive_expsym_cmds \
  13350. module_cmds \
  13351. module_expsym_cmds \
  13352. export_symbols_cmds \
  13353. prelink_cmds \
  13354. postinstall_cmds \
  13355. postuninstall_cmds \
  13356. finish_cmds \
  13357. sys_lib_search_path_spec \
  13358. sys_lib_dlsearch_path_spec \
  13359. old_archive_cmds_CXX \
  13360. old_archive_from_new_cmds_CXX \
  13361. old_archive_from_expsyms_cmds_CXX \
  13362. archive_cmds_CXX \
  13363. archive_expsym_cmds_CXX \
  13364. module_cmds_CXX \
  13365. module_expsym_cmds_CXX \
  13366. export_symbols_cmds_CXX \
  13367. prelink_cmds_CXX; do
  13368. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13369. *[\\\\\\\`\\"\\\$]*)
  13370. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13371. ;;
  13372. *)
  13373. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13374. ;;
  13375. esac
  13376. done
  13377. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13378. case \$lt_ECHO in
  13379. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13380. ;;
  13381. esac
  13382. ac_aux_dir='$ac_aux_dir'
  13383. xsi_shell='$xsi_shell'
  13384. lt_shell_append='$lt_shell_append'
  13385. # See if we are running on zsh, and set the options which allow our
  13386. # commands through without removal of \ escapes INIT.
  13387. if test -n "\${ZSH_VERSION+set}" ; then
  13388. setopt NO_GLOB_SUBST
  13389. fi
  13390. PACKAGE='$PACKAGE'
  13391. VERSION='$VERSION'
  13392. TIMESTAMP='$TIMESTAMP'
  13393. RM='$RM'
  13394. ofile='$ofile'
  13395. _ACEOF
  13396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13397. # Handling of arguments.
  13398. for ac_config_target in $ac_config_targets
  13399. do
  13400. case $ac_config_target in
  13401. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13402. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13403. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13404. esac
  13405. done
  13406. # If the user did not use the arguments to specify the items to instantiate,
  13407. # then the envvar interface is used. Set only those that are not.
  13408. # We use the long form for the default assignment because of an extremely
  13409. # bizarre bug on SunOS 4.1.3.
  13410. if $ac_need_defaults; then
  13411. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13412. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13413. fi
  13414. # Have a temporary directory for convenience. Make it in the build tree
  13415. # simply because there is no reason against having it here, and in addition,
  13416. # creating and moving files from /tmp can sometimes cause problems.
  13417. # Hook for its removal unless debugging.
  13418. # Note that there is a small window in which the directory will not be cleaned:
  13419. # after its creation but before its name has been assigned to `$tmp'.
  13420. $debug ||
  13421. {
  13422. tmp=
  13423. trap 'exit_status=$?
  13424. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13425. ' 0
  13426. trap 'as_fn_exit 1' 1 2 13 15
  13427. }
  13428. # Create a (secure) tmp directory for tmp files.
  13429. {
  13430. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13431. test -n "$tmp" && test -d "$tmp"
  13432. } ||
  13433. {
  13434. tmp=./conf$$-$RANDOM
  13435. (umask 077 && mkdir "$tmp")
  13436. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13437. # Set up the scripts for CONFIG_HEADERS section.
  13438. # No need to generate them if there are no CONFIG_HEADERS.
  13439. # This happens for instance with `./config.status Makefile'.
  13440. if test -n "$CONFIG_HEADERS"; then
  13441. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13442. BEGIN {
  13443. _ACEOF
  13444. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13445. # here-document in config.status, that substitutes the proper values into
  13446. # config.h.in to produce config.h.
  13447. # Create a delimiter string that does not exist in confdefs.h, to ease
  13448. # handling of long lines.
  13449. ac_delim='%!_!# '
  13450. for ac_last_try in false false :; do
  13451. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13452. if test -z "$ac_t"; then
  13453. break
  13454. elif $ac_last_try; then
  13455. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13456. else
  13457. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13458. fi
  13459. done
  13460. # For the awk script, D is an array of macro values keyed by name,
  13461. # likewise P contains macro parameters if any. Preserve backslash
  13462. # newline sequences.
  13463. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13464. sed -n '
  13465. s/.\{148\}/&'"$ac_delim"'/g
  13466. t rset
  13467. :rset
  13468. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13469. t def
  13470. d
  13471. :def
  13472. s/\\$//
  13473. t bsnl
  13474. s/["\\]/\\&/g
  13475. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13476. D["\1"]=" \3"/p
  13477. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13478. d
  13479. :bsnl
  13480. s/["\\]/\\&/g
  13481. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13482. D["\1"]=" \3\\\\\\n"\\/p
  13483. t cont
  13484. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13485. t cont
  13486. d
  13487. :cont
  13488. n
  13489. s/.\{148\}/&'"$ac_delim"'/g
  13490. t clear
  13491. :clear
  13492. s/\\$//
  13493. t bsnlc
  13494. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13495. d
  13496. :bsnlc
  13497. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13498. b cont
  13499. ' <confdefs.h | sed '
  13500. s/'"$ac_delim"'/"\\\
  13501. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13503. for (key in D) D_is_set[key] = 1
  13504. FS = ""
  13505. }
  13506. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13507. line = \$ 0
  13508. split(line, arg, " ")
  13509. if (arg[1] == "#") {
  13510. defundef = arg[2]
  13511. mac1 = arg[3]
  13512. } else {
  13513. defundef = substr(arg[1], 2)
  13514. mac1 = arg[2]
  13515. }
  13516. split(mac1, mac2, "(") #)
  13517. macro = mac2[1]
  13518. prefix = substr(line, 1, index(line, defundef) - 1)
  13519. if (D_is_set[macro]) {
  13520. # Preserve the white space surrounding the "#".
  13521. print prefix "define", macro P[macro] D[macro]
  13522. next
  13523. } else {
  13524. # Replace #undef with comments. This is necessary, for example,
  13525. # in the case of _POSIX_SOURCE, which is predefined and required
  13526. # on some systems where configure will not decide to define it.
  13527. if (defundef == "undef") {
  13528. print "/*", prefix defundef, macro, "*/"
  13529. next
  13530. }
  13531. }
  13532. }
  13533. { print }
  13534. _ACAWK
  13535. _ACEOF
  13536. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13537. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13538. fi # test -n "$CONFIG_HEADERS"
  13539. eval set X " :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13540. shift
  13541. for ac_tag
  13542. do
  13543. case $ac_tag in
  13544. :[FHLC]) ac_mode=$ac_tag; continue;;
  13545. esac
  13546. case $ac_mode$ac_tag in
  13547. :[FHL]*:*);;
  13548. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13549. :[FH]-) ac_tag=-:-;;
  13550. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13551. esac
  13552. ac_save_IFS=$IFS
  13553. IFS=:
  13554. set x $ac_tag
  13555. IFS=$ac_save_IFS
  13556. shift
  13557. ac_file=$1
  13558. shift
  13559. case $ac_mode in
  13560. :L) ac_source=$1;;
  13561. :[FH])
  13562. ac_file_inputs=
  13563. for ac_f
  13564. do
  13565. case $ac_f in
  13566. -) ac_f="$tmp/stdin";;
  13567. *) # Look for the file first in the build tree, then in the source tree
  13568. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13569. # because $ac_f cannot contain `:'.
  13570. test -f "$ac_f" ||
  13571. case $ac_f in
  13572. [\\/$]*) false;;
  13573. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13574. esac ||
  13575. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13576. esac
  13577. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13578. as_fn_append ac_file_inputs " '$ac_f'"
  13579. done
  13580. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13581. # use $as_me), people would be surprised to read:
  13582. # /* config.h. Generated by config.status. */
  13583. configure_input='Generated from '`
  13584. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13585. `' by configure.'
  13586. if test x"$ac_file" != x-; then
  13587. configure_input="$ac_file. $configure_input"
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13589. $as_echo "$as_me: creating $ac_file" >&6;}
  13590. fi
  13591. # Neutralize special characters interpreted by sed in replacement strings.
  13592. case $configure_input in #(
  13593. *\&* | *\|* | *\\* )
  13594. ac_sed_conf_input=`$as_echo "$configure_input" |
  13595. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13596. *) ac_sed_conf_input=$configure_input;;
  13597. esac
  13598. case $ac_tag in
  13599. *:-:* | *:-) cat >"$tmp/stdin" \
  13600. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13601. esac
  13602. ;;
  13603. esac
  13604. ac_dir=`$as_dirname -- "$ac_file" ||
  13605. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13606. X"$ac_file" : 'X\(//\)[^/]' \| \
  13607. X"$ac_file" : 'X\(//\)$' \| \
  13608. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13609. $as_echo X"$ac_file" |
  13610. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13611. s//\1/
  13612. q
  13613. }
  13614. /^X\(\/\/\)[^/].*/{
  13615. s//\1/
  13616. q
  13617. }
  13618. /^X\(\/\/\)$/{
  13619. s//\1/
  13620. q
  13621. }
  13622. /^X\(\/\).*/{
  13623. s//\1/
  13624. q
  13625. }
  13626. s/.*/./; q'`
  13627. as_dir="$ac_dir"; as_fn_mkdir_p
  13628. ac_builddir=.
  13629. case "$ac_dir" in
  13630. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13631. *)
  13632. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13633. # A ".." for each directory in $ac_dir_suffix.
  13634. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13635. case $ac_top_builddir_sub in
  13636. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13637. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13638. esac ;;
  13639. esac
  13640. ac_abs_top_builddir=$ac_pwd
  13641. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13642. # for backward compatibility:
  13643. ac_top_builddir=$ac_top_build_prefix
  13644. case $srcdir in
  13645. .) # We are building in place.
  13646. ac_srcdir=.
  13647. ac_top_srcdir=$ac_top_builddir_sub
  13648. ac_abs_top_srcdir=$ac_pwd ;;
  13649. [\\/]* | ?:[\\/]* ) # Absolute name.
  13650. ac_srcdir=$srcdir$ac_dir_suffix;
  13651. ac_top_srcdir=$srcdir
  13652. ac_abs_top_srcdir=$srcdir ;;
  13653. *) # Relative name.
  13654. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13655. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13656. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13657. esac
  13658. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13659. case $ac_mode in
  13660. :H)
  13661. #
  13662. # CONFIG_HEADER
  13663. #
  13664. if test x"$ac_file" != x-; then
  13665. {
  13666. $as_echo "/* $configure_input */" \
  13667. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13668. } >"$tmp/config.h" \
  13669. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13670. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13672. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13673. else
  13674. rm -f "$ac_file"
  13675. mv "$tmp/config.h" "$ac_file" \
  13676. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13677. fi
  13678. else
  13679. $as_echo "/* $configure_input */" \
  13680. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13681. || as_fn_error "could not create -" "$LINENO" 5
  13682. fi
  13683. ;;
  13684. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13685. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13686. ;;
  13687. esac
  13688. case $ac_file$ac_mode in
  13689. "libtool":C)
  13690. # See if we are running on zsh, and set the options which allow our
  13691. # commands through without removal of \ escapes.
  13692. if test -n "${ZSH_VERSION+set}" ; then
  13693. setopt NO_GLOB_SUBST
  13694. fi
  13695. cfgfile="${ofile}T"
  13696. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13697. $RM "$cfgfile"
  13698. cat <<_LT_EOF >> "$cfgfile"
  13699. #! $SHELL
  13700. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13701. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13702. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13703. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13704. #
  13705. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13706. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13707. # Written by Gordon Matzigkeit, 1996
  13708. #
  13709. # This file is part of GNU Libtool.
  13710. #
  13711. # GNU Libtool is free software; you can redistribute it and/or
  13712. # modify it under the terms of the GNU General Public License as
  13713. # published by the Free Software Foundation; either version 2 of
  13714. # the License, or (at your option) any later version.
  13715. #
  13716. # As a special exception to the GNU General Public License,
  13717. # if you distribute this file as part of a program or library that
  13718. # is built using GNU Libtool, you may include this file under the
  13719. # same distribution terms that you use for the rest of that program.
  13720. #
  13721. # GNU Libtool is distributed in the hope that it will be useful,
  13722. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13723. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13724. # GNU General Public License for more details.
  13725. #
  13726. # You should have received a copy of the GNU General Public License
  13727. # along with GNU Libtool; see the file COPYING. If not, a copy
  13728. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13729. # obtained by writing to the Free Software Foundation, Inc.,
  13730. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13731. # The names of the tagged configurations supported by this script.
  13732. available_tags="CXX "
  13733. # ### BEGIN LIBTOOL CONFIG
  13734. # Which release of libtool.m4 was used?
  13735. macro_version=$macro_version
  13736. macro_revision=$macro_revision
  13737. # Whether or not to build shared libraries.
  13738. build_libtool_libs=$enable_shared
  13739. # Whether or not to build static libraries.
  13740. build_old_libs=$enable_static
  13741. # What type of objects to build.
  13742. pic_mode=$pic_mode
  13743. # Whether or not to optimize for fast installation.
  13744. fast_install=$enable_fast_install
  13745. # The host system.
  13746. host_alias=$host_alias
  13747. host=$host
  13748. host_os=$host_os
  13749. # The build system.
  13750. build_alias=$build_alias
  13751. build=$build
  13752. build_os=$build_os
  13753. # A sed program that does not truncate output.
  13754. SED=$lt_SED
  13755. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13756. Xsed="\$SED -e 1s/^X//"
  13757. # A grep program that handles long lines.
  13758. GREP=$lt_GREP
  13759. # An ERE matcher.
  13760. EGREP=$lt_EGREP
  13761. # A literal string matcher.
  13762. FGREP=$lt_FGREP
  13763. # A BSD- or MS-compatible name lister.
  13764. NM=$lt_NM
  13765. # Whether we need soft or hard links.
  13766. LN_S=$lt_LN_S
  13767. # What is the maximum length of a command?
  13768. max_cmd_len=$max_cmd_len
  13769. # Object file suffix (normally "o").
  13770. objext=$ac_objext
  13771. # Executable file suffix (normally "").
  13772. exeext=$exeext
  13773. # whether the shell understands "unset".
  13774. lt_unset=$lt_unset
  13775. # turn spaces into newlines.
  13776. SP2NL=$lt_lt_SP2NL
  13777. # turn newlines into spaces.
  13778. NL2SP=$lt_lt_NL2SP
  13779. # How to create reloadable object files.
  13780. reload_flag=$lt_reload_flag
  13781. reload_cmds=$lt_reload_cmds
  13782. # An object symbol dumper.
  13783. OBJDUMP=$lt_OBJDUMP
  13784. # Method to check whether dependent libraries are shared objects.
  13785. deplibs_check_method=$lt_deplibs_check_method
  13786. # Command to use when deplibs_check_method == "file_magic".
  13787. file_magic_cmd=$lt_file_magic_cmd
  13788. # The archiver.
  13789. AR=$lt_AR
  13790. AR_FLAGS=$lt_AR_FLAGS
  13791. # A symbol stripping program.
  13792. STRIP=$lt_STRIP
  13793. # Commands used to install an old-style archive.
  13794. RANLIB=$lt_RANLIB
  13795. old_postinstall_cmds=$lt_old_postinstall_cmds
  13796. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13797. # A C compiler.
  13798. LTCC=$lt_CC
  13799. # LTCC compiler flags.
  13800. LTCFLAGS=$lt_CFLAGS
  13801. # Take the output of nm and produce a listing of raw symbols and C names.
  13802. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13803. # Transform the output of nm in a proper C declaration.
  13804. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13805. # Transform the output of nm in a C name address pair.
  13806. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13807. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13808. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13809. # The name of the directory that contains temporary libtool files.
  13810. objdir=$objdir
  13811. # Shell to use when invoking shell scripts.
  13812. SHELL=$lt_SHELL
  13813. # An echo program that does not interpret backslashes.
  13814. ECHO=$lt_ECHO
  13815. # Used to examine libraries when file_magic_cmd begins with "file".
  13816. MAGIC_CMD=$MAGIC_CMD
  13817. # Must we lock files when doing compilation?
  13818. need_locks=$lt_need_locks
  13819. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13820. DSYMUTIL=$lt_DSYMUTIL
  13821. # Tool to change global to local symbols on Mac OS X.
  13822. NMEDIT=$lt_NMEDIT
  13823. # Tool to manipulate fat objects and archives on Mac OS X.
  13824. LIPO=$lt_LIPO
  13825. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13826. OTOOL=$lt_OTOOL
  13827. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13828. OTOOL64=$lt_OTOOL64
  13829. # Old archive suffix (normally "a").
  13830. libext=$libext
  13831. # Shared library suffix (normally ".so").
  13832. shrext_cmds=$lt_shrext_cmds
  13833. # The commands to extract the exported symbol list from a shared archive.
  13834. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13835. # Variables whose values should be saved in libtool wrapper scripts and
  13836. # restored at link time.
  13837. variables_saved_for_relink=$lt_variables_saved_for_relink
  13838. # Do we need the "lib" prefix for modules?
  13839. need_lib_prefix=$need_lib_prefix
  13840. # Do we need a version for libraries?
  13841. need_version=$need_version
  13842. # Library versioning type.
  13843. version_type=$version_type
  13844. # Shared library runtime path variable.
  13845. runpath_var=$runpath_var
  13846. # Shared library path variable.
  13847. shlibpath_var=$shlibpath_var
  13848. # Is shlibpath searched before the hard-coded library search path?
  13849. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13850. # Format of library name prefix.
  13851. libname_spec=$lt_libname_spec
  13852. # List of archive names. First name is the real one, the rest are links.
  13853. # The last name is the one that the linker finds with -lNAME
  13854. library_names_spec=$lt_library_names_spec
  13855. # The coded name of the library, if different from the real name.
  13856. soname_spec=$lt_soname_spec
  13857. # Command to use after installation of a shared archive.
  13858. postinstall_cmds=$lt_postinstall_cmds
  13859. # Command to use after uninstallation of a shared archive.
  13860. postuninstall_cmds=$lt_postuninstall_cmds
  13861. # Commands used to finish a libtool library installation in a directory.
  13862. finish_cmds=$lt_finish_cmds
  13863. # As "finish_cmds", except a single script fragment to be evaled but
  13864. # not shown.
  13865. finish_eval=$lt_finish_eval
  13866. # Whether we should hardcode library paths into libraries.
  13867. hardcode_into_libs=$hardcode_into_libs
  13868. # Compile-time system search path for libraries.
  13869. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13870. # Run-time system search path for libraries.
  13871. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13872. # Whether dlopen is supported.
  13873. dlopen_support=$enable_dlopen
  13874. # Whether dlopen of programs is supported.
  13875. dlopen_self=$enable_dlopen_self
  13876. # Whether dlopen of statically linked programs is supported.
  13877. dlopen_self_static=$enable_dlopen_self_static
  13878. # Commands to strip libraries.
  13879. old_striplib=$lt_old_striplib
  13880. striplib=$lt_striplib
  13881. # The linker used to build libraries.
  13882. LD=$lt_LD
  13883. # Commands used to build an old-style archive.
  13884. old_archive_cmds=$lt_old_archive_cmds
  13885. # A language specific compiler.
  13886. CC=$lt_compiler
  13887. # Is the compiler the GNU compiler?
  13888. with_gcc=$GCC
  13889. # Compiler flag to turn off builtin functions.
  13890. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13891. # How to pass a linker flag through the compiler.
  13892. wl=$lt_lt_prog_compiler_wl
  13893. # Additional compiler flags for building library objects.
  13894. pic_flag=$lt_lt_prog_compiler_pic
  13895. # Compiler flag to prevent dynamic linking.
  13896. link_static_flag=$lt_lt_prog_compiler_static
  13897. # Does compiler simultaneously support -c and -o options?
  13898. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13899. # Whether or not to add -lc for building shared libraries.
  13900. build_libtool_need_lc=$archive_cmds_need_lc
  13901. # Whether or not to disallow shared libs when runtime libs are static.
  13902. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13903. # Compiler flag to allow reflexive dlopens.
  13904. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13905. # Compiler flag to generate shared objects directly from archives.
  13906. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13907. # Whether the compiler copes with passing no objects directly.
  13908. compiler_needs_object=$lt_compiler_needs_object
  13909. # Create an old-style archive from a shared archive.
  13910. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13911. # Create a temporary old-style archive to link instead of a shared archive.
  13912. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13913. # Commands used to build a shared archive.
  13914. archive_cmds=$lt_archive_cmds
  13915. archive_expsym_cmds=$lt_archive_expsym_cmds
  13916. # Commands used to build a loadable module if different from building
  13917. # a shared archive.
  13918. module_cmds=$lt_module_cmds
  13919. module_expsym_cmds=$lt_module_expsym_cmds
  13920. # Whether we are building with GNU ld or not.
  13921. with_gnu_ld=$lt_with_gnu_ld
  13922. # Flag that allows shared libraries with undefined symbols to be built.
  13923. allow_undefined_flag=$lt_allow_undefined_flag
  13924. # Flag that enforces no undefined symbols.
  13925. no_undefined_flag=$lt_no_undefined_flag
  13926. # Flag to hardcode \$libdir into a binary during linking.
  13927. # This must work even if \$libdir does not exist
  13928. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13929. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13930. # during linking. This must work even if \$libdir does not exist.
  13931. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13932. # Whether we need a single "-rpath" flag with a separated argument.
  13933. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13934. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13935. # DIR into the resulting binary.
  13936. hardcode_direct=$hardcode_direct
  13937. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13938. # DIR into the resulting binary and the resulting library dependency is
  13939. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13940. # library is relocated.
  13941. hardcode_direct_absolute=$hardcode_direct_absolute
  13942. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13943. # into the resulting binary.
  13944. hardcode_minus_L=$hardcode_minus_L
  13945. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13946. # into the resulting binary.
  13947. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13948. # Set to "yes" if building a shared library automatically hardcodes DIR
  13949. # into the library and all subsequent libraries and executables linked
  13950. # against it.
  13951. hardcode_automatic=$hardcode_automatic
  13952. # Set to yes if linker adds runtime paths of dependent libraries
  13953. # to runtime path list.
  13954. inherit_rpath=$inherit_rpath
  13955. # Whether libtool must link a program against all its dependency libraries.
  13956. link_all_deplibs=$link_all_deplibs
  13957. # Fix the shell variable \$srcfile for the compiler.
  13958. fix_srcfile_path=$lt_fix_srcfile_path
  13959. # Set to "yes" if exported symbols are required.
  13960. always_export_symbols=$always_export_symbols
  13961. # The commands to list exported symbols.
  13962. export_symbols_cmds=$lt_export_symbols_cmds
  13963. # Symbols that should not be listed in the preloaded symbols.
  13964. exclude_expsyms=$lt_exclude_expsyms
  13965. # Symbols that must always be exported.
  13966. include_expsyms=$lt_include_expsyms
  13967. # Commands necessary for linking programs (against libraries) with templates.
  13968. prelink_cmds=$lt_prelink_cmds
  13969. # Specify filename containing input files.
  13970. file_list_spec=$lt_file_list_spec
  13971. # How to hardcode a shared library path into an executable.
  13972. hardcode_action=$hardcode_action
  13973. # The directories searched by this compiler when creating a shared library.
  13974. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  13975. # Dependencies to place before and after the objects being linked to
  13976. # create a shared library.
  13977. predep_objects=$lt_predep_objects
  13978. postdep_objects=$lt_postdep_objects
  13979. predeps=$lt_predeps
  13980. postdeps=$lt_postdeps
  13981. # The library search path used internally by the compiler when linking
  13982. # a shared library.
  13983. compiler_lib_search_path=$lt_compiler_lib_search_path
  13984. # ### END LIBTOOL CONFIG
  13985. _LT_EOF
  13986. case $host_os in
  13987. aix3*)
  13988. cat <<\_LT_EOF >> "$cfgfile"
  13989. # AIX sometimes has problems with the GCC collect2 program. For some
  13990. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13991. # vanish in a puff of smoke.
  13992. if test "X${COLLECT_NAMES+set}" != Xset; then
  13993. COLLECT_NAMES=
  13994. export COLLECT_NAMES
  13995. fi
  13996. _LT_EOF
  13997. ;;
  13998. esac
  13999. ltmain="$ac_aux_dir/ltmain.sh"
  14000. # We use sed instead of cat because bash on DJGPP gets confused if
  14001. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14002. # text mode, it properly converts lines to CR/LF. This bash problem
  14003. # is reportedly fixed, but why not run on old versions too?
  14004. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14005. || (rm -f "$cfgfile"; exit 1)
  14006. case $xsi_shell in
  14007. yes)
  14008. cat << \_LT_EOF >> "$cfgfile"
  14009. # func_dirname file append nondir_replacement
  14010. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14011. # otherwise set result to NONDIR_REPLACEMENT.
  14012. func_dirname ()
  14013. {
  14014. case ${1} in
  14015. */*) func_dirname_result="${1%/*}${2}" ;;
  14016. * ) func_dirname_result="${3}" ;;
  14017. esac
  14018. }
  14019. # func_basename file
  14020. func_basename ()
  14021. {
  14022. func_basename_result="${1##*/}"
  14023. }
  14024. # func_dirname_and_basename file append nondir_replacement
  14025. # perform func_basename and func_dirname in a single function
  14026. # call:
  14027. # dirname: Compute the dirname of FILE. If nonempty,
  14028. # add APPEND to the result, otherwise set result
  14029. # to NONDIR_REPLACEMENT.
  14030. # value returned in "$func_dirname_result"
  14031. # basename: Compute filename of FILE.
  14032. # value retuned in "$func_basename_result"
  14033. # Implementation must be kept synchronized with func_dirname
  14034. # and func_basename. For efficiency, we do not delegate to
  14035. # those functions but instead duplicate the functionality here.
  14036. func_dirname_and_basename ()
  14037. {
  14038. case ${1} in
  14039. */*) func_dirname_result="${1%/*}${2}" ;;
  14040. * ) func_dirname_result="${3}" ;;
  14041. esac
  14042. func_basename_result="${1##*/}"
  14043. }
  14044. # func_stripname prefix suffix name
  14045. # strip PREFIX and SUFFIX off of NAME.
  14046. # PREFIX and SUFFIX must not contain globbing or regex special
  14047. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14048. # dot (in which case that matches only a dot).
  14049. func_stripname ()
  14050. {
  14051. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14052. # positional parameters, so assign one to ordinary parameter first.
  14053. func_stripname_result=${3}
  14054. func_stripname_result=${func_stripname_result#"${1}"}
  14055. func_stripname_result=${func_stripname_result%"${2}"}
  14056. }
  14057. # func_opt_split
  14058. func_opt_split ()
  14059. {
  14060. func_opt_split_opt=${1%%=*}
  14061. func_opt_split_arg=${1#*=}
  14062. }
  14063. # func_lo2o object
  14064. func_lo2o ()
  14065. {
  14066. case ${1} in
  14067. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14068. *) func_lo2o_result=${1} ;;
  14069. esac
  14070. }
  14071. # func_xform libobj-or-source
  14072. func_xform ()
  14073. {
  14074. func_xform_result=${1%.*}.lo
  14075. }
  14076. # func_arith arithmetic-term...
  14077. func_arith ()
  14078. {
  14079. func_arith_result=$(( $* ))
  14080. }
  14081. # func_len string
  14082. # STRING may not start with a hyphen.
  14083. func_len ()
  14084. {
  14085. func_len_result=${#1}
  14086. }
  14087. _LT_EOF
  14088. ;;
  14089. *) # Bourne compatible functions.
  14090. cat << \_LT_EOF >> "$cfgfile"
  14091. # func_dirname file append nondir_replacement
  14092. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14093. # otherwise set result to NONDIR_REPLACEMENT.
  14094. func_dirname ()
  14095. {
  14096. # Extract subdirectory from the argument.
  14097. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14098. if test "X$func_dirname_result" = "X${1}"; then
  14099. func_dirname_result="${3}"
  14100. else
  14101. func_dirname_result="$func_dirname_result${2}"
  14102. fi
  14103. }
  14104. # func_basename file
  14105. func_basename ()
  14106. {
  14107. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14108. }
  14109. # func_stripname prefix suffix name
  14110. # strip PREFIX and SUFFIX off of NAME.
  14111. # PREFIX and SUFFIX must not contain globbing or regex special
  14112. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14113. # dot (in which case that matches only a dot).
  14114. # func_strip_suffix prefix name
  14115. func_stripname ()
  14116. {
  14117. case ${2} in
  14118. .*) func_stripname_result=`$ECHO "X${3}" \
  14119. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14120. *) func_stripname_result=`$ECHO "X${3}" \
  14121. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14122. esac
  14123. }
  14124. # sed scripts:
  14125. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14126. my_sed_long_arg='1s/^-[^=]*=//'
  14127. # func_opt_split
  14128. func_opt_split ()
  14129. {
  14130. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14131. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14132. }
  14133. # func_lo2o object
  14134. func_lo2o ()
  14135. {
  14136. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14137. }
  14138. # func_xform libobj-or-source
  14139. func_xform ()
  14140. {
  14141. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14142. }
  14143. # func_arith arithmetic-term...
  14144. func_arith ()
  14145. {
  14146. func_arith_result=`expr "$@"`
  14147. }
  14148. # func_len string
  14149. # STRING may not start with a hyphen.
  14150. func_len ()
  14151. {
  14152. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14153. }
  14154. _LT_EOF
  14155. esac
  14156. case $lt_shell_append in
  14157. yes)
  14158. cat << \_LT_EOF >> "$cfgfile"
  14159. # func_append var value
  14160. # Append VALUE to the end of shell variable VAR.
  14161. func_append ()
  14162. {
  14163. eval "$1+=\$2"
  14164. }
  14165. _LT_EOF
  14166. ;;
  14167. *)
  14168. cat << \_LT_EOF >> "$cfgfile"
  14169. # func_append var value
  14170. # Append VALUE to the end of shell variable VAR.
  14171. func_append ()
  14172. {
  14173. eval "$1=\$$1\$2"
  14174. }
  14175. _LT_EOF
  14176. ;;
  14177. esac
  14178. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14179. || (rm -f "$cfgfile"; exit 1)
  14180. mv -f "$cfgfile" "$ofile" ||
  14181. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14182. chmod +x "$ofile"
  14183. cat <<_LT_EOF >> "$ofile"
  14184. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14185. # The linker used to build libraries.
  14186. LD=$lt_LD_CXX
  14187. # Commands used to build an old-style archive.
  14188. old_archive_cmds=$lt_old_archive_cmds_CXX
  14189. # A language specific compiler.
  14190. CC=$lt_compiler_CXX
  14191. # Is the compiler the GNU compiler?
  14192. with_gcc=$GCC_CXX
  14193. # Compiler flag to turn off builtin functions.
  14194. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14195. # How to pass a linker flag through the compiler.
  14196. wl=$lt_lt_prog_compiler_wl_CXX
  14197. # Additional compiler flags for building library objects.
  14198. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14199. # Compiler flag to prevent dynamic linking.
  14200. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14201. # Does compiler simultaneously support -c and -o options?
  14202. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14203. # Whether or not to add -lc for building shared libraries.
  14204. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14205. # Whether or not to disallow shared libs when runtime libs are static.
  14206. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14207. # Compiler flag to allow reflexive dlopens.
  14208. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14209. # Compiler flag to generate shared objects directly from archives.
  14210. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14211. # Whether the compiler copes with passing no objects directly.
  14212. compiler_needs_object=$lt_compiler_needs_object_CXX
  14213. # Create an old-style archive from a shared archive.
  14214. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14215. # Create a temporary old-style archive to link instead of a shared archive.
  14216. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14217. # Commands used to build a shared archive.
  14218. archive_cmds=$lt_archive_cmds_CXX
  14219. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14220. # Commands used to build a loadable module if different from building
  14221. # a shared archive.
  14222. module_cmds=$lt_module_cmds_CXX
  14223. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14224. # Whether we are building with GNU ld or not.
  14225. with_gnu_ld=$lt_with_gnu_ld_CXX
  14226. # Flag that allows shared libraries with undefined symbols to be built.
  14227. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14228. # Flag that enforces no undefined symbols.
  14229. no_undefined_flag=$lt_no_undefined_flag_CXX
  14230. # Flag to hardcode \$libdir into a binary during linking.
  14231. # This must work even if \$libdir does not exist
  14232. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14233. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14234. # during linking. This must work even if \$libdir does not exist.
  14235. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14236. # Whether we need a single "-rpath" flag with a separated argument.
  14237. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14238. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14239. # DIR into the resulting binary.
  14240. hardcode_direct=$hardcode_direct_CXX
  14241. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14242. # DIR into the resulting binary and the resulting library dependency is
  14243. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14244. # library is relocated.
  14245. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14246. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14247. # into the resulting binary.
  14248. hardcode_minus_L=$hardcode_minus_L_CXX
  14249. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14250. # into the resulting binary.
  14251. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14252. # Set to "yes" if building a shared library automatically hardcodes DIR
  14253. # into the library and all subsequent libraries and executables linked
  14254. # against it.
  14255. hardcode_automatic=$hardcode_automatic_CXX
  14256. # Set to yes if linker adds runtime paths of dependent libraries
  14257. # to runtime path list.
  14258. inherit_rpath=$inherit_rpath_CXX
  14259. # Whether libtool must link a program against all its dependency libraries.
  14260. link_all_deplibs=$link_all_deplibs_CXX
  14261. # Fix the shell variable \$srcfile for the compiler.
  14262. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14263. # Set to "yes" if exported symbols are required.
  14264. always_export_symbols=$always_export_symbols_CXX
  14265. # The commands to list exported symbols.
  14266. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14267. # Symbols that should not be listed in the preloaded symbols.
  14268. exclude_expsyms=$lt_exclude_expsyms_CXX
  14269. # Symbols that must always be exported.
  14270. include_expsyms=$lt_include_expsyms_CXX
  14271. # Commands necessary for linking programs (against libraries) with templates.
  14272. prelink_cmds=$lt_prelink_cmds_CXX
  14273. # Specify filename containing input files.
  14274. file_list_spec=$lt_file_list_spec_CXX
  14275. # How to hardcode a shared library path into an executable.
  14276. hardcode_action=$hardcode_action_CXX
  14277. # The directories searched by this compiler when creating a shared library.
  14278. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14279. # Dependencies to place before and after the objects being linked to
  14280. # create a shared library.
  14281. predep_objects=$lt_predep_objects_CXX
  14282. postdep_objects=$lt_postdep_objects_CXX
  14283. predeps=$lt_predeps_CXX
  14284. postdeps=$lt_postdeps_CXX
  14285. # The library search path used internally by the compiler when linking
  14286. # a shared library.
  14287. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14288. # ### END LIBTOOL TAG CONFIG: CXX
  14289. _LT_EOF
  14290. ;;
  14291. esac
  14292. done # for ac_tag
  14293. as_fn_exit 0
  14294. _ACEOF
  14295. ac_clean_files=$ac_clean_files_save
  14296. test $ac_write_fail = 0 ||
  14297. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14298. # configure is writing to config.log, and then calls config.status.
  14299. # config.status does its own redirection, appending to config.log.
  14300. # Unfortunately, on DOS this fails, as config.log is still kept open
  14301. # by configure, so config.status won't be able to write to it; its
  14302. # output is simply discarded. So we exec the FD to /dev/null,
  14303. # effectively closing config.log, so it can be properly (re)opened and
  14304. # appended to by config.status. When coming back to configure, we
  14305. # need to make the FD available again.
  14306. if test "$no_create" != yes; then
  14307. ac_cs_success=:
  14308. ac_config_status_args=
  14309. test "$silent" = yes &&
  14310. ac_config_status_args="$ac_config_status_args --quiet"
  14311. exec 5>/dev/null
  14312. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14313. exec 5>>config.log
  14314. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14315. # would make configure fail if this is the last instruction.
  14316. $ac_cs_success || as_fn_exit $?
  14317. fi
  14318. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14320. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14321. fi