configure 613 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libpqxx 7.7.3.
  4. #
  5. # Report bugs to <Jeroen T. Vermeulen>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and Jeroen T.
  259. $0: Vermeulen about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libpqxx'
  542. PACKAGE_TARNAME='libpqxx'
  543. PACKAGE_VERSION='7.7.3'
  544. PACKAGE_STRING='libpqxx 7.7.3'
  545. PACKAGE_BUGREPORT='Jeroen T. Vermeulen'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/connection.cxx"
  548. ac_default_prefix=/usr/local
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. with_postgres_lib
  589. POSTGRES_INCLUDE
  590. PG_CONFIG
  591. PKG_CONFIG
  592. MAINT
  593. MAINTAINER_MODE_FALSE
  594. MAINTAINER_MODE_TRUE
  595. BUILD_REFERENCE_FALSE
  596. BUILD_REFERENCE_TRUE
  597. HAVE_DOT
  598. DOXYGEN
  599. MKDIR
  600. CXXCPP
  601. CPP
  602. LT_SYS_LIBRARY_PATH
  603. OTOOL64
  604. OTOOL
  605. LIPO
  606. NMEDIT
  607. DSYMUTIL
  608. MANIFEST_TOOL
  609. RANLIB
  610. ac_ct_AR
  611. AR
  612. DLLTOOL
  613. OBJDUMP
  614. LN_S
  615. NM
  616. ac_ct_DUMPBIN
  617. DUMPBIN
  618. LD
  619. FGREP
  620. EGREP
  621. GREP
  622. SED
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. ac_ct_CC
  627. CFLAGS
  628. CC
  629. host_os
  630. host_vendor
  631. host_cpu
  632. host
  633. build_os
  634. build_vendor
  635. build_cpu
  636. build
  637. LIBTOOL
  638. am__fastdepCXX_FALSE
  639. am__fastdepCXX_TRUE
  640. CXXDEPMODE
  641. am__nodep
  642. AMDEPBACKSLASH
  643. AMDEP_FALSE
  644. AMDEP_TRUE
  645. am__include
  646. DEPDIR
  647. OBJEXT
  648. EXEEXT
  649. ac_ct_CXX
  650. CPPFLAGS
  651. LDFLAGS
  652. CXXFLAGS
  653. CXX
  654. PQXX_ABI
  655. PQXXVERSION
  656. AM_BACKSLASH
  657. AM_DEFAULT_VERBOSITY
  658. AM_DEFAULT_V
  659. AM_V
  660. CSCOPE
  661. ETAGS
  662. CTAGS
  663. am__untar
  664. am__tar
  665. AMTAR
  666. am__leading_dot
  667. SET_MAKE
  668. AWK
  669. mkdir_p
  670. MKDIR_P
  671. INSTALL_STRIP_PROGRAM
  672. STRIP
  673. install_sh
  674. MAKEINFO
  675. AUTOHEADER
  676. AUTOMAKE
  677. AUTOCONF
  678. ACLOCAL
  679. VERSION
  680. PACKAGE
  681. CYGPATH_W
  682. am__isrc
  683. INSTALL_DATA
  684. INSTALL_SCRIPT
  685. INSTALL_PROGRAM
  686. target_alias
  687. host_alias
  688. build_alias
  689. LIBS
  690. ECHO_T
  691. ECHO_N
  692. ECHO_C
  693. DEFS
  694. mandir
  695. localedir
  696. libdir
  697. psdir
  698. pdfdir
  699. dvidir
  700. htmldir
  701. infodir
  702. docdir
  703. oldincludedir
  704. includedir
  705. runstatedir
  706. localstatedir
  707. sharedstatedir
  708. sysconfdir
  709. datadir
  710. datarootdir
  711. libexecdir
  712. sbindir
  713. bindir
  714. program_transform_name
  715. prefix
  716. exec_prefix
  717. PACKAGE_URL
  718. PACKAGE_BUGREPORT
  719. PACKAGE_STRING
  720. PACKAGE_VERSION
  721. PACKAGE_TARNAME
  722. PACKAGE_NAME
  723. PATH_SEPARATOR
  724. SHELL
  725. am__quote'
  726. ac_subst_files=''
  727. ac_user_opts='
  728. enable_option_checking
  729. enable_silent_rules
  730. enable_dependency_tracking
  731. enable_shared
  732. enable_static
  733. with_pic
  734. enable_fast_install
  735. with_aix_soname
  736. with_gnu_ld
  737. with_sysroot
  738. enable_libtool_lock
  739. enable_documentation
  740. enable_maintainer_mode
  741. enable_audit
  742. enable_suggest
  743. with_postgres_include
  744. with_postgres_lib
  745. '
  746. ac_precious_vars='build_alias
  747. host_alias
  748. target_alias
  749. CXX
  750. CXXFLAGS
  751. LDFLAGS
  752. LIBS
  753. CPPFLAGS
  754. CCC
  755. CC
  756. CFLAGS
  757. LT_SYS_LIBRARY_PATH
  758. CPP
  759. CXXCPP
  760. DOXYGEN
  761. HAVE_DOT'
  762. # Initialize some variables set by options.
  763. ac_init_help=
  764. ac_init_version=false
  765. ac_unrecognized_opts=
  766. ac_unrecognized_sep=
  767. # The variables have the same names as the options, with
  768. # dashes changed to underlines.
  769. cache_file=/dev/null
  770. exec_prefix=NONE
  771. no_create=
  772. no_recursion=
  773. prefix=NONE
  774. program_prefix=NONE
  775. program_suffix=NONE
  776. program_transform_name=s,x,x,
  777. silent=
  778. site=
  779. srcdir=
  780. verbose=
  781. x_includes=NONE
  782. x_libraries=NONE
  783. # Installation directory options.
  784. # These are left unexpanded so users can "make install exec_prefix=/foo"
  785. # and all the variables that are supposed to be based on exec_prefix
  786. # by default will actually change.
  787. # Use braces instead of parens because sh, perl, etc. also accept them.
  788. # (The list follows the same order as the GNU Coding Standards.)
  789. bindir='${exec_prefix}/bin'
  790. sbindir='${exec_prefix}/sbin'
  791. libexecdir='${exec_prefix}/libexec'
  792. datarootdir='${prefix}/share'
  793. datadir='${datarootdir}'
  794. sysconfdir='${prefix}/etc'
  795. sharedstatedir='${prefix}/com'
  796. localstatedir='${prefix}/var'
  797. runstatedir='${localstatedir}/run'
  798. includedir='${prefix}/include'
  799. oldincludedir='/usr/include'
  800. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  801. infodir='${datarootdir}/info'
  802. htmldir='${docdir}'
  803. dvidir='${docdir}'
  804. pdfdir='${docdir}'
  805. psdir='${docdir}'
  806. libdir='${exec_prefix}/lib'
  807. localedir='${datarootdir}/locale'
  808. mandir='${datarootdir}/man'
  809. ac_prev=
  810. ac_dashdash=
  811. for ac_option
  812. do
  813. # If the previous option needs an argument, assign it.
  814. if test -n "$ac_prev"; then
  815. eval $ac_prev=\$ac_option
  816. ac_prev=
  817. continue
  818. fi
  819. case $ac_option in
  820. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  821. *=) ac_optarg= ;;
  822. *) ac_optarg=yes ;;
  823. esac
  824. # Accept the important Cygnus configure options, so we can diagnose typos.
  825. case $ac_dashdash$ac_option in
  826. --)
  827. ac_dashdash=yes ;;
  828. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  829. ac_prev=bindir ;;
  830. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  831. bindir=$ac_optarg ;;
  832. -build | --build | --buil | --bui | --bu)
  833. ac_prev=build_alias ;;
  834. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  835. build_alias=$ac_optarg ;;
  836. -cache-file | --cache-file | --cache-fil | --cache-fi \
  837. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  838. ac_prev=cache_file ;;
  839. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  840. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  841. cache_file=$ac_optarg ;;
  842. --config-cache | -C)
  843. cache_file=config.cache ;;
  844. -datadir | --datadir | --datadi | --datad)
  845. ac_prev=datadir ;;
  846. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  847. datadir=$ac_optarg ;;
  848. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  849. | --dataroo | --dataro | --datar)
  850. ac_prev=datarootdir ;;
  851. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  852. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  853. datarootdir=$ac_optarg ;;
  854. -disable-* | --disable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=no ;;
  869. -docdir | --docdir | --docdi | --doc | --do)
  870. ac_prev=docdir ;;
  871. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  872. docdir=$ac_optarg ;;
  873. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  874. ac_prev=dvidir ;;
  875. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  876. dvidir=$ac_optarg ;;
  877. -enable-* | --enable-*)
  878. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  879. # Reject names that are not valid shell variable names.
  880. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  881. as_fn_error $? "invalid feature name: $ac_useropt"
  882. ac_useropt_orig=$ac_useropt
  883. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  884. case $ac_user_opts in
  885. *"
  886. "enable_$ac_useropt"
  887. "*) ;;
  888. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  889. ac_unrecognized_sep=', ';;
  890. esac
  891. eval enable_$ac_useropt=\$ac_optarg ;;
  892. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  893. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  894. | --exec | --exe | --ex)
  895. ac_prev=exec_prefix ;;
  896. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  897. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  898. | --exec=* | --exe=* | --ex=*)
  899. exec_prefix=$ac_optarg ;;
  900. -gas | --gas | --ga | --g)
  901. # Obsolete; use --with-gas.
  902. with_gas=yes ;;
  903. -help | --help | --hel | --he | -h)
  904. ac_init_help=long ;;
  905. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  906. ac_init_help=recursive ;;
  907. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  908. ac_init_help=short ;;
  909. -host | --host | --hos | --ho)
  910. ac_prev=host_alias ;;
  911. -host=* | --host=* | --hos=* | --ho=*)
  912. host_alias=$ac_optarg ;;
  913. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  914. ac_prev=htmldir ;;
  915. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  916. | --ht=*)
  917. htmldir=$ac_optarg ;;
  918. -includedir | --includedir | --includedi | --included | --include \
  919. | --includ | --inclu | --incl | --inc)
  920. ac_prev=includedir ;;
  921. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  922. | --includ=* | --inclu=* | --incl=* | --inc=*)
  923. includedir=$ac_optarg ;;
  924. -infodir | --infodir | --infodi | --infod | --info | --inf)
  925. ac_prev=infodir ;;
  926. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  927. infodir=$ac_optarg ;;
  928. -libdir | --libdir | --libdi | --libd)
  929. ac_prev=libdir ;;
  930. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  931. libdir=$ac_optarg ;;
  932. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  933. | --libexe | --libex | --libe)
  934. ac_prev=libexecdir ;;
  935. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  936. | --libexe=* | --libex=* | --libe=*)
  937. libexecdir=$ac_optarg ;;
  938. -localedir | --localedir | --localedi | --localed | --locale)
  939. ac_prev=localedir ;;
  940. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  941. localedir=$ac_optarg ;;
  942. -localstatedir | --localstatedir | --localstatedi | --localstated \
  943. | --localstate | --localstat | --localsta | --localst | --locals)
  944. ac_prev=localstatedir ;;
  945. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  946. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  947. localstatedir=$ac_optarg ;;
  948. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  949. ac_prev=mandir ;;
  950. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  951. mandir=$ac_optarg ;;
  952. -nfp | --nfp | --nf)
  953. # Obsolete; use --without-fp.
  954. with_fp=no ;;
  955. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  956. | --no-cr | --no-c | -n)
  957. no_create=yes ;;
  958. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  959. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  960. no_recursion=yes ;;
  961. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  962. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  963. | --oldin | --oldi | --old | --ol | --o)
  964. ac_prev=oldincludedir ;;
  965. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  966. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  967. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  968. oldincludedir=$ac_optarg ;;
  969. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  970. ac_prev=prefix ;;
  971. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  972. prefix=$ac_optarg ;;
  973. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  974. | --program-pre | --program-pr | --program-p)
  975. ac_prev=program_prefix ;;
  976. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  977. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  978. program_prefix=$ac_optarg ;;
  979. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  980. | --program-suf | --program-su | --program-s)
  981. ac_prev=program_suffix ;;
  982. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  983. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  984. program_suffix=$ac_optarg ;;
  985. -program-transform-name | --program-transform-name \
  986. | --program-transform-nam | --program-transform-na \
  987. | --program-transform-n | --program-transform- \
  988. | --program-transform | --program-transfor \
  989. | --program-transfo | --program-transf \
  990. | --program-trans | --program-tran \
  991. | --progr-tra | --program-tr | --program-t)
  992. ac_prev=program_transform_name ;;
  993. -program-transform-name=* | --program-transform-name=* \
  994. | --program-transform-nam=* | --program-transform-na=* \
  995. | --program-transform-n=* | --program-transform-=* \
  996. | --program-transform=* | --program-transfor=* \
  997. | --program-transfo=* | --program-transf=* \
  998. | --program-trans=* | --program-tran=* \
  999. | --progr-tra=* | --program-tr=* | --program-t=*)
  1000. program_transform_name=$ac_optarg ;;
  1001. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1002. ac_prev=pdfdir ;;
  1003. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1004. pdfdir=$ac_optarg ;;
  1005. -psdir | --psdir | --psdi | --psd | --ps)
  1006. ac_prev=psdir ;;
  1007. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1008. psdir=$ac_optarg ;;
  1009. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1010. | -silent | --silent | --silen | --sile | --sil)
  1011. silent=yes ;;
  1012. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1013. | --runstate | --runstat | --runsta | --runst | --runs \
  1014. | --run | --ru | --r)
  1015. ac_prev=runstatedir ;;
  1016. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1017. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1018. | --run=* | --ru=* | --r=*)
  1019. runstatedir=$ac_optarg ;;
  1020. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1021. ac_prev=sbindir ;;
  1022. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1023. | --sbi=* | --sb=*)
  1024. sbindir=$ac_optarg ;;
  1025. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1026. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1027. | --sharedst | --shareds | --shared | --share | --shar \
  1028. | --sha | --sh)
  1029. ac_prev=sharedstatedir ;;
  1030. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1031. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1032. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1033. | --sha=* | --sh=*)
  1034. sharedstatedir=$ac_optarg ;;
  1035. -site | --site | --sit)
  1036. ac_prev=site ;;
  1037. -site=* | --site=* | --sit=*)
  1038. site=$ac_optarg ;;
  1039. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1040. ac_prev=srcdir ;;
  1041. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1042. srcdir=$ac_optarg ;;
  1043. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1044. | --syscon | --sysco | --sysc | --sys | --sy)
  1045. ac_prev=sysconfdir ;;
  1046. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1047. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1048. sysconfdir=$ac_optarg ;;
  1049. -target | --target | --targe | --targ | --tar | --ta | --t)
  1050. ac_prev=target_alias ;;
  1051. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1052. target_alias=$ac_optarg ;;
  1053. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1054. verbose=yes ;;
  1055. -version | --version | --versio | --versi | --vers | -V)
  1056. ac_init_version=: ;;
  1057. -with-* | --with-*)
  1058. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1059. # Reject names that are not valid shell variable names.
  1060. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1061. as_fn_error $? "invalid package name: $ac_useropt"
  1062. ac_useropt_orig=$ac_useropt
  1063. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1064. case $ac_user_opts in
  1065. *"
  1066. "with_$ac_useropt"
  1067. "*) ;;
  1068. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1069. ac_unrecognized_sep=', ';;
  1070. esac
  1071. eval with_$ac_useropt=\$ac_optarg ;;
  1072. -without-* | --without-*)
  1073. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1074. # Reject names that are not valid shell variable names.
  1075. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1076. as_fn_error $? "invalid package name: $ac_useropt"
  1077. ac_useropt_orig=$ac_useropt
  1078. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1079. case $ac_user_opts in
  1080. *"
  1081. "with_$ac_useropt"
  1082. "*) ;;
  1083. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1084. ac_unrecognized_sep=', ';;
  1085. esac
  1086. eval with_$ac_useropt=no ;;
  1087. --x)
  1088. # Obsolete; use --with-x.
  1089. with_x=yes ;;
  1090. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1091. | --x-incl | --x-inc | --x-in | --x-i)
  1092. ac_prev=x_includes ;;
  1093. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1094. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1095. x_includes=$ac_optarg ;;
  1096. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1097. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1098. ac_prev=x_libraries ;;
  1099. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1100. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1101. x_libraries=$ac_optarg ;;
  1102. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1103. Try \`$0 --help' for more information"
  1104. ;;
  1105. *=*)
  1106. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1107. # Reject names that are not valid shell variable names.
  1108. case $ac_envvar in #(
  1109. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1110. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1111. esac
  1112. eval $ac_envvar=\$ac_optarg
  1113. export $ac_envvar ;;
  1114. *)
  1115. # FIXME: should be removed in autoconf 3.0.
  1116. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1117. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1118. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1119. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1120. ;;
  1121. esac
  1122. done
  1123. if test -n "$ac_prev"; then
  1124. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1125. as_fn_error $? "missing argument to $ac_option"
  1126. fi
  1127. if test -n "$ac_unrecognized_opts"; then
  1128. case $enable_option_checking in
  1129. no) ;;
  1130. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1131. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1132. esac
  1133. fi
  1134. # Check all directory arguments for consistency.
  1135. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1136. datadir sysconfdir sharedstatedir localstatedir includedir \
  1137. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1138. libdir localedir mandir runstatedir
  1139. do
  1140. eval ac_val=\$$ac_var
  1141. # Remove trailing slashes.
  1142. case $ac_val in
  1143. */ )
  1144. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1145. eval $ac_var=\$ac_val;;
  1146. esac
  1147. # Be sure to have absolute directory names.
  1148. case $ac_val in
  1149. [\\/$]* | ?:[\\/]* ) continue;;
  1150. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1151. esac
  1152. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1153. done
  1154. # There might be people who depend on the old broken behavior: `$host'
  1155. # used to hold the argument of --host etc.
  1156. # FIXME: To remove some day.
  1157. build=$build_alias
  1158. host=$host_alias
  1159. target=$target_alias
  1160. # FIXME: To remove some day.
  1161. if test "x$host_alias" != x; then
  1162. if test "x$build_alias" = x; then
  1163. cross_compiling=maybe
  1164. elif test "x$build_alias" != "x$host_alias"; then
  1165. cross_compiling=yes
  1166. fi
  1167. fi
  1168. ac_tool_prefix=
  1169. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1170. test "$silent" = yes && exec 6>/dev/null
  1171. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1172. ac_ls_di=`ls -di .` &&
  1173. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1174. as_fn_error $? "working directory cannot be determined"
  1175. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1176. as_fn_error $? "pwd does not report name of working directory"
  1177. # Find the source files, if location was not specified.
  1178. if test -z "$srcdir"; then
  1179. ac_srcdir_defaulted=yes
  1180. # Try the directory containing this script, then the parent directory.
  1181. ac_confdir=`$as_dirname -- "$as_myself" ||
  1182. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1183. X"$as_myself" : 'X\(//\)[^/]' \| \
  1184. X"$as_myself" : 'X\(//\)$' \| \
  1185. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1186. $as_echo X"$as_myself" |
  1187. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1188. s//\1/
  1189. q
  1190. }
  1191. /^X\(\/\/\)[^/].*/{
  1192. s//\1/
  1193. q
  1194. }
  1195. /^X\(\/\/\)$/{
  1196. s//\1/
  1197. q
  1198. }
  1199. /^X\(\/\).*/{
  1200. s//\1/
  1201. q
  1202. }
  1203. s/.*/./; q'`
  1204. srcdir=$ac_confdir
  1205. if test ! -r "$srcdir/$ac_unique_file"; then
  1206. srcdir=..
  1207. fi
  1208. else
  1209. ac_srcdir_defaulted=no
  1210. fi
  1211. if test ! -r "$srcdir/$ac_unique_file"; then
  1212. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1213. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1214. fi
  1215. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1216. ac_abs_confdir=`(
  1217. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1218. pwd)`
  1219. # When building in place, set srcdir=.
  1220. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1221. srcdir=.
  1222. fi
  1223. # Remove unnecessary trailing slashes from srcdir.
  1224. # Double slashes in file names in object file debugging info
  1225. # mess up M-x gdb in Emacs.
  1226. case $srcdir in
  1227. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1228. esac
  1229. for ac_var in $ac_precious_vars; do
  1230. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1231. eval ac_env_${ac_var}_value=\$${ac_var}
  1232. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1233. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1234. done
  1235. #
  1236. # Report the --help message.
  1237. #
  1238. if test "$ac_init_help" = "long"; then
  1239. # Omit some internal or obsolete options to make the list less imposing.
  1240. # This message is too long to be a string in the A/UX 3.1 sh.
  1241. cat <<_ACEOF
  1242. \`configure' configures libpqxx 7.7.3 to adapt to many kinds of systems.
  1243. Usage: $0 [OPTION]... [VAR=VALUE]...
  1244. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1245. VAR=VALUE. See below for descriptions of some of the useful variables.
  1246. Defaults for the options are specified in brackets.
  1247. Configuration:
  1248. -h, --help display this help and exit
  1249. --help=short display options specific to this package
  1250. --help=recursive display the short help of all the included packages
  1251. -V, --version display version information and exit
  1252. -q, --quiet, --silent do not print \`checking ...' messages
  1253. --cache-file=FILE cache test results in FILE [disabled]
  1254. -C, --config-cache alias for \`--cache-file=config.cache'
  1255. -n, --no-create do not create output files
  1256. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1257. Installation directories:
  1258. --prefix=PREFIX install architecture-independent files in PREFIX
  1259. [$ac_default_prefix]
  1260. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1261. [PREFIX]
  1262. By default, \`make install' will install all the files in
  1263. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1264. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1265. for instance \`--prefix=\$HOME'.
  1266. For better control, use the options below.
  1267. Fine tuning of the installation directories:
  1268. --bindir=DIR user executables [EPREFIX/bin]
  1269. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1270. --libexecdir=DIR program executables [EPREFIX/libexec]
  1271. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1272. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1273. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1274. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1275. --libdir=DIR object code libraries [EPREFIX/lib]
  1276. --includedir=DIR C header files [PREFIX/include]
  1277. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1278. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1279. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1280. --infodir=DIR info documentation [DATAROOTDIR/info]
  1281. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1282. --mandir=DIR man documentation [DATAROOTDIR/man]
  1283. --docdir=DIR documentation root [DATAROOTDIR/doc/libpqxx]
  1284. --htmldir=DIR html documentation [DOCDIR]
  1285. --dvidir=DIR dvi documentation [DOCDIR]
  1286. --pdfdir=DIR pdf documentation [DOCDIR]
  1287. --psdir=DIR ps documentation [DOCDIR]
  1288. _ACEOF
  1289. cat <<\_ACEOF
  1290. Program names:
  1291. --program-prefix=PREFIX prepend PREFIX to installed program names
  1292. --program-suffix=SUFFIX append SUFFIX to installed program names
  1293. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1294. System types:
  1295. --build=BUILD configure for building on BUILD [guessed]
  1296. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1297. _ACEOF
  1298. fi
  1299. if test -n "$ac_init_help"; then
  1300. case $ac_init_help in
  1301. short | recursive ) echo "Configuration of libpqxx 7.7.3:";;
  1302. esac
  1303. cat <<\_ACEOF
  1304. Optional Features:
  1305. --disable-option-checking ignore unrecognized --enable/--with options
  1306. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1307. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1308. --enable-silent-rules less verbose build output (undo: "make V=1")
  1309. --disable-silent-rules verbose build output (undo: "make V=0")
  1310. --enable-dependency-tracking
  1311. do not reject slow dependency extractors
  1312. --disable-dependency-tracking
  1313. speeds up one-time build
  1314. --enable-shared[=PKGS] build shared libraries [default=no]
  1315. --enable-static[=PKGS] build static libraries [default=yes]
  1316. --enable-fast-install[=PKGS]
  1317. optimize for fast installation [default=yes]
  1318. --disable-libtool-lock avoid locking (might break parallel builds)
  1319. --enable-documentation Generate documentation
  1320. --enable-maintainer-mode
  1321. enable make rules and dependencies not useful (and
  1322. sometimes confusing) to the casual installer
  1323. Optional Packages:
  1324. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1325. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1326. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1327. both]
  1328. --with-aix-soname=aix|svr4|both
  1329. shared library versioning (aka "SONAME") variant to
  1330. provide on AIX, [default=aix].
  1331. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1332. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1333. compiler's sysroot if not specified).
  1334. --with-postgres-include=DIR
  1335. Use PostgreSQL includes from DIR. Defaults to
  1336. querying pg_config or pkg-config, whichever is
  1337. available.
  1338. --with-postgres-lib=DIR Use PostgreSQL libraries from DIR. Defaults to
  1339. querying pg_config.
  1340. Some influential environment variables:
  1341. CXX C++ compiler command
  1342. CXXFLAGS C++ compiler flags
  1343. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1344. nonstandard directory <lib dir>
  1345. LIBS libraries to pass to the linker, e.g. -l<library>
  1346. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1347. you have headers in a nonstandard directory <include dir>
  1348. CC C compiler command
  1349. CFLAGS C compiler flags
  1350. LT_SYS_LIBRARY_PATH
  1351. User-defined run-time library search path.
  1352. CPP C preprocessor
  1353. CXXCPP C++ preprocessor
  1354. DOXYGEN Path to doxygen needed to build reference documentation
  1355. HAVE_DOT Variable used by doxygen to declare availibility of dot
  1356. Use these variables to override the choices made by `configure' or to help
  1357. it to find libraries and programs with nonstandard names/locations.
  1358. Report bugs to <Jeroen T. Vermeulen>.
  1359. _ACEOF
  1360. ac_status=$?
  1361. fi
  1362. if test "$ac_init_help" = "recursive"; then
  1363. # If there are subdirs, report their specific --help.
  1364. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1365. test -d "$ac_dir" ||
  1366. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1367. continue
  1368. ac_builddir=.
  1369. case "$ac_dir" in
  1370. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1371. *)
  1372. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1373. # A ".." for each directory in $ac_dir_suffix.
  1374. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1375. case $ac_top_builddir_sub in
  1376. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1377. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1378. esac ;;
  1379. esac
  1380. ac_abs_top_builddir=$ac_pwd
  1381. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1382. # for backward compatibility:
  1383. ac_top_builddir=$ac_top_build_prefix
  1384. case $srcdir in
  1385. .) # We are building in place.
  1386. ac_srcdir=.
  1387. ac_top_srcdir=$ac_top_builddir_sub
  1388. ac_abs_top_srcdir=$ac_pwd ;;
  1389. [\\/]* | ?:[\\/]* ) # Absolute name.
  1390. ac_srcdir=$srcdir$ac_dir_suffix;
  1391. ac_top_srcdir=$srcdir
  1392. ac_abs_top_srcdir=$srcdir ;;
  1393. *) # Relative name.
  1394. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1395. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1396. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1397. esac
  1398. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1399. cd "$ac_dir" || { ac_status=$?; continue; }
  1400. # Check for guested configure.
  1401. if test -f "$ac_srcdir/configure.gnu"; then
  1402. echo &&
  1403. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1404. elif test -f "$ac_srcdir/configure"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure" --help=recursive
  1407. else
  1408. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1409. fi || ac_status=$?
  1410. cd "$ac_pwd" || { ac_status=$?; break; }
  1411. done
  1412. fi
  1413. test -n "$ac_init_help" && exit $ac_status
  1414. if $ac_init_version; then
  1415. cat <<\_ACEOF
  1416. libpqxx configure 7.7.3
  1417. generated by GNU Autoconf 2.69
  1418. Copyright (C) 2012 Free Software Foundation, Inc.
  1419. This configure script is free software; the Free Software Foundation
  1420. gives unlimited permission to copy, distribute and modify it.
  1421. _ACEOF
  1422. exit
  1423. fi
  1424. ## ------------------------ ##
  1425. ## Autoconf initialization. ##
  1426. ## ------------------------ ##
  1427. # ac_fn_cxx_try_compile LINENO
  1428. # ----------------------------
  1429. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1430. ac_fn_cxx_try_compile ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. rm -f conftest.$ac_objext
  1434. if { { ac_try="$ac_compile"
  1435. case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_compile") 2>conftest.err
  1442. ac_status=$?
  1443. if test -s conftest.err; then
  1444. grep -v '^ *+' conftest.err >conftest.er1
  1445. cat conftest.er1 >&5
  1446. mv -f conftest.er1 conftest.err
  1447. fi
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && {
  1450. test -z "$ac_cxx_werror_flag" ||
  1451. test ! -s conftest.err
  1452. } && test -s conftest.$ac_objext; then :
  1453. ac_retval=0
  1454. else
  1455. $as_echo "$as_me: failed program was:" >&5
  1456. sed 's/^/| /' conftest.$ac_ext >&5
  1457. ac_retval=1
  1458. fi
  1459. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1460. as_fn_set_status $ac_retval
  1461. } # ac_fn_cxx_try_compile
  1462. # ac_fn_c_try_compile LINENO
  1463. # --------------------------
  1464. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1465. ac_fn_c_try_compile ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. rm -f conftest.$ac_objext
  1469. if { { ac_try="$ac_compile"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_compile") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } && {
  1485. test -z "$ac_c_werror_flag" ||
  1486. test ! -s conftest.err
  1487. } && test -s conftest.$ac_objext; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_c_try_compile
  1497. # ac_fn_c_try_link LINENO
  1498. # -----------------------
  1499. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_link ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. rm -f conftest.$ac_objext conftest$ac_exeext
  1504. if { { ac_try="$ac_link"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. $as_echo "$ac_try_echo"; } >&5
  1511. (eval "$ac_link") 2>conftest.err
  1512. ac_status=$?
  1513. if test -s conftest.err; then
  1514. grep -v '^ *+' conftest.err >conftest.er1
  1515. cat conftest.er1 >&5
  1516. mv -f conftest.er1 conftest.err
  1517. fi
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && {
  1520. test -z "$ac_c_werror_flag" ||
  1521. test ! -s conftest.err
  1522. } && test -s conftest$ac_exeext && {
  1523. test "$cross_compiling" = yes ||
  1524. test -x conftest$ac_exeext
  1525. }; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=1
  1531. fi
  1532. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1533. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1534. # interfere with the next link command; also delete a directory that is
  1535. # left behind by Apple's compiler. We do this before executing the actions.
  1536. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1537. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1538. as_fn_set_status $ac_retval
  1539. } # ac_fn_c_try_link
  1540. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1541. # -------------------------------------------------------
  1542. # Tests whether HEADER exists and can be compiled using the include files in
  1543. # INCLUDES, setting the cache variable VAR accordingly.
  1544. ac_fn_c_check_header_compile ()
  1545. {
  1546. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1548. $as_echo_n "checking for $2... " >&6; }
  1549. if eval \${$3+:} false; then :
  1550. $as_echo_n "(cached) " >&6
  1551. else
  1552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1553. /* end confdefs.h. */
  1554. $4
  1555. #include <$2>
  1556. _ACEOF
  1557. if ac_fn_c_try_compile "$LINENO"; then :
  1558. eval "$3=yes"
  1559. else
  1560. eval "$3=no"
  1561. fi
  1562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1563. fi
  1564. eval ac_res=\$$3
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1566. $as_echo "$ac_res" >&6; }
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. } # ac_fn_c_check_header_compile
  1569. # ac_fn_c_try_cpp LINENO
  1570. # ----------------------
  1571. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1572. ac_fn_c_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; } > conftest.i && {
  1591. test -z "$ac_c_preproc_warn_flag$ac_c_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; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_cpp
  1603. # ac_fn_c_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_c_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; ${as_lineno_stack:+:} unset as_lineno
  1640. as_fn_set_status $ac_retval
  1641. } # ac_fn_c_try_run
  1642. # ac_fn_c_check_func LINENO FUNC VAR
  1643. # ----------------------------------
  1644. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1645. ac_fn_c_check_func ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1649. $as_echo_n "checking for $2... " >&6; }
  1650. if eval \${$3+:} false; then :
  1651. $as_echo_n "(cached) " >&6
  1652. else
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1656. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1657. #define $2 innocuous_$2
  1658. /* System header to define __stub macros and hopefully few prototypes,
  1659. which can conflict with char $2 (); below.
  1660. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1661. <limits.h> exists even on freestanding compilers. */
  1662. #ifdef __STDC__
  1663. # include <limits.h>
  1664. #else
  1665. # include <assert.h>
  1666. #endif
  1667. #undef $2
  1668. /* Override any GCC internal prototype to avoid an error.
  1669. Use char because int might match the return type of a GCC
  1670. builtin and then its argument prototype would still apply. */
  1671. #ifdef __cplusplus
  1672. extern "C"
  1673. #endif
  1674. char $2 ();
  1675. /* The GNU C library defines this for functions which it implements
  1676. to always fail with ENOSYS. Some functions are actually named
  1677. something starting with __ and the normal name is an alias. */
  1678. #if defined __stub_$2 || defined __stub___$2
  1679. choke me
  1680. #endif
  1681. int
  1682. main ()
  1683. {
  1684. return $2 ();
  1685. ;
  1686. return 0;
  1687. }
  1688. _ACEOF
  1689. if ac_fn_c_try_link "$LINENO"; then :
  1690. eval "$3=yes"
  1691. else
  1692. eval "$3=no"
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext \
  1695. conftest$ac_exeext conftest.$ac_ext
  1696. fi
  1697. eval ac_res=\$$3
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1699. $as_echo "$ac_res" >&6; }
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. } # ac_fn_c_check_func
  1702. # ac_fn_cxx_try_cpp LINENO
  1703. # ------------------------
  1704. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1705. ac_fn_cxx_try_cpp ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } > conftest.i && {
  1724. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1725. test ! -s conftest.err
  1726. }; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_cpp
  1736. # ac_fn_cxx_try_link LINENO
  1737. # -------------------------
  1738. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_cxx_try_link ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext conftest$ac_exeext
  1743. if { { ac_try="$ac_link"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_link") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_cxx_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest$ac_exeext && {
  1762. test "$cross_compiling" = yes ||
  1763. test -x conftest$ac_exeext
  1764. }; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1772. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1773. # interfere with the next link command; also delete a directory that is
  1774. # left behind by Apple's compiler. We do this before executing the actions.
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_cxx_try_link
  1779. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1780. # ---------------------------------------------------------
  1781. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1782. # the include files in INCLUDES and setting the cache variable VAR
  1783. # accordingly.
  1784. ac_fn_cxx_check_header_mongrel ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. if eval \${$3+:} false; then :
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1789. $as_echo_n "checking for $2... " >&6; }
  1790. if eval \${$3+:} false; then :
  1791. $as_echo_n "(cached) " >&6
  1792. fi
  1793. eval ac_res=\$$3
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1795. $as_echo "$ac_res" >&6; }
  1796. else
  1797. # Is the header compilable?
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1799. $as_echo_n "checking $2 usability... " >&6; }
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. #include <$2>
  1804. _ACEOF
  1805. if ac_fn_cxx_try_compile "$LINENO"; then :
  1806. ac_header_compiler=yes
  1807. else
  1808. ac_header_compiler=no
  1809. fi
  1810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1812. $as_echo "$ac_header_compiler" >&6; }
  1813. # Is the header present?
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1815. $as_echo_n "checking $2 presence... " >&6; }
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. #include <$2>
  1819. _ACEOF
  1820. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1821. ac_header_preproc=yes
  1822. else
  1823. ac_header_preproc=no
  1824. fi
  1825. rm -f conftest.err conftest.i conftest.$ac_ext
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1827. $as_echo "$ac_header_preproc" >&6; }
  1828. # So? What about this header?
  1829. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1830. yes:no: )
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1832. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1834. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1835. ;;
  1836. no:yes:* )
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1838. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1840. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1842. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1844. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1846. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1847. ( $as_echo "## ---------------------------------- ##
  1848. ## Report this to Jeroen T. Vermeulen ##
  1849. ## ---------------------------------- ##"
  1850. ) | sed "s/^/$as_me: WARNING: /" >&2
  1851. ;;
  1852. esac
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1854. $as_echo_n "checking for $2... " >&6; }
  1855. if eval \${$3+:} false; then :
  1856. $as_echo_n "(cached) " >&6
  1857. else
  1858. eval "$3=\$ac_header_compiler"
  1859. fi
  1860. eval ac_res=\$$3
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1862. $as_echo "$ac_res" >&6; }
  1863. fi
  1864. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1865. } # ac_fn_cxx_check_header_mongrel
  1866. cat >config.log <<_ACEOF
  1867. This file contains any messages produced by compilers while
  1868. running configure, to aid debugging if configure makes a mistake.
  1869. It was created by libpqxx $as_me 7.7.3, which was
  1870. generated by GNU Autoconf 2.69. Invocation command line was
  1871. $ $0 $@
  1872. _ACEOF
  1873. exec 5>>config.log
  1874. {
  1875. cat <<_ASUNAME
  1876. ## --------- ##
  1877. ## Platform. ##
  1878. ## --------- ##
  1879. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1880. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1881. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1882. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1883. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1884. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1885. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1886. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1887. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1888. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1889. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1890. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1891. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1892. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1893. _ASUNAME
  1894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1895. for as_dir in $PATH
  1896. do
  1897. IFS=$as_save_IFS
  1898. test -z "$as_dir" && as_dir=.
  1899. $as_echo "PATH: $as_dir"
  1900. done
  1901. IFS=$as_save_IFS
  1902. } >&5
  1903. cat >&5 <<_ACEOF
  1904. ## ----------- ##
  1905. ## Core tests. ##
  1906. ## ----------- ##
  1907. _ACEOF
  1908. # Keep a trace of the command line.
  1909. # Strip out --no-create and --no-recursion so they do not pile up.
  1910. # Strip out --silent because we don't want to record it for future runs.
  1911. # Also quote any args containing shell meta-characters.
  1912. # Make two passes to allow for proper duplicate-argument suppression.
  1913. ac_configure_args=
  1914. ac_configure_args0=
  1915. ac_configure_args1=
  1916. ac_must_keep_next=false
  1917. for ac_pass in 1 2
  1918. do
  1919. for ac_arg
  1920. do
  1921. case $ac_arg in
  1922. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1924. | -silent | --silent | --silen | --sile | --sil)
  1925. continue ;;
  1926. *\'*)
  1927. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1928. esac
  1929. case $ac_pass in
  1930. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1931. 2)
  1932. as_fn_append ac_configure_args1 " '$ac_arg'"
  1933. if test $ac_must_keep_next = true; then
  1934. ac_must_keep_next=false # Got value, back to normal.
  1935. else
  1936. case $ac_arg in
  1937. *=* | --config-cache | -C | -disable-* | --disable-* \
  1938. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1939. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1940. | -with-* | --with-* | -without-* | --without-* | --x)
  1941. case "$ac_configure_args0 " in
  1942. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1943. esac
  1944. ;;
  1945. -* ) ac_must_keep_next=true ;;
  1946. esac
  1947. fi
  1948. as_fn_append ac_configure_args " '$ac_arg'"
  1949. ;;
  1950. esac
  1951. done
  1952. done
  1953. { ac_configure_args0=; unset ac_configure_args0;}
  1954. { ac_configure_args1=; unset ac_configure_args1;}
  1955. # When interrupted or exit'd, cleanup temporary files, and complete
  1956. # config.log. We remove comments because anyway the quotes in there
  1957. # would cause problems or look ugly.
  1958. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1959. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1960. trap 'exit_status=$?
  1961. # Save into config.log some information that might help in debugging.
  1962. {
  1963. echo
  1964. $as_echo "## ---------------- ##
  1965. ## Cache variables. ##
  1966. ## ---------------- ##"
  1967. echo
  1968. # The following way of writing the cache mishandles newlines in values,
  1969. (
  1970. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in #(
  1973. *${as_nl}*)
  1974. case $ac_var in #(
  1975. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1976. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1977. esac
  1978. case $ac_var in #(
  1979. _ | IFS | as_nl) ;; #(
  1980. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1981. *) { eval $ac_var=; unset $ac_var;} ;;
  1982. esac ;;
  1983. esac
  1984. done
  1985. (set) 2>&1 |
  1986. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1987. *${as_nl}ac_space=\ *)
  1988. sed -n \
  1989. "s/'\''/'\''\\\\'\'''\''/g;
  1990. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1991. ;; #(
  1992. *)
  1993. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1994. ;;
  1995. esac |
  1996. sort
  1997. )
  1998. echo
  1999. $as_echo "## ----------------- ##
  2000. ## Output variables. ##
  2001. ## ----------------- ##"
  2002. echo
  2003. for ac_var in $ac_subst_vars
  2004. do
  2005. eval ac_val=\$$ac_var
  2006. case $ac_val in
  2007. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2008. esac
  2009. $as_echo "$ac_var='\''$ac_val'\''"
  2010. done | sort
  2011. echo
  2012. if test -n "$ac_subst_files"; then
  2013. $as_echo "## ------------------- ##
  2014. ## File substitutions. ##
  2015. ## ------------------- ##"
  2016. echo
  2017. for ac_var in $ac_subst_files
  2018. do
  2019. eval ac_val=\$$ac_var
  2020. case $ac_val in
  2021. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2022. esac
  2023. $as_echo "$ac_var='\''$ac_val'\''"
  2024. done | sort
  2025. echo
  2026. fi
  2027. if test -s confdefs.h; then
  2028. $as_echo "## ----------- ##
  2029. ## confdefs.h. ##
  2030. ## ----------- ##"
  2031. echo
  2032. cat confdefs.h
  2033. echo
  2034. fi
  2035. test "$ac_signal" != 0 &&
  2036. $as_echo "$as_me: caught signal $ac_signal"
  2037. $as_echo "$as_me: exit $exit_status"
  2038. } >&5
  2039. rm -f core *.core core.conftest.* &&
  2040. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2041. exit $exit_status
  2042. ' 0
  2043. for ac_signal in 1 2 13 15; do
  2044. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2045. done
  2046. ac_signal=0
  2047. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2048. rm -f -r conftest* confdefs.h
  2049. $as_echo "/* confdefs.h */" > confdefs.h
  2050. # Predefined preprocessor variables.
  2051. cat >>confdefs.h <<_ACEOF
  2052. #define PACKAGE_NAME "$PACKAGE_NAME"
  2053. _ACEOF
  2054. cat >>confdefs.h <<_ACEOF
  2055. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2056. _ACEOF
  2057. cat >>confdefs.h <<_ACEOF
  2058. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2059. _ACEOF
  2060. cat >>confdefs.h <<_ACEOF
  2061. #define PACKAGE_STRING "$PACKAGE_STRING"
  2062. _ACEOF
  2063. cat >>confdefs.h <<_ACEOF
  2064. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2065. _ACEOF
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define PACKAGE_URL "$PACKAGE_URL"
  2068. _ACEOF
  2069. # Let the site file select an alternate cache file if it wants to.
  2070. # Prefer an explicitly selected file to automatically selected ones.
  2071. ac_site_file1=NONE
  2072. ac_site_file2=NONE
  2073. if test -n "$CONFIG_SITE"; then
  2074. # We do not want a PATH search for config.site.
  2075. case $CONFIG_SITE in #((
  2076. -*) ac_site_file1=./$CONFIG_SITE;;
  2077. */*) ac_site_file1=$CONFIG_SITE;;
  2078. *) ac_site_file1=./$CONFIG_SITE;;
  2079. esac
  2080. elif test "x$prefix" != xNONE; then
  2081. ac_site_file1=$prefix/share/config.site
  2082. ac_site_file2=$prefix/etc/config.site
  2083. else
  2084. ac_site_file1=$ac_default_prefix/share/config.site
  2085. ac_site_file2=$ac_default_prefix/etc/config.site
  2086. fi
  2087. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2088. do
  2089. test "x$ac_site_file" = xNONE && continue
  2090. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2092. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2093. sed 's/^/| /' "$ac_site_file" >&5
  2094. . "$ac_site_file" \
  2095. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2097. as_fn_error $? "failed to load site script $ac_site_file
  2098. See \`config.log' for more details" "$LINENO" 5; }
  2099. fi
  2100. done
  2101. if test -r "$cache_file"; then
  2102. # Some versions of bash will fail to source /dev/null (special files
  2103. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2104. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2106. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2107. case $cache_file in
  2108. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2109. *) . "./$cache_file";;
  2110. esac
  2111. fi
  2112. else
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2114. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2115. >$cache_file
  2116. fi
  2117. # Check that the precious variables saved in the cache have kept the same
  2118. # value.
  2119. ac_cache_corrupted=false
  2120. for ac_var in $ac_precious_vars; do
  2121. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2122. eval ac_new_set=\$ac_env_${ac_var}_set
  2123. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2124. eval ac_new_val=\$ac_env_${ac_var}_value
  2125. case $ac_old_set,$ac_new_set in
  2126. set,)
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2128. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2129. ac_cache_corrupted=: ;;
  2130. ,set)
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2132. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2133. ac_cache_corrupted=: ;;
  2134. ,);;
  2135. *)
  2136. if test "x$ac_old_val" != "x$ac_new_val"; then
  2137. # differences in whitespace do not lead to failure.
  2138. ac_old_val_w=`echo x $ac_old_val`
  2139. ac_new_val_w=`echo x $ac_new_val`
  2140. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2142. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2143. ac_cache_corrupted=:
  2144. else
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2146. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2147. eval $ac_var=\$ac_old_val
  2148. fi
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2150. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2152. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2153. fi;;
  2154. esac
  2155. # Pass precious variables to config.status.
  2156. if test "$ac_new_set" = set; then
  2157. case $ac_new_val in
  2158. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2159. *) ac_arg=$ac_var=$ac_new_val ;;
  2160. esac
  2161. case " $ac_configure_args " in
  2162. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2163. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2164. esac
  2165. fi
  2166. done
  2167. if $ac_cache_corrupted; then
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2171. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2172. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2173. fi
  2174. ## -------------------- ##
  2175. ## Main body of script. ##
  2176. ## -------------------- ##
  2177. ac_ext=c
  2178. ac_cpp='$CPP $CPPFLAGS'
  2179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2182. ac_ext=cpp
  2183. ac_cpp='$CXXCPP $CPPFLAGS'
  2184. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2185. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2187. ac_aux_dir=
  2188. for ac_dir in config "$srcdir"/config; do
  2189. if test -f "$ac_dir/install-sh"; then
  2190. ac_aux_dir=$ac_dir
  2191. ac_install_sh="$ac_aux_dir/install-sh -c"
  2192. break
  2193. elif test -f "$ac_dir/install.sh"; then
  2194. ac_aux_dir=$ac_dir
  2195. ac_install_sh="$ac_aux_dir/install.sh -c"
  2196. break
  2197. elif test -f "$ac_dir/shtool"; then
  2198. ac_aux_dir=$ac_dir
  2199. ac_install_sh="$ac_aux_dir/shtool install -c"
  2200. break
  2201. fi
  2202. done
  2203. if test -z "$ac_aux_dir"; then
  2204. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2205. fi
  2206. # These three variables are undocumented and unsupported,
  2207. # and are intended to be withdrawn in a future Autoconf release.
  2208. # They can cause serious problems if a builder's source tree is in a directory
  2209. # whose full name contains unusual characters.
  2210. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2211. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2212. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2213. am__api_version='1.16'
  2214. # Find a good install program. We prefer a C program (faster),
  2215. # so one script is as good as another. But avoid the broken or
  2216. # incompatible versions:
  2217. # SysV /etc/install, /usr/sbin/install
  2218. # SunOS /usr/etc/install
  2219. # IRIX /sbin/install
  2220. # AIX /bin/install
  2221. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2222. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2223. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2224. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2225. # OS/2's system install, which has a completely different semantic
  2226. # ./install, which can be erroneously created by make from ./install.sh.
  2227. # Reject install programs that cannot install multiple files.
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2229. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2230. if test -z "$INSTALL"; then
  2231. if ${ac_cv_path_install+:} false; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2235. for as_dir in $PATH
  2236. do
  2237. IFS=$as_save_IFS
  2238. test -z "$as_dir" && as_dir=.
  2239. # Account for people who put trailing slashes in PATH elements.
  2240. case $as_dir/ in #((
  2241. ./ | .// | /[cC]/* | \
  2242. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2243. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2244. /usr/ucb/* ) ;;
  2245. *)
  2246. # OSF1 and SCO ODT 3.0 have their own names for install.
  2247. # Don't use installbsd from OSF since it installs stuff as root
  2248. # by default.
  2249. for ac_prog in ginstall scoinst install; do
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2252. if test $ac_prog = install &&
  2253. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2254. # AIX install. It has an incompatible calling convention.
  2255. :
  2256. elif test $ac_prog = install &&
  2257. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2258. # program-specific install script used by HP pwplus--don't use.
  2259. :
  2260. else
  2261. rm -rf conftest.one conftest.two conftest.dir
  2262. echo one > conftest.one
  2263. echo two > conftest.two
  2264. mkdir conftest.dir
  2265. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2266. test -s conftest.one && test -s conftest.two &&
  2267. test -s conftest.dir/conftest.one &&
  2268. test -s conftest.dir/conftest.two
  2269. then
  2270. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2271. break 3
  2272. fi
  2273. fi
  2274. fi
  2275. done
  2276. done
  2277. ;;
  2278. esac
  2279. done
  2280. IFS=$as_save_IFS
  2281. rm -rf conftest.one conftest.two conftest.dir
  2282. fi
  2283. if test "${ac_cv_path_install+set}" = set; then
  2284. INSTALL=$ac_cv_path_install
  2285. else
  2286. # As a last resort, use the slow shell script. Don't cache a
  2287. # value for INSTALL within a source directory, because that will
  2288. # break other packages using the cache if that directory is
  2289. # removed, or if the value is a relative name.
  2290. INSTALL=$ac_install_sh
  2291. fi
  2292. fi
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2294. $as_echo "$INSTALL" >&6; }
  2295. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2296. # It thinks the first close brace ends the variable substitution.
  2297. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2298. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2299. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2301. $as_echo_n "checking whether build environment is sane... " >&6; }
  2302. # Reject unsafe characters in $srcdir or the absolute working directory
  2303. # name. Accept space and tab only in the latter.
  2304. am_lf='
  2305. '
  2306. case `pwd` in
  2307. *[\\\"\#\$\&\'\`$am_lf]*)
  2308. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2309. esac
  2310. case $srcdir in
  2311. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2312. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2313. esac
  2314. # Do 'set' in a subshell so we don't clobber the current shell's
  2315. # arguments. Must try -L first in case configure is actually a
  2316. # symlink; some systems play weird games with the mod time of symlinks
  2317. # (eg FreeBSD returns the mod time of the symlink's containing
  2318. # directory).
  2319. if (
  2320. am_has_slept=no
  2321. for am_try in 1 2; do
  2322. echo "timestamp, slept: $am_has_slept" > conftest.file
  2323. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2324. if test "$*" = "X"; then
  2325. # -L didn't work.
  2326. set X `ls -t "$srcdir/configure" conftest.file`
  2327. fi
  2328. if test "$*" != "X $srcdir/configure conftest.file" \
  2329. && test "$*" != "X conftest.file $srcdir/configure"; then
  2330. # If neither matched, then we have a broken ls. This can happen
  2331. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2332. # broken ls alias from the environment. This has actually
  2333. # happened. Such a system could not be considered "sane".
  2334. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2335. alias in your environment" "$LINENO" 5
  2336. fi
  2337. if test "$2" = conftest.file || test $am_try -eq 2; then
  2338. break
  2339. fi
  2340. # Just in case.
  2341. sleep 1
  2342. am_has_slept=yes
  2343. done
  2344. test "$2" = conftest.file
  2345. )
  2346. then
  2347. # Ok.
  2348. :
  2349. else
  2350. as_fn_error $? "newly created file is older than distributed files!
  2351. Check your system clock" "$LINENO" 5
  2352. fi
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2354. $as_echo "yes" >&6; }
  2355. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2356. # generated files are strictly newer.
  2357. am_sleep_pid=
  2358. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2359. ( sleep 1 ) &
  2360. am_sleep_pid=$!
  2361. fi
  2362. rm -f conftest.file
  2363. test "$program_prefix" != NONE &&
  2364. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2365. # Use a double $ so make ignores it.
  2366. test "$program_suffix" != NONE &&
  2367. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2368. # Double any \ or $.
  2369. # By default was `s,x,x', remove it if useless.
  2370. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2371. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2372. # Expand $ac_aux_dir to an absolute path.
  2373. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2374. if test x"${MISSING+set}" != xset; then
  2375. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2376. fi
  2377. # Use eval to expand $SHELL
  2378. if eval "$MISSING --is-lightweight"; then
  2379. am_missing_run="$MISSING "
  2380. else
  2381. am_missing_run=
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2383. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2384. fi
  2385. if test x"${install_sh+set}" != xset; then
  2386. case $am_aux_dir in
  2387. *\ * | *\ *)
  2388. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2389. *)
  2390. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2391. esac
  2392. fi
  2393. # Installed binaries are usually stripped using 'strip' when the user
  2394. # run "make install-strip". However 'strip' might not be the right
  2395. # tool to use in cross-compilation environments, therefore Automake
  2396. # will honor the 'STRIP' environment variable to overrule this program.
  2397. if test "$cross_compiling" != no; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2400. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2402. $as_echo_n "checking for $ac_word... " >&6; }
  2403. if ${ac_cv_prog_STRIP+:} false; then :
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. if test -n "$STRIP"; then
  2407. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2408. else
  2409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2410. for as_dir in $PATH
  2411. do
  2412. IFS=$as_save_IFS
  2413. test -z "$as_dir" && as_dir=.
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2416. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2418. break 2
  2419. fi
  2420. done
  2421. done
  2422. IFS=$as_save_IFS
  2423. fi
  2424. fi
  2425. STRIP=$ac_cv_prog_STRIP
  2426. if test -n "$STRIP"; then
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2428. $as_echo "$STRIP" >&6; }
  2429. else
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2431. $as_echo "no" >&6; }
  2432. fi
  2433. fi
  2434. if test -z "$ac_cv_prog_STRIP"; then
  2435. ac_ct_STRIP=$STRIP
  2436. # Extract the first word of "strip", so it can be a program name with args.
  2437. set dummy strip; ac_word=$2
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2439. $as_echo_n "checking for $ac_word... " >&6; }
  2440. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2441. $as_echo_n "(cached) " >&6
  2442. else
  2443. if test -n "$ac_ct_STRIP"; then
  2444. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2445. else
  2446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2447. for as_dir in $PATH
  2448. do
  2449. IFS=$as_save_IFS
  2450. test -z "$as_dir" && as_dir=.
  2451. for ac_exec_ext in '' $ac_executable_extensions; do
  2452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2453. ac_cv_prog_ac_ct_STRIP="strip"
  2454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2455. break 2
  2456. fi
  2457. done
  2458. done
  2459. IFS=$as_save_IFS
  2460. fi
  2461. fi
  2462. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2463. if test -n "$ac_ct_STRIP"; then
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2465. $as_echo "$ac_ct_STRIP" >&6; }
  2466. else
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2468. $as_echo "no" >&6; }
  2469. fi
  2470. if test "x$ac_ct_STRIP" = x; then
  2471. STRIP=":"
  2472. else
  2473. case $cross_compiling:$ac_tool_warned in
  2474. yes:)
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2477. ac_tool_warned=yes ;;
  2478. esac
  2479. STRIP=$ac_ct_STRIP
  2480. fi
  2481. else
  2482. STRIP="$ac_cv_prog_STRIP"
  2483. fi
  2484. fi
  2485. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2487. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2488. if test -z "$MKDIR_P"; then
  2489. if ${ac_cv_path_mkdir+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_prog in mkdir gmkdir; do
  2498. for ac_exec_ext in '' $ac_executable_extensions; do
  2499. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2500. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2501. 'mkdir (GNU coreutils) '* | \
  2502. 'mkdir (coreutils) '* | \
  2503. 'mkdir (fileutils) '4.1*)
  2504. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2505. break 3;;
  2506. esac
  2507. done
  2508. done
  2509. done
  2510. IFS=$as_save_IFS
  2511. fi
  2512. test -d ./--version && rmdir ./--version
  2513. if test "${ac_cv_path_mkdir+set}" = set; then
  2514. MKDIR_P="$ac_cv_path_mkdir -p"
  2515. else
  2516. # As a last resort, use the slow shell script. Don't cache a
  2517. # value for MKDIR_P within a source directory, because that will
  2518. # break other packages using the cache if that directory is
  2519. # removed, or if the value is a relative name.
  2520. MKDIR_P="$ac_install_sh -d"
  2521. fi
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2524. $as_echo "$MKDIR_P" >&6; }
  2525. for ac_prog in gawk mawk nawk awk
  2526. do
  2527. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2528. set dummy $ac_prog; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if ${ac_cv_prog_AWK+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$AWK"; then
  2535. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2544. ac_cv_prog_AWK="$ac_prog"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. AWK=$ac_cv_prog_AWK
  2554. if test -n "$AWK"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2556. $as_echo "$AWK" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. test -n "$AWK" && break
  2562. done
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2564. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2565. set x ${MAKE-make}
  2566. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2567. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2568. $as_echo_n "(cached) " >&6
  2569. else
  2570. cat >conftest.make <<\_ACEOF
  2571. SHELL = /bin/sh
  2572. all:
  2573. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2574. _ACEOF
  2575. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2576. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2577. *@@@%%%=?*=@@@%%%*)
  2578. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2579. *)
  2580. eval ac_cv_prog_make_${ac_make}_set=no;;
  2581. esac
  2582. rm -f conftest.make
  2583. fi
  2584. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2586. $as_echo "yes" >&6; }
  2587. SET_MAKE=
  2588. else
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. SET_MAKE="MAKE=${MAKE-make}"
  2592. fi
  2593. rm -rf .tst 2>/dev/null
  2594. mkdir .tst 2>/dev/null
  2595. if test -d .tst; then
  2596. am__leading_dot=.
  2597. else
  2598. am__leading_dot=_
  2599. fi
  2600. rmdir .tst 2>/dev/null
  2601. # Check whether --enable-silent-rules was given.
  2602. if test "${enable_silent_rules+set}" = set; then :
  2603. enableval=$enable_silent_rules;
  2604. fi
  2605. case $enable_silent_rules in # (((
  2606. yes) AM_DEFAULT_VERBOSITY=0;;
  2607. no) AM_DEFAULT_VERBOSITY=1;;
  2608. *) AM_DEFAULT_VERBOSITY=1;;
  2609. esac
  2610. am_make=${MAKE-make}
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2612. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2613. if ${am_cv_make_support_nested_variables+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if $as_echo 'TRUE=$(BAR$(V))
  2617. BAR0=false
  2618. BAR1=true
  2619. V=1
  2620. am__doit:
  2621. @$(TRUE)
  2622. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2623. am_cv_make_support_nested_variables=yes
  2624. else
  2625. am_cv_make_support_nested_variables=no
  2626. fi
  2627. fi
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2629. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2630. if test $am_cv_make_support_nested_variables = yes; then
  2631. AM_V='$(V)'
  2632. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2633. else
  2634. AM_V=$AM_DEFAULT_VERBOSITY
  2635. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2636. fi
  2637. AM_BACKSLASH='\'
  2638. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2639. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2640. # is not polluted with repeated "-I."
  2641. am__isrc=' -I$(srcdir)'
  2642. # test to see if srcdir already configured
  2643. if test -f $srcdir/config.status; then
  2644. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2645. fi
  2646. fi
  2647. # test whether we have cygpath
  2648. if test -z "$CYGPATH_W"; then
  2649. if (cygpath --version) >/dev/null 2>/dev/null; then
  2650. CYGPATH_W='cygpath -w'
  2651. else
  2652. CYGPATH_W=echo
  2653. fi
  2654. fi
  2655. # Define the identity of the package.
  2656. PACKAGE='libpqxx'
  2657. VERSION='7.7.3'
  2658. cat >>confdefs.h <<_ACEOF
  2659. #define PACKAGE "$PACKAGE"
  2660. _ACEOF
  2661. cat >>confdefs.h <<_ACEOF
  2662. #define VERSION "$VERSION"
  2663. _ACEOF
  2664. # Some tools Automake needs.
  2665. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2666. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2667. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2668. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2669. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2670. # For better backward compatibility. To be removed once Automake 1.9.x
  2671. # dies out for good. For more background, see:
  2672. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2673. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2674. mkdir_p='$(MKDIR_P)'
  2675. # We need awk for the "check" target (and possibly the TAP driver). The
  2676. # system "awk" is bad on some platforms.
  2677. # Always define AMTAR for backward compatibility. Yes, it's still used
  2678. # in the wild :-( We should find a proper way to deprecate it ...
  2679. AMTAR='$${TAR-tar}'
  2680. # We'll loop over all known methods to create a tar archive until one works.
  2681. _am_tools='gnutar pax cpio none'
  2682. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2683. # Variables for tags utilities; see am/tags.am
  2684. if test -z "$CTAGS"; then
  2685. CTAGS=ctags
  2686. fi
  2687. if test -z "$ETAGS"; then
  2688. ETAGS=etags
  2689. fi
  2690. if test -z "$CSCOPE"; then
  2691. CSCOPE=cscope
  2692. fi
  2693. # POSIX will say in a future version that running "rm -f" with no argument
  2694. # is OK; and we want to be able to make that assumption in our Makefile
  2695. # recipes. So use an aggressive probe to check that the usage we want is
  2696. # actually supported "in the wild" to an acceptable degree.
  2697. # See automake bug#10828.
  2698. # To make any issue more visible, cause the running configure to be aborted
  2699. # by default if the 'rm' program in use doesn't match our expectations; the
  2700. # user can still override this though.
  2701. if rm -f && rm -fr && rm -rf; then : OK; else
  2702. cat >&2 <<'END'
  2703. Oops!
  2704. Your 'rm' program seems unable to run without file operands specified
  2705. on the command line, even when the '-f' option is present. This is contrary
  2706. to the behaviour of most rm programs out there, and not conforming with
  2707. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2708. Please tell [email protected] about your system, including the value
  2709. of your $PATH and any error possibly output before this message. This
  2710. can help us improve future automake versions.
  2711. END
  2712. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2713. echo 'Configuration will proceed anyway, since you have set the' >&2
  2714. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2715. echo >&2
  2716. else
  2717. cat >&2 <<'END'
  2718. Aborting the configuration process, to ensure you take notice of the issue.
  2719. You can download and install GNU coreutils to get an 'rm' implementation
  2720. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2721. If you want to complete the configuration process using your problematic
  2722. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2723. to "yes", and re-run configure.
  2724. END
  2725. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2726. fi
  2727. fi
  2728. PQXX_ABI=7.7
  2729. PQXXVERSION=$PACKAGE_VERSION
  2730. ac_config_headers="$ac_config_headers include/pqxx/config.h"
  2731. # Default prefix for installs.
  2732. # Read test programme from config-test.
  2733. # Checks for programs.
  2734. ac_ext=cpp
  2735. ac_cpp='$CXXCPP $CPPFLAGS'
  2736. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2737. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2738. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2739. if test -z "$CXX"; then
  2740. if test -n "$CCC"; then
  2741. CXX=$CCC
  2742. else
  2743. if test -n "$ac_tool_prefix"; then
  2744. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2745. do
  2746. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2747. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2749. $as_echo_n "checking for $ac_word... " >&6; }
  2750. if ${ac_cv_prog_CXX+:} false; then :
  2751. $as_echo_n "(cached) " >&6
  2752. else
  2753. if test -n "$CXX"; then
  2754. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. IFS=$as_save_IFS
  2770. fi
  2771. fi
  2772. CXX=$ac_cv_prog_CXX
  2773. if test -n "$CXX"; then
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2775. $as_echo "$CXX" >&6; }
  2776. else
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2778. $as_echo "no" >&6; }
  2779. fi
  2780. test -n "$CXX" && break
  2781. done
  2782. fi
  2783. if test -z "$CXX"; then
  2784. ac_ct_CXX=$CXX
  2785. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2786. do
  2787. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2788. set dummy $ac_prog; ac_word=$2
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2790. $as_echo_n "checking for $ac_word... " >&6; }
  2791. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. if test -n "$ac_ct_CXX"; then
  2795. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2796. else
  2797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2798. for as_dir in $PATH
  2799. do
  2800. IFS=$as_save_IFS
  2801. test -z "$as_dir" && as_dir=.
  2802. for ac_exec_ext in '' $ac_executable_extensions; do
  2803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2804. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2806. break 2
  2807. fi
  2808. done
  2809. done
  2810. IFS=$as_save_IFS
  2811. fi
  2812. fi
  2813. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2814. if test -n "$ac_ct_CXX"; then
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2816. $as_echo "$ac_ct_CXX" >&6; }
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. test -n "$ac_ct_CXX" && break
  2822. done
  2823. if test "x$ac_ct_CXX" = x; then
  2824. CXX="g++"
  2825. else
  2826. case $cross_compiling:$ac_tool_warned in
  2827. yes:)
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2829. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2830. ac_tool_warned=yes ;;
  2831. esac
  2832. CXX=$ac_ct_CXX
  2833. fi
  2834. fi
  2835. fi
  2836. fi
  2837. # Provide some information about the compiler.
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2839. set X $ac_compile
  2840. ac_compiler=$2
  2841. for ac_option in --version -v -V -qversion; do
  2842. { { ac_try="$ac_compiler $ac_option >&5"
  2843. case "(($ac_try" in
  2844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2845. *) ac_try_echo=$ac_try;;
  2846. esac
  2847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2848. $as_echo "$ac_try_echo"; } >&5
  2849. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2850. ac_status=$?
  2851. if test -s conftest.err; then
  2852. sed '10a\
  2853. ... rest of stderr output deleted ...
  2854. 10q' conftest.err >conftest.er1
  2855. cat conftest.er1 >&5
  2856. fi
  2857. rm -f conftest.er1 conftest.err
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2859. test $ac_status = 0; }
  2860. done
  2861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2862. /* end confdefs.h. */
  2863. int
  2864. main ()
  2865. {
  2866. ;
  2867. return 0;
  2868. }
  2869. _ACEOF
  2870. ac_clean_files_save=$ac_clean_files
  2871. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2872. # Try to create an executable without -o first, disregard a.out.
  2873. # It will help us diagnose broken compilers, and finding out an intuition
  2874. # of exeext.
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2876. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2877. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2878. # The possible output files:
  2879. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2880. ac_rmfiles=
  2881. for ac_file in $ac_files
  2882. do
  2883. case $ac_file in
  2884. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2885. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2886. esac
  2887. done
  2888. rm -f $ac_rmfiles
  2889. if { { ac_try="$ac_link_default"
  2890. case "(($ac_try" in
  2891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2892. *) ac_try_echo=$ac_try;;
  2893. esac
  2894. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2895. $as_echo "$ac_try_echo"; } >&5
  2896. (eval "$ac_link_default") 2>&5
  2897. ac_status=$?
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2899. test $ac_status = 0; }; then :
  2900. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2901. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2902. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2903. # so that the user can short-circuit this test for compilers unknown to
  2904. # Autoconf.
  2905. for ac_file in $ac_files ''
  2906. do
  2907. test -f "$ac_file" || continue
  2908. case $ac_file in
  2909. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2910. ;;
  2911. [ab].out )
  2912. # We found the default executable, but exeext='' is most
  2913. # certainly right.
  2914. break;;
  2915. *.* )
  2916. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2917. then :; else
  2918. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2919. fi
  2920. # We set ac_cv_exeext here because the later test for it is not
  2921. # safe: cross compilers may not add the suffix if given an `-o'
  2922. # argument, so we may need to know it at that point already.
  2923. # Even if this section looks crufty: it has the advantage of
  2924. # actually working.
  2925. break;;
  2926. * )
  2927. break;;
  2928. esac
  2929. done
  2930. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2931. else
  2932. ac_file=''
  2933. fi
  2934. if test -z "$ac_file"; then :
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. $as_echo "$as_me: failed program was:" >&5
  2938. sed 's/^/| /' conftest.$ac_ext >&5
  2939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2941. as_fn_error 77 "C++ compiler cannot create executables
  2942. See \`config.log' for more details" "$LINENO" 5; }
  2943. else
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2945. $as_echo "yes" >&6; }
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2948. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2950. $as_echo "$ac_file" >&6; }
  2951. ac_exeext=$ac_cv_exeext
  2952. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2953. ac_clean_files=$ac_clean_files_save
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2955. $as_echo_n "checking for suffix of executables... " >&6; }
  2956. if { { ac_try="$ac_link"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2962. $as_echo "$ac_try_echo"; } >&5
  2963. (eval "$ac_link") 2>&5
  2964. ac_status=$?
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2966. test $ac_status = 0; }; then :
  2967. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2968. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2969. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2970. # `rm'.
  2971. for ac_file in conftest.exe conftest conftest.*; do
  2972. test -f "$ac_file" || continue
  2973. case $ac_file in
  2974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2975. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. break;;
  2977. * ) break;;
  2978. esac
  2979. done
  2980. else
  2981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2983. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2984. See \`config.log' for more details" "$LINENO" 5; }
  2985. fi
  2986. rm -f conftest conftest$ac_cv_exeext
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2988. $as_echo "$ac_cv_exeext" >&6; }
  2989. rm -f conftest.$ac_ext
  2990. EXEEXT=$ac_cv_exeext
  2991. ac_exeext=$EXEEXT
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. #include <stdio.h>
  2995. int
  2996. main ()
  2997. {
  2998. FILE *f = fopen ("conftest.out", "w");
  2999. return ferror (f) || fclose (f) != 0;
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. ac_clean_files="$ac_clean_files conftest.out"
  3005. # Check that the compiler produces executables we can run. If not, either
  3006. # the compiler is broken, or we cross compile.
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3008. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3009. if test "$cross_compiling" != yes; then
  3010. { { ac_try="$ac_link"
  3011. case "(($ac_try" in
  3012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3013. *) ac_try_echo=$ac_try;;
  3014. esac
  3015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3016. $as_echo "$ac_try_echo"; } >&5
  3017. (eval "$ac_link") 2>&5
  3018. ac_status=$?
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3020. test $ac_status = 0; }
  3021. if { ac_try='./conftest$ac_cv_exeext'
  3022. { { case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_try") 2>&5
  3029. ac_status=$?
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }; }; then
  3032. cross_compiling=no
  3033. else
  3034. if test "$cross_compiling" = maybe; then
  3035. cross_compiling=yes
  3036. else
  3037. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3039. as_fn_error $? "cannot run C++ compiled programs.
  3040. If you meant to cross compile, use \`--host'.
  3041. See \`config.log' for more details" "$LINENO" 5; }
  3042. fi
  3043. fi
  3044. fi
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3046. $as_echo "$cross_compiling" >&6; }
  3047. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3048. ac_clean_files=$ac_clean_files_save
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3050. $as_echo_n "checking for suffix of object files... " >&6; }
  3051. if ${ac_cv_objext+:} false; then :
  3052. $as_echo_n "(cached) " >&6
  3053. else
  3054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3055. /* end confdefs.h. */
  3056. int
  3057. main ()
  3058. {
  3059. ;
  3060. return 0;
  3061. }
  3062. _ACEOF
  3063. rm -f conftest.o conftest.obj
  3064. if { { ac_try="$ac_compile"
  3065. case "(($ac_try" in
  3066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067. *) ac_try_echo=$ac_try;;
  3068. esac
  3069. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3070. $as_echo "$ac_try_echo"; } >&5
  3071. (eval "$ac_compile") 2>&5
  3072. ac_status=$?
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3074. test $ac_status = 0; }; then :
  3075. for ac_file in conftest.o conftest.obj conftest.*; do
  3076. test -f "$ac_file" || continue;
  3077. case $ac_file in
  3078. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3079. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3080. break;;
  3081. esac
  3082. done
  3083. else
  3084. $as_echo "$as_me: failed program was:" >&5
  3085. sed 's/^/| /' conftest.$ac_ext >&5
  3086. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3088. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3089. See \`config.log' for more details" "$LINENO" 5; }
  3090. fi
  3091. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3094. $as_echo "$ac_cv_objext" >&6; }
  3095. OBJEXT=$ac_cv_objext
  3096. ac_objext=$OBJEXT
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3098. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3099. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. #ifndef __GNUC__
  3108. choke me
  3109. #endif
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. if ac_fn_cxx_try_compile "$LINENO"; then :
  3115. ac_compiler_gnu=yes
  3116. else
  3117. ac_compiler_gnu=no
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3121. fi
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3123. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3124. if test $ac_compiler_gnu = yes; then
  3125. GXX=yes
  3126. else
  3127. GXX=
  3128. fi
  3129. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3130. ac_save_CXXFLAGS=$CXXFLAGS
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3132. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3133. if ${ac_cv_prog_cxx_g+:} false; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3137. ac_cxx_werror_flag=yes
  3138. ac_cv_prog_cxx_g=no
  3139. CXXFLAGS="-g"
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. int
  3143. main ()
  3144. {
  3145. ;
  3146. return 0;
  3147. }
  3148. _ACEOF
  3149. if ac_fn_cxx_try_compile "$LINENO"; then :
  3150. ac_cv_prog_cxx_g=yes
  3151. else
  3152. CXXFLAGS=""
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. int
  3156. main ()
  3157. {
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_cxx_try_compile "$LINENO"; then :
  3163. else
  3164. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3165. CXXFLAGS="-g"
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_cxx_try_compile "$LINENO"; then :
  3176. ac_cv_prog_cxx_g=yes
  3177. fi
  3178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3186. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3187. if test "$ac_test_CXXFLAGS" = set; then
  3188. CXXFLAGS=$ac_save_CXXFLAGS
  3189. elif test $ac_cv_prog_cxx_g = yes; then
  3190. if test "$GXX" = yes; then
  3191. CXXFLAGS="-g -O2"
  3192. else
  3193. CXXFLAGS="-g"
  3194. fi
  3195. else
  3196. if test "$GXX" = yes; then
  3197. CXXFLAGS="-O2"
  3198. else
  3199. CXXFLAGS=
  3200. fi
  3201. fi
  3202. ac_ext=cpp
  3203. ac_cpp='$CXXCPP $CPPFLAGS'
  3204. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3205. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3206. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3207. DEPDIR="${am__leading_dot}deps"
  3208. ac_config_commands="$ac_config_commands depfiles"
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3210. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3211. cat > confinc.mk << 'END'
  3212. am__doit:
  3213. @echo this is the am__doit target >confinc.out
  3214. .PHONY: am__doit
  3215. END
  3216. am__include="#"
  3217. am__quote=
  3218. # BSD make does it like this.
  3219. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3220. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3221. echo 'include confinc.mk # ignored' > confmf.GNU
  3222. _am_result=no
  3223. for s in GNU BSD; do
  3224. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3225. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3226. ac_status=$?
  3227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3228. (exit $ac_status); }
  3229. case $?:`cat confinc.out 2>/dev/null` in #(
  3230. '0:this is the am__doit target') :
  3231. case $s in #(
  3232. BSD) :
  3233. am__include='.include' am__quote='"' ;; #(
  3234. *) :
  3235. am__include='include' am__quote='' ;;
  3236. esac ;; #(
  3237. *) :
  3238. ;;
  3239. esac
  3240. if test "$am__include" != "#"; then
  3241. _am_result="yes ($s style)"
  3242. break
  3243. fi
  3244. done
  3245. rm -f confinc.* confmf.*
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3247. $as_echo "${_am_result}" >&6; }
  3248. # Check whether --enable-dependency-tracking was given.
  3249. if test "${enable_dependency_tracking+set}" = set; then :
  3250. enableval=$enable_dependency_tracking;
  3251. fi
  3252. if test "x$enable_dependency_tracking" != xno; then
  3253. am_depcomp="$ac_aux_dir/depcomp"
  3254. AMDEPBACKSLASH='\'
  3255. am__nodep='_no'
  3256. fi
  3257. if test "x$enable_dependency_tracking" != xno; then
  3258. AMDEP_TRUE=
  3259. AMDEP_FALSE='#'
  3260. else
  3261. AMDEP_TRUE='#'
  3262. AMDEP_FALSE=
  3263. fi
  3264. depcc="$CXX" am_compiler_list=
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3266. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3267. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3268. $as_echo_n "(cached) " >&6
  3269. else
  3270. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3271. # We make a subdir and do the tests there. Otherwise we can end up
  3272. # making bogus files that we don't know about and never remove. For
  3273. # instance it was reported that on HP-UX the gcc test will end up
  3274. # making a dummy file named 'D' -- because '-MD' means "put the output
  3275. # in D".
  3276. rm -rf conftest.dir
  3277. mkdir conftest.dir
  3278. # Copy depcomp to subdir because otherwise we won't find it if we're
  3279. # using a relative directory.
  3280. cp "$am_depcomp" conftest.dir
  3281. cd conftest.dir
  3282. # We will build objects and dependencies in a subdirectory because
  3283. # it helps to detect inapplicable dependency modes. For instance
  3284. # both Tru64's cc and ICC support -MD to output dependencies as a
  3285. # side effect of compilation, but ICC will put the dependencies in
  3286. # the current directory while Tru64 will put them in the object
  3287. # directory.
  3288. mkdir sub
  3289. am_cv_CXX_dependencies_compiler_type=none
  3290. if test "$am_compiler_list" = ""; then
  3291. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3292. fi
  3293. am__universal=false
  3294. case " $depcc " in #(
  3295. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3296. esac
  3297. for depmode in $am_compiler_list; do
  3298. # Setup a source with many dependencies, because some compilers
  3299. # like to wrap large dependency lists on column 80 (with \), and
  3300. # we should not choose a depcomp mode which is confused by this.
  3301. #
  3302. # We need to recreate these files for each test, as the compiler may
  3303. # overwrite some of them when testing with obscure command lines.
  3304. # This happens at least with the AIX C compiler.
  3305. : > sub/conftest.c
  3306. for i in 1 2 3 4 5 6; do
  3307. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3308. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3309. # Solaris 10 /bin/sh.
  3310. echo '/* dummy */' > sub/conftst$i.h
  3311. done
  3312. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3313. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3314. # mode. It turns out that the SunPro C++ compiler does not properly
  3315. # handle '-M -o', and we need to detect this. Also, some Intel
  3316. # versions had trouble with output in subdirs.
  3317. am__obj=sub/conftest.${OBJEXT-o}
  3318. am__minus_obj="-o $am__obj"
  3319. case $depmode in
  3320. gcc)
  3321. # This depmode causes a compiler race in universal mode.
  3322. test "$am__universal" = false || continue
  3323. ;;
  3324. nosideeffect)
  3325. # After this tag, mechanisms are not by side-effect, so they'll
  3326. # only be used when explicitly requested.
  3327. if test "x$enable_dependency_tracking" = xyes; then
  3328. continue
  3329. else
  3330. break
  3331. fi
  3332. ;;
  3333. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3334. # This compiler won't grok '-c -o', but also, the minuso test has
  3335. # not run yet. These depmodes are late enough in the game, and
  3336. # so weak that their functioning should not be impacted.
  3337. am__obj=conftest.${OBJEXT-o}
  3338. am__minus_obj=
  3339. ;;
  3340. none) break ;;
  3341. esac
  3342. if depmode=$depmode \
  3343. source=sub/conftest.c object=$am__obj \
  3344. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3345. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3346. >/dev/null 2>conftest.err &&
  3347. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3348. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3349. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3350. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3351. # icc doesn't choke on unknown options, it will just issue warnings
  3352. # or remarks (even with -Werror). So we grep stderr for any message
  3353. # that says an option was ignored or not supported.
  3354. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3355. # icc: Command line warning: ignoring option '-M'; no argument required
  3356. # The diagnosis changed in icc 8.0:
  3357. # icc: Command line remark: option '-MP' not supported
  3358. if (grep 'ignoring option' conftest.err ||
  3359. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3360. am_cv_CXX_dependencies_compiler_type=$depmode
  3361. break
  3362. fi
  3363. fi
  3364. done
  3365. cd ..
  3366. rm -rf conftest.dir
  3367. else
  3368. am_cv_CXX_dependencies_compiler_type=none
  3369. fi
  3370. fi
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3372. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3373. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3374. if
  3375. test "x$enable_dependency_tracking" != xno \
  3376. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3377. am__fastdepCXX_TRUE=
  3378. am__fastdepCXX_FALSE='#'
  3379. else
  3380. am__fastdepCXX_TRUE='#'
  3381. am__fastdepCXX_FALSE=
  3382. fi
  3383. # Check whether --enable-shared was given.
  3384. if test "${enable_shared+set}" = set; then :
  3385. enableval=$enable_shared; p=${PACKAGE-default}
  3386. case $enableval in
  3387. yes) enable_shared=yes ;;
  3388. no) enable_shared=no ;;
  3389. *)
  3390. enable_shared=no
  3391. # Look at the argument we got. We use all the common list separators.
  3392. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  3393. for pkg in $enableval; do
  3394. IFS=$lt_save_ifs
  3395. if test "X$pkg" = "X$p"; then
  3396. enable_shared=yes
  3397. fi
  3398. done
  3399. IFS=$lt_save_ifs
  3400. ;;
  3401. esac
  3402. else
  3403. enable_shared=no
  3404. fi
  3405. case `pwd` in
  3406. *\ * | *\ *)
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3408. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3409. esac
  3410. macro_version='2.4.6'
  3411. macro_revision='2.4.6'
  3412. ltmain=$ac_aux_dir/ltmain.sh
  3413. # Make sure we can run config.sub.
  3414. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3415. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3417. $as_echo_n "checking build system type... " >&6; }
  3418. if ${ac_cv_build+:} false; then :
  3419. $as_echo_n "(cached) " >&6
  3420. else
  3421. ac_build_alias=$build_alias
  3422. test "x$ac_build_alias" = x &&
  3423. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3424. test "x$ac_build_alias" = x &&
  3425. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3426. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3427. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3430. $as_echo "$ac_cv_build" >&6; }
  3431. case $ac_cv_build in
  3432. *-*-*) ;;
  3433. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3434. esac
  3435. build=$ac_cv_build
  3436. ac_save_IFS=$IFS; IFS='-'
  3437. set x $ac_cv_build
  3438. shift
  3439. build_cpu=$1
  3440. build_vendor=$2
  3441. shift; shift
  3442. # Remember, the first character of IFS is used to create $*,
  3443. # except with old shells:
  3444. build_os=$*
  3445. IFS=$ac_save_IFS
  3446. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3448. $as_echo_n "checking host system type... " >&6; }
  3449. if ${ac_cv_host+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. if test "x$host_alias" = x; then
  3453. ac_cv_host=$ac_cv_build
  3454. else
  3455. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3456. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3457. fi
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3460. $as_echo "$ac_cv_host" >&6; }
  3461. case $ac_cv_host in
  3462. *-*-*) ;;
  3463. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3464. esac
  3465. host=$ac_cv_host
  3466. ac_save_IFS=$IFS; IFS='-'
  3467. set x $ac_cv_host
  3468. shift
  3469. host_cpu=$1
  3470. host_vendor=$2
  3471. shift; shift
  3472. # Remember, the first character of IFS is used to create $*,
  3473. # except with old shells:
  3474. host_os=$*
  3475. IFS=$ac_save_IFS
  3476. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3477. # Backslashify metacharacters that are still active within
  3478. # double-quoted strings.
  3479. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3480. # Same as above, but do not quote variable references.
  3481. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3482. # Sed substitution to delay expansion of an escaped shell variable in a
  3483. # double_quote_subst'ed string.
  3484. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3485. # Sed substitution to delay expansion of an escaped single quote.
  3486. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3487. # Sed substitution to avoid accidental globbing in evaled expressions
  3488. no_glob_subst='s/\*/\\\*/g'
  3489. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3490. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3491. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3493. $as_echo_n "checking how to print strings... " >&6; }
  3494. # Test print first, because it will be a builtin if present.
  3495. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3496. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3497. ECHO='print -r --'
  3498. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3499. ECHO='printf %s\n'
  3500. else
  3501. # Use this function as a fallback that always works.
  3502. func_fallback_echo ()
  3503. {
  3504. eval 'cat <<_LTECHO_EOF
  3505. $1
  3506. _LTECHO_EOF'
  3507. }
  3508. ECHO='func_fallback_echo'
  3509. fi
  3510. # func_echo_all arg...
  3511. # Invoke $ECHO with all args, space-separated.
  3512. func_echo_all ()
  3513. {
  3514. $ECHO ""
  3515. }
  3516. case $ECHO in
  3517. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3518. $as_echo "printf" >&6; } ;;
  3519. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3520. $as_echo "print -r" >&6; } ;;
  3521. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3522. $as_echo "cat" >&6; } ;;
  3523. esac
  3524. ac_ext=c
  3525. ac_cpp='$CPP $CPPFLAGS'
  3526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3529. if test -n "$ac_tool_prefix"; then
  3530. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3531. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. if ${ac_cv_prog_CC+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if test -n "$CC"; then
  3538. ac_cv_prog_CC="$CC" # Let the user override the test.
  3539. else
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3547. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3549. break 2
  3550. fi
  3551. done
  3552. done
  3553. IFS=$as_save_IFS
  3554. fi
  3555. fi
  3556. CC=$ac_cv_prog_CC
  3557. if test -n "$CC"; then
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3559. $as_echo "$CC" >&6; }
  3560. else
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. $as_echo "no" >&6; }
  3563. fi
  3564. fi
  3565. if test -z "$ac_cv_prog_CC"; then
  3566. ac_ct_CC=$CC
  3567. # Extract the first word of "gcc", so it can be a program name with args.
  3568. set dummy gcc; ac_word=$2
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3570. $as_echo_n "checking for $ac_word... " >&6; }
  3571. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3572. $as_echo_n "(cached) " >&6
  3573. else
  3574. if test -n "$ac_ct_CC"; then
  3575. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3576. else
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. test -z "$as_dir" && as_dir=.
  3582. for ac_exec_ext in '' $ac_executable_extensions; do
  3583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3584. ac_cv_prog_ac_ct_CC="gcc"
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3586. break 2
  3587. fi
  3588. done
  3589. done
  3590. IFS=$as_save_IFS
  3591. fi
  3592. fi
  3593. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3594. if test -n "$ac_ct_CC"; then
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3596. $as_echo "$ac_ct_CC" >&6; }
  3597. else
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3599. $as_echo "no" >&6; }
  3600. fi
  3601. if test "x$ac_ct_CC" = x; then
  3602. CC=""
  3603. else
  3604. case $cross_compiling:$ac_tool_warned in
  3605. yes:)
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3608. ac_tool_warned=yes ;;
  3609. esac
  3610. CC=$ac_ct_CC
  3611. fi
  3612. else
  3613. CC="$ac_cv_prog_CC"
  3614. fi
  3615. if test -z "$CC"; then
  3616. if test -n "$ac_tool_prefix"; then
  3617. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3618. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. $as_echo_n "checking for $ac_word... " >&6; }
  3621. if ${ac_cv_prog_CC+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if test -n "$CC"; then
  3625. ac_cv_prog_CC="$CC" # Let the user override the test.
  3626. else
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3634. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3636. break 2
  3637. fi
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. fi
  3642. fi
  3643. CC=$ac_cv_prog_CC
  3644. if test -n "$CC"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3646. $as_echo "$CC" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. fi
  3652. fi
  3653. if test -z "$CC"; then
  3654. # Extract the first word of "cc", so it can be a program name with args.
  3655. set dummy cc; ac_word=$2
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3657. $as_echo_n "checking for $ac_word... " >&6; }
  3658. if ${ac_cv_prog_CC+:} false; then :
  3659. $as_echo_n "(cached) " >&6
  3660. else
  3661. if test -n "$CC"; then
  3662. ac_cv_prog_CC="$CC" # Let the user override the test.
  3663. else
  3664. ac_prog_rejected=no
  3665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3666. for as_dir in $PATH
  3667. do
  3668. IFS=$as_save_IFS
  3669. test -z "$as_dir" && as_dir=.
  3670. for ac_exec_ext in '' $ac_executable_extensions; do
  3671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3672. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3673. ac_prog_rejected=yes
  3674. continue
  3675. fi
  3676. ac_cv_prog_CC="cc"
  3677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3678. break 2
  3679. fi
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. if test $ac_prog_rejected = yes; then
  3684. # We found a bogon in the path, so make sure we never use it.
  3685. set dummy $ac_cv_prog_CC
  3686. shift
  3687. if test $# != 0; then
  3688. # We chose a different compiler from the bogus one.
  3689. # However, it has the same basename, so the bogon will be chosen
  3690. # first if we set CC to just the basename; use the full file name.
  3691. shift
  3692. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3693. fi
  3694. fi
  3695. fi
  3696. fi
  3697. CC=$ac_cv_prog_CC
  3698. if test -n "$CC"; then
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3700. $as_echo "$CC" >&6; }
  3701. else
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3703. $as_echo "no" >&6; }
  3704. fi
  3705. fi
  3706. if test -z "$CC"; then
  3707. if test -n "$ac_tool_prefix"; then
  3708. for ac_prog in cl.exe
  3709. do
  3710. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3711. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3713. $as_echo_n "checking for $ac_word... " >&6; }
  3714. if ${ac_cv_prog_CC+:} false; then :
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -n "$CC"; then
  3718. ac_cv_prog_CC="$CC" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3727. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3729. break 2
  3730. fi
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734. fi
  3735. fi
  3736. CC=$ac_cv_prog_CC
  3737. if test -n "$CC"; then
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3739. $as_echo "$CC" >&6; }
  3740. else
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3742. $as_echo "no" >&6; }
  3743. fi
  3744. test -n "$CC" && break
  3745. done
  3746. fi
  3747. if test -z "$CC"; then
  3748. ac_ct_CC=$CC
  3749. for ac_prog in cl.exe
  3750. do
  3751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3752. set dummy $ac_prog; ac_word=$2
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3754. $as_echo_n "checking for $ac_word... " >&6; }
  3755. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. if test -n "$ac_ct_CC"; then
  3759. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3760. else
  3761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3762. for as_dir in $PATH
  3763. do
  3764. IFS=$as_save_IFS
  3765. test -z "$as_dir" && as_dir=.
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3768. ac_cv_prog_ac_ct_CC="$ac_prog"
  3769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3770. break 2
  3771. fi
  3772. done
  3773. done
  3774. IFS=$as_save_IFS
  3775. fi
  3776. fi
  3777. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3778. if test -n "$ac_ct_CC"; then
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3780. $as_echo "$ac_ct_CC" >&6; }
  3781. else
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3783. $as_echo "no" >&6; }
  3784. fi
  3785. test -n "$ac_ct_CC" && break
  3786. done
  3787. if test "x$ac_ct_CC" = x; then
  3788. CC=""
  3789. else
  3790. case $cross_compiling:$ac_tool_warned in
  3791. yes:)
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3794. ac_tool_warned=yes ;;
  3795. esac
  3796. CC=$ac_ct_CC
  3797. fi
  3798. fi
  3799. fi
  3800. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3802. as_fn_error $? "no acceptable C compiler found in \$PATH
  3803. See \`config.log' for more details" "$LINENO" 5; }
  3804. # Provide some information about the compiler.
  3805. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3806. set X $ac_compile
  3807. ac_compiler=$2
  3808. for ac_option in --version -v -V -qversion; do
  3809. { { ac_try="$ac_compiler $ac_option >&5"
  3810. case "(($ac_try" in
  3811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3812. *) ac_try_echo=$ac_try;;
  3813. esac
  3814. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3815. $as_echo "$ac_try_echo"; } >&5
  3816. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3817. ac_status=$?
  3818. if test -s conftest.err; then
  3819. sed '10a\
  3820. ... rest of stderr output deleted ...
  3821. 10q' conftest.err >conftest.er1
  3822. cat conftest.er1 >&5
  3823. fi
  3824. rm -f conftest.er1 conftest.err
  3825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3826. test $ac_status = 0; }
  3827. done
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3829. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3830. if ${ac_cv_c_compiler_gnu+:} false; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. int
  3836. main ()
  3837. {
  3838. #ifndef __GNUC__
  3839. choke me
  3840. #endif
  3841. ;
  3842. return 0;
  3843. }
  3844. _ACEOF
  3845. if ac_fn_c_try_compile "$LINENO"; then :
  3846. ac_compiler_gnu=yes
  3847. else
  3848. ac_compiler_gnu=no
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3854. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3855. if test $ac_compiler_gnu = yes; then
  3856. GCC=yes
  3857. else
  3858. GCC=
  3859. fi
  3860. ac_test_CFLAGS=${CFLAGS+set}
  3861. ac_save_CFLAGS=$CFLAGS
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3863. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3864. if ${ac_cv_prog_cc_g+:} false; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. ac_save_c_werror_flag=$ac_c_werror_flag
  3868. ac_c_werror_flag=yes
  3869. ac_cv_prog_cc_g=no
  3870. CFLAGS="-g"
  3871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3872. /* end confdefs.h. */
  3873. int
  3874. main ()
  3875. {
  3876. ;
  3877. return 0;
  3878. }
  3879. _ACEOF
  3880. if ac_fn_c_try_compile "$LINENO"; then :
  3881. ac_cv_prog_cc_g=yes
  3882. else
  3883. CFLAGS=""
  3884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3885. /* end confdefs.h. */
  3886. int
  3887. main ()
  3888. {
  3889. ;
  3890. return 0;
  3891. }
  3892. _ACEOF
  3893. if ac_fn_c_try_compile "$LINENO"; then :
  3894. else
  3895. ac_c_werror_flag=$ac_save_c_werror_flag
  3896. CFLAGS="-g"
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. int
  3900. main ()
  3901. {
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. if ac_fn_c_try_compile "$LINENO"; then :
  3907. ac_cv_prog_cc_g=yes
  3908. fi
  3909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3910. fi
  3911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3914. ac_c_werror_flag=$ac_save_c_werror_flag
  3915. fi
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3917. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3918. if test "$ac_test_CFLAGS" = set; then
  3919. CFLAGS=$ac_save_CFLAGS
  3920. elif test $ac_cv_prog_cc_g = yes; then
  3921. if test "$GCC" = yes; then
  3922. CFLAGS="-g -O2"
  3923. else
  3924. CFLAGS="-g"
  3925. fi
  3926. else
  3927. if test "$GCC" = yes; then
  3928. CFLAGS="-O2"
  3929. else
  3930. CFLAGS=
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3934. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3935. if ${ac_cv_prog_cc_c89+:} false; then :
  3936. $as_echo_n "(cached) " >&6
  3937. else
  3938. ac_cv_prog_cc_c89=no
  3939. ac_save_CC=$CC
  3940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3941. /* end confdefs.h. */
  3942. #include <stdarg.h>
  3943. #include <stdio.h>
  3944. struct stat;
  3945. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3946. struct buf { int x; };
  3947. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3948. static char *e (p, i)
  3949. char **p;
  3950. int i;
  3951. {
  3952. return p[i];
  3953. }
  3954. static char *f (char * (*g) (char **, int), char **p, ...)
  3955. {
  3956. char *s;
  3957. va_list v;
  3958. va_start (v,p);
  3959. s = g (p, va_arg (v,int));
  3960. va_end (v);
  3961. return s;
  3962. }
  3963. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3964. function prototypes and stuff, but not '\xHH' hex character constants.
  3965. These don't provoke an error unfortunately, instead are silently treated
  3966. as 'x'. The following induces an error, until -std is added to get
  3967. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3968. array size at least. It's necessary to write '\x00'==0 to get something
  3969. that's true only with -std. */
  3970. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3971. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3972. inside strings and character constants. */
  3973. #define FOO(x) 'x'
  3974. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3975. int test (int i, double x);
  3976. struct s1 {int (*f) (int a);};
  3977. struct s2 {int (*f) (double a);};
  3978. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3979. int argc;
  3980. char **argv;
  3981. int
  3982. main ()
  3983. {
  3984. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3990. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3991. do
  3992. CC="$ac_save_CC $ac_arg"
  3993. if ac_fn_c_try_compile "$LINENO"; then :
  3994. ac_cv_prog_cc_c89=$ac_arg
  3995. fi
  3996. rm -f core conftest.err conftest.$ac_objext
  3997. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3998. done
  3999. rm -f conftest.$ac_ext
  4000. CC=$ac_save_CC
  4001. fi
  4002. # AC_CACHE_VAL
  4003. case "x$ac_cv_prog_cc_c89" in
  4004. x)
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4006. $as_echo "none needed" >&6; } ;;
  4007. xno)
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4009. $as_echo "unsupported" >&6; } ;;
  4010. *)
  4011. CC="$CC $ac_cv_prog_cc_c89"
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4013. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4014. esac
  4015. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4016. fi
  4017. ac_ext=cpp
  4018. ac_cpp='$CXXCPP $CPPFLAGS'
  4019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4022. ac_ext=c
  4023. ac_cpp='$CPP $CPPFLAGS'
  4024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4028. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4029. if ${am_cv_prog_cc_c_o+:} false; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4033. /* end confdefs.h. */
  4034. int
  4035. main ()
  4036. {
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. # Make sure it works both with $CC and with simple cc.
  4042. # Following AC_PROG_CC_C_O, we do the test twice because some
  4043. # compilers refuse to overwrite an existing .o file with -o,
  4044. # though they will create one.
  4045. am_cv_prog_cc_c_o=yes
  4046. for am_i in 1 2; do
  4047. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4048. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4049. ac_status=$?
  4050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4051. (exit $ac_status); } \
  4052. && test -f conftest2.$ac_objext; then
  4053. : OK
  4054. else
  4055. am_cv_prog_cc_c_o=no
  4056. break
  4057. fi
  4058. done
  4059. rm -f core conftest*
  4060. unset am_i
  4061. fi
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4063. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4064. if test "$am_cv_prog_cc_c_o" != yes; then
  4065. # Losing compiler, so override with the script.
  4066. # FIXME: It is wrong to rewrite CC.
  4067. # But if we don't then we get into trouble of one sort or another.
  4068. # A longer-term fix would be to have automake use am__CC in this case,
  4069. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4070. CC="$am_aux_dir/compile $CC"
  4071. fi
  4072. ac_ext=cpp
  4073. ac_cpp='$CXXCPP $CPPFLAGS'
  4074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4077. depcc="$CC" am_compiler_list=
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4079. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4080. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4084. # We make a subdir and do the tests there. Otherwise we can end up
  4085. # making bogus files that we don't know about and never remove. For
  4086. # instance it was reported that on HP-UX the gcc test will end up
  4087. # making a dummy file named 'D' -- because '-MD' means "put the output
  4088. # in D".
  4089. rm -rf conftest.dir
  4090. mkdir conftest.dir
  4091. # Copy depcomp to subdir because otherwise we won't find it if we're
  4092. # using a relative directory.
  4093. cp "$am_depcomp" conftest.dir
  4094. cd conftest.dir
  4095. # We will build objects and dependencies in a subdirectory because
  4096. # it helps to detect inapplicable dependency modes. For instance
  4097. # both Tru64's cc and ICC support -MD to output dependencies as a
  4098. # side effect of compilation, but ICC will put the dependencies in
  4099. # the current directory while Tru64 will put them in the object
  4100. # directory.
  4101. mkdir sub
  4102. am_cv_CC_dependencies_compiler_type=none
  4103. if test "$am_compiler_list" = ""; then
  4104. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4105. fi
  4106. am__universal=false
  4107. case " $depcc " in #(
  4108. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4109. esac
  4110. for depmode in $am_compiler_list; do
  4111. # Setup a source with many dependencies, because some compilers
  4112. # like to wrap large dependency lists on column 80 (with \), and
  4113. # we should not choose a depcomp mode which is confused by this.
  4114. #
  4115. # We need to recreate these files for each test, as the compiler may
  4116. # overwrite some of them when testing with obscure command lines.
  4117. # This happens at least with the AIX C compiler.
  4118. : > sub/conftest.c
  4119. for i in 1 2 3 4 5 6; do
  4120. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4121. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4122. # Solaris 10 /bin/sh.
  4123. echo '/* dummy */' > sub/conftst$i.h
  4124. done
  4125. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4126. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4127. # mode. It turns out that the SunPro C++ compiler does not properly
  4128. # handle '-M -o', and we need to detect this. Also, some Intel
  4129. # versions had trouble with output in subdirs.
  4130. am__obj=sub/conftest.${OBJEXT-o}
  4131. am__minus_obj="-o $am__obj"
  4132. case $depmode in
  4133. gcc)
  4134. # This depmode causes a compiler race in universal mode.
  4135. test "$am__universal" = false || continue
  4136. ;;
  4137. nosideeffect)
  4138. # After this tag, mechanisms are not by side-effect, so they'll
  4139. # only be used when explicitly requested.
  4140. if test "x$enable_dependency_tracking" = xyes; then
  4141. continue
  4142. else
  4143. break
  4144. fi
  4145. ;;
  4146. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4147. # This compiler won't grok '-c -o', but also, the minuso test has
  4148. # not run yet. These depmodes are late enough in the game, and
  4149. # so weak that their functioning should not be impacted.
  4150. am__obj=conftest.${OBJEXT-o}
  4151. am__minus_obj=
  4152. ;;
  4153. none) break ;;
  4154. esac
  4155. if depmode=$depmode \
  4156. source=sub/conftest.c object=$am__obj \
  4157. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4158. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4159. >/dev/null 2>conftest.err &&
  4160. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4161. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4162. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4163. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4164. # icc doesn't choke on unknown options, it will just issue warnings
  4165. # or remarks (even with -Werror). So we grep stderr for any message
  4166. # that says an option was ignored or not supported.
  4167. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4168. # icc: Command line warning: ignoring option '-M'; no argument required
  4169. # The diagnosis changed in icc 8.0:
  4170. # icc: Command line remark: option '-MP' not supported
  4171. if (grep 'ignoring option' conftest.err ||
  4172. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4173. am_cv_CC_dependencies_compiler_type=$depmode
  4174. break
  4175. fi
  4176. fi
  4177. done
  4178. cd ..
  4179. rm -rf conftest.dir
  4180. else
  4181. am_cv_CC_dependencies_compiler_type=none
  4182. fi
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4185. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4186. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4187. if
  4188. test "x$enable_dependency_tracking" != xno \
  4189. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4190. am__fastdepCC_TRUE=
  4191. am__fastdepCC_FALSE='#'
  4192. else
  4193. am__fastdepCC_TRUE='#'
  4194. am__fastdepCC_FALSE=
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4197. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4198. if ${ac_cv_path_SED+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4202. for ac_i in 1 2 3 4 5 6 7; do
  4203. ac_script="$ac_script$as_nl$ac_script"
  4204. done
  4205. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4206. { ac_script=; unset ac_script;}
  4207. if test -z "$SED"; then
  4208. ac_path_SED_found=false
  4209. # Loop through the user's path and test for each of PROGNAME-LIST
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_prog in sed gsed; do
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4218. as_fn_executable_p "$ac_path_SED" || continue
  4219. # Check for GNU ac_path_SED and select it if it is found.
  4220. # Check for GNU $ac_path_SED
  4221. case `"$ac_path_SED" --version 2>&1` in
  4222. *GNU*)
  4223. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4224. *)
  4225. ac_count=0
  4226. $as_echo_n 0123456789 >"conftest.in"
  4227. while :
  4228. do
  4229. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4230. mv "conftest.tmp" "conftest.in"
  4231. cp "conftest.in" "conftest.nl"
  4232. $as_echo '' >> "conftest.nl"
  4233. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4234. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4235. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4236. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4237. # Best one so far, save it but keep looking for a better one
  4238. ac_cv_path_SED="$ac_path_SED"
  4239. ac_path_SED_max=$ac_count
  4240. fi
  4241. # 10*(2^10) chars as input seems more than enough
  4242. test $ac_count -gt 10 && break
  4243. done
  4244. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4245. esac
  4246. $ac_path_SED_found && break 3
  4247. done
  4248. done
  4249. done
  4250. IFS=$as_save_IFS
  4251. if test -z "$ac_cv_path_SED"; then
  4252. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4253. fi
  4254. else
  4255. ac_cv_path_SED=$SED
  4256. fi
  4257. fi
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4259. $as_echo "$ac_cv_path_SED" >&6; }
  4260. SED="$ac_cv_path_SED"
  4261. rm -f conftest.sed
  4262. test -z "$SED" && SED=sed
  4263. Xsed="$SED -e 1s/^X//"
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4265. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4266. if ${ac_cv_path_GREP+:} false; then :
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. if test -z "$GREP"; then
  4270. ac_path_GREP_found=false
  4271. # Loop through the user's path and test for each of PROGNAME-LIST
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4274. do
  4275. IFS=$as_save_IFS
  4276. test -z "$as_dir" && as_dir=.
  4277. for ac_prog in grep ggrep; do
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4280. as_fn_executable_p "$ac_path_GREP" || continue
  4281. # Check for GNU ac_path_GREP and select it if it is found.
  4282. # Check for GNU $ac_path_GREP
  4283. case `"$ac_path_GREP" --version 2>&1` in
  4284. *GNU*)
  4285. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4286. *)
  4287. ac_count=0
  4288. $as_echo_n 0123456789 >"conftest.in"
  4289. while :
  4290. do
  4291. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4292. mv "conftest.tmp" "conftest.in"
  4293. cp "conftest.in" "conftest.nl"
  4294. $as_echo 'GREP' >> "conftest.nl"
  4295. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4296. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4297. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4298. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4299. # Best one so far, save it but keep looking for a better one
  4300. ac_cv_path_GREP="$ac_path_GREP"
  4301. ac_path_GREP_max=$ac_count
  4302. fi
  4303. # 10*(2^10) chars as input seems more than enough
  4304. test $ac_count -gt 10 && break
  4305. done
  4306. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4307. esac
  4308. $ac_path_GREP_found && break 3
  4309. done
  4310. done
  4311. done
  4312. IFS=$as_save_IFS
  4313. if test -z "$ac_cv_path_GREP"; then
  4314. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4315. fi
  4316. else
  4317. ac_cv_path_GREP=$GREP
  4318. fi
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4321. $as_echo "$ac_cv_path_GREP" >&6; }
  4322. GREP="$ac_cv_path_GREP"
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4324. $as_echo_n "checking for egrep... " >&6; }
  4325. if ${ac_cv_path_EGREP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4329. then ac_cv_path_EGREP="$GREP -E"
  4330. else
  4331. if test -z "$EGREP"; then
  4332. ac_path_EGREP_found=false
  4333. # Loop through the user's path and test for each of PROGNAME-LIST
  4334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4335. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4336. do
  4337. IFS=$as_save_IFS
  4338. test -z "$as_dir" && as_dir=.
  4339. for ac_prog in egrep; do
  4340. for ac_exec_ext in '' $ac_executable_extensions; do
  4341. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4342. as_fn_executable_p "$ac_path_EGREP" || continue
  4343. # Check for GNU ac_path_EGREP and select it if it is found.
  4344. # Check for GNU $ac_path_EGREP
  4345. case `"$ac_path_EGREP" --version 2>&1` in
  4346. *GNU*)
  4347. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4348. *)
  4349. ac_count=0
  4350. $as_echo_n 0123456789 >"conftest.in"
  4351. while :
  4352. do
  4353. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4354. mv "conftest.tmp" "conftest.in"
  4355. cp "conftest.in" "conftest.nl"
  4356. $as_echo 'EGREP' >> "conftest.nl"
  4357. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4358. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4359. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4360. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4361. # Best one so far, save it but keep looking for a better one
  4362. ac_cv_path_EGREP="$ac_path_EGREP"
  4363. ac_path_EGREP_max=$ac_count
  4364. fi
  4365. # 10*(2^10) chars as input seems more than enough
  4366. test $ac_count -gt 10 && break
  4367. done
  4368. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4369. esac
  4370. $ac_path_EGREP_found && break 3
  4371. done
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. if test -z "$ac_cv_path_EGREP"; then
  4376. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4377. fi
  4378. else
  4379. ac_cv_path_EGREP=$EGREP
  4380. fi
  4381. fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4384. $as_echo "$ac_cv_path_EGREP" >&6; }
  4385. EGREP="$ac_cv_path_EGREP"
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4387. $as_echo_n "checking for fgrep... " >&6; }
  4388. if ${ac_cv_path_FGREP+:} false; then :
  4389. $as_echo_n "(cached) " >&6
  4390. else
  4391. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4392. then ac_cv_path_FGREP="$GREP -F"
  4393. else
  4394. if test -z "$FGREP"; then
  4395. ac_path_FGREP_found=false
  4396. # Loop through the user's path and test for each of PROGNAME-LIST
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_prog in fgrep; do
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4405. as_fn_executable_p "$ac_path_FGREP" || continue
  4406. # Check for GNU ac_path_FGREP and select it if it is found.
  4407. # Check for GNU $ac_path_FGREP
  4408. case `"$ac_path_FGREP" --version 2>&1` in
  4409. *GNU*)
  4410. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4411. *)
  4412. ac_count=0
  4413. $as_echo_n 0123456789 >"conftest.in"
  4414. while :
  4415. do
  4416. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4417. mv "conftest.tmp" "conftest.in"
  4418. cp "conftest.in" "conftest.nl"
  4419. $as_echo 'FGREP' >> "conftest.nl"
  4420. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4421. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4422. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4423. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4424. # Best one so far, save it but keep looking for a better one
  4425. ac_cv_path_FGREP="$ac_path_FGREP"
  4426. ac_path_FGREP_max=$ac_count
  4427. fi
  4428. # 10*(2^10) chars as input seems more than enough
  4429. test $ac_count -gt 10 && break
  4430. done
  4431. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4432. esac
  4433. $ac_path_FGREP_found && break 3
  4434. done
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. if test -z "$ac_cv_path_FGREP"; then
  4439. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4440. fi
  4441. else
  4442. ac_cv_path_FGREP=$FGREP
  4443. fi
  4444. fi
  4445. fi
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4447. $as_echo "$ac_cv_path_FGREP" >&6; }
  4448. FGREP="$ac_cv_path_FGREP"
  4449. test -z "$GREP" && GREP=grep
  4450. # Check whether --with-gnu-ld was given.
  4451. if test "${with_gnu_ld+set}" = set; then :
  4452. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4453. else
  4454. with_gnu_ld=no
  4455. fi
  4456. ac_prog=ld
  4457. if test yes = "$GCC"; then
  4458. # Check if gcc -print-prog-name=ld gives a path.
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4460. $as_echo_n "checking for ld used by $CC... " >&6; }
  4461. case $host in
  4462. *-*-mingw*)
  4463. # gcc leaves a trailing carriage return, which upsets mingw
  4464. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4465. *)
  4466. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4467. esac
  4468. case $ac_prog in
  4469. # Accept absolute paths.
  4470. [\\/]* | ?:[\\/]*)
  4471. re_direlt='/[^/][^/]*/\.\./'
  4472. # Canonicalize the pathname of ld
  4473. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4474. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4475. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4476. done
  4477. test -z "$LD" && LD=$ac_prog
  4478. ;;
  4479. "")
  4480. # If it fails, then pretend we aren't using GCC.
  4481. ac_prog=ld
  4482. ;;
  4483. *)
  4484. # If it is relative, then search for the first ld in PATH.
  4485. with_gnu_ld=unknown
  4486. ;;
  4487. esac
  4488. elif test yes = "$with_gnu_ld"; then
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4490. $as_echo_n "checking for GNU ld... " >&6; }
  4491. else
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4493. $as_echo_n "checking for non-GNU ld... " >&6; }
  4494. fi
  4495. if ${lt_cv_path_LD+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. if test -z "$LD"; then
  4499. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4500. for ac_dir in $PATH; do
  4501. IFS=$lt_save_ifs
  4502. test -z "$ac_dir" && ac_dir=.
  4503. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4504. lt_cv_path_LD=$ac_dir/$ac_prog
  4505. # Check to see if the program is GNU ld. I'd rather use --version,
  4506. # but apparently some variants of GNU ld only accept -v.
  4507. # Break only if it was the GNU/non-GNU ld that we prefer.
  4508. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4509. *GNU* | *'with BFD'*)
  4510. test no != "$with_gnu_ld" && break
  4511. ;;
  4512. *)
  4513. test yes != "$with_gnu_ld" && break
  4514. ;;
  4515. esac
  4516. fi
  4517. done
  4518. IFS=$lt_save_ifs
  4519. else
  4520. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4521. fi
  4522. fi
  4523. LD=$lt_cv_path_LD
  4524. if test -n "$LD"; then
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4526. $as_echo "$LD" >&6; }
  4527. else
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4529. $as_echo "no" >&6; }
  4530. fi
  4531. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4533. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4534. if ${lt_cv_prog_gnu_ld+:} false; then :
  4535. $as_echo_n "(cached) " >&6
  4536. else
  4537. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4538. case `$LD -v 2>&1 </dev/null` in
  4539. *GNU* | *'with BFD'*)
  4540. lt_cv_prog_gnu_ld=yes
  4541. ;;
  4542. *)
  4543. lt_cv_prog_gnu_ld=no
  4544. ;;
  4545. esac
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4548. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4549. with_gnu_ld=$lt_cv_prog_gnu_ld
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4551. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4552. if ${lt_cv_path_NM+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. if test -n "$NM"; then
  4556. # Let the user override the test.
  4557. lt_cv_path_NM=$NM
  4558. else
  4559. lt_nm_to_check=${ac_tool_prefix}nm
  4560. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4561. lt_nm_to_check="$lt_nm_to_check nm"
  4562. fi
  4563. for lt_tmp_nm in $lt_nm_to_check; do
  4564. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4565. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4566. IFS=$lt_save_ifs
  4567. test -z "$ac_dir" && ac_dir=.
  4568. tmp_nm=$ac_dir/$lt_tmp_nm
  4569. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4570. # Check to see if the nm accepts a BSD-compat flag.
  4571. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4572. # nm: unknown option "B" ignored
  4573. # Tru64's nm complains that /dev/null is an invalid object file
  4574. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4575. case $build_os in
  4576. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4577. *) lt_bad_file=/dev/null ;;
  4578. esac
  4579. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4580. *$lt_bad_file* | *'Invalid file or object type'*)
  4581. lt_cv_path_NM="$tmp_nm -B"
  4582. break 2
  4583. ;;
  4584. *)
  4585. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4586. */dev/null*)
  4587. lt_cv_path_NM="$tmp_nm -p"
  4588. break 2
  4589. ;;
  4590. *)
  4591. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4592. continue # so that we can try to find one that supports BSD flags
  4593. ;;
  4594. esac
  4595. ;;
  4596. esac
  4597. fi
  4598. done
  4599. IFS=$lt_save_ifs
  4600. done
  4601. : ${lt_cv_path_NM=no}
  4602. fi
  4603. fi
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4605. $as_echo "$lt_cv_path_NM" >&6; }
  4606. if test no != "$lt_cv_path_NM"; then
  4607. NM=$lt_cv_path_NM
  4608. else
  4609. # Didn't find any BSD compatible name lister, look for dumpbin.
  4610. if test -n "$DUMPBIN"; then :
  4611. # Let the user override the test.
  4612. else
  4613. if test -n "$ac_tool_prefix"; then
  4614. for ac_prog in dumpbin "link -dump"
  4615. do
  4616. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4617. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4619. $as_echo_n "checking for $ac_word... " >&6; }
  4620. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. if test -n "$DUMPBIN"; then
  4624. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4625. else
  4626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4627. for as_dir in $PATH
  4628. do
  4629. IFS=$as_save_IFS
  4630. test -z "$as_dir" && as_dir=.
  4631. for ac_exec_ext in '' $ac_executable_extensions; do
  4632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4633. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4635. break 2
  4636. fi
  4637. done
  4638. done
  4639. IFS=$as_save_IFS
  4640. fi
  4641. fi
  4642. DUMPBIN=$ac_cv_prog_DUMPBIN
  4643. if test -n "$DUMPBIN"; then
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4645. $as_echo "$DUMPBIN" >&6; }
  4646. else
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4648. $as_echo "no" >&6; }
  4649. fi
  4650. test -n "$DUMPBIN" && break
  4651. done
  4652. fi
  4653. if test -z "$DUMPBIN"; then
  4654. ac_ct_DUMPBIN=$DUMPBIN
  4655. for ac_prog in dumpbin "link -dump"
  4656. do
  4657. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4658. set dummy $ac_prog; ac_word=$2
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4660. $as_echo_n "checking for $ac_word... " >&6; }
  4661. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. if test -n "$ac_ct_DUMPBIN"; then
  4665. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4666. else
  4667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4668. for as_dir in $PATH
  4669. do
  4670. IFS=$as_save_IFS
  4671. test -z "$as_dir" && as_dir=.
  4672. for ac_exec_ext in '' $ac_executable_extensions; do
  4673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4674. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4676. break 2
  4677. fi
  4678. done
  4679. done
  4680. IFS=$as_save_IFS
  4681. fi
  4682. fi
  4683. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4684. if test -n "$ac_ct_DUMPBIN"; then
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4686. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4687. else
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4689. $as_echo "no" >&6; }
  4690. fi
  4691. test -n "$ac_ct_DUMPBIN" && break
  4692. done
  4693. if test "x$ac_ct_DUMPBIN" = x; then
  4694. DUMPBIN=":"
  4695. else
  4696. case $cross_compiling:$ac_tool_warned in
  4697. yes:)
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4700. ac_tool_warned=yes ;;
  4701. esac
  4702. DUMPBIN=$ac_ct_DUMPBIN
  4703. fi
  4704. fi
  4705. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4706. *COFF*)
  4707. DUMPBIN="$DUMPBIN -symbols -headers"
  4708. ;;
  4709. *)
  4710. DUMPBIN=:
  4711. ;;
  4712. esac
  4713. fi
  4714. if test : != "$DUMPBIN"; then
  4715. NM=$DUMPBIN
  4716. fi
  4717. fi
  4718. test -z "$NM" && NM=nm
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4720. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4721. if ${lt_cv_nm_interface+:} false; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. lt_cv_nm_interface="BSD nm"
  4725. echo "int some_variable = 0;" > conftest.$ac_ext
  4726. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4727. (eval "$ac_compile" 2>conftest.err)
  4728. cat conftest.err >&5
  4729. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4730. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4731. cat conftest.err >&5
  4732. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4733. cat conftest.out >&5
  4734. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4735. lt_cv_nm_interface="MS dumpbin"
  4736. fi
  4737. rm -f conftest*
  4738. fi
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4740. $as_echo "$lt_cv_nm_interface" >&6; }
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4742. $as_echo_n "checking whether ln -s works... " >&6; }
  4743. LN_S=$as_ln_s
  4744. if test "$LN_S" = "ln -s"; then
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4746. $as_echo "yes" >&6; }
  4747. else
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4749. $as_echo "no, using $LN_S" >&6; }
  4750. fi
  4751. # find the maximum length of command line arguments
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4753. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4754. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. i=0
  4758. teststring=ABCD
  4759. case $build_os in
  4760. msdosdjgpp*)
  4761. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4762. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4763. # during glob expansion). Even if it were fixed, the result of this
  4764. # check would be larger than it should be.
  4765. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4766. ;;
  4767. gnu*)
  4768. # Under GNU Hurd, this test is not required because there is
  4769. # no limit to the length of command line arguments.
  4770. # Libtool will interpret -1 as no limit whatsoever
  4771. lt_cv_sys_max_cmd_len=-1;
  4772. ;;
  4773. cygwin* | mingw* | cegcc*)
  4774. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4775. # about 5 minutes as the teststring grows exponentially.
  4776. # Worse, since 9x/ME are not pre-emptively multitasking,
  4777. # you end up with a "frozen" computer, even though with patience
  4778. # the test eventually succeeds (with a max line length of 256k).
  4779. # Instead, let's just punt: use the minimum linelength reported by
  4780. # all of the supported platforms: 8192 (on NT/2K/XP).
  4781. lt_cv_sys_max_cmd_len=8192;
  4782. ;;
  4783. mint*)
  4784. # On MiNT this can take a long time and run out of memory.
  4785. lt_cv_sys_max_cmd_len=8192;
  4786. ;;
  4787. amigaos*)
  4788. # On AmigaOS with pdksh, this test takes hours, literally.
  4789. # So we just punt and use a minimum line length of 8192.
  4790. lt_cv_sys_max_cmd_len=8192;
  4791. ;;
  4792. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4793. # This has been around since 386BSD, at least. Likely further.
  4794. if test -x /sbin/sysctl; then
  4795. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4796. elif test -x /usr/sbin/sysctl; then
  4797. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4798. else
  4799. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4800. fi
  4801. # And add a safety zone
  4802. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4803. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4804. ;;
  4805. interix*)
  4806. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4807. lt_cv_sys_max_cmd_len=196608
  4808. ;;
  4809. os2*)
  4810. # The test takes a long time on OS/2.
  4811. lt_cv_sys_max_cmd_len=8192
  4812. ;;
  4813. osf*)
  4814. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4815. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4816. # nice to cause kernel panics so lets avoid the loop below.
  4817. # First set a reasonable default.
  4818. lt_cv_sys_max_cmd_len=16384
  4819. #
  4820. if test -x /sbin/sysconfig; then
  4821. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4822. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4823. esac
  4824. fi
  4825. ;;
  4826. sco3.2v5*)
  4827. lt_cv_sys_max_cmd_len=102400
  4828. ;;
  4829. sysv5* | sco5v6* | sysv4.2uw2*)
  4830. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4831. if test -n "$kargmax"; then
  4832. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4833. else
  4834. lt_cv_sys_max_cmd_len=32768
  4835. fi
  4836. ;;
  4837. *)
  4838. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4839. if test -n "$lt_cv_sys_max_cmd_len" && \
  4840. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4841. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4842. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4843. else
  4844. # Make teststring a little bigger before we do anything with it.
  4845. # a 1K string should be a reasonable start.
  4846. for i in 1 2 3 4 5 6 7 8; do
  4847. teststring=$teststring$teststring
  4848. done
  4849. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4850. # If test is not a shell built-in, we'll probably end up computing a
  4851. # maximum length that is only half of the actual maximum length, but
  4852. # we can't tell.
  4853. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4854. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4855. test 17 != "$i" # 1/2 MB should be enough
  4856. do
  4857. i=`expr $i + 1`
  4858. teststring=$teststring$teststring
  4859. done
  4860. # Only check the string length outside the loop.
  4861. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4862. teststring=
  4863. # Add a significant safety factor because C++ compilers can tack on
  4864. # massive amounts of additional arguments before passing them to the
  4865. # linker. It appears as though 1/2 is a usable value.
  4866. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4867. fi
  4868. ;;
  4869. esac
  4870. fi
  4871. if test -n "$lt_cv_sys_max_cmd_len"; then
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4873. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4874. else
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4876. $as_echo "none" >&6; }
  4877. fi
  4878. max_cmd_len=$lt_cv_sys_max_cmd_len
  4879. : ${CP="cp -f"}
  4880. : ${MV="mv -f"}
  4881. : ${RM="rm -f"}
  4882. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4883. lt_unset=unset
  4884. else
  4885. lt_unset=false
  4886. fi
  4887. # test EBCDIC or ASCII
  4888. case `echo X|tr X '\101'` in
  4889. A) # ASCII based system
  4890. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4891. lt_SP2NL='tr \040 \012'
  4892. lt_NL2SP='tr \015\012 \040\040'
  4893. ;;
  4894. *) # EBCDIC based system
  4895. lt_SP2NL='tr \100 \n'
  4896. lt_NL2SP='tr \r\n \100\100'
  4897. ;;
  4898. esac
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4900. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4901. if ${lt_cv_to_host_file_cmd+:} false; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. case $host in
  4905. *-*-mingw* )
  4906. case $build in
  4907. *-*-mingw* ) # actually msys
  4908. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4909. ;;
  4910. *-*-cygwin* )
  4911. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4912. ;;
  4913. * ) # otherwise, assume *nix
  4914. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4915. ;;
  4916. esac
  4917. ;;
  4918. *-*-cygwin* )
  4919. case $build in
  4920. *-*-mingw* ) # actually msys
  4921. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4922. ;;
  4923. *-*-cygwin* )
  4924. lt_cv_to_host_file_cmd=func_convert_file_noop
  4925. ;;
  4926. * ) # otherwise, assume *nix
  4927. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4928. ;;
  4929. esac
  4930. ;;
  4931. * ) # unhandled hosts (and "normal" native builds)
  4932. lt_cv_to_host_file_cmd=func_convert_file_noop
  4933. ;;
  4934. esac
  4935. fi
  4936. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4938. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4940. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4941. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4942. $as_echo_n "(cached) " >&6
  4943. else
  4944. #assume ordinary cross tools, or native build.
  4945. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4946. case $host in
  4947. *-*-mingw* )
  4948. case $build in
  4949. *-*-mingw* ) # actually msys
  4950. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4951. ;;
  4952. esac
  4953. ;;
  4954. esac
  4955. fi
  4956. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4958. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4960. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4961. if ${lt_cv_ld_reload_flag+:} false; then :
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. lt_cv_ld_reload_flag='-r'
  4965. fi
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4967. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4968. reload_flag=$lt_cv_ld_reload_flag
  4969. case $reload_flag in
  4970. "" | " "*) ;;
  4971. *) reload_flag=" $reload_flag" ;;
  4972. esac
  4973. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4974. case $host_os in
  4975. cygwin* | mingw* | pw32* | cegcc*)
  4976. if test yes != "$GCC"; then
  4977. reload_cmds=false
  4978. fi
  4979. ;;
  4980. darwin*)
  4981. if test yes = "$GCC"; then
  4982. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4983. else
  4984. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4985. fi
  4986. ;;
  4987. esac
  4988. if test -n "$ac_tool_prefix"; then
  4989. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4990. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4992. $as_echo_n "checking for $ac_word... " >&6; }
  4993. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. if test -n "$OBJDUMP"; then
  4997. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. test -z "$as_dir" && as_dir=.
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5006. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5008. break 2
  5009. fi
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. fi
  5014. fi
  5015. OBJDUMP=$ac_cv_prog_OBJDUMP
  5016. if test -n "$OBJDUMP"; then
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5018. $as_echo "$OBJDUMP" >&6; }
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5021. $as_echo "no" >&6; }
  5022. fi
  5023. fi
  5024. if test -z "$ac_cv_prog_OBJDUMP"; then
  5025. ac_ct_OBJDUMP=$OBJDUMP
  5026. # Extract the first word of "objdump", so it can be a program name with args.
  5027. set dummy objdump; ac_word=$2
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. $as_echo_n "checking for $ac_word... " >&6; }
  5030. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. if test -n "$ac_ct_OBJDUMP"; then
  5034. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. test -z "$as_dir" && as_dir=.
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5043. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5045. break 2
  5046. fi
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. fi
  5051. fi
  5052. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5053. if test -n "$ac_ct_OBJDUMP"; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5055. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060. if test "x$ac_ct_OBJDUMP" = x; then
  5061. OBJDUMP="false"
  5062. else
  5063. case $cross_compiling:$ac_tool_warned in
  5064. yes:)
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5067. ac_tool_warned=yes ;;
  5068. esac
  5069. OBJDUMP=$ac_ct_OBJDUMP
  5070. fi
  5071. else
  5072. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5073. fi
  5074. test -z "$OBJDUMP" && OBJDUMP=objdump
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5076. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5077. if ${lt_cv_deplibs_check_method+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5081. lt_cv_file_magic_test_file=
  5082. lt_cv_deplibs_check_method='unknown'
  5083. # Need to set the preceding variable on all platforms that support
  5084. # interlibrary dependencies.
  5085. # 'none' -- dependencies not supported.
  5086. # 'unknown' -- same as none, but documents that we really don't know.
  5087. # 'pass_all' -- all dependencies passed with no checks.
  5088. # 'test_compile' -- check by making test program.
  5089. # 'file_magic [[regex]]' -- check by looking for files in library path
  5090. # that responds to the $file_magic_cmd with a given extended regex.
  5091. # If you have 'file' or equivalent on your system and you're not sure
  5092. # whether 'pass_all' will *always* work, you probably want this one.
  5093. case $host_os in
  5094. aix[4-9]*)
  5095. lt_cv_deplibs_check_method=pass_all
  5096. ;;
  5097. beos*)
  5098. lt_cv_deplibs_check_method=pass_all
  5099. ;;
  5100. bsdi[45]*)
  5101. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5102. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5103. lt_cv_file_magic_test_file=/shlib/libc.so
  5104. ;;
  5105. cygwin*)
  5106. # func_win32_libid is a shell function defined in ltmain.sh
  5107. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5108. lt_cv_file_magic_cmd='func_win32_libid'
  5109. ;;
  5110. mingw* | pw32*)
  5111. # Base MSYS/MinGW do not provide the 'file' command needed by
  5112. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5113. # unless we find 'file', for example because we are cross-compiling.
  5114. if ( file / ) >/dev/null 2>&1; then
  5115. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5116. lt_cv_file_magic_cmd='func_win32_libid'
  5117. else
  5118. # Keep this pattern in sync with the one in func_win32_libid.
  5119. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5120. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5121. fi
  5122. ;;
  5123. cegcc*)
  5124. # use the weaker test based on 'objdump'. See mingw*.
  5125. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5126. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5127. ;;
  5128. darwin* | rhapsody*)
  5129. lt_cv_deplibs_check_method=pass_all
  5130. ;;
  5131. freebsd* | dragonfly*)
  5132. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5133. case $host_cpu in
  5134. i*86 )
  5135. # Not sure whether the presence of OpenBSD here was a mistake.
  5136. # Let's accept both of them until this is cleared up.
  5137. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5138. lt_cv_file_magic_cmd=/usr/bin/file
  5139. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5140. ;;
  5141. esac
  5142. else
  5143. lt_cv_deplibs_check_method=pass_all
  5144. fi
  5145. ;;
  5146. haiku*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. hpux10.20* | hpux11*)
  5150. lt_cv_file_magic_cmd=/usr/bin/file
  5151. case $host_cpu in
  5152. ia64*)
  5153. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5154. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5155. ;;
  5156. hppa*64*)
  5157. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5158. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5159. ;;
  5160. *)
  5161. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5162. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5163. ;;
  5164. esac
  5165. ;;
  5166. interix[3-9]*)
  5167. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5168. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5169. ;;
  5170. irix5* | irix6* | nonstopux*)
  5171. case $LD in
  5172. *-32|*"-32 ") libmagic=32-bit;;
  5173. *-n32|*"-n32 ") libmagic=N32;;
  5174. *-64|*"-64 ") libmagic=64-bit;;
  5175. *) libmagic=never-match;;
  5176. esac
  5177. lt_cv_deplibs_check_method=pass_all
  5178. ;;
  5179. # This must be glibc/ELF.
  5180. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5181. lt_cv_deplibs_check_method=pass_all
  5182. ;;
  5183. netbsd* | netbsdelf*-gnu)
  5184. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5185. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5186. else
  5187. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5188. fi
  5189. ;;
  5190. newos6*)
  5191. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5192. lt_cv_file_magic_cmd=/usr/bin/file
  5193. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5194. ;;
  5195. *nto* | *qnx*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. openbsd* | bitrig*)
  5199. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5201. else
  5202. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5203. fi
  5204. ;;
  5205. osf3* | osf4* | osf5*)
  5206. lt_cv_deplibs_check_method=pass_all
  5207. ;;
  5208. rdos*)
  5209. lt_cv_deplibs_check_method=pass_all
  5210. ;;
  5211. solaris*)
  5212. lt_cv_deplibs_check_method=pass_all
  5213. ;;
  5214. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5215. lt_cv_deplibs_check_method=pass_all
  5216. ;;
  5217. sysv4 | sysv4.3*)
  5218. case $host_vendor in
  5219. motorola)
  5220. 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]'
  5221. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5222. ;;
  5223. ncr)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. sequent)
  5227. lt_cv_file_magic_cmd='/bin/file'
  5228. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5229. ;;
  5230. sni)
  5231. lt_cv_file_magic_cmd='/bin/file'
  5232. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5233. lt_cv_file_magic_test_file=/lib/libc.so
  5234. ;;
  5235. siemens)
  5236. lt_cv_deplibs_check_method=pass_all
  5237. ;;
  5238. pc)
  5239. lt_cv_deplibs_check_method=pass_all
  5240. ;;
  5241. esac
  5242. ;;
  5243. tpf*)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246. os2*)
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. esac
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5252. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5253. file_magic_glob=
  5254. want_nocaseglob=no
  5255. if test "$build" = "$host"; then
  5256. case $host_os in
  5257. mingw* | pw32*)
  5258. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5259. want_nocaseglob=yes
  5260. else
  5261. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5262. fi
  5263. ;;
  5264. esac
  5265. fi
  5266. file_magic_cmd=$lt_cv_file_magic_cmd
  5267. deplibs_check_method=$lt_cv_deplibs_check_method
  5268. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5269. if test -n "$ac_tool_prefix"; then
  5270. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5271. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5273. $as_echo_n "checking for $ac_word... " >&6; }
  5274. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. if test -n "$DLLTOOL"; then
  5278. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5279. else
  5280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5281. for as_dir in $PATH
  5282. do
  5283. IFS=$as_save_IFS
  5284. test -z "$as_dir" && as_dir=.
  5285. for ac_exec_ext in '' $ac_executable_extensions; do
  5286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5287. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5289. break 2
  5290. fi
  5291. done
  5292. done
  5293. IFS=$as_save_IFS
  5294. fi
  5295. fi
  5296. DLLTOOL=$ac_cv_prog_DLLTOOL
  5297. if test -n "$DLLTOOL"; then
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5299. $as_echo "$DLLTOOL" >&6; }
  5300. else
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5302. $as_echo "no" >&6; }
  5303. fi
  5304. fi
  5305. if test -z "$ac_cv_prog_DLLTOOL"; then
  5306. ac_ct_DLLTOOL=$DLLTOOL
  5307. # Extract the first word of "dlltool", so it can be a program name with args.
  5308. set dummy dlltool; ac_word=$2
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5310. $as_echo_n "checking for $ac_word... " >&6; }
  5311. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. if test -n "$ac_ct_DLLTOOL"; then
  5315. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5316. else
  5317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. test -z "$as_dir" && as_dir=.
  5322. for ac_exec_ext in '' $ac_executable_extensions; do
  5323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5324. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5326. break 2
  5327. fi
  5328. done
  5329. done
  5330. IFS=$as_save_IFS
  5331. fi
  5332. fi
  5333. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5334. if test -n "$ac_ct_DLLTOOL"; then
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5336. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5337. else
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5339. $as_echo "no" >&6; }
  5340. fi
  5341. if test "x$ac_ct_DLLTOOL" = x; then
  5342. DLLTOOL="false"
  5343. else
  5344. case $cross_compiling:$ac_tool_warned in
  5345. yes:)
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5348. ac_tool_warned=yes ;;
  5349. esac
  5350. DLLTOOL=$ac_ct_DLLTOOL
  5351. fi
  5352. else
  5353. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5354. fi
  5355. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5357. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5358. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5362. case $host_os in
  5363. cygwin* | mingw* | pw32* | cegcc*)
  5364. # two different shell functions defined in ltmain.sh;
  5365. # decide which one to use based on capabilities of $DLLTOOL
  5366. case `$DLLTOOL --help 2>&1` in
  5367. *--identify-strict*)
  5368. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5369. ;;
  5370. *)
  5371. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5372. ;;
  5373. esac
  5374. ;;
  5375. *)
  5376. # fallback: assume linklib IS sharedlib
  5377. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5378. ;;
  5379. esac
  5380. fi
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5382. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5383. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5384. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5385. if test -n "$ac_tool_prefix"; then
  5386. for ac_prog in ar
  5387. do
  5388. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5389. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. $as_echo_n "checking for $ac_word... " >&6; }
  5392. if ${ac_cv_prog_AR+:} false; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. if test -n "$AR"; then
  5396. ac_cv_prog_AR="$AR" # Let the user override the test.
  5397. else
  5398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5399. for as_dir in $PATH
  5400. do
  5401. IFS=$as_save_IFS
  5402. test -z "$as_dir" && as_dir=.
  5403. for ac_exec_ext in '' $ac_executable_extensions; do
  5404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5405. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5407. break 2
  5408. fi
  5409. done
  5410. done
  5411. IFS=$as_save_IFS
  5412. fi
  5413. fi
  5414. AR=$ac_cv_prog_AR
  5415. if test -n "$AR"; then
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5417. $as_echo "$AR" >&6; }
  5418. else
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5420. $as_echo "no" >&6; }
  5421. fi
  5422. test -n "$AR" && break
  5423. done
  5424. fi
  5425. if test -z "$AR"; then
  5426. ac_ct_AR=$AR
  5427. for ac_prog in ar
  5428. do
  5429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5430. set dummy $ac_prog; ac_word=$2
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5432. $as_echo_n "checking for $ac_word... " >&6; }
  5433. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5434. $as_echo_n "(cached) " >&6
  5435. else
  5436. if test -n "$ac_ct_AR"; then
  5437. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5438. else
  5439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5440. for as_dir in $PATH
  5441. do
  5442. IFS=$as_save_IFS
  5443. test -z "$as_dir" && as_dir=.
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5446. ac_cv_prog_ac_ct_AR="$ac_prog"
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. IFS=$as_save_IFS
  5453. fi
  5454. fi
  5455. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5456. if test -n "$ac_ct_AR"; then
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5458. $as_echo "$ac_ct_AR" >&6; }
  5459. else
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5461. $as_echo "no" >&6; }
  5462. fi
  5463. test -n "$ac_ct_AR" && break
  5464. done
  5465. if test "x$ac_ct_AR" = x; then
  5466. AR="false"
  5467. else
  5468. case $cross_compiling:$ac_tool_warned in
  5469. yes:)
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5472. ac_tool_warned=yes ;;
  5473. esac
  5474. AR=$ac_ct_AR
  5475. fi
  5476. fi
  5477. : ${AR=ar}
  5478. : ${AR_FLAGS=cr}
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5480. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5481. if ${lt_cv_ar_at_file+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. lt_cv_ar_at_file=no
  5485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5486. /* end confdefs.h. */
  5487. int
  5488. main ()
  5489. {
  5490. ;
  5491. return 0;
  5492. }
  5493. _ACEOF
  5494. if ac_fn_cxx_try_compile "$LINENO"; then :
  5495. echo conftest.$ac_objext > conftest.lst
  5496. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5497. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5498. (eval $lt_ar_try) 2>&5
  5499. ac_status=$?
  5500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5501. test $ac_status = 0; }
  5502. if test 0 -eq "$ac_status"; then
  5503. # Ensure the archiver fails upon bogus file names.
  5504. rm -f conftest.$ac_objext libconftest.a
  5505. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5506. (eval $lt_ar_try) 2>&5
  5507. ac_status=$?
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5509. test $ac_status = 0; }
  5510. if test 0 -ne "$ac_status"; then
  5511. lt_cv_ar_at_file=@
  5512. fi
  5513. fi
  5514. rm -f conftest.* libconftest.a
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5519. $as_echo "$lt_cv_ar_at_file" >&6; }
  5520. if test no = "$lt_cv_ar_at_file"; then
  5521. archiver_list_spec=
  5522. else
  5523. archiver_list_spec=$lt_cv_ar_at_file
  5524. fi
  5525. if test -n "$ac_tool_prefix"; then
  5526. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5527. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_STRIP+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$STRIP"; then
  5534. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. STRIP=$ac_cv_prog_STRIP
  5553. if test -n "$STRIP"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5555. $as_echo "$STRIP" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. fi
  5561. if test -z "$ac_cv_prog_STRIP"; then
  5562. ac_ct_STRIP=$STRIP
  5563. # Extract the first word of "strip", so it can be a program name with args.
  5564. set dummy strip; ac_word=$2
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5566. $as_echo_n "checking for $ac_word... " >&6; }
  5567. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5568. $as_echo_n "(cached) " >&6
  5569. else
  5570. if test -n "$ac_ct_STRIP"; then
  5571. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5572. else
  5573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5574. for as_dir in $PATH
  5575. do
  5576. IFS=$as_save_IFS
  5577. test -z "$as_dir" && as_dir=.
  5578. for ac_exec_ext in '' $ac_executable_extensions; do
  5579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5580. ac_cv_prog_ac_ct_STRIP="strip"
  5581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5582. break 2
  5583. fi
  5584. done
  5585. done
  5586. IFS=$as_save_IFS
  5587. fi
  5588. fi
  5589. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5590. if test -n "$ac_ct_STRIP"; then
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5592. $as_echo "$ac_ct_STRIP" >&6; }
  5593. else
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5595. $as_echo "no" >&6; }
  5596. fi
  5597. if test "x$ac_ct_STRIP" = x; then
  5598. STRIP=":"
  5599. else
  5600. case $cross_compiling:$ac_tool_warned in
  5601. yes:)
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5603. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5604. ac_tool_warned=yes ;;
  5605. esac
  5606. STRIP=$ac_ct_STRIP
  5607. fi
  5608. else
  5609. STRIP="$ac_cv_prog_STRIP"
  5610. fi
  5611. test -z "$STRIP" && STRIP=:
  5612. if test -n "$ac_tool_prefix"; then
  5613. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5614. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5616. $as_echo_n "checking for $ac_word... " >&6; }
  5617. if ${ac_cv_prog_RANLIB+:} false; then :
  5618. $as_echo_n "(cached) " >&6
  5619. else
  5620. if test -n "$RANLIB"; then
  5621. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. test -z "$as_dir" && as_dir=.
  5628. for ac_exec_ext in '' $ac_executable_extensions; do
  5629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5630. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5632. break 2
  5633. fi
  5634. done
  5635. done
  5636. IFS=$as_save_IFS
  5637. fi
  5638. fi
  5639. RANLIB=$ac_cv_prog_RANLIB
  5640. if test -n "$RANLIB"; then
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5642. $as_echo "$RANLIB" >&6; }
  5643. else
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5645. $as_echo "no" >&6; }
  5646. fi
  5647. fi
  5648. if test -z "$ac_cv_prog_RANLIB"; then
  5649. ac_ct_RANLIB=$RANLIB
  5650. # Extract the first word of "ranlib", so it can be a program name with args.
  5651. set dummy ranlib; ac_word=$2
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5653. $as_echo_n "checking for $ac_word... " >&6; }
  5654. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. if test -n "$ac_ct_RANLIB"; then
  5658. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5659. else
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5667. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. fi
  5675. fi
  5676. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5677. if test -n "$ac_ct_RANLIB"; then
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5679. $as_echo "$ac_ct_RANLIB" >&6; }
  5680. else
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5682. $as_echo "no" >&6; }
  5683. fi
  5684. if test "x$ac_ct_RANLIB" = x; then
  5685. RANLIB=":"
  5686. else
  5687. case $cross_compiling:$ac_tool_warned in
  5688. yes:)
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5691. ac_tool_warned=yes ;;
  5692. esac
  5693. RANLIB=$ac_ct_RANLIB
  5694. fi
  5695. else
  5696. RANLIB="$ac_cv_prog_RANLIB"
  5697. fi
  5698. test -z "$RANLIB" && RANLIB=:
  5699. # Determine commands to create old-style static archives.
  5700. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5701. old_postinstall_cmds='chmod 644 $oldlib'
  5702. old_postuninstall_cmds=
  5703. if test -n "$RANLIB"; then
  5704. case $host_os in
  5705. bitrig* | openbsd*)
  5706. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5707. ;;
  5708. *)
  5709. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5710. ;;
  5711. esac
  5712. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5713. fi
  5714. case $host_os in
  5715. darwin*)
  5716. lock_old_archive_extraction=yes ;;
  5717. *)
  5718. lock_old_archive_extraction=no ;;
  5719. esac
  5720. # If no C compiler was specified, use CC.
  5721. LTCC=${LTCC-"$CC"}
  5722. # If no C compiler flags were specified, use CFLAGS.
  5723. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5724. # Allow CC to be a program name with arguments.
  5725. compiler=$CC
  5726. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5728. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5729. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. # These are sane defaults that work on at least a few old systems.
  5733. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5734. # Character class describing NM global symbol codes.
  5735. symcode='[BCDEGRST]'
  5736. # Regexp to match symbols that can be accessed directly from C.
  5737. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5738. # Define system-specific variables.
  5739. case $host_os in
  5740. aix*)
  5741. symcode='[BCDT]'
  5742. ;;
  5743. cygwin* | mingw* | pw32* | cegcc*)
  5744. symcode='[ABCDGISTW]'
  5745. ;;
  5746. hpux*)
  5747. if test ia64 = "$host_cpu"; then
  5748. symcode='[ABCDEGRST]'
  5749. fi
  5750. ;;
  5751. irix* | nonstopux*)
  5752. symcode='[BCDEGRST]'
  5753. ;;
  5754. osf*)
  5755. symcode='[BCDEGQRST]'
  5756. ;;
  5757. solaris*)
  5758. symcode='[BDRT]'
  5759. ;;
  5760. sco3.2v5*)
  5761. symcode='[DT]'
  5762. ;;
  5763. sysv4.2uw2*)
  5764. symcode='[DT]'
  5765. ;;
  5766. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5767. symcode='[ABDT]'
  5768. ;;
  5769. sysv4)
  5770. symcode='[DFNSTU]'
  5771. ;;
  5772. esac
  5773. # If we're using GNU nm, then use its standard symbol codes.
  5774. case `$NM -V 2>&1` in
  5775. *GNU* | *'with BFD'*)
  5776. symcode='[ABCDGIRSTW]' ;;
  5777. esac
  5778. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5779. # Gets list of data symbols to import.
  5780. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5781. # Adjust the below global symbol transforms to fixup imported variables.
  5782. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5783. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5784. lt_c_name_lib_hook="\
  5785. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5786. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5787. else
  5788. # Disable hooks by default.
  5789. lt_cv_sys_global_symbol_to_import=
  5790. lt_cdecl_hook=
  5791. lt_c_name_hook=
  5792. lt_c_name_lib_hook=
  5793. fi
  5794. # Transform an extracted symbol line into a proper C declaration.
  5795. # Some systems (esp. on ia64) link data and code symbols differently,
  5796. # so use this general approach.
  5797. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5798. $lt_cdecl_hook\
  5799. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5800. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5801. # Transform an extracted symbol line into symbol name and symbol address
  5802. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5803. $lt_c_name_hook\
  5804. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5805. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5806. # Transform an extracted symbol line into symbol name with lib prefix and
  5807. # symbol address.
  5808. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5809. $lt_c_name_lib_hook\
  5810. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5811. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5812. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5813. # Handle CRLF in mingw tool chain
  5814. opt_cr=
  5815. case $build_os in
  5816. mingw*)
  5817. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5818. ;;
  5819. esac
  5820. # Try without a prefix underscore, then with it.
  5821. for ac_symprfx in "" "_"; do
  5822. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5823. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5824. # Write the raw and C identifiers.
  5825. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5826. # Fake it for dumpbin and say T for any non-static function,
  5827. # D for any global variable and I for any imported variable.
  5828. # Also find C++ and __fastcall symbols from MSVC++,
  5829. # which start with @ or ?.
  5830. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5831. " {last_section=section; section=\$ 3};"\
  5832. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5833. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5834. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5835. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5836. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5837. " \$ 0!~/External *\|/{next};"\
  5838. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5839. " {if(hide[section]) next};"\
  5840. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5841. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5842. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5843. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5844. " ' prfx=^$ac_symprfx"
  5845. else
  5846. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5847. fi
  5848. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5849. # Check to see that the pipe works correctly.
  5850. pipe_works=no
  5851. rm -f conftest*
  5852. cat > conftest.$ac_ext <<_LT_EOF
  5853. #ifdef __cplusplus
  5854. extern "C" {
  5855. #endif
  5856. char nm_test_var;
  5857. void nm_test_func(void);
  5858. void nm_test_func(void){}
  5859. #ifdef __cplusplus
  5860. }
  5861. #endif
  5862. int main(){nm_test_var='a';nm_test_func();return(0);}
  5863. _LT_EOF
  5864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5865. (eval $ac_compile) 2>&5
  5866. ac_status=$?
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5868. test $ac_status = 0; }; then
  5869. # Now try to grab the symbols.
  5870. nlist=conftest.nm
  5871. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  5872. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  5873. # Try sorting and uniquifying the output.
  5874. if sort "$nlist" | uniq > "$nlist"T; then
  5875. mv -f "$nlist"T "$nlist"
  5876. else
  5877. rm -f "$nlist"T
  5878. fi
  5879. # Make sure that we snagged all the symbols we need.
  5880. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5881. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5882. cat <<_LT_EOF > conftest.$ac_ext
  5883. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5884. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5885. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5886. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5887. # define LT_DLSYM_CONST
  5888. #elif defined __osf__
  5889. /* This system does not cope well with relocations in const data. */
  5890. # define LT_DLSYM_CONST
  5891. #else
  5892. # define LT_DLSYM_CONST const
  5893. #endif
  5894. #ifdef __cplusplus
  5895. extern "C" {
  5896. #endif
  5897. _LT_EOF
  5898. # Now generate the symbol file.
  5899. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5900. cat <<_LT_EOF >> conftest.$ac_ext
  5901. /* The mapping between symbol names and symbols. */
  5902. LT_DLSYM_CONST struct {
  5903. const char *name;
  5904. void *address;
  5905. }
  5906. lt__PROGRAM__LTX_preloaded_symbols[] =
  5907. {
  5908. { "@PROGRAM@", (void *) 0 },
  5909. _LT_EOF
  5910. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5911. cat <<\_LT_EOF >> conftest.$ac_ext
  5912. {0, (void *) 0}
  5913. };
  5914. /* This works around a problem in FreeBSD linker */
  5915. #ifdef FREEBSD_WORKAROUND
  5916. static const void *lt_preloaded_setup() {
  5917. return lt__PROGRAM__LTX_preloaded_symbols;
  5918. }
  5919. #endif
  5920. #ifdef __cplusplus
  5921. }
  5922. #endif
  5923. _LT_EOF
  5924. # Now try linking the two files.
  5925. mv conftest.$ac_objext conftstm.$ac_objext
  5926. lt_globsym_save_LIBS=$LIBS
  5927. lt_globsym_save_CFLAGS=$CFLAGS
  5928. LIBS=conftstm.$ac_objext
  5929. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5930. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5931. (eval $ac_link) 2>&5
  5932. ac_status=$?
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5934. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5935. pipe_works=yes
  5936. fi
  5937. LIBS=$lt_globsym_save_LIBS
  5938. CFLAGS=$lt_globsym_save_CFLAGS
  5939. else
  5940. echo "cannot find nm_test_func in $nlist" >&5
  5941. fi
  5942. else
  5943. echo "cannot find nm_test_var in $nlist" >&5
  5944. fi
  5945. else
  5946. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5947. fi
  5948. else
  5949. echo "$progname: failed program was:" >&5
  5950. cat conftest.$ac_ext >&5
  5951. fi
  5952. rm -rf conftest* conftst*
  5953. # Do not use the global_symbol_pipe unless it works.
  5954. if test yes = "$pipe_works"; then
  5955. break
  5956. else
  5957. lt_cv_sys_global_symbol_pipe=
  5958. fi
  5959. done
  5960. fi
  5961. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5962. lt_cv_sys_global_symbol_to_cdecl=
  5963. fi
  5964. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5966. $as_echo "failed" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5969. $as_echo "ok" >&6; }
  5970. fi
  5971. # Response file support.
  5972. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5973. nm_file_list_spec='@'
  5974. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5975. nm_file_list_spec='@'
  5976. fi
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5978. $as_echo_n "checking for sysroot... " >&6; }
  5979. # Check whether --with-sysroot was given.
  5980. if test "${with_sysroot+set}" = set; then :
  5981. withval=$with_sysroot;
  5982. else
  5983. with_sysroot=no
  5984. fi
  5985. lt_sysroot=
  5986. case $with_sysroot in #(
  5987. yes)
  5988. if test yes = "$GCC"; then
  5989. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5990. fi
  5991. ;; #(
  5992. /*)
  5993. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5994. ;; #(
  5995. no|'')
  5996. ;; #(
  5997. *)
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5999. $as_echo "$with_sysroot" >&6; }
  6000. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6001. ;;
  6002. esac
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6004. $as_echo "${lt_sysroot:-no}" >&6; }
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6006. $as_echo_n "checking for a working dd... " >&6; }
  6007. if ${ac_cv_path_lt_DD+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. printf 0123456789abcdef0123456789abcdef >conftest.i
  6011. cat conftest.i conftest.i >conftest2.i
  6012. : ${lt_DD:=$DD}
  6013. if test -z "$lt_DD"; then
  6014. ac_path_lt_DD_found=false
  6015. # Loop through the user's path and test for each of PROGNAME-LIST
  6016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6017. for as_dir in $PATH
  6018. do
  6019. IFS=$as_save_IFS
  6020. test -z "$as_dir" && as_dir=.
  6021. for ac_prog in dd; do
  6022. for ac_exec_ext in '' $ac_executable_extensions; do
  6023. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6024. as_fn_executable_p "$ac_path_lt_DD" || continue
  6025. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6026. cmp -s conftest.i conftest.out \
  6027. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6028. fi
  6029. $ac_path_lt_DD_found && break 3
  6030. done
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. if test -z "$ac_cv_path_lt_DD"; then
  6035. :
  6036. fi
  6037. else
  6038. ac_cv_path_lt_DD=$lt_DD
  6039. fi
  6040. rm -f conftest.i conftest2.i conftest.out
  6041. fi
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6043. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6045. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6046. if ${lt_cv_truncate_bin+:} false; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. printf 0123456789abcdef0123456789abcdef >conftest.i
  6050. cat conftest.i conftest.i >conftest2.i
  6051. lt_cv_truncate_bin=
  6052. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6053. cmp -s conftest.i conftest.out \
  6054. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6055. fi
  6056. rm -f conftest.i conftest2.i conftest.out
  6057. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6058. fi
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6060. $as_echo "$lt_cv_truncate_bin" >&6; }
  6061. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6062. func_cc_basename ()
  6063. {
  6064. for cc_temp in $*""; do
  6065. case $cc_temp in
  6066. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6067. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6068. \-*) ;;
  6069. *) break;;
  6070. esac
  6071. done
  6072. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6073. }
  6074. # Check whether --enable-libtool-lock was given.
  6075. if test "${enable_libtool_lock+set}" = set; then :
  6076. enableval=$enable_libtool_lock;
  6077. fi
  6078. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6079. # Some flags need to be propagated to the compiler or linker for good
  6080. # libtool support.
  6081. case $host in
  6082. ia64-*-hpux*)
  6083. # Find out what ABI is being produced by ac_compile, and set mode
  6084. # options accordingly.
  6085. echo 'int i;' > conftest.$ac_ext
  6086. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6087. (eval $ac_compile) 2>&5
  6088. ac_status=$?
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6090. test $ac_status = 0; }; then
  6091. case `/usr/bin/file conftest.$ac_objext` in
  6092. *ELF-32*)
  6093. HPUX_IA64_MODE=32
  6094. ;;
  6095. *ELF-64*)
  6096. HPUX_IA64_MODE=64
  6097. ;;
  6098. esac
  6099. fi
  6100. rm -rf conftest*
  6101. ;;
  6102. *-*-irix6*)
  6103. # Find out what ABI is being produced by ac_compile, and set linker
  6104. # options accordingly.
  6105. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6107. (eval $ac_compile) 2>&5
  6108. ac_status=$?
  6109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6110. test $ac_status = 0; }; then
  6111. if test yes = "$lt_cv_prog_gnu_ld"; then
  6112. case `/usr/bin/file conftest.$ac_objext` in
  6113. *32-bit*)
  6114. LD="${LD-ld} -melf32bsmip"
  6115. ;;
  6116. *N32*)
  6117. LD="${LD-ld} -melf32bmipn32"
  6118. ;;
  6119. *64-bit*)
  6120. LD="${LD-ld} -melf64bmip"
  6121. ;;
  6122. esac
  6123. else
  6124. case `/usr/bin/file conftest.$ac_objext` in
  6125. *32-bit*)
  6126. LD="${LD-ld} -32"
  6127. ;;
  6128. *N32*)
  6129. LD="${LD-ld} -n32"
  6130. ;;
  6131. *64-bit*)
  6132. LD="${LD-ld} -64"
  6133. ;;
  6134. esac
  6135. fi
  6136. fi
  6137. rm -rf conftest*
  6138. ;;
  6139. mips64*-*linux*)
  6140. # Find out what ABI is being produced by ac_compile, and set linker
  6141. # options accordingly.
  6142. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6143. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6144. (eval $ac_compile) 2>&5
  6145. ac_status=$?
  6146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6147. test $ac_status = 0; }; then
  6148. emul=elf
  6149. case `/usr/bin/file conftest.$ac_objext` in
  6150. *32-bit*)
  6151. emul="${emul}32"
  6152. ;;
  6153. *64-bit*)
  6154. emul="${emul}64"
  6155. ;;
  6156. esac
  6157. case `/usr/bin/file conftest.$ac_objext` in
  6158. *MSB*)
  6159. emul="${emul}btsmip"
  6160. ;;
  6161. *LSB*)
  6162. emul="${emul}ltsmip"
  6163. ;;
  6164. esac
  6165. case `/usr/bin/file conftest.$ac_objext` in
  6166. *N32*)
  6167. emul="${emul}n32"
  6168. ;;
  6169. esac
  6170. LD="${LD-ld} -m $emul"
  6171. fi
  6172. rm -rf conftest*
  6173. ;;
  6174. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6175. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6176. # Find out what ABI is being produced by ac_compile, and set linker
  6177. # options accordingly. Note that the listed cases only cover the
  6178. # situations where additional linker options are needed (such as when
  6179. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6180. # vice versa); the common cases where no linker options are needed do
  6181. # not appear in the list.
  6182. echo 'int i;' > conftest.$ac_ext
  6183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6184. (eval $ac_compile) 2>&5
  6185. ac_status=$?
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6187. test $ac_status = 0; }; then
  6188. case `/usr/bin/file conftest.o` in
  6189. *32-bit*)
  6190. case $host in
  6191. x86_64-*kfreebsd*-gnu)
  6192. LD="${LD-ld} -m elf_i386_fbsd"
  6193. ;;
  6194. x86_64-*linux*)
  6195. case `/usr/bin/file conftest.o` in
  6196. *x86-64*)
  6197. LD="${LD-ld} -m elf32_x86_64"
  6198. ;;
  6199. *)
  6200. LD="${LD-ld} -m elf_i386"
  6201. ;;
  6202. esac
  6203. ;;
  6204. powerpc64le-*linux*)
  6205. LD="${LD-ld} -m elf32lppclinux"
  6206. ;;
  6207. powerpc64-*linux*)
  6208. LD="${LD-ld} -m elf32ppclinux"
  6209. ;;
  6210. s390x-*linux*)
  6211. LD="${LD-ld} -m elf_s390"
  6212. ;;
  6213. sparc64-*linux*)
  6214. LD="${LD-ld} -m elf32_sparc"
  6215. ;;
  6216. esac
  6217. ;;
  6218. *64-bit*)
  6219. case $host in
  6220. x86_64-*kfreebsd*-gnu)
  6221. LD="${LD-ld} -m elf_x86_64_fbsd"
  6222. ;;
  6223. x86_64-*linux*)
  6224. LD="${LD-ld} -m elf_x86_64"
  6225. ;;
  6226. powerpcle-*linux*)
  6227. LD="${LD-ld} -m elf64lppc"
  6228. ;;
  6229. powerpc-*linux*)
  6230. LD="${LD-ld} -m elf64ppc"
  6231. ;;
  6232. s390*-*linux*|s390*-*tpf*)
  6233. LD="${LD-ld} -m elf64_s390"
  6234. ;;
  6235. sparc*-*linux*)
  6236. LD="${LD-ld} -m elf64_sparc"
  6237. ;;
  6238. esac
  6239. ;;
  6240. esac
  6241. fi
  6242. rm -rf conftest*
  6243. ;;
  6244. *-*-sco3.2v5*)
  6245. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6246. SAVE_CFLAGS=$CFLAGS
  6247. CFLAGS="$CFLAGS -belf"
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6249. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6250. if ${lt_cv_cc_needs_belf+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. ac_ext=c
  6254. ac_cpp='$CPP $CPPFLAGS'
  6255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h. */
  6260. int
  6261. main ()
  6262. {
  6263. ;
  6264. return 0;
  6265. }
  6266. _ACEOF
  6267. if ac_fn_c_try_link "$LINENO"; then :
  6268. lt_cv_cc_needs_belf=yes
  6269. else
  6270. lt_cv_cc_needs_belf=no
  6271. fi
  6272. rm -f core conftest.err conftest.$ac_objext \
  6273. conftest$ac_exeext conftest.$ac_ext
  6274. ac_ext=c
  6275. ac_cpp='$CPP $CPPFLAGS'
  6276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6279. fi
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6281. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6282. if test yes != "$lt_cv_cc_needs_belf"; then
  6283. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6284. CFLAGS=$SAVE_CFLAGS
  6285. fi
  6286. ;;
  6287. *-*solaris*)
  6288. # Find out what ABI is being produced by ac_compile, and set linker
  6289. # options accordingly.
  6290. echo 'int i;' > conftest.$ac_ext
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6292. (eval $ac_compile) 2>&5
  6293. ac_status=$?
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; }; then
  6296. case `/usr/bin/file conftest.o` in
  6297. *64-bit*)
  6298. case $lt_cv_prog_gnu_ld in
  6299. yes*)
  6300. case $host in
  6301. i?86-*-solaris*|x86_64-*-solaris*)
  6302. LD="${LD-ld} -m elf_x86_64"
  6303. ;;
  6304. sparc*-*-solaris*)
  6305. LD="${LD-ld} -m elf64_sparc"
  6306. ;;
  6307. esac
  6308. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6309. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6310. LD=${LD-ld}_sol2
  6311. fi
  6312. ;;
  6313. *)
  6314. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6315. LD="${LD-ld} -64"
  6316. fi
  6317. ;;
  6318. esac
  6319. ;;
  6320. esac
  6321. fi
  6322. rm -rf conftest*
  6323. ;;
  6324. esac
  6325. need_locks=$enable_libtool_lock
  6326. if test -n "$ac_tool_prefix"; then
  6327. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6328. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6330. $as_echo_n "checking for $ac_word... " >&6; }
  6331. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6332. $as_echo_n "(cached) " >&6
  6333. else
  6334. if test -n "$MANIFEST_TOOL"; then
  6335. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6344. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6354. if test -n "$MANIFEST_TOOL"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6356. $as_echo "$MANIFEST_TOOL" >&6; }
  6357. else
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. $as_echo "no" >&6; }
  6360. fi
  6361. fi
  6362. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6363. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6364. # Extract the first word of "mt", so it can be a program name with args.
  6365. set dummy mt; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6372. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6381. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6391. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6393. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6399. MANIFEST_TOOL=":"
  6400. else
  6401. case $cross_compiling:$ac_tool_warned in
  6402. yes:)
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6405. ac_tool_warned=yes ;;
  6406. esac
  6407. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6408. fi
  6409. else
  6410. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6411. fi
  6412. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6414. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6415. if ${lt_cv_path_mainfest_tool+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. lt_cv_path_mainfest_tool=no
  6419. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6420. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6421. cat conftest.err >&5
  6422. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6423. lt_cv_path_mainfest_tool=yes
  6424. fi
  6425. rm -f conftest*
  6426. fi
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6428. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6429. if test yes != "$lt_cv_path_mainfest_tool"; then
  6430. MANIFEST_TOOL=:
  6431. fi
  6432. case $host_os in
  6433. rhapsody* | darwin*)
  6434. if test -n "$ac_tool_prefix"; then
  6435. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6436. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6438. $as_echo_n "checking for $ac_word... " >&6; }
  6439. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6440. $as_echo_n "(cached) " >&6
  6441. else
  6442. if test -n "$DSYMUTIL"; then
  6443. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6444. else
  6445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6446. for as_dir in $PATH
  6447. do
  6448. IFS=$as_save_IFS
  6449. test -z "$as_dir" && as_dir=.
  6450. for ac_exec_ext in '' $ac_executable_extensions; do
  6451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6452. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6454. break 2
  6455. fi
  6456. done
  6457. done
  6458. IFS=$as_save_IFS
  6459. fi
  6460. fi
  6461. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6462. if test -n "$DSYMUTIL"; then
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6464. $as_echo "$DSYMUTIL" >&6; }
  6465. else
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6467. $as_echo "no" >&6; }
  6468. fi
  6469. fi
  6470. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6471. ac_ct_DSYMUTIL=$DSYMUTIL
  6472. # Extract the first word of "dsymutil", so it can be a program name with args.
  6473. set dummy dsymutil; ac_word=$2
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6475. $as_echo_n "checking for $ac_word... " >&6; }
  6476. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. if test -n "$ac_ct_DSYMUTIL"; then
  6480. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6481. else
  6482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6483. for as_dir in $PATH
  6484. do
  6485. IFS=$as_save_IFS
  6486. test -z "$as_dir" && as_dir=.
  6487. for ac_exec_ext in '' $ac_executable_extensions; do
  6488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6489. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6491. break 2
  6492. fi
  6493. done
  6494. done
  6495. IFS=$as_save_IFS
  6496. fi
  6497. fi
  6498. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6499. if test -n "$ac_ct_DSYMUTIL"; then
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6501. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6502. else
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6504. $as_echo "no" >&6; }
  6505. fi
  6506. if test "x$ac_ct_DSYMUTIL" = x; then
  6507. DSYMUTIL=":"
  6508. else
  6509. case $cross_compiling:$ac_tool_warned in
  6510. yes:)
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6513. ac_tool_warned=yes ;;
  6514. esac
  6515. DSYMUTIL=$ac_ct_DSYMUTIL
  6516. fi
  6517. else
  6518. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6519. fi
  6520. if test -n "$ac_tool_prefix"; then
  6521. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6522. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6524. $as_echo_n "checking for $ac_word... " >&6; }
  6525. if ${ac_cv_prog_NMEDIT+:} false; then :
  6526. $as_echo_n "(cached) " >&6
  6527. else
  6528. if test -n "$NMEDIT"; then
  6529. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6530. else
  6531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6532. for as_dir in $PATH
  6533. do
  6534. IFS=$as_save_IFS
  6535. test -z "$as_dir" && as_dir=.
  6536. for ac_exec_ext in '' $ac_executable_extensions; do
  6537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6538. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6540. break 2
  6541. fi
  6542. done
  6543. done
  6544. IFS=$as_save_IFS
  6545. fi
  6546. fi
  6547. NMEDIT=$ac_cv_prog_NMEDIT
  6548. if test -n "$NMEDIT"; then
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6550. $as_echo "$NMEDIT" >&6; }
  6551. else
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6553. $as_echo "no" >&6; }
  6554. fi
  6555. fi
  6556. if test -z "$ac_cv_prog_NMEDIT"; then
  6557. ac_ct_NMEDIT=$NMEDIT
  6558. # Extract the first word of "nmedit", so it can be a program name with args.
  6559. set dummy nmedit; ac_word=$2
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6561. $as_echo_n "checking for $ac_word... " >&6; }
  6562. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. if test -n "$ac_ct_NMEDIT"; then
  6566. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6567. else
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6575. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. fi
  6583. fi
  6584. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6585. if test -n "$ac_ct_NMEDIT"; then
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6587. $as_echo "$ac_ct_NMEDIT" >&6; }
  6588. else
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. $as_echo "no" >&6; }
  6591. fi
  6592. if test "x$ac_ct_NMEDIT" = x; then
  6593. NMEDIT=":"
  6594. else
  6595. case $cross_compiling:$ac_tool_warned in
  6596. yes:)
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6599. ac_tool_warned=yes ;;
  6600. esac
  6601. NMEDIT=$ac_ct_NMEDIT
  6602. fi
  6603. else
  6604. NMEDIT="$ac_cv_prog_NMEDIT"
  6605. fi
  6606. if test -n "$ac_tool_prefix"; then
  6607. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6608. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6610. $as_echo_n "checking for $ac_word... " >&6; }
  6611. if ${ac_cv_prog_LIPO+:} false; then :
  6612. $as_echo_n "(cached) " >&6
  6613. else
  6614. if test -n "$LIPO"; then
  6615. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6616. else
  6617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6618. for as_dir in $PATH
  6619. do
  6620. IFS=$as_save_IFS
  6621. test -z "$as_dir" && as_dir=.
  6622. for ac_exec_ext in '' $ac_executable_extensions; do
  6623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6624. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6626. break 2
  6627. fi
  6628. done
  6629. done
  6630. IFS=$as_save_IFS
  6631. fi
  6632. fi
  6633. LIPO=$ac_cv_prog_LIPO
  6634. if test -n "$LIPO"; then
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6636. $as_echo "$LIPO" >&6; }
  6637. else
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6639. $as_echo "no" >&6; }
  6640. fi
  6641. fi
  6642. if test -z "$ac_cv_prog_LIPO"; then
  6643. ac_ct_LIPO=$LIPO
  6644. # Extract the first word of "lipo", so it can be a program name with args.
  6645. set dummy lipo; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$ac_ct_LIPO"; then
  6652. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_ac_ct_LIPO="lipo"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6671. if test -n "$ac_ct_LIPO"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6673. $as_echo "$ac_ct_LIPO" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. if test "x$ac_ct_LIPO" = x; then
  6679. LIPO=":"
  6680. else
  6681. case $cross_compiling:$ac_tool_warned in
  6682. yes:)
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6685. ac_tool_warned=yes ;;
  6686. esac
  6687. LIPO=$ac_ct_LIPO
  6688. fi
  6689. else
  6690. LIPO="$ac_cv_prog_LIPO"
  6691. fi
  6692. if test -n "$ac_tool_prefix"; then
  6693. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6694. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. $as_echo_n "checking for $ac_word... " >&6; }
  6697. if ${ac_cv_prog_OTOOL+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. if test -n "$OTOOL"; then
  6701. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. test -z "$as_dir" && as_dir=.
  6708. for ac_exec_ext in '' $ac_executable_extensions; do
  6709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6710. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6712. break 2
  6713. fi
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. fi
  6718. fi
  6719. OTOOL=$ac_cv_prog_OTOOL
  6720. if test -n "$OTOOL"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6722. $as_echo "$OTOOL" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. fi
  6728. if test -z "$ac_cv_prog_OTOOL"; then
  6729. ac_ct_OTOOL=$OTOOL
  6730. # Extract the first word of "otool", so it can be a program name with args.
  6731. set dummy otool; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$ac_ct_OTOOL"; then
  6738. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6747. ac_cv_prog_ac_ct_OTOOL="otool"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6757. if test -n "$ac_ct_OTOOL"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6759. $as_echo "$ac_ct_OTOOL" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. if test "x$ac_ct_OTOOL" = x; then
  6765. OTOOL=":"
  6766. else
  6767. case $cross_compiling:$ac_tool_warned in
  6768. yes:)
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6771. ac_tool_warned=yes ;;
  6772. esac
  6773. OTOOL=$ac_ct_OTOOL
  6774. fi
  6775. else
  6776. OTOOL="$ac_cv_prog_OTOOL"
  6777. fi
  6778. if test -n "$ac_tool_prefix"; then
  6779. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6780. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6782. $as_echo_n "checking for $ac_word... " >&6; }
  6783. if ${ac_cv_prog_OTOOL64+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. if test -n "$OTOOL64"; then
  6787. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6788. else
  6789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6790. for as_dir in $PATH
  6791. do
  6792. IFS=$as_save_IFS
  6793. test -z "$as_dir" && as_dir=.
  6794. for ac_exec_ext in '' $ac_executable_extensions; do
  6795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6796. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6798. break 2
  6799. fi
  6800. done
  6801. done
  6802. IFS=$as_save_IFS
  6803. fi
  6804. fi
  6805. OTOOL64=$ac_cv_prog_OTOOL64
  6806. if test -n "$OTOOL64"; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6808. $as_echo "$OTOOL64" >&6; }
  6809. else
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6811. $as_echo "no" >&6; }
  6812. fi
  6813. fi
  6814. if test -z "$ac_cv_prog_OTOOL64"; then
  6815. ac_ct_OTOOL64=$OTOOL64
  6816. # Extract the first word of "otool64", so it can be a program name with args.
  6817. set dummy otool64; ac_word=$2
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6819. $as_echo_n "checking for $ac_word... " >&6; }
  6820. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. if test -n "$ac_ct_OTOOL64"; then
  6824. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6825. else
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. fi
  6841. fi
  6842. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6843. if test -n "$ac_ct_OTOOL64"; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6845. $as_echo "$ac_ct_OTOOL64" >&6; }
  6846. else
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6848. $as_echo "no" >&6; }
  6849. fi
  6850. if test "x$ac_ct_OTOOL64" = x; then
  6851. OTOOL64=":"
  6852. else
  6853. case $cross_compiling:$ac_tool_warned in
  6854. yes:)
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6857. ac_tool_warned=yes ;;
  6858. esac
  6859. OTOOL64=$ac_ct_OTOOL64
  6860. fi
  6861. else
  6862. OTOOL64="$ac_cv_prog_OTOOL64"
  6863. fi
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6865. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6866. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. lt_cv_apple_cc_single_mod=no
  6870. if test -z "$LT_MULTI_MODULE"; then
  6871. # By default we will add the -single_module flag. You can override
  6872. # by either setting the environment variable LT_MULTI_MODULE
  6873. # non-empty at configure time, or by adding -multi_module to the
  6874. # link flags.
  6875. rm -rf libconftest.dylib*
  6876. echo "int foo(void){return 1;}" > conftest.c
  6877. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6878. -dynamiclib -Wl,-single_module conftest.c" >&5
  6879. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6880. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6881. _lt_result=$?
  6882. # If there is a non-empty error log, and "single_module"
  6883. # appears in it, assume the flag caused a linker warning
  6884. if test -s conftest.err && $GREP single_module conftest.err; then
  6885. cat conftest.err >&5
  6886. # Otherwise, if the output was created with a 0 exit code from
  6887. # the compiler, it worked.
  6888. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6889. lt_cv_apple_cc_single_mod=yes
  6890. else
  6891. cat conftest.err >&5
  6892. fi
  6893. rm -rf libconftest.dylib*
  6894. rm -f conftest.*
  6895. fi
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6898. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6900. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6901. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6902. $as_echo_n "(cached) " >&6
  6903. else
  6904. lt_cv_ld_exported_symbols_list=no
  6905. save_LDFLAGS=$LDFLAGS
  6906. echo "_main" > conftest.sym
  6907. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6909. /* end confdefs.h. */
  6910. int
  6911. main ()
  6912. {
  6913. ;
  6914. return 0;
  6915. }
  6916. _ACEOF
  6917. if ac_fn_c_try_link "$LINENO"; then :
  6918. lt_cv_ld_exported_symbols_list=yes
  6919. else
  6920. lt_cv_ld_exported_symbols_list=no
  6921. fi
  6922. rm -f core conftest.err conftest.$ac_objext \
  6923. conftest$ac_exeext conftest.$ac_ext
  6924. LDFLAGS=$save_LDFLAGS
  6925. fi
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6927. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6929. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6930. if ${lt_cv_ld_force_load+:} false; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. lt_cv_ld_force_load=no
  6934. cat > conftest.c << _LT_EOF
  6935. int forced_loaded() { return 2;}
  6936. _LT_EOF
  6937. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6938. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6939. echo "$AR cr libconftest.a conftest.o" >&5
  6940. $AR cr libconftest.a conftest.o 2>&5
  6941. echo "$RANLIB libconftest.a" >&5
  6942. $RANLIB libconftest.a 2>&5
  6943. cat > conftest.c << _LT_EOF
  6944. int main() { return 0;}
  6945. _LT_EOF
  6946. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6947. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6948. _lt_result=$?
  6949. if test -s conftest.err && $GREP force_load conftest.err; then
  6950. cat conftest.err >&5
  6951. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6952. lt_cv_ld_force_load=yes
  6953. else
  6954. cat conftest.err >&5
  6955. fi
  6956. rm -f conftest.err libconftest.a conftest conftest.c
  6957. rm -rf conftest.dSYM
  6958. fi
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6960. $as_echo "$lt_cv_ld_force_load" >&6; }
  6961. case $host_os in
  6962. rhapsody* | darwin1.[012])
  6963. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6964. darwin1.*)
  6965. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6966. darwin*) # darwin 5.x on
  6967. # if running on 10.5 or later, the deployment target defaults
  6968. # to the OS version, if on x86, and 10.4, the deployment
  6969. # target defaults to 10.4. Don't you love it?
  6970. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6971. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  6972. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6973. 10.[012][,.]*)
  6974. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6975. 10.*|11.*)
  6976. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6977. esac
  6978. ;;
  6979. esac
  6980. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6981. _lt_dar_single_mod='$single_module'
  6982. fi
  6983. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6984. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6985. else
  6986. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6987. fi
  6988. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6989. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6990. else
  6991. _lt_dsymutil=
  6992. fi
  6993. ;;
  6994. esac
  6995. # func_munge_path_list VARIABLE PATH
  6996. # -----------------------------------
  6997. # VARIABLE is name of variable containing _space_ separated list of
  6998. # directories to be munged by the contents of PATH, which is string
  6999. # having a format:
  7000. # "DIR[:DIR]:"
  7001. # string "DIR[ DIR]" will be prepended to VARIABLE
  7002. # ":DIR[:DIR]"
  7003. # string "DIR[ DIR]" will be appended to VARIABLE
  7004. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7005. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7006. # "DIRA[ DIRA]" will be appended to VARIABLE
  7007. # "DIR[:DIR]"
  7008. # VARIABLE will be replaced by "DIR[ DIR]"
  7009. func_munge_path_list ()
  7010. {
  7011. case x$2 in
  7012. x)
  7013. ;;
  7014. *:)
  7015. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7016. ;;
  7017. x:*)
  7018. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7019. ;;
  7020. *::*)
  7021. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7022. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7023. ;;
  7024. *)
  7025. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7026. ;;
  7027. esac
  7028. }
  7029. ac_ext=c
  7030. ac_cpp='$CPP $CPPFLAGS'
  7031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7035. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7036. # On Suns, sometimes $CPP names a directory.
  7037. if test -n "$CPP" && test -d "$CPP"; then
  7038. CPP=
  7039. fi
  7040. if test -z "$CPP"; then
  7041. if ${ac_cv_prog_CPP+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. # Double quotes because CPP needs to be expanded
  7045. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7046. do
  7047. ac_preproc_ok=false
  7048. for ac_c_preproc_warn_flag in '' yes
  7049. do
  7050. # Use a header file that comes with gcc, so configuring glibc
  7051. # with a fresh cross-compiler works.
  7052. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7053. # <limits.h> exists even on freestanding compilers.
  7054. # On the NeXT, cc -E runs the code through the compiler's parser,
  7055. # not just through cpp. "Syntax error" is here to catch this case.
  7056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7057. /* end confdefs.h. */
  7058. #ifdef __STDC__
  7059. # include <limits.h>
  7060. #else
  7061. # include <assert.h>
  7062. #endif
  7063. Syntax error
  7064. _ACEOF
  7065. if ac_fn_c_try_cpp "$LINENO"; then :
  7066. else
  7067. # Broken: fails on valid input.
  7068. continue
  7069. fi
  7070. rm -f conftest.err conftest.i conftest.$ac_ext
  7071. # OK, works on sane cases. Now check whether nonexistent headers
  7072. # can be detected and how.
  7073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7074. /* end confdefs.h. */
  7075. #include <ac_nonexistent.h>
  7076. _ACEOF
  7077. if ac_fn_c_try_cpp "$LINENO"; then :
  7078. # Broken: success on invalid input.
  7079. continue
  7080. else
  7081. # Passes both tests.
  7082. ac_preproc_ok=:
  7083. break
  7084. fi
  7085. rm -f conftest.err conftest.i conftest.$ac_ext
  7086. done
  7087. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7088. rm -f conftest.i conftest.err conftest.$ac_ext
  7089. if $ac_preproc_ok; then :
  7090. break
  7091. fi
  7092. done
  7093. ac_cv_prog_CPP=$CPP
  7094. fi
  7095. CPP=$ac_cv_prog_CPP
  7096. else
  7097. ac_cv_prog_CPP=$CPP
  7098. fi
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7100. $as_echo "$CPP" >&6; }
  7101. ac_preproc_ok=false
  7102. for ac_c_preproc_warn_flag in '' yes
  7103. do
  7104. # Use a header file that comes with gcc, so configuring glibc
  7105. # with a fresh cross-compiler works.
  7106. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7107. # <limits.h> exists even on freestanding compilers.
  7108. # On the NeXT, cc -E runs the code through the compiler's parser,
  7109. # not just through cpp. "Syntax error" is here to catch this case.
  7110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7111. /* end confdefs.h. */
  7112. #ifdef __STDC__
  7113. # include <limits.h>
  7114. #else
  7115. # include <assert.h>
  7116. #endif
  7117. Syntax error
  7118. _ACEOF
  7119. if ac_fn_c_try_cpp "$LINENO"; then :
  7120. else
  7121. # Broken: fails on valid input.
  7122. continue
  7123. fi
  7124. rm -f conftest.err conftest.i conftest.$ac_ext
  7125. # OK, works on sane cases. Now check whether nonexistent headers
  7126. # can be detected and how.
  7127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7128. /* end confdefs.h. */
  7129. #include <ac_nonexistent.h>
  7130. _ACEOF
  7131. if ac_fn_c_try_cpp "$LINENO"; then :
  7132. # Broken: success on invalid input.
  7133. continue
  7134. else
  7135. # Passes both tests.
  7136. ac_preproc_ok=:
  7137. break
  7138. fi
  7139. rm -f conftest.err conftest.i conftest.$ac_ext
  7140. done
  7141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7142. rm -f conftest.i conftest.err conftest.$ac_ext
  7143. if $ac_preproc_ok; then :
  7144. else
  7145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7147. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7148. See \`config.log' for more details" "$LINENO" 5; }
  7149. fi
  7150. ac_ext=c
  7151. ac_cpp='$CPP $CPPFLAGS'
  7152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7156. $as_echo_n "checking for ANSI C header files... " >&6; }
  7157. if ${ac_cv_header_stdc+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7161. /* end confdefs.h. */
  7162. #include <stdlib.h>
  7163. #include <stdarg.h>
  7164. #include <string.h>
  7165. #include <float.h>
  7166. int
  7167. main ()
  7168. {
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. if ac_fn_c_try_compile "$LINENO"; then :
  7174. ac_cv_header_stdc=yes
  7175. else
  7176. ac_cv_header_stdc=no
  7177. fi
  7178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7179. if test $ac_cv_header_stdc = yes; then
  7180. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7182. /* end confdefs.h. */
  7183. #include <string.h>
  7184. _ACEOF
  7185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7186. $EGREP "memchr" >/dev/null 2>&1; then :
  7187. else
  7188. ac_cv_header_stdc=no
  7189. fi
  7190. rm -f conftest*
  7191. fi
  7192. if test $ac_cv_header_stdc = yes; then
  7193. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7195. /* end confdefs.h. */
  7196. #include <stdlib.h>
  7197. _ACEOF
  7198. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7199. $EGREP "free" >/dev/null 2>&1; then :
  7200. else
  7201. ac_cv_header_stdc=no
  7202. fi
  7203. rm -f conftest*
  7204. fi
  7205. if test $ac_cv_header_stdc = yes; then
  7206. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7207. if test "$cross_compiling" = yes; then :
  7208. :
  7209. else
  7210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7211. /* end confdefs.h. */
  7212. #include <ctype.h>
  7213. #include <stdlib.h>
  7214. #if ((' ' & 0x0FF) == 0x020)
  7215. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7216. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7217. #else
  7218. # define ISLOWER(c) \
  7219. (('a' <= (c) && (c) <= 'i') \
  7220. || ('j' <= (c) && (c) <= 'r') \
  7221. || ('s' <= (c) && (c) <= 'z'))
  7222. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7223. #endif
  7224. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7225. int
  7226. main ()
  7227. {
  7228. int i;
  7229. for (i = 0; i < 256; i++)
  7230. if (XOR (islower (i), ISLOWER (i))
  7231. || toupper (i) != TOUPPER (i))
  7232. return 2;
  7233. return 0;
  7234. }
  7235. _ACEOF
  7236. if ac_fn_c_try_run "$LINENO"; then :
  7237. else
  7238. ac_cv_header_stdc=no
  7239. fi
  7240. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7241. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7242. fi
  7243. fi
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7246. $as_echo "$ac_cv_header_stdc" >&6; }
  7247. if test $ac_cv_header_stdc = yes; then
  7248. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7249. fi
  7250. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7251. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7252. inttypes.h stdint.h unistd.h
  7253. do :
  7254. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7255. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7256. "
  7257. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7258. cat >>confdefs.h <<_ACEOF
  7259. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7260. _ACEOF
  7261. fi
  7262. done
  7263. for ac_header in dlfcn.h
  7264. do :
  7265. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7266. "
  7267. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7268. cat >>confdefs.h <<_ACEOF
  7269. #define HAVE_DLFCN_H 1
  7270. _ACEOF
  7271. fi
  7272. done
  7273. func_stripname_cnf ()
  7274. {
  7275. case $2 in
  7276. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7277. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7278. esac
  7279. } # func_stripname_cnf
  7280. # Set options
  7281. enable_dlopen=no
  7282. enable_win32_dll=no
  7283. # Check whether --enable-static was given.
  7284. if test "${enable_static+set}" = set; then :
  7285. enableval=$enable_static; p=${PACKAGE-default}
  7286. case $enableval in
  7287. yes) enable_static=yes ;;
  7288. no) enable_static=no ;;
  7289. *)
  7290. enable_static=no
  7291. # Look at the argument we got. We use all the common list separators.
  7292. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7293. for pkg in $enableval; do
  7294. IFS=$lt_save_ifs
  7295. if test "X$pkg" = "X$p"; then
  7296. enable_static=yes
  7297. fi
  7298. done
  7299. IFS=$lt_save_ifs
  7300. ;;
  7301. esac
  7302. else
  7303. enable_static=yes
  7304. fi
  7305. # Check whether --with-pic was given.
  7306. if test "${with_pic+set}" = set; then :
  7307. withval=$with_pic; lt_p=${PACKAGE-default}
  7308. case $withval in
  7309. yes|no) pic_mode=$withval ;;
  7310. *)
  7311. pic_mode=default
  7312. # Look at the argument we got. We use all the common list separators.
  7313. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7314. for lt_pkg in $withval; do
  7315. IFS=$lt_save_ifs
  7316. if test "X$lt_pkg" = "X$lt_p"; then
  7317. pic_mode=yes
  7318. fi
  7319. done
  7320. IFS=$lt_save_ifs
  7321. ;;
  7322. esac
  7323. else
  7324. pic_mode=default
  7325. fi
  7326. # Check whether --enable-fast-install was given.
  7327. if test "${enable_fast_install+set}" = set; then :
  7328. enableval=$enable_fast_install; p=${PACKAGE-default}
  7329. case $enableval in
  7330. yes) enable_fast_install=yes ;;
  7331. no) enable_fast_install=no ;;
  7332. *)
  7333. enable_fast_install=no
  7334. # Look at the argument we got. We use all the common list separators.
  7335. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7336. for pkg in $enableval; do
  7337. IFS=$lt_save_ifs
  7338. if test "X$pkg" = "X$p"; then
  7339. enable_fast_install=yes
  7340. fi
  7341. done
  7342. IFS=$lt_save_ifs
  7343. ;;
  7344. esac
  7345. else
  7346. enable_fast_install=yes
  7347. fi
  7348. shared_archive_member_spec=
  7349. case $host,$enable_shared in
  7350. power*-*-aix[5-9]*,yes)
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7352. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7353. # Check whether --with-aix-soname was given.
  7354. if test "${with_aix_soname+set}" = set; then :
  7355. withval=$with_aix_soname; case $withval in
  7356. aix|svr4|both)
  7357. ;;
  7358. *)
  7359. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7360. ;;
  7361. esac
  7362. lt_cv_with_aix_soname=$with_aix_soname
  7363. else
  7364. if ${lt_cv_with_aix_soname+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. lt_cv_with_aix_soname=aix
  7368. fi
  7369. with_aix_soname=$lt_cv_with_aix_soname
  7370. fi
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7372. $as_echo "$with_aix_soname" >&6; }
  7373. if test aix != "$with_aix_soname"; then
  7374. # For the AIX way of multilib, we name the shared archive member
  7375. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7376. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7377. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7378. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7379. if test 64 = "${OBJECT_MODE-32}"; then
  7380. shared_archive_member_spec=shr_64
  7381. else
  7382. shared_archive_member_spec=shr
  7383. fi
  7384. fi
  7385. ;;
  7386. *)
  7387. with_aix_soname=aix
  7388. ;;
  7389. esac
  7390. # This can be used to rebuild libtool when needed
  7391. LIBTOOL_DEPS=$ltmain
  7392. # Always use our own libtool.
  7393. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7394. test -z "$LN_S" && LN_S="ln -s"
  7395. if test -n "${ZSH_VERSION+set}"; then
  7396. setopt NO_GLOB_SUBST
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7399. $as_echo_n "checking for objdir... " >&6; }
  7400. if ${lt_cv_objdir+:} false; then :
  7401. $as_echo_n "(cached) " >&6
  7402. else
  7403. rm -f .libs 2>/dev/null
  7404. mkdir .libs 2>/dev/null
  7405. if test -d .libs; then
  7406. lt_cv_objdir=.libs
  7407. else
  7408. # MS-DOS does not allow filenames that begin with a dot.
  7409. lt_cv_objdir=_libs
  7410. fi
  7411. rmdir .libs 2>/dev/null
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7414. $as_echo "$lt_cv_objdir" >&6; }
  7415. objdir=$lt_cv_objdir
  7416. cat >>confdefs.h <<_ACEOF
  7417. #define LT_OBJDIR "$lt_cv_objdir/"
  7418. _ACEOF
  7419. case $host_os in
  7420. aix3*)
  7421. # AIX sometimes has problems with the GCC collect2 program. For some
  7422. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7423. # vanish in a puff of smoke.
  7424. if test set != "${COLLECT_NAMES+set}"; then
  7425. COLLECT_NAMES=
  7426. export COLLECT_NAMES
  7427. fi
  7428. ;;
  7429. esac
  7430. # Global variables:
  7431. ofile=libtool
  7432. can_build_shared=yes
  7433. # All known linkers require a '.a' archive for static linking (except MSVC,
  7434. # which needs '.lib').
  7435. libext=a
  7436. with_gnu_ld=$lt_cv_prog_gnu_ld
  7437. old_CC=$CC
  7438. old_CFLAGS=$CFLAGS
  7439. # Set sane defaults for various variables
  7440. test -z "$CC" && CC=cc
  7441. test -z "$LTCC" && LTCC=$CC
  7442. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7443. test -z "$LD" && LD=ld
  7444. test -z "$ac_objext" && ac_objext=o
  7445. func_cc_basename $compiler
  7446. cc_basename=$func_cc_basename_result
  7447. # Only perform the check for file, if the check method requires it
  7448. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7449. case $deplibs_check_method in
  7450. file_magic*)
  7451. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7453. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7454. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7455. $as_echo_n "(cached) " >&6
  7456. else
  7457. case $MAGIC_CMD in
  7458. [\\/*] | ?:[\\/]*)
  7459. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7460. ;;
  7461. *)
  7462. lt_save_MAGIC_CMD=$MAGIC_CMD
  7463. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7464. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7465. for ac_dir in $ac_dummy; do
  7466. IFS=$lt_save_ifs
  7467. test -z "$ac_dir" && ac_dir=.
  7468. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7469. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7470. if test -n "$file_magic_test_file"; then
  7471. case $deplibs_check_method in
  7472. "file_magic "*)
  7473. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7474. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7475. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7476. $EGREP "$file_magic_regex" > /dev/null; then
  7477. :
  7478. else
  7479. cat <<_LT_EOF 1>&2
  7480. *** Warning: the command libtool uses to detect shared libraries,
  7481. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7482. *** The result is that libtool may fail to recognize shared libraries
  7483. *** as such. This will affect the creation of libtool libraries that
  7484. *** depend on shared libraries, but programs linked with such libtool
  7485. *** libraries will work regardless of this problem. Nevertheless, you
  7486. *** may want to report the problem to your system manager and/or to
  7487. *** [email protected]
  7488. _LT_EOF
  7489. fi ;;
  7490. esac
  7491. fi
  7492. break
  7493. fi
  7494. done
  7495. IFS=$lt_save_ifs
  7496. MAGIC_CMD=$lt_save_MAGIC_CMD
  7497. ;;
  7498. esac
  7499. fi
  7500. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7501. if test -n "$MAGIC_CMD"; then
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7503. $as_echo "$MAGIC_CMD" >&6; }
  7504. else
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. $as_echo "no" >&6; }
  7507. fi
  7508. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7509. if test -n "$ac_tool_prefix"; then
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7511. $as_echo_n "checking for file... " >&6; }
  7512. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7513. $as_echo_n "(cached) " >&6
  7514. else
  7515. case $MAGIC_CMD in
  7516. [\\/*] | ?:[\\/]*)
  7517. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7518. ;;
  7519. *)
  7520. lt_save_MAGIC_CMD=$MAGIC_CMD
  7521. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7522. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7523. for ac_dir in $ac_dummy; do
  7524. IFS=$lt_save_ifs
  7525. test -z "$ac_dir" && ac_dir=.
  7526. if test -f "$ac_dir/file"; then
  7527. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7528. if test -n "$file_magic_test_file"; then
  7529. case $deplibs_check_method in
  7530. "file_magic "*)
  7531. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7532. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7533. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7534. $EGREP "$file_magic_regex" > /dev/null; then
  7535. :
  7536. else
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: the command libtool uses to detect shared libraries,
  7539. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7540. *** The result is that libtool may fail to recognize shared libraries
  7541. *** as such. This will affect the creation of libtool libraries that
  7542. *** depend on shared libraries, but programs linked with such libtool
  7543. *** libraries will work regardless of this problem. Nevertheless, you
  7544. *** may want to report the problem to your system manager and/or to
  7545. *** [email protected]
  7546. _LT_EOF
  7547. fi ;;
  7548. esac
  7549. fi
  7550. break
  7551. fi
  7552. done
  7553. IFS=$lt_save_ifs
  7554. MAGIC_CMD=$lt_save_MAGIC_CMD
  7555. ;;
  7556. esac
  7557. fi
  7558. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7559. if test -n "$MAGIC_CMD"; then
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7561. $as_echo "$MAGIC_CMD" >&6; }
  7562. else
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7564. $as_echo "no" >&6; }
  7565. fi
  7566. else
  7567. MAGIC_CMD=:
  7568. fi
  7569. fi
  7570. fi
  7571. ;;
  7572. esac
  7573. # Use C for the default configuration in the libtool script
  7574. lt_save_CC=$CC
  7575. ac_ext=c
  7576. ac_cpp='$CPP $CPPFLAGS'
  7577. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7578. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7579. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7580. # Source file extension for C test sources.
  7581. ac_ext=c
  7582. # Object file extension for compiled C test sources.
  7583. objext=o
  7584. objext=$objext
  7585. # Code to be used in simple compile tests
  7586. lt_simple_compile_test_code="int some_variable = 0;"
  7587. # Code to be used in simple link tests
  7588. lt_simple_link_test_code='int main(){return(0);}'
  7589. # If no C compiler was specified, use CC.
  7590. LTCC=${LTCC-"$CC"}
  7591. # If no C compiler flags were specified, use CFLAGS.
  7592. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7593. # Allow CC to be a program name with arguments.
  7594. compiler=$CC
  7595. # Save the default compiler, since it gets overwritten when the other
  7596. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7597. compiler_DEFAULT=$CC
  7598. # save warnings/boilerplate of simple test code
  7599. ac_outfile=conftest.$ac_objext
  7600. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7601. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7602. _lt_compiler_boilerplate=`cat conftest.err`
  7603. $RM conftest*
  7604. ac_outfile=conftest.$ac_objext
  7605. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7606. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7607. _lt_linker_boilerplate=`cat conftest.err`
  7608. $RM -r conftest*
  7609. ## CAVEAT EMPTOR:
  7610. ## There is no encapsulation within the following macros, do not change
  7611. ## the running order or otherwise move them around unless you know exactly
  7612. ## what you are doing...
  7613. if test -n "$compiler"; then
  7614. lt_prog_compiler_no_builtin_flag=
  7615. if test yes = "$GCC"; then
  7616. case $cc_basename in
  7617. nvcc*)
  7618. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7619. *)
  7620. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7621. esac
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7623. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7624. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7625. $as_echo_n "(cached) " >&6
  7626. else
  7627. lt_cv_prog_compiler_rtti_exceptions=no
  7628. ac_outfile=conftest.$ac_objext
  7629. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7630. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7631. # Insert the option either (1) after the last *FLAGS variable, or
  7632. # (2) before a word containing "conftest.", or (3) at the end.
  7633. # Note that $ac_compile itself does not contain backslashes and begins
  7634. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7635. # The option is referenced via a variable to avoid confusing sed.
  7636. lt_compile=`echo "$ac_compile" | $SED \
  7637. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7638. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7639. -e 's:$: $lt_compiler_flag:'`
  7640. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7641. (eval "$lt_compile" 2>conftest.err)
  7642. ac_status=$?
  7643. cat conftest.err >&5
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. if (exit $ac_status) && test -s "$ac_outfile"; then
  7646. # The compiler can only warn and ignore the option if not recognized
  7647. # So say no if there are warnings other than the usual output.
  7648. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7649. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7650. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7651. lt_cv_prog_compiler_rtti_exceptions=yes
  7652. fi
  7653. fi
  7654. $RM conftest*
  7655. fi
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7657. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7658. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7659. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7660. else
  7661. :
  7662. fi
  7663. fi
  7664. lt_prog_compiler_wl=
  7665. lt_prog_compiler_pic=
  7666. lt_prog_compiler_static=
  7667. if test yes = "$GCC"; then
  7668. lt_prog_compiler_wl='-Wl,'
  7669. lt_prog_compiler_static='-static'
  7670. case $host_os in
  7671. aix*)
  7672. # All AIX code is PIC.
  7673. if test ia64 = "$host_cpu"; then
  7674. # AIX 5 now supports IA64 processor
  7675. lt_prog_compiler_static='-Bstatic'
  7676. fi
  7677. lt_prog_compiler_pic='-fPIC'
  7678. ;;
  7679. amigaos*)
  7680. case $host_cpu in
  7681. powerpc)
  7682. # see comment about AmigaOS4 .so support
  7683. lt_prog_compiler_pic='-fPIC'
  7684. ;;
  7685. m68k)
  7686. # FIXME: we need at least 68020 code to build shared libraries, but
  7687. # adding the '-m68020' flag to GCC prevents building anything better,
  7688. # like '-m68040'.
  7689. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7690. ;;
  7691. esac
  7692. ;;
  7693. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7694. # PIC is the default for these OSes.
  7695. ;;
  7696. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7697. # This hack is so that the source file can tell whether it is being
  7698. # built for inclusion in a dll (and should export symbols for example).
  7699. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7700. # (--disable-auto-import) libraries
  7701. lt_prog_compiler_pic='-DDLL_EXPORT'
  7702. case $host_os in
  7703. os2*)
  7704. lt_prog_compiler_static='$wl-static'
  7705. ;;
  7706. esac
  7707. ;;
  7708. darwin* | rhapsody*)
  7709. # PIC is the default on this platform
  7710. # Common symbols not allowed in MH_DYLIB files
  7711. lt_prog_compiler_pic='-fno-common'
  7712. ;;
  7713. haiku*)
  7714. # PIC is the default for Haiku.
  7715. # The "-static" flag exists, but is broken.
  7716. lt_prog_compiler_static=
  7717. ;;
  7718. hpux*)
  7719. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7720. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7721. # sets the default TLS model and affects inlining.
  7722. case $host_cpu in
  7723. hppa*64*)
  7724. # +Z the default
  7725. ;;
  7726. *)
  7727. lt_prog_compiler_pic='-fPIC'
  7728. ;;
  7729. esac
  7730. ;;
  7731. interix[3-9]*)
  7732. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7733. # Instead, we relocate shared libraries at runtime.
  7734. ;;
  7735. msdosdjgpp*)
  7736. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7737. # on systems that don't support them.
  7738. lt_prog_compiler_can_build_shared=no
  7739. enable_shared=no
  7740. ;;
  7741. *nto* | *qnx*)
  7742. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7743. # it will coredump.
  7744. lt_prog_compiler_pic='-fPIC -shared'
  7745. ;;
  7746. sysv4*MP*)
  7747. if test -d /usr/nec; then
  7748. lt_prog_compiler_pic=-Kconform_pic
  7749. fi
  7750. ;;
  7751. *)
  7752. lt_prog_compiler_pic='-fPIC'
  7753. ;;
  7754. esac
  7755. case $cc_basename in
  7756. nvcc*) # Cuda Compiler Driver 2.2
  7757. lt_prog_compiler_wl='-Xlinker '
  7758. if test -n "$lt_prog_compiler_pic"; then
  7759. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7760. fi
  7761. ;;
  7762. esac
  7763. else
  7764. # PORTME Check for flag to pass linker flags through the system compiler.
  7765. case $host_os in
  7766. aix*)
  7767. lt_prog_compiler_wl='-Wl,'
  7768. if test ia64 = "$host_cpu"; then
  7769. # AIX 5 now supports IA64 processor
  7770. lt_prog_compiler_static='-Bstatic'
  7771. else
  7772. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7773. fi
  7774. ;;
  7775. darwin* | rhapsody*)
  7776. # PIC is the default on this platform
  7777. # Common symbols not allowed in MH_DYLIB files
  7778. lt_prog_compiler_pic='-fno-common'
  7779. case $cc_basename in
  7780. nagfor*)
  7781. # NAG Fortran compiler
  7782. lt_prog_compiler_wl='-Wl,-Wl,,'
  7783. lt_prog_compiler_pic='-PIC'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. esac
  7787. ;;
  7788. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7789. # This hack is so that the source file can tell whether it is being
  7790. # built for inclusion in a dll (and should export symbols for example).
  7791. lt_prog_compiler_pic='-DDLL_EXPORT'
  7792. case $host_os in
  7793. os2*)
  7794. lt_prog_compiler_static='$wl-static'
  7795. ;;
  7796. esac
  7797. ;;
  7798. hpux9* | hpux10* | hpux11*)
  7799. lt_prog_compiler_wl='-Wl,'
  7800. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7801. # not for PA HP-UX.
  7802. case $host_cpu in
  7803. hppa*64*|ia64*)
  7804. # +Z the default
  7805. ;;
  7806. *)
  7807. lt_prog_compiler_pic='+Z'
  7808. ;;
  7809. esac
  7810. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7811. lt_prog_compiler_static='$wl-a ${wl}archive'
  7812. ;;
  7813. irix5* | irix6* | nonstopux*)
  7814. lt_prog_compiler_wl='-Wl,'
  7815. # PIC (with -KPIC) is the default.
  7816. lt_prog_compiler_static='-non_shared'
  7817. ;;
  7818. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7819. case $cc_basename in
  7820. # old Intel for x86_64, which still supported -KPIC.
  7821. ecc*)
  7822. lt_prog_compiler_wl='-Wl,'
  7823. lt_prog_compiler_pic='-KPIC'
  7824. lt_prog_compiler_static='-static'
  7825. ;;
  7826. # flang / f18. f95 an alias for gfortran or flang on Debian
  7827. flang* | f18* | f95*)
  7828. lt_prog_compiler_wl='-Wl,'
  7829. lt_prog_compiler_pic='-fPIC'
  7830. lt_prog_compiler_static='-static'
  7831. ;;
  7832. # icc used to be incompatible with GCC.
  7833. # ICC 10 doesn't accept -KPIC any more.
  7834. icc* | ifort*)
  7835. lt_prog_compiler_wl='-Wl,'
  7836. lt_prog_compiler_pic='-fPIC'
  7837. lt_prog_compiler_static='-static'
  7838. ;;
  7839. # Lahey Fortran 8.1.
  7840. lf95*)
  7841. lt_prog_compiler_wl='-Wl,'
  7842. lt_prog_compiler_pic='--shared'
  7843. lt_prog_compiler_static='--static'
  7844. ;;
  7845. nagfor*)
  7846. # NAG Fortran compiler
  7847. lt_prog_compiler_wl='-Wl,-Wl,,'
  7848. lt_prog_compiler_pic='-PIC'
  7849. lt_prog_compiler_static='-Bstatic'
  7850. ;;
  7851. tcc*)
  7852. # Fabrice Bellard et al's Tiny C Compiler
  7853. lt_prog_compiler_wl='-Wl,'
  7854. lt_prog_compiler_pic='-fPIC'
  7855. lt_prog_compiler_static='-static'
  7856. ;;
  7857. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7858. # Portland Group compilers (*not* the Pentium gcc compiler,
  7859. # which looks to be a dead project)
  7860. lt_prog_compiler_wl='-Wl,'
  7861. lt_prog_compiler_pic='-fpic'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. ;;
  7864. ccc*)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. # All Alpha code is PIC.
  7867. lt_prog_compiler_static='-non_shared'
  7868. ;;
  7869. xl* | bgxl* | bgf* | mpixl*)
  7870. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7871. lt_prog_compiler_wl='-Wl,'
  7872. lt_prog_compiler_pic='-qpic'
  7873. lt_prog_compiler_static='-qstaticlink'
  7874. ;;
  7875. *)
  7876. case `$CC -V 2>&1 | sed 5q` in
  7877. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7878. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7879. lt_prog_compiler_pic='-KPIC'
  7880. lt_prog_compiler_static='-Bstatic'
  7881. lt_prog_compiler_wl=''
  7882. ;;
  7883. *Sun\ F* | *Sun*Fortran*)
  7884. lt_prog_compiler_pic='-KPIC'
  7885. lt_prog_compiler_static='-Bstatic'
  7886. lt_prog_compiler_wl='-Qoption ld '
  7887. ;;
  7888. *Sun\ C*)
  7889. # Sun C 5.9
  7890. lt_prog_compiler_pic='-KPIC'
  7891. lt_prog_compiler_static='-Bstatic'
  7892. lt_prog_compiler_wl='-Wl,'
  7893. ;;
  7894. *Intel*\ [CF]*Compiler*)
  7895. lt_prog_compiler_wl='-Wl,'
  7896. lt_prog_compiler_pic='-fPIC'
  7897. lt_prog_compiler_static='-static'
  7898. ;;
  7899. *Portland\ Group*)
  7900. lt_prog_compiler_wl='-Wl,'
  7901. lt_prog_compiler_pic='-fpic'
  7902. lt_prog_compiler_static='-Bstatic'
  7903. ;;
  7904. esac
  7905. ;;
  7906. esac
  7907. ;;
  7908. newsos6)
  7909. lt_prog_compiler_pic='-KPIC'
  7910. lt_prog_compiler_static='-Bstatic'
  7911. ;;
  7912. *nto* | *qnx*)
  7913. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7914. # it will coredump.
  7915. lt_prog_compiler_pic='-fPIC -shared'
  7916. ;;
  7917. osf3* | osf4* | osf5*)
  7918. lt_prog_compiler_wl='-Wl,'
  7919. # All OSF/1 code is PIC.
  7920. lt_prog_compiler_static='-non_shared'
  7921. ;;
  7922. rdos*)
  7923. lt_prog_compiler_static='-non_shared'
  7924. ;;
  7925. solaris*)
  7926. lt_prog_compiler_pic='-KPIC'
  7927. lt_prog_compiler_static='-Bstatic'
  7928. case $cc_basename in
  7929. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7930. lt_prog_compiler_wl='-Qoption ld ';;
  7931. *)
  7932. lt_prog_compiler_wl='-Wl,';;
  7933. esac
  7934. ;;
  7935. sunos4*)
  7936. lt_prog_compiler_wl='-Qoption ld '
  7937. lt_prog_compiler_pic='-PIC'
  7938. lt_prog_compiler_static='-Bstatic'
  7939. ;;
  7940. sysv4 | sysv4.2uw2* | sysv4.3*)
  7941. lt_prog_compiler_wl='-Wl,'
  7942. lt_prog_compiler_pic='-KPIC'
  7943. lt_prog_compiler_static='-Bstatic'
  7944. ;;
  7945. sysv4*MP*)
  7946. if test -d /usr/nec; then
  7947. lt_prog_compiler_pic='-Kconform_pic'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. fi
  7950. ;;
  7951. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7952. lt_prog_compiler_wl='-Wl,'
  7953. lt_prog_compiler_pic='-KPIC'
  7954. lt_prog_compiler_static='-Bstatic'
  7955. ;;
  7956. unicos*)
  7957. lt_prog_compiler_wl='-Wl,'
  7958. lt_prog_compiler_can_build_shared=no
  7959. ;;
  7960. uts4*)
  7961. lt_prog_compiler_pic='-pic'
  7962. lt_prog_compiler_static='-Bstatic'
  7963. ;;
  7964. *)
  7965. lt_prog_compiler_can_build_shared=no
  7966. ;;
  7967. esac
  7968. fi
  7969. case $host_os in
  7970. # For platforms that do not support PIC, -DPIC is meaningless:
  7971. *djgpp*)
  7972. lt_prog_compiler_pic=
  7973. ;;
  7974. *)
  7975. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7976. ;;
  7977. esac
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7979. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7980. if ${lt_cv_prog_compiler_pic+:} false; then :
  7981. $as_echo_n "(cached) " >&6
  7982. else
  7983. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7984. fi
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7986. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7987. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7988. #
  7989. # Check to make sure the PIC flag actually works.
  7990. #
  7991. if test -n "$lt_prog_compiler_pic"; then
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7993. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7994. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. lt_cv_prog_compiler_pic_works=no
  7998. ac_outfile=conftest.$ac_objext
  7999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8000. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8001. # Insert the option either (1) after the last *FLAGS variable, or
  8002. # (2) before a word containing "conftest.", or (3) at the end.
  8003. # Note that $ac_compile itself does not contain backslashes and begins
  8004. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8005. # The option is referenced via a variable to avoid confusing sed.
  8006. lt_compile=`echo "$ac_compile" | $SED \
  8007. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8009. -e 's:$: $lt_compiler_flag:'`
  8010. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8011. (eval "$lt_compile" 2>conftest.err)
  8012. ac_status=$?
  8013. cat conftest.err >&5
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. if (exit $ac_status) && test -s "$ac_outfile"; then
  8016. # The compiler can only warn and ignore the option if not recognized
  8017. # So say no if there are warnings other than the usual output.
  8018. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8019. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8020. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8021. lt_cv_prog_compiler_pic_works=yes
  8022. fi
  8023. fi
  8024. $RM conftest*
  8025. fi
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8027. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8028. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8029. case $lt_prog_compiler_pic in
  8030. "" | " "*) ;;
  8031. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8032. esac
  8033. else
  8034. lt_prog_compiler_pic=
  8035. lt_prog_compiler_can_build_shared=no
  8036. fi
  8037. fi
  8038. #
  8039. # Check to make sure the static flag actually works.
  8040. #
  8041. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8043. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8044. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8045. $as_echo_n "(cached) " >&6
  8046. else
  8047. lt_cv_prog_compiler_static_works=no
  8048. save_LDFLAGS=$LDFLAGS
  8049. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8050. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8051. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8052. # The linker can only warn and ignore the option if not recognized
  8053. # So say no if there are warnings
  8054. if test -s conftest.err; then
  8055. # Append any errors to the config.log.
  8056. cat conftest.err 1>&5
  8057. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8058. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8059. if diff conftest.exp conftest.er2 >/dev/null; then
  8060. lt_cv_prog_compiler_static_works=yes
  8061. fi
  8062. else
  8063. lt_cv_prog_compiler_static_works=yes
  8064. fi
  8065. fi
  8066. $RM -r conftest*
  8067. LDFLAGS=$save_LDFLAGS
  8068. fi
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8070. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8071. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8072. :
  8073. else
  8074. lt_prog_compiler_static=
  8075. fi
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8077. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8078. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8079. $as_echo_n "(cached) " >&6
  8080. else
  8081. lt_cv_prog_compiler_c_o=no
  8082. $RM -r conftest 2>/dev/null
  8083. mkdir conftest
  8084. cd conftest
  8085. mkdir out
  8086. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8087. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8088. # Insert the option either (1) after the last *FLAGS variable, or
  8089. # (2) before a word containing "conftest.", or (3) at the end.
  8090. # Note that $ac_compile itself does not contain backslashes and begins
  8091. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8092. lt_compile=`echo "$ac_compile" | $SED \
  8093. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8094. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8095. -e 's:$: $lt_compiler_flag:'`
  8096. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8097. (eval "$lt_compile" 2>out/conftest.err)
  8098. ac_status=$?
  8099. cat out/conftest.err >&5
  8100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8101. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8102. then
  8103. # The compiler can only warn and ignore the option if not recognized
  8104. # So say no if there are warnings
  8105. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8106. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8107. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8108. lt_cv_prog_compiler_c_o=yes
  8109. fi
  8110. fi
  8111. chmod u+w . 2>&5
  8112. $RM conftest*
  8113. # SGI C++ compiler will create directory out/ii_files/ for
  8114. # template instantiation
  8115. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8116. $RM out/* && rmdir out
  8117. cd ..
  8118. $RM -r conftest
  8119. $RM conftest*
  8120. fi
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8122. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8124. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8125. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8126. $as_echo_n "(cached) " >&6
  8127. else
  8128. lt_cv_prog_compiler_c_o=no
  8129. $RM -r conftest 2>/dev/null
  8130. mkdir conftest
  8131. cd conftest
  8132. mkdir out
  8133. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8134. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8135. # Insert the option either (1) after the last *FLAGS variable, or
  8136. # (2) before a word containing "conftest.", or (3) at the end.
  8137. # Note that $ac_compile itself does not contain backslashes and begins
  8138. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8139. lt_compile=`echo "$ac_compile" | $SED \
  8140. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8141. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8142. -e 's:$: $lt_compiler_flag:'`
  8143. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8144. (eval "$lt_compile" 2>out/conftest.err)
  8145. ac_status=$?
  8146. cat out/conftest.err >&5
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8149. then
  8150. # The compiler can only warn and ignore the option if not recognized
  8151. # So say no if there are warnings
  8152. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8153. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8154. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8155. lt_cv_prog_compiler_c_o=yes
  8156. fi
  8157. fi
  8158. chmod u+w . 2>&5
  8159. $RM conftest*
  8160. # SGI C++ compiler will create directory out/ii_files/ for
  8161. # template instantiation
  8162. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8163. $RM out/* && rmdir out
  8164. cd ..
  8165. $RM -r conftest
  8166. $RM conftest*
  8167. fi
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8169. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8170. hard_links=nottested
  8171. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8172. # do not overwrite the value of need_locks provided by the user
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8174. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8175. hard_links=yes
  8176. $RM conftest*
  8177. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8178. touch conftest.a
  8179. ln conftest.a conftest.b 2>&5 || hard_links=no
  8180. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8182. $as_echo "$hard_links" >&6; }
  8183. if test no = "$hard_links"; then
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8185. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8186. need_locks=warn
  8187. fi
  8188. else
  8189. need_locks=no
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8192. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8193. runpath_var=
  8194. allow_undefined_flag=
  8195. always_export_symbols=no
  8196. archive_cmds=
  8197. archive_expsym_cmds=
  8198. compiler_needs_object=no
  8199. enable_shared_with_static_runtimes=no
  8200. export_dynamic_flag_spec=
  8201. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8202. hardcode_automatic=no
  8203. hardcode_direct=no
  8204. hardcode_direct_absolute=no
  8205. hardcode_libdir_flag_spec=
  8206. hardcode_libdir_separator=
  8207. hardcode_minus_L=no
  8208. hardcode_shlibpath_var=unsupported
  8209. inherit_rpath=no
  8210. link_all_deplibs=unknown
  8211. module_cmds=
  8212. module_expsym_cmds=
  8213. old_archive_from_new_cmds=
  8214. old_archive_from_expsyms_cmds=
  8215. thread_safe_flag_spec=
  8216. whole_archive_flag_spec=
  8217. # include_expsyms should be a list of space-separated symbols to be *always*
  8218. # included in the symbol list
  8219. include_expsyms=
  8220. # exclude_expsyms can be an extended regexp of symbols to exclude
  8221. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8222. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8223. # as well as any symbol that contains 'd'.
  8224. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8225. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8226. # platforms (ab)use it in PIC code, but their linkers get confused if
  8227. # the symbol is explicitly referenced. Since portable code cannot
  8228. # rely on this symbol name, it's probably fine to never include it in
  8229. # preloaded symbol tables.
  8230. # Exclude shared library initialization/finalization symbols.
  8231. extract_expsyms_cmds=
  8232. case $host_os in
  8233. cygwin* | mingw* | pw32* | cegcc*)
  8234. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8235. # When not using gcc, we currently assume that we are using
  8236. # Microsoft Visual C++.
  8237. if test yes != "$GCC"; then
  8238. with_gnu_ld=no
  8239. fi
  8240. ;;
  8241. interix*)
  8242. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8243. with_gnu_ld=yes
  8244. ;;
  8245. openbsd* | bitrig*)
  8246. with_gnu_ld=no
  8247. ;;
  8248. linux* | k*bsd*-gnu | gnu*)
  8249. link_all_deplibs=no
  8250. ;;
  8251. esac
  8252. ld_shlibs=yes
  8253. # On some targets, GNU ld is compatible enough with the native linker
  8254. # that we're better off using the native interface for both.
  8255. lt_use_gnu_ld_interface=no
  8256. if test yes = "$with_gnu_ld"; then
  8257. case $host_os in
  8258. aix*)
  8259. # The AIX port of GNU ld has always aspired to compatibility
  8260. # with the native linker. However, as the warning in the GNU ld
  8261. # block says, versions before 2.19.5* couldn't really create working
  8262. # shared libraries, regardless of the interface used.
  8263. case `$LD -v 2>&1` in
  8264. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8265. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8266. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8267. *)
  8268. lt_use_gnu_ld_interface=yes
  8269. ;;
  8270. esac
  8271. ;;
  8272. *)
  8273. lt_use_gnu_ld_interface=yes
  8274. ;;
  8275. esac
  8276. fi
  8277. if test yes = "$lt_use_gnu_ld_interface"; then
  8278. # If archive_cmds runs LD, not CC, wlarc should be empty
  8279. wlarc='$wl'
  8280. # Set some defaults for GNU ld with shared library support. These
  8281. # are reset later if shared libraries are not supported. Putting them
  8282. # here allows them to be overridden if necessary.
  8283. runpath_var=LD_RUN_PATH
  8284. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8285. export_dynamic_flag_spec='$wl--export-dynamic'
  8286. # ancient GNU ld didn't support --whole-archive et. al.
  8287. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8288. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8289. else
  8290. whole_archive_flag_spec=
  8291. fi
  8292. supports_anon_versioning=no
  8293. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8294. *GNU\ gold*) supports_anon_versioning=yes ;;
  8295. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8296. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8297. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8298. *\ 2.11.*) ;; # other 2.11 versions
  8299. *) supports_anon_versioning=yes ;;
  8300. esac
  8301. # See if GNU ld supports shared libraries.
  8302. case $host_os in
  8303. aix[3-9]*)
  8304. # On AIX/PPC, the GNU linker is very broken
  8305. if test ia64 != "$host_cpu"; then
  8306. ld_shlibs=no
  8307. cat <<_LT_EOF 1>&2
  8308. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8309. *** to be unable to reliably create shared libraries on AIX.
  8310. *** Therefore, libtool is disabling shared libraries support. If you
  8311. *** really care for shared libraries, you may want to install binutils
  8312. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8313. *** You will then need to restart the configuration process.
  8314. _LT_EOF
  8315. fi
  8316. ;;
  8317. amigaos*)
  8318. case $host_cpu in
  8319. powerpc)
  8320. # see comment about AmigaOS4 .so support
  8321. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8322. archive_expsym_cmds=''
  8323. ;;
  8324. m68k)
  8325. 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)'
  8326. hardcode_libdir_flag_spec='-L$libdir'
  8327. hardcode_minus_L=yes
  8328. ;;
  8329. esac
  8330. ;;
  8331. beos*)
  8332. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8333. allow_undefined_flag=unsupported
  8334. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8335. # support --undefined. This deserves some investigation. FIXME
  8336. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8337. else
  8338. ld_shlibs=no
  8339. fi
  8340. ;;
  8341. cygwin* | mingw* | pw32* | cegcc*)
  8342. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8343. # as there is no search path for DLLs.
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. export_dynamic_flag_spec='$wl--export-all-symbols'
  8346. allow_undefined_flag=unsupported
  8347. always_export_symbols=no
  8348. enable_shared_with_static_runtimes=yes
  8349. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8350. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8351. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8352. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8353. # If the export-symbols file already is a .def file, use it as
  8354. # is; otherwise, prepend EXPORTS...
  8355. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8356. cp $export_symbols $output_objdir/$soname.def;
  8357. else
  8358. echo EXPORTS > $output_objdir/$soname.def;
  8359. cat $export_symbols >> $output_objdir/$soname.def;
  8360. fi~
  8361. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8362. else
  8363. ld_shlibs=no
  8364. fi
  8365. ;;
  8366. haiku*)
  8367. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8368. link_all_deplibs=yes
  8369. ;;
  8370. os2*)
  8371. hardcode_libdir_flag_spec='-L$libdir'
  8372. hardcode_minus_L=yes
  8373. allow_undefined_flag=unsupported
  8374. shrext_cmds=.dll
  8375. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8376. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8377. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8378. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8379. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8380. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8381. emximp -o $lib $output_objdir/$libname.def'
  8382. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8383. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8384. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8385. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8386. prefix_cmds="$SED"~
  8387. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8388. prefix_cmds="$prefix_cmds -e 1d";
  8389. fi~
  8390. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8391. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8392. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8393. emximp -o $lib $output_objdir/$libname.def'
  8394. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8395. enable_shared_with_static_runtimes=yes
  8396. ;;
  8397. interix[3-9]*)
  8398. hardcode_direct=no
  8399. hardcode_shlibpath_var=no
  8400. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8401. export_dynamic_flag_spec='$wl-E'
  8402. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8403. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8404. # default) and relocated if they conflict, which is a slow very memory
  8405. # consuming and fragmenting process. To avoid this, we pick a random,
  8406. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8407. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8408. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8409. 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'
  8410. ;;
  8411. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8412. tmp_diet=no
  8413. if test linux-dietlibc = "$host_os"; then
  8414. case $cc_basename in
  8415. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8416. esac
  8417. fi
  8418. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8419. && test no = "$tmp_diet"
  8420. then
  8421. tmp_addflag=' $pic_flag'
  8422. tmp_sharedflag='-shared'
  8423. case $cc_basename,$host_cpu in
  8424. pgcc*) # Portland Group C compiler
  8425. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8426. tmp_addflag=' $pic_flag'
  8427. ;;
  8428. pgf77* | pgf90* | pgf95* | pgfortran*)
  8429. # Portland Group f77 and f90 compilers
  8430. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8431. tmp_addflag=' $pic_flag -Mnomain' ;;
  8432. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8433. tmp_addflag=' -i_dynamic' ;;
  8434. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8435. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8436. ifc* | ifort*) # Intel Fortran compiler
  8437. tmp_addflag=' -nofor_main' ;;
  8438. lf95*) # Lahey Fortran 8.1
  8439. whole_archive_flag_spec=
  8440. tmp_sharedflag='--shared' ;;
  8441. nagfor*) # NAGFOR 5.3
  8442. tmp_sharedflag='-Wl,-shared' ;;
  8443. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8444. tmp_sharedflag='-qmkshrobj'
  8445. tmp_addflag= ;;
  8446. nvcc*) # Cuda Compiler Driver 2.2
  8447. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8448. compiler_needs_object=yes
  8449. ;;
  8450. esac
  8451. case `$CC -V 2>&1 | sed 5q` in
  8452. *Sun\ C*) # Sun C 5.9
  8453. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8454. compiler_needs_object=yes
  8455. tmp_sharedflag='-G' ;;
  8456. *Sun\ F*) # Sun Fortran 8.3
  8457. tmp_sharedflag='-G' ;;
  8458. esac
  8459. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8460. if test yes = "$supports_anon_versioning"; then
  8461. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8462. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8463. echo "local: *; };" >> $output_objdir/$libname.ver~
  8464. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8465. fi
  8466. case $cc_basename in
  8467. tcc*)
  8468. export_dynamic_flag_spec='-rdynamic'
  8469. ;;
  8470. xlf* | bgf* | bgxlf* | mpixlf*)
  8471. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8472. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8473. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8474. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8475. if test yes = "$supports_anon_versioning"; then
  8476. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8477. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8478. echo "local: *; };" >> $output_objdir/$libname.ver~
  8479. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8480. fi
  8481. ;;
  8482. esac
  8483. else
  8484. ld_shlibs=no
  8485. fi
  8486. ;;
  8487. netbsd* | netbsdelf*-gnu)
  8488. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8489. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8490. wlarc=
  8491. else
  8492. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8493. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8494. fi
  8495. ;;
  8496. solaris*)
  8497. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8498. ld_shlibs=no
  8499. cat <<_LT_EOF 1>&2
  8500. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8501. *** create shared libraries on Solaris systems. Therefore, libtool
  8502. *** is disabling shared libraries support. We urge you to upgrade GNU
  8503. *** binutils to release 2.9.1 or newer. Another option is to modify
  8504. *** your PATH or compiler configuration so that the native linker is
  8505. *** used, and then restart.
  8506. _LT_EOF
  8507. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8508. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8509. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8510. else
  8511. ld_shlibs=no
  8512. fi
  8513. ;;
  8514. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8515. case `$LD -v 2>&1` in
  8516. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8517. ld_shlibs=no
  8518. cat <<_LT_EOF 1>&2
  8519. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8520. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8521. *** is disabling shared libraries support. We urge you to upgrade GNU
  8522. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8523. *** your PATH or compiler configuration so that the native linker is
  8524. *** used, and then restart.
  8525. _LT_EOF
  8526. ;;
  8527. *)
  8528. # For security reasons, it is highly recommended that you always
  8529. # use absolute paths for naming shared libraries, and exclude the
  8530. # DT_RUNPATH tag from executables and libraries. But doing so
  8531. # requires that you compile everything twice, which is a pain.
  8532. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8533. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8534. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8535. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8536. else
  8537. ld_shlibs=no
  8538. fi
  8539. ;;
  8540. esac
  8541. ;;
  8542. sunos4*)
  8543. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8544. wlarc=
  8545. hardcode_direct=yes
  8546. hardcode_shlibpath_var=no
  8547. ;;
  8548. *)
  8549. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8550. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8551. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8552. else
  8553. ld_shlibs=no
  8554. fi
  8555. ;;
  8556. esac
  8557. if test no = "$ld_shlibs"; then
  8558. runpath_var=
  8559. hardcode_libdir_flag_spec=
  8560. export_dynamic_flag_spec=
  8561. whole_archive_flag_spec=
  8562. fi
  8563. else
  8564. # PORTME fill in a description of your system's linker (not GNU ld)
  8565. case $host_os in
  8566. aix3*)
  8567. allow_undefined_flag=unsupported
  8568. always_export_symbols=yes
  8569. 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'
  8570. # Note: this linker hardcodes the directories in LIBPATH if there
  8571. # are no directories specified by -L.
  8572. hardcode_minus_L=yes
  8573. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8574. # Neither direct hardcoding nor static linking is supported with a
  8575. # broken collect2.
  8576. hardcode_direct=unsupported
  8577. fi
  8578. ;;
  8579. aix[4-9]*)
  8580. if test ia64 = "$host_cpu"; then
  8581. # On IA64, the linker does run time linking by default, so we don't
  8582. # have to do anything special.
  8583. aix_use_runtimelinking=no
  8584. exp_sym_flag='-Bexport'
  8585. no_entry_flag=
  8586. else
  8587. # If we're using GNU nm, then we don't want the "-C" option.
  8588. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8589. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8590. # weak defined symbols like other global defined symbols, whereas
  8591. # GNU nm marks them as "W".
  8592. # While the 'weak' keyword is ignored in the Export File, we need
  8593. # it in the Import File for the 'aix-soname' feature, so we have
  8594. # to replace the "-B" option with "-P" for AIX nm.
  8595. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8596. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8597. else
  8598. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8599. fi
  8600. aix_use_runtimelinking=no
  8601. # Test if we are trying to use run time linking or normal
  8602. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8603. # have runtime linking enabled, and use it for executables.
  8604. # For shared libraries, we enable/disable runtime linking
  8605. # depending on the kind of the shared library created -
  8606. # when "with_aix_soname,aix_use_runtimelinking" is:
  8607. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8608. # "aix,yes" lib.so shared, rtl:yes, for executables
  8609. # lib.a static archive
  8610. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8611. # lib.a(lib.so.V) shared, rtl:no, for executables
  8612. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8613. # lib.a(lib.so.V) shared, rtl:no
  8614. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8615. # lib.a static archive
  8616. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8617. for ld_flag in $LDFLAGS; do
  8618. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8619. aix_use_runtimelinking=yes
  8620. break
  8621. fi
  8622. done
  8623. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8624. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8625. # so we don't have lib.a shared libs to link our executables.
  8626. # We have to force runtime linking in this case.
  8627. aix_use_runtimelinking=yes
  8628. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8629. fi
  8630. ;;
  8631. esac
  8632. exp_sym_flag='-bexport'
  8633. no_entry_flag='-bnoentry'
  8634. fi
  8635. # When large executables or shared objects are built, AIX ld can
  8636. # have problems creating the table of contents. If linking a library
  8637. # or program results in "error TOC overflow" add -mminimal-toc to
  8638. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8639. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8640. archive_cmds=''
  8641. hardcode_direct=yes
  8642. hardcode_direct_absolute=yes
  8643. hardcode_libdir_separator=':'
  8644. link_all_deplibs=yes
  8645. file_list_spec='$wl-f,'
  8646. case $with_aix_soname,$aix_use_runtimelinking in
  8647. aix,*) ;; # traditional, no import file
  8648. svr4,* | *,yes) # use import file
  8649. # The Import File defines what to hardcode.
  8650. hardcode_direct=no
  8651. hardcode_direct_absolute=no
  8652. ;;
  8653. esac
  8654. if test yes = "$GCC"; then
  8655. case $host_os in aix4.[012]|aix4.[012].*)
  8656. # We only want to do this on AIX 4.2 and lower, the check
  8657. # below for broken collect2 doesn't work under 4.3+
  8658. collect2name=`$CC -print-prog-name=collect2`
  8659. if test -f "$collect2name" &&
  8660. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8661. then
  8662. # We have reworked collect2
  8663. :
  8664. else
  8665. # We have old collect2
  8666. hardcode_direct=unsupported
  8667. # It fails to find uninstalled libraries when the uninstalled
  8668. # path is not listed in the libpath. Setting hardcode_minus_L
  8669. # to unsupported forces relinking
  8670. hardcode_minus_L=yes
  8671. hardcode_libdir_flag_spec='-L$libdir'
  8672. hardcode_libdir_separator=
  8673. fi
  8674. ;;
  8675. esac
  8676. shared_flag='-shared'
  8677. if test yes = "$aix_use_runtimelinking"; then
  8678. shared_flag="$shared_flag "'$wl-G'
  8679. fi
  8680. # Need to ensure runtime linking is disabled for the traditional
  8681. # shared library, or the linker may eventually find shared libraries
  8682. # /with/ Import File - we do not want to mix them.
  8683. shared_flag_aix='-shared'
  8684. shared_flag_svr4='-shared $wl-G'
  8685. else
  8686. # not using gcc
  8687. if test ia64 = "$host_cpu"; then
  8688. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8689. # chokes on -Wl,-G. The following line is correct:
  8690. shared_flag='-G'
  8691. else
  8692. if test yes = "$aix_use_runtimelinking"; then
  8693. shared_flag='$wl-G'
  8694. else
  8695. shared_flag='$wl-bM:SRE'
  8696. fi
  8697. shared_flag_aix='$wl-bM:SRE'
  8698. shared_flag_svr4='$wl-G'
  8699. fi
  8700. fi
  8701. export_dynamic_flag_spec='$wl-bexpall'
  8702. # It seems that -bexpall does not export symbols beginning with
  8703. # underscore (_), so it is better to generate a list of symbols to export.
  8704. always_export_symbols=yes
  8705. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8706. # Warning - without using the other runtime loading flags (-brtl),
  8707. # -berok will link without error, but may produce a broken library.
  8708. allow_undefined_flag='-berok'
  8709. # Determine the default libpath from the value encoded in an
  8710. # empty executable.
  8711. if test set = "${lt_cv_aix_libpath+set}"; then
  8712. aix_libpath=$lt_cv_aix_libpath
  8713. else
  8714. if ${lt_cv_aix_libpath_+:} false; then :
  8715. $as_echo_n "(cached) " >&6
  8716. else
  8717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8718. /* end confdefs.h. */
  8719. int
  8720. main ()
  8721. {
  8722. ;
  8723. return 0;
  8724. }
  8725. _ACEOF
  8726. if ac_fn_c_try_link "$LINENO"; then :
  8727. lt_aix_libpath_sed='
  8728. /Import File Strings/,/^$/ {
  8729. /^0/ {
  8730. s/^0 *\([^ ]*\) *$/\1/
  8731. p
  8732. }
  8733. }'
  8734. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8735. # Check for a 64-bit object if we didn't find anything.
  8736. if test -z "$lt_cv_aix_libpath_"; then
  8737. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8738. fi
  8739. fi
  8740. rm -f core conftest.err conftest.$ac_objext \
  8741. conftest$ac_exeext conftest.$ac_ext
  8742. if test -z "$lt_cv_aix_libpath_"; then
  8743. lt_cv_aix_libpath_=/usr/lib:/lib
  8744. fi
  8745. fi
  8746. aix_libpath=$lt_cv_aix_libpath_
  8747. fi
  8748. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8749. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8750. else
  8751. if test ia64 = "$host_cpu"; then
  8752. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8753. allow_undefined_flag="-z nodefs"
  8754. 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"
  8755. else
  8756. # Determine the default libpath from the value encoded in an
  8757. # empty executable.
  8758. if test set = "${lt_cv_aix_libpath+set}"; then
  8759. aix_libpath=$lt_cv_aix_libpath
  8760. else
  8761. if ${lt_cv_aix_libpath_+:} false; then :
  8762. $as_echo_n "(cached) " >&6
  8763. else
  8764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8765. /* end confdefs.h. */
  8766. int
  8767. main ()
  8768. {
  8769. ;
  8770. return 0;
  8771. }
  8772. _ACEOF
  8773. if ac_fn_c_try_link "$LINENO"; then :
  8774. lt_aix_libpath_sed='
  8775. /Import File Strings/,/^$/ {
  8776. /^0/ {
  8777. s/^0 *\([^ ]*\) *$/\1/
  8778. p
  8779. }
  8780. }'
  8781. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8782. # Check for a 64-bit object if we didn't find anything.
  8783. if test -z "$lt_cv_aix_libpath_"; then
  8784. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8785. fi
  8786. fi
  8787. rm -f core conftest.err conftest.$ac_objext \
  8788. conftest$ac_exeext conftest.$ac_ext
  8789. if test -z "$lt_cv_aix_libpath_"; then
  8790. lt_cv_aix_libpath_=/usr/lib:/lib
  8791. fi
  8792. fi
  8793. aix_libpath=$lt_cv_aix_libpath_
  8794. fi
  8795. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8796. # Warning - without using the other run time loading flags,
  8797. # -berok will link without error, but may produce a broken library.
  8798. no_undefined_flag=' $wl-bernotok'
  8799. allow_undefined_flag=' $wl-berok'
  8800. if test yes = "$with_gnu_ld"; then
  8801. # We only use this code for GNU lds that support --whole-archive.
  8802. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8803. else
  8804. # Exported symbols can be pulled into shared objects from archives
  8805. whole_archive_flag_spec='$convenience'
  8806. fi
  8807. archive_cmds_need_lc=yes
  8808. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8809. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8810. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8811. if test svr4 != "$with_aix_soname"; then
  8812. # This is similar to how AIX traditionally builds its shared libraries.
  8813. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8814. fi
  8815. if test aix != "$with_aix_soname"; then
  8816. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8817. else
  8818. # used by -dlpreopen to get the symbols
  8819. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8820. fi
  8821. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8822. fi
  8823. fi
  8824. ;;
  8825. amigaos*)
  8826. case $host_cpu in
  8827. powerpc)
  8828. # see comment about AmigaOS4 .so support
  8829. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8830. archive_expsym_cmds=''
  8831. ;;
  8832. m68k)
  8833. 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)'
  8834. hardcode_libdir_flag_spec='-L$libdir'
  8835. hardcode_minus_L=yes
  8836. ;;
  8837. esac
  8838. ;;
  8839. bsdi[45]*)
  8840. export_dynamic_flag_spec=-rdynamic
  8841. ;;
  8842. cygwin* | mingw* | pw32* | cegcc*)
  8843. # When not using gcc, we currently assume that we are using
  8844. # Microsoft Visual C++.
  8845. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8846. # no search path for DLLs.
  8847. case $cc_basename in
  8848. cl*)
  8849. # Native MSVC
  8850. hardcode_libdir_flag_spec=' '
  8851. allow_undefined_flag=unsupported
  8852. always_export_symbols=yes
  8853. file_list_spec='@'
  8854. # Tell ltmain to make .lib files, not .a files.
  8855. libext=lib
  8856. # Tell ltmain to make .dll files, not .so files.
  8857. shrext_cmds=.dll
  8858. # FIXME: Setting linknames here is a bad hack.
  8859. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8860. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8861. cp "$export_symbols" "$output_objdir/$soname.def";
  8862. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8863. else
  8864. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8865. fi~
  8866. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8867. linknames='
  8868. # The linker will not automatically build a static lib if we build a DLL.
  8869. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8870. enable_shared_with_static_runtimes=yes
  8871. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8872. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8873. # Don't use ranlib
  8874. old_postinstall_cmds='chmod 644 $oldlib'
  8875. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8876. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8877. case $lt_outputfile in
  8878. *.exe|*.EXE) ;;
  8879. *)
  8880. lt_outputfile=$lt_outputfile.exe
  8881. lt_tool_outputfile=$lt_tool_outputfile.exe
  8882. ;;
  8883. esac~
  8884. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8885. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8886. $RM "$lt_outputfile.manifest";
  8887. fi'
  8888. ;;
  8889. *)
  8890. # Assume MSVC wrapper
  8891. hardcode_libdir_flag_spec=' '
  8892. allow_undefined_flag=unsupported
  8893. # Tell ltmain to make .lib files, not .a files.
  8894. libext=lib
  8895. # Tell ltmain to make .dll files, not .so files.
  8896. shrext_cmds=.dll
  8897. # FIXME: Setting linknames here is a bad hack.
  8898. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8899. # The linker will automatically build a .lib file if we build a DLL.
  8900. old_archive_from_new_cmds='true'
  8901. # FIXME: Should let the user specify the lib program.
  8902. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8903. enable_shared_with_static_runtimes=yes
  8904. ;;
  8905. esac
  8906. ;;
  8907. darwin* | rhapsody*)
  8908. archive_cmds_need_lc=no
  8909. hardcode_direct=no
  8910. hardcode_automatic=yes
  8911. hardcode_shlibpath_var=unsupported
  8912. if test yes = "$lt_cv_ld_force_load"; then
  8913. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8914. else
  8915. whole_archive_flag_spec=''
  8916. fi
  8917. link_all_deplibs=yes
  8918. allow_undefined_flag=$_lt_dar_allow_undefined
  8919. case $cc_basename in
  8920. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8921. *) _lt_dar_can_shared=$GCC ;;
  8922. esac
  8923. if test yes = "$_lt_dar_can_shared"; then
  8924. output_verbose_link_cmd=func_echo_all
  8925. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8926. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8927. 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"
  8928. 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"
  8929. else
  8930. ld_shlibs=no
  8931. fi
  8932. ;;
  8933. dgux*)
  8934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8935. hardcode_libdir_flag_spec='-L$libdir'
  8936. hardcode_shlibpath_var=no
  8937. ;;
  8938. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8939. # support. Future versions do this automatically, but an explicit c++rt0.o
  8940. # does not break anything, and helps significantly (at the cost of a little
  8941. # extra space).
  8942. freebsd2.2*)
  8943. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8944. hardcode_libdir_flag_spec='-R$libdir'
  8945. hardcode_direct=yes
  8946. hardcode_shlibpath_var=no
  8947. ;;
  8948. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8949. freebsd2.*)
  8950. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8951. hardcode_direct=yes
  8952. hardcode_minus_L=yes
  8953. hardcode_shlibpath_var=no
  8954. ;;
  8955. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8956. freebsd* | dragonfly*)
  8957. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8958. hardcode_libdir_flag_spec='-R$libdir'
  8959. hardcode_direct=yes
  8960. hardcode_shlibpath_var=no
  8961. ;;
  8962. hpux9*)
  8963. if test yes = "$GCC"; then
  8964. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8965. else
  8966. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8967. fi
  8968. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8969. hardcode_libdir_separator=:
  8970. hardcode_direct=yes
  8971. # hardcode_minus_L: Not really in the search PATH,
  8972. # but as the default location of the library.
  8973. hardcode_minus_L=yes
  8974. export_dynamic_flag_spec='$wl-E'
  8975. ;;
  8976. hpux10*)
  8977. if test yes,no = "$GCC,$with_gnu_ld"; then
  8978. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8979. else
  8980. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8981. fi
  8982. if test no = "$with_gnu_ld"; then
  8983. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8984. hardcode_libdir_separator=:
  8985. hardcode_direct=yes
  8986. hardcode_direct_absolute=yes
  8987. export_dynamic_flag_spec='$wl-E'
  8988. # hardcode_minus_L: Not really in the search PATH,
  8989. # but as the default location of the library.
  8990. hardcode_minus_L=yes
  8991. fi
  8992. ;;
  8993. hpux11*)
  8994. if test yes,no = "$GCC,$with_gnu_ld"; then
  8995. case $host_cpu in
  8996. hppa*64*)
  8997. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8998. ;;
  8999. ia64*)
  9000. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9001. ;;
  9002. *)
  9003. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9004. ;;
  9005. esac
  9006. else
  9007. case $host_cpu in
  9008. hppa*64*)
  9009. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9010. ;;
  9011. ia64*)
  9012. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9013. ;;
  9014. *)
  9015. # Older versions of the 11.00 compiler do not understand -b yet
  9016. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9018. $as_echo_n "checking if $CC understands -b... " >&6; }
  9019. if ${lt_cv_prog_compiler__b+:} false; then :
  9020. $as_echo_n "(cached) " >&6
  9021. else
  9022. lt_cv_prog_compiler__b=no
  9023. save_LDFLAGS=$LDFLAGS
  9024. LDFLAGS="$LDFLAGS -b"
  9025. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9026. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9027. # The linker can only warn and ignore the option if not recognized
  9028. # So say no if there are warnings
  9029. if test -s conftest.err; then
  9030. # Append any errors to the config.log.
  9031. cat conftest.err 1>&5
  9032. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9033. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9034. if diff conftest.exp conftest.er2 >/dev/null; then
  9035. lt_cv_prog_compiler__b=yes
  9036. fi
  9037. else
  9038. lt_cv_prog_compiler__b=yes
  9039. fi
  9040. fi
  9041. $RM -r conftest*
  9042. LDFLAGS=$save_LDFLAGS
  9043. fi
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9045. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9046. if test yes = "$lt_cv_prog_compiler__b"; then
  9047. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9048. else
  9049. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9050. fi
  9051. ;;
  9052. esac
  9053. fi
  9054. if test no = "$with_gnu_ld"; then
  9055. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9056. hardcode_libdir_separator=:
  9057. case $host_cpu in
  9058. hppa*64*|ia64*)
  9059. hardcode_direct=no
  9060. hardcode_shlibpath_var=no
  9061. ;;
  9062. *)
  9063. hardcode_direct=yes
  9064. hardcode_direct_absolute=yes
  9065. export_dynamic_flag_spec='$wl-E'
  9066. # hardcode_minus_L: Not really in the search PATH,
  9067. # but as the default location of the library.
  9068. hardcode_minus_L=yes
  9069. ;;
  9070. esac
  9071. fi
  9072. ;;
  9073. irix5* | irix6* | nonstopux*)
  9074. if test yes = "$GCC"; then
  9075. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9076. # Try to use the -exported_symbol ld option, if it does not
  9077. # work, assume that -exports_file does not work either and
  9078. # implicitly export all symbols.
  9079. # This should be the same for all languages, so no per-tag cache variable.
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9081. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9082. if ${lt_cv_irix_exported_symbol+:} false; then :
  9083. $as_echo_n "(cached) " >&6
  9084. else
  9085. save_LDFLAGS=$LDFLAGS
  9086. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9088. /* end confdefs.h. */
  9089. int foo (void) { return 0; }
  9090. _ACEOF
  9091. if ac_fn_c_try_link "$LINENO"; then :
  9092. lt_cv_irix_exported_symbol=yes
  9093. else
  9094. lt_cv_irix_exported_symbol=no
  9095. fi
  9096. rm -f core conftest.err conftest.$ac_objext \
  9097. conftest$ac_exeext conftest.$ac_ext
  9098. LDFLAGS=$save_LDFLAGS
  9099. fi
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9101. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9102. if test yes = "$lt_cv_irix_exported_symbol"; then
  9103. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9104. fi
  9105. link_all_deplibs=no
  9106. else
  9107. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9108. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9109. fi
  9110. archive_cmds_need_lc='no'
  9111. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9112. hardcode_libdir_separator=:
  9113. inherit_rpath=yes
  9114. link_all_deplibs=yes
  9115. ;;
  9116. linux*)
  9117. case $cc_basename in
  9118. tcc*)
  9119. # Fabrice Bellard et al's Tiny C Compiler
  9120. ld_shlibs=yes
  9121. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9122. ;;
  9123. esac
  9124. ;;
  9125. netbsd* | netbsdelf*-gnu)
  9126. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9127. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9128. else
  9129. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9130. fi
  9131. hardcode_libdir_flag_spec='-R$libdir'
  9132. hardcode_direct=yes
  9133. hardcode_shlibpath_var=no
  9134. ;;
  9135. newsos6)
  9136. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9137. hardcode_direct=yes
  9138. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9139. hardcode_libdir_separator=:
  9140. hardcode_shlibpath_var=no
  9141. ;;
  9142. *nto* | *qnx*)
  9143. ;;
  9144. openbsd* | bitrig*)
  9145. if test -f /usr/libexec/ld.so; then
  9146. hardcode_direct=yes
  9147. hardcode_shlibpath_var=no
  9148. hardcode_direct_absolute=yes
  9149. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9150. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9151. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9152. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9153. export_dynamic_flag_spec='$wl-E'
  9154. else
  9155. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9156. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9157. fi
  9158. else
  9159. ld_shlibs=no
  9160. fi
  9161. ;;
  9162. os2*)
  9163. hardcode_libdir_flag_spec='-L$libdir'
  9164. hardcode_minus_L=yes
  9165. allow_undefined_flag=unsupported
  9166. shrext_cmds=.dll
  9167. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9168. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9169. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9170. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9171. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9172. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9173. emximp -o $lib $output_objdir/$libname.def'
  9174. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9175. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9176. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9177. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9178. prefix_cmds="$SED"~
  9179. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9180. prefix_cmds="$prefix_cmds -e 1d";
  9181. fi~
  9182. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9183. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9184. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9185. emximp -o $lib $output_objdir/$libname.def'
  9186. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9187. enable_shared_with_static_runtimes=yes
  9188. ;;
  9189. osf3*)
  9190. if test yes = "$GCC"; then
  9191. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9192. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9193. else
  9194. allow_undefined_flag=' -expect_unresolved \*'
  9195. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9196. fi
  9197. archive_cmds_need_lc='no'
  9198. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9199. hardcode_libdir_separator=:
  9200. ;;
  9201. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9202. if test yes = "$GCC"; then
  9203. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9204. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9205. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9206. else
  9207. allow_undefined_flag=' -expect_unresolved \*'
  9208. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9209. 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~
  9210. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9211. # Both c and cxx compiler support -rpath directly
  9212. hardcode_libdir_flag_spec='-rpath $libdir'
  9213. fi
  9214. archive_cmds_need_lc='no'
  9215. hardcode_libdir_separator=:
  9216. ;;
  9217. solaris*)
  9218. no_undefined_flag=' -z defs'
  9219. if test yes = "$GCC"; then
  9220. wlarc='$wl'
  9221. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9222. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9223. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9224. else
  9225. case `$CC -V 2>&1` in
  9226. *"Compilers 5.0"*)
  9227. wlarc=''
  9228. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9229. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9230. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9231. ;;
  9232. *)
  9233. wlarc='$wl'
  9234. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9235. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9236. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9237. ;;
  9238. esac
  9239. fi
  9240. hardcode_libdir_flag_spec='-R$libdir'
  9241. hardcode_shlibpath_var=no
  9242. case $host_os in
  9243. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9244. *)
  9245. # The compiler driver will combine and reorder linker options,
  9246. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9247. # but is careful enough not to reorder.
  9248. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9249. if test yes = "$GCC"; then
  9250. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9251. else
  9252. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9253. fi
  9254. ;;
  9255. esac
  9256. link_all_deplibs=yes
  9257. ;;
  9258. sunos4*)
  9259. if test sequent = "$host_vendor"; then
  9260. # Use $CC to link under sequent, because it throws in some extra .o
  9261. # files that make .init and .fini sections work.
  9262. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9263. else
  9264. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9265. fi
  9266. hardcode_libdir_flag_spec='-L$libdir'
  9267. hardcode_direct=yes
  9268. hardcode_minus_L=yes
  9269. hardcode_shlibpath_var=no
  9270. ;;
  9271. sysv4)
  9272. case $host_vendor in
  9273. sni)
  9274. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9275. hardcode_direct=yes # is this really true???
  9276. ;;
  9277. siemens)
  9278. ## LD is ld it makes a PLAMLIB
  9279. ## CC just makes a GrossModule.
  9280. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9281. reload_cmds='$CC -r -o $output$reload_objs'
  9282. hardcode_direct=no
  9283. ;;
  9284. motorola)
  9285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9286. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9287. ;;
  9288. esac
  9289. runpath_var='LD_RUN_PATH'
  9290. hardcode_shlibpath_var=no
  9291. ;;
  9292. sysv4.3*)
  9293. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9294. hardcode_shlibpath_var=no
  9295. export_dynamic_flag_spec='-Bexport'
  9296. ;;
  9297. sysv4*MP*)
  9298. if test -d /usr/nec; then
  9299. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9300. hardcode_shlibpath_var=no
  9301. runpath_var=LD_RUN_PATH
  9302. hardcode_runpath_var=yes
  9303. ld_shlibs=yes
  9304. fi
  9305. ;;
  9306. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9307. no_undefined_flag='$wl-z,text'
  9308. archive_cmds_need_lc=no
  9309. hardcode_shlibpath_var=no
  9310. runpath_var='LD_RUN_PATH'
  9311. if test yes = "$GCC"; then
  9312. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9313. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9314. else
  9315. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9316. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9317. fi
  9318. ;;
  9319. sysv5* | sco3.2v5* | sco5v6*)
  9320. # Note: We CANNOT use -z defs as we might desire, because we do not
  9321. # link with -lc, and that would cause any symbols used from libc to
  9322. # always be unresolved, which means just about no library would
  9323. # ever link correctly. If we're not using GNU ld we use -z text
  9324. # though, which does catch some bad symbols but isn't as heavy-handed
  9325. # as -z defs.
  9326. no_undefined_flag='$wl-z,text'
  9327. allow_undefined_flag='$wl-z,nodefs'
  9328. archive_cmds_need_lc=no
  9329. hardcode_shlibpath_var=no
  9330. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9331. hardcode_libdir_separator=':'
  9332. link_all_deplibs=yes
  9333. export_dynamic_flag_spec='$wl-Bexport'
  9334. runpath_var='LD_RUN_PATH'
  9335. if test yes = "$GCC"; then
  9336. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9337. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. else
  9339. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9340. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. fi
  9342. ;;
  9343. uts4*)
  9344. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9345. hardcode_libdir_flag_spec='-L$libdir'
  9346. hardcode_shlibpath_var=no
  9347. ;;
  9348. *)
  9349. ld_shlibs=no
  9350. ;;
  9351. esac
  9352. if test sni = "$host_vendor"; then
  9353. case $host in
  9354. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9355. export_dynamic_flag_spec='$wl-Blargedynsym'
  9356. ;;
  9357. esac
  9358. fi
  9359. fi
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9361. $as_echo "$ld_shlibs" >&6; }
  9362. test no = "$ld_shlibs" && can_build_shared=no
  9363. with_gnu_ld=$with_gnu_ld
  9364. #
  9365. # Do we need to explicitly link libc?
  9366. #
  9367. case "x$archive_cmds_need_lc" in
  9368. x|xyes)
  9369. # Assume -lc should be added
  9370. archive_cmds_need_lc=yes
  9371. if test yes,yes = "$GCC,$enable_shared"; then
  9372. case $archive_cmds in
  9373. *'~'*)
  9374. # FIXME: we may have to deal with multi-command sequences.
  9375. ;;
  9376. '$CC '*)
  9377. # Test whether the compiler implicitly links with -lc since on some
  9378. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9379. # to ld, don't add -lc before -lgcc.
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9381. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9382. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. $RM conftest*
  9386. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9387. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9388. (eval $ac_compile) 2>&5
  9389. ac_status=$?
  9390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9391. test $ac_status = 0; } 2>conftest.err; then
  9392. soname=conftest
  9393. lib=conftest
  9394. libobjs=conftest.$ac_objext
  9395. deplibs=
  9396. wl=$lt_prog_compiler_wl
  9397. pic_flag=$lt_prog_compiler_pic
  9398. compiler_flags=-v
  9399. linker_flags=-v
  9400. verstring=
  9401. output_objdir=.
  9402. libname=conftest
  9403. lt_save_allow_undefined_flag=$allow_undefined_flag
  9404. allow_undefined_flag=
  9405. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9406. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9407. ac_status=$?
  9408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9409. test $ac_status = 0; }
  9410. then
  9411. lt_cv_archive_cmds_need_lc=no
  9412. else
  9413. lt_cv_archive_cmds_need_lc=yes
  9414. fi
  9415. allow_undefined_flag=$lt_save_allow_undefined_flag
  9416. else
  9417. cat conftest.err 1>&5
  9418. fi
  9419. $RM conftest*
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9422. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9423. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9424. ;;
  9425. esac
  9426. fi
  9427. ;;
  9428. esac
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9430. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9431. if test yes = "$GCC"; then
  9432. case $host_os in
  9433. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9434. *) lt_awk_arg='/^libraries:/' ;;
  9435. esac
  9436. case $host_os in
  9437. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9438. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9439. esac
  9440. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9441. case $lt_search_path_spec in
  9442. *\;*)
  9443. # if the path contains ";" then we assume it to be the separator
  9444. # otherwise default to the standard path separator (i.e. ":") - it is
  9445. # assumed that no part of a normal pathname contains ";" but that should
  9446. # okay in the real world where ";" in dirpaths is itself problematic.
  9447. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9448. ;;
  9449. *)
  9450. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9451. ;;
  9452. esac
  9453. # Ok, now we have the path, separated by spaces, we can step through it
  9454. # and add multilib dir if necessary...
  9455. lt_tmp_lt_search_path_spec=
  9456. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9457. # ...but if some path component already ends with the multilib dir we assume
  9458. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9459. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9460. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9461. lt_multi_os_dir=
  9462. ;;
  9463. esac
  9464. for lt_sys_path in $lt_search_path_spec; do
  9465. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9466. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9467. elif test -n "$lt_multi_os_dir"; then
  9468. test -d "$lt_sys_path" && \
  9469. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9470. fi
  9471. done
  9472. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9473. BEGIN {RS = " "; FS = "/|\n";} {
  9474. lt_foo = "";
  9475. lt_count = 0;
  9476. for (lt_i = NF; lt_i > 0; lt_i--) {
  9477. if ($lt_i != "" && $lt_i != ".") {
  9478. if ($lt_i == "..") {
  9479. lt_count++;
  9480. } else {
  9481. if (lt_count == 0) {
  9482. lt_foo = "/" $lt_i lt_foo;
  9483. } else {
  9484. lt_count--;
  9485. }
  9486. }
  9487. }
  9488. }
  9489. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9490. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9491. }'`
  9492. # AWK program above erroneously prepends '/' to C:/dos/paths
  9493. # for these hosts.
  9494. case $host_os in
  9495. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9496. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9497. esac
  9498. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9499. else
  9500. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9501. fi
  9502. library_names_spec=
  9503. libname_spec='lib$name'
  9504. soname_spec=
  9505. shrext_cmds=.so
  9506. postinstall_cmds=
  9507. postuninstall_cmds=
  9508. finish_cmds=
  9509. finish_eval=
  9510. shlibpath_var=
  9511. shlibpath_overrides_runpath=unknown
  9512. version_type=none
  9513. dynamic_linker="$host_os ld.so"
  9514. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9515. need_lib_prefix=unknown
  9516. hardcode_into_libs=no
  9517. # when you set need_version to no, make sure it does not cause -set_version
  9518. # flags to be left without arguments
  9519. need_version=unknown
  9520. case $host_os in
  9521. aix3*)
  9522. version_type=linux # correct to gnu/linux during the next big refactor
  9523. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9524. shlibpath_var=LIBPATH
  9525. # AIX 3 has no versioning support, so we append a major version to the name.
  9526. soname_spec='$libname$release$shared_ext$major'
  9527. ;;
  9528. aix[4-9]*)
  9529. version_type=linux # correct to gnu/linux during the next big refactor
  9530. need_lib_prefix=no
  9531. need_version=no
  9532. hardcode_into_libs=yes
  9533. if test ia64 = "$host_cpu"; then
  9534. # AIX 5 supports IA64
  9535. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9536. shlibpath_var=LD_LIBRARY_PATH
  9537. else
  9538. # With GCC up to 2.95.x, collect2 would create an import file
  9539. # for dependence libraries. The import file would start with
  9540. # the line '#! .'. This would cause the generated library to
  9541. # depend on '.', always an invalid library. This was fixed in
  9542. # development snapshots of GCC prior to 3.0.
  9543. case $host_os in
  9544. aix4 | aix4.[01] | aix4.[01].*)
  9545. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9546. echo ' yes '
  9547. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9548. :
  9549. else
  9550. can_build_shared=no
  9551. fi
  9552. ;;
  9553. esac
  9554. # Using Import Files as archive members, it is possible to support
  9555. # filename-based versioning of shared library archives on AIX. While
  9556. # this would work for both with and without runtime linking, it will
  9557. # prevent static linking of such archives. So we do filename-based
  9558. # shared library versioning with .so extension only, which is used
  9559. # when both runtime linking and shared linking is enabled.
  9560. # Unfortunately, runtime linking may impact performance, so we do
  9561. # not want this to be the default eventually. Also, we use the
  9562. # versioned .so libs for executables only if there is the -brtl
  9563. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9564. # To allow for filename-based versioning support, we need to create
  9565. # libNAME.so.V as an archive file, containing:
  9566. # *) an Import File, referring to the versioned filename of the
  9567. # archive as well as the shared archive member, telling the
  9568. # bitwidth (32 or 64) of that shared object, and providing the
  9569. # list of exported symbols of that shared object, eventually
  9570. # decorated with the 'weak' keyword
  9571. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9572. # it being seen by the linker.
  9573. # At run time we better use the real file rather than another symlink,
  9574. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9575. case $with_aix_soname,$aix_use_runtimelinking in
  9576. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9577. # soname into executable. Probably we can add versioning support to
  9578. # collect2, so additional links can be useful in future.
  9579. aix,yes) # traditional libtool
  9580. dynamic_linker='AIX unversionable lib.so'
  9581. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9582. # instead of lib<name>.a to let people know that these are not
  9583. # typical AIX shared libraries.
  9584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9585. ;;
  9586. aix,no) # traditional AIX only
  9587. dynamic_linker='AIX lib.a(lib.so.V)'
  9588. # We preserve .a as extension for shared libraries through AIX4.2
  9589. # and later when we are not doing run time linking.
  9590. library_names_spec='$libname$release.a $libname.a'
  9591. soname_spec='$libname$release$shared_ext$major'
  9592. ;;
  9593. svr4,*) # full svr4 only
  9594. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9595. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9596. # We do not specify a path in Import Files, so LIBPATH fires.
  9597. shlibpath_overrides_runpath=yes
  9598. ;;
  9599. *,yes) # both, prefer svr4
  9600. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9601. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9602. # unpreferred sharedlib libNAME.a needs extra handling
  9603. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9604. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9605. # We do not specify a path in Import Files, so LIBPATH fires.
  9606. shlibpath_overrides_runpath=yes
  9607. ;;
  9608. *,no) # both, prefer aix
  9609. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9610. library_names_spec='$libname$release.a $libname.a'
  9611. soname_spec='$libname$release$shared_ext$major'
  9612. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9613. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9614. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9615. ;;
  9616. esac
  9617. shlibpath_var=LIBPATH
  9618. fi
  9619. ;;
  9620. amigaos*)
  9621. case $host_cpu in
  9622. powerpc)
  9623. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9624. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9626. ;;
  9627. m68k)
  9628. library_names_spec='$libname.ixlibrary $libname.a'
  9629. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9630. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9631. ;;
  9632. esac
  9633. ;;
  9634. beos*)
  9635. library_names_spec='$libname$shared_ext'
  9636. dynamic_linker="$host_os ld.so"
  9637. shlibpath_var=LIBRARY_PATH
  9638. ;;
  9639. bsdi[45]*)
  9640. version_type=linux # correct to gnu/linux during the next big refactor
  9641. need_version=no
  9642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9643. soname_spec='$libname$release$shared_ext$major'
  9644. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9645. shlibpath_var=LD_LIBRARY_PATH
  9646. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9647. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9648. # the default ld.so.conf also contains /usr/contrib/lib and
  9649. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9650. # libtool to hard-code these into programs
  9651. ;;
  9652. cygwin* | mingw* | pw32* | cegcc*)
  9653. version_type=windows
  9654. shrext_cmds=.dll
  9655. need_version=no
  9656. need_lib_prefix=no
  9657. case $GCC,$cc_basename in
  9658. yes,*)
  9659. # gcc
  9660. library_names_spec='$libname.dll.a'
  9661. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9662. postinstall_cmds='base_file=`basename \$file`~
  9663. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9664. dldir=$destdir/`dirname \$dlpath`~
  9665. test -d \$dldir || mkdir -p \$dldir~
  9666. $install_prog $dir/$dlname \$dldir/$dlname~
  9667. chmod a+x \$dldir/$dlname~
  9668. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9669. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9670. fi'
  9671. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9672. dlpath=$dir/\$dldll~
  9673. $RM \$dlpath'
  9674. shlibpath_overrides_runpath=yes
  9675. case $host_os in
  9676. cygwin*)
  9677. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9678. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9679. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9680. ;;
  9681. mingw* | cegcc*)
  9682. # MinGW DLLs use traditional 'lib' prefix
  9683. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9684. ;;
  9685. pw32*)
  9686. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9687. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9688. ;;
  9689. esac
  9690. dynamic_linker='Win32 ld.exe'
  9691. ;;
  9692. *,cl*)
  9693. # Native MSVC
  9694. libname_spec='$name'
  9695. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9696. library_names_spec='$libname.dll.lib'
  9697. case $build_os in
  9698. mingw*)
  9699. sys_lib_search_path_spec=
  9700. lt_save_ifs=$IFS
  9701. IFS=';'
  9702. for lt_path in $LIB
  9703. do
  9704. IFS=$lt_save_ifs
  9705. # Let DOS variable expansion print the short 8.3 style file name.
  9706. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9707. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9708. done
  9709. IFS=$lt_save_ifs
  9710. # Convert to MSYS style.
  9711. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9712. ;;
  9713. cygwin*)
  9714. # Convert to unix form, then to dos form, then back to unix form
  9715. # but this time dos style (no spaces!) so that the unix form looks
  9716. # like /cygdrive/c/PROGRA~1:/cygdr...
  9717. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9718. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9719. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9720. ;;
  9721. *)
  9722. sys_lib_search_path_spec=$LIB
  9723. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9724. # It is most probably a Windows format PATH.
  9725. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9726. else
  9727. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9728. fi
  9729. # FIXME: find the short name or the path components, as spaces are
  9730. # common. (e.g. "Program Files" -> "PROGRA~1")
  9731. ;;
  9732. esac
  9733. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9734. postinstall_cmds='base_file=`basename \$file`~
  9735. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9736. dldir=$destdir/`dirname \$dlpath`~
  9737. test -d \$dldir || mkdir -p \$dldir~
  9738. $install_prog $dir/$dlname \$dldir/$dlname'
  9739. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9740. dlpath=$dir/\$dldll~
  9741. $RM \$dlpath'
  9742. shlibpath_overrides_runpath=yes
  9743. dynamic_linker='Win32 link.exe'
  9744. ;;
  9745. *)
  9746. # Assume MSVC wrapper
  9747. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9748. dynamic_linker='Win32 ld.exe'
  9749. ;;
  9750. esac
  9751. # FIXME: first we should search . and the directory the executable is in
  9752. shlibpath_var=PATH
  9753. ;;
  9754. darwin* | rhapsody*)
  9755. dynamic_linker="$host_os dyld"
  9756. version_type=darwin
  9757. need_lib_prefix=no
  9758. need_version=no
  9759. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9760. soname_spec='$libname$release$major$shared_ext'
  9761. shlibpath_overrides_runpath=yes
  9762. shlibpath_var=DYLD_LIBRARY_PATH
  9763. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9764. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9765. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9766. ;;
  9767. dgux*)
  9768. version_type=linux # correct to gnu/linux during the next big refactor
  9769. need_lib_prefix=no
  9770. need_version=no
  9771. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9772. soname_spec='$libname$release$shared_ext$major'
  9773. shlibpath_var=LD_LIBRARY_PATH
  9774. ;;
  9775. freebsd* | dragonfly*)
  9776. # DragonFly does not have aout. When/if they implement a new
  9777. # versioning mechanism, adjust this.
  9778. if test -x /usr/bin/objformat; then
  9779. objformat=`/usr/bin/objformat`
  9780. else
  9781. case $host_os in
  9782. freebsd[23].*) objformat=aout ;;
  9783. *) objformat=elf ;;
  9784. esac
  9785. fi
  9786. version_type=freebsd-$objformat
  9787. case $version_type in
  9788. freebsd-elf*)
  9789. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9790. soname_spec='$libname$release$shared_ext$major'
  9791. need_version=no
  9792. need_lib_prefix=no
  9793. ;;
  9794. freebsd-*)
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9796. need_version=yes
  9797. ;;
  9798. esac
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. case $host_os in
  9801. freebsd2.*)
  9802. shlibpath_overrides_runpath=yes
  9803. ;;
  9804. freebsd3.[01]* | freebsdelf3.[01]*)
  9805. shlibpath_overrides_runpath=yes
  9806. hardcode_into_libs=yes
  9807. ;;
  9808. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9809. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9810. shlibpath_overrides_runpath=no
  9811. hardcode_into_libs=yes
  9812. ;;
  9813. *) # from 4.6 on, and DragonFly
  9814. shlibpath_overrides_runpath=yes
  9815. hardcode_into_libs=yes
  9816. ;;
  9817. esac
  9818. ;;
  9819. haiku*)
  9820. version_type=linux # correct to gnu/linux during the next big refactor
  9821. need_lib_prefix=no
  9822. need_version=no
  9823. dynamic_linker="$host_os runtime_loader"
  9824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9825. soname_spec='$libname$release$shared_ext$major'
  9826. shlibpath_var=LIBRARY_PATH
  9827. shlibpath_overrides_runpath=no
  9828. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9829. hardcode_into_libs=yes
  9830. ;;
  9831. hpux9* | hpux10* | hpux11*)
  9832. # Give a soname corresponding to the major version so that dld.sl refuses to
  9833. # link against other versions.
  9834. version_type=sunos
  9835. need_lib_prefix=no
  9836. need_version=no
  9837. case $host_cpu in
  9838. ia64*)
  9839. shrext_cmds='.so'
  9840. hardcode_into_libs=yes
  9841. dynamic_linker="$host_os dld.so"
  9842. shlibpath_var=LD_LIBRARY_PATH
  9843. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9844. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9845. soname_spec='$libname$release$shared_ext$major'
  9846. if test 32 = "$HPUX_IA64_MODE"; then
  9847. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9848. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9849. else
  9850. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9851. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9852. fi
  9853. ;;
  9854. hppa*64*)
  9855. shrext_cmds='.sl'
  9856. hardcode_into_libs=yes
  9857. dynamic_linker="$host_os dld.sl"
  9858. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9859. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9861. soname_spec='$libname$release$shared_ext$major'
  9862. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9863. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9864. ;;
  9865. *)
  9866. shrext_cmds='.sl'
  9867. dynamic_linker="$host_os dld.sl"
  9868. shlibpath_var=SHLIB_PATH
  9869. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9870. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9871. soname_spec='$libname$release$shared_ext$major'
  9872. ;;
  9873. esac
  9874. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9875. postinstall_cmds='chmod 555 $lib'
  9876. # or fails outright, so override atomically:
  9877. install_override_mode=555
  9878. ;;
  9879. interix[3-9]*)
  9880. version_type=linux # correct to gnu/linux during the next big refactor
  9881. need_lib_prefix=no
  9882. need_version=no
  9883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9884. soname_spec='$libname$release$shared_ext$major'
  9885. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9886. shlibpath_var=LD_LIBRARY_PATH
  9887. shlibpath_overrides_runpath=no
  9888. hardcode_into_libs=yes
  9889. ;;
  9890. irix5* | irix6* | nonstopux*)
  9891. case $host_os in
  9892. nonstopux*) version_type=nonstopux ;;
  9893. *)
  9894. if test yes = "$lt_cv_prog_gnu_ld"; then
  9895. version_type=linux # correct to gnu/linux during the next big refactor
  9896. else
  9897. version_type=irix
  9898. fi ;;
  9899. esac
  9900. need_lib_prefix=no
  9901. need_version=no
  9902. soname_spec='$libname$release$shared_ext$major'
  9903. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9904. case $host_os in
  9905. irix5* | nonstopux*)
  9906. libsuff= shlibsuff=
  9907. ;;
  9908. *)
  9909. case $LD in # libtool.m4 will add one of these switches to LD
  9910. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9911. libsuff= shlibsuff= libmagic=32-bit;;
  9912. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9913. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9914. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9915. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9916. *) libsuff= shlibsuff= libmagic=never-match;;
  9917. esac
  9918. ;;
  9919. esac
  9920. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9921. shlibpath_overrides_runpath=no
  9922. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9923. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9924. hardcode_into_libs=yes
  9925. ;;
  9926. # No shared lib support for Linux oldld, aout, or coff.
  9927. linux*oldld* | linux*aout* | linux*coff*)
  9928. dynamic_linker=no
  9929. ;;
  9930. linux*android*)
  9931. version_type=none # Android doesn't support versioned libraries.
  9932. need_lib_prefix=no
  9933. need_version=no
  9934. library_names_spec='$libname$release$shared_ext'
  9935. soname_spec='$libname$release$shared_ext'
  9936. finish_cmds=
  9937. shlibpath_var=LD_LIBRARY_PATH
  9938. shlibpath_overrides_runpath=yes
  9939. # This implies no fast_install, which is unacceptable.
  9940. # Some rework will be needed to allow for fast_install
  9941. # before this can be enabled.
  9942. hardcode_into_libs=yes
  9943. dynamic_linker='Android linker'
  9944. # Don't embed -rpath directories since the linker doesn't support them.
  9945. hardcode_libdir_flag_spec='-L$libdir'
  9946. ;;
  9947. # This must be glibc/ELF.
  9948. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9949. version_type=linux # correct to gnu/linux during the next big refactor
  9950. need_lib_prefix=no
  9951. need_version=no
  9952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9953. soname_spec='$libname$release$shared_ext$major'
  9954. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9955. shlibpath_var=LD_LIBRARY_PATH
  9956. shlibpath_overrides_runpath=no
  9957. # Some binutils ld are patched to set DT_RUNPATH
  9958. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9959. $as_echo_n "(cached) " >&6
  9960. else
  9961. lt_cv_shlibpath_overrides_runpath=no
  9962. save_LDFLAGS=$LDFLAGS
  9963. save_libdir=$libdir
  9964. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9965. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9967. /* end confdefs.h. */
  9968. int
  9969. main ()
  9970. {
  9971. ;
  9972. return 0;
  9973. }
  9974. _ACEOF
  9975. if ac_fn_c_try_link "$LINENO"; then :
  9976. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9977. lt_cv_shlibpath_overrides_runpath=yes
  9978. fi
  9979. fi
  9980. rm -f core conftest.err conftest.$ac_objext \
  9981. conftest$ac_exeext conftest.$ac_ext
  9982. LDFLAGS=$save_LDFLAGS
  9983. libdir=$save_libdir
  9984. fi
  9985. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9986. # This implies no fast_install, which is unacceptable.
  9987. # Some rework will be needed to allow for fast_install
  9988. # before this can be enabled.
  9989. hardcode_into_libs=yes
  9990. # Ideally, we could use ldconfig to report *all* directores which are
  9991. # searched for libraries, however this is still not possible. Aside from not
  9992. # being certain /sbin/ldconfig is available, command
  9993. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9994. # even though it is searched at run-time. Try to do the best guess by
  9995. # appending ld.so.conf contents (and includes) to the search path.
  9996. if test -f /etc/ld.so.conf; then
  9997. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9998. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9999. fi
  10000. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10001. # powerpc, because MkLinux only supported shared libraries with the
  10002. # GNU dynamic linker. Since this was broken with cross compilers,
  10003. # most powerpc-linux boxes support dynamic linking these days and
  10004. # people can always --disable-shared, the test was removed, and we
  10005. # assume the GNU/Linux dynamic linker is in use.
  10006. dynamic_linker='GNU/Linux ld.so'
  10007. ;;
  10008. netbsdelf*-gnu)
  10009. version_type=linux
  10010. need_lib_prefix=no
  10011. need_version=no
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10013. soname_spec='${libname}${release}${shared_ext}$major'
  10014. shlibpath_var=LD_LIBRARY_PATH
  10015. shlibpath_overrides_runpath=no
  10016. hardcode_into_libs=yes
  10017. dynamic_linker='NetBSD ld.elf_so'
  10018. ;;
  10019. netbsd*)
  10020. version_type=sunos
  10021. need_lib_prefix=no
  10022. need_version=no
  10023. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10024. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10025. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10026. dynamic_linker='NetBSD (a.out) ld.so'
  10027. else
  10028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10029. soname_spec='$libname$release$shared_ext$major'
  10030. dynamic_linker='NetBSD ld.elf_so'
  10031. fi
  10032. shlibpath_var=LD_LIBRARY_PATH
  10033. shlibpath_overrides_runpath=yes
  10034. hardcode_into_libs=yes
  10035. ;;
  10036. newsos6)
  10037. version_type=linux # correct to gnu/linux during the next big refactor
  10038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. shlibpath_overrides_runpath=yes
  10041. ;;
  10042. *nto* | *qnx*)
  10043. version_type=qnx
  10044. need_lib_prefix=no
  10045. need_version=no
  10046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10047. soname_spec='$libname$release$shared_ext$major'
  10048. shlibpath_var=LD_LIBRARY_PATH
  10049. shlibpath_overrides_runpath=no
  10050. hardcode_into_libs=yes
  10051. dynamic_linker='ldqnx.so'
  10052. ;;
  10053. openbsd* | bitrig*)
  10054. version_type=sunos
  10055. sys_lib_dlsearch_path_spec=/usr/lib
  10056. need_lib_prefix=no
  10057. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10058. need_version=no
  10059. else
  10060. need_version=yes
  10061. fi
  10062. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10063. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10064. shlibpath_var=LD_LIBRARY_PATH
  10065. shlibpath_overrides_runpath=yes
  10066. ;;
  10067. os2*)
  10068. libname_spec='$name'
  10069. version_type=windows
  10070. shrext_cmds=.dll
  10071. need_version=no
  10072. need_lib_prefix=no
  10073. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10074. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10075. v=$($ECHO $release$versuffix | tr -d .-);
  10076. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10077. $ECHO $n$v`$shared_ext'
  10078. library_names_spec='${libname}_dll.$libext'
  10079. dynamic_linker='OS/2 ld.exe'
  10080. shlibpath_var=BEGINLIBPATH
  10081. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10082. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10083. postinstall_cmds='base_file=`basename \$file`~
  10084. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10085. dldir=$destdir/`dirname \$dlpath`~
  10086. test -d \$dldir || mkdir -p \$dldir~
  10087. $install_prog $dir/$dlname \$dldir/$dlname~
  10088. chmod a+x \$dldir/$dlname~
  10089. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10090. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10091. fi'
  10092. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10093. dlpath=$dir/\$dldll~
  10094. $RM \$dlpath'
  10095. ;;
  10096. osf3* | osf4* | osf5*)
  10097. version_type=osf
  10098. need_lib_prefix=no
  10099. need_version=no
  10100. soname_spec='$libname$release$shared_ext$major'
  10101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10102. shlibpath_var=LD_LIBRARY_PATH
  10103. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10104. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10105. ;;
  10106. rdos*)
  10107. dynamic_linker=no
  10108. ;;
  10109. solaris*)
  10110. version_type=linux # correct to gnu/linux during the next big refactor
  10111. need_lib_prefix=no
  10112. need_version=no
  10113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10114. soname_spec='$libname$release$shared_ext$major'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. shlibpath_overrides_runpath=yes
  10117. hardcode_into_libs=yes
  10118. # ldd complains unless libraries are executable
  10119. postinstall_cmds='chmod +x $lib'
  10120. ;;
  10121. sunos4*)
  10122. version_type=sunos
  10123. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10124. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10125. shlibpath_var=LD_LIBRARY_PATH
  10126. shlibpath_overrides_runpath=yes
  10127. if test yes = "$with_gnu_ld"; then
  10128. need_lib_prefix=no
  10129. fi
  10130. need_version=yes
  10131. ;;
  10132. sysv4 | sysv4.3*)
  10133. version_type=linux # correct to gnu/linux during the next big refactor
  10134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10135. soname_spec='$libname$release$shared_ext$major'
  10136. shlibpath_var=LD_LIBRARY_PATH
  10137. case $host_vendor in
  10138. sni)
  10139. shlibpath_overrides_runpath=no
  10140. need_lib_prefix=no
  10141. runpath_var=LD_RUN_PATH
  10142. ;;
  10143. siemens)
  10144. need_lib_prefix=no
  10145. ;;
  10146. motorola)
  10147. need_lib_prefix=no
  10148. need_version=no
  10149. shlibpath_overrides_runpath=no
  10150. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10151. ;;
  10152. esac
  10153. ;;
  10154. sysv4*MP*)
  10155. if test -d /usr/nec; then
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10158. soname_spec='$libname$shared_ext.$major'
  10159. shlibpath_var=LD_LIBRARY_PATH
  10160. fi
  10161. ;;
  10162. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10163. version_type=sco
  10164. need_lib_prefix=no
  10165. need_version=no
  10166. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10167. soname_spec='$libname$release$shared_ext$major'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. shlibpath_overrides_runpath=yes
  10170. hardcode_into_libs=yes
  10171. if test yes = "$with_gnu_ld"; then
  10172. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10173. else
  10174. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10175. case $host_os in
  10176. sco3.2v5*)
  10177. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10178. ;;
  10179. esac
  10180. fi
  10181. sys_lib_dlsearch_path_spec='/usr/lib'
  10182. ;;
  10183. tpf*)
  10184. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10185. version_type=linux # correct to gnu/linux during the next big refactor
  10186. need_lib_prefix=no
  10187. need_version=no
  10188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10189. shlibpath_var=LD_LIBRARY_PATH
  10190. shlibpath_overrides_runpath=no
  10191. hardcode_into_libs=yes
  10192. ;;
  10193. uts4*)
  10194. version_type=linux # correct to gnu/linux during the next big refactor
  10195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10196. soname_spec='$libname$release$shared_ext$major'
  10197. shlibpath_var=LD_LIBRARY_PATH
  10198. ;;
  10199. *)
  10200. dynamic_linker=no
  10201. ;;
  10202. esac
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10204. $as_echo "$dynamic_linker" >&6; }
  10205. test no = "$dynamic_linker" && can_build_shared=no
  10206. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10207. if test yes = "$GCC"; then
  10208. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10209. fi
  10210. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10211. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10212. fi
  10213. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10214. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10215. fi
  10216. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10217. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10218. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10219. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10220. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10221. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10223. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10224. hardcode_action=
  10225. if test -n "$hardcode_libdir_flag_spec" ||
  10226. test -n "$runpath_var" ||
  10227. test yes = "$hardcode_automatic"; then
  10228. # We can hardcode non-existent directories.
  10229. if test no != "$hardcode_direct" &&
  10230. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10231. # have to relink, otherwise we might link with an installed library
  10232. # when we should be linking with a yet-to-be-installed one
  10233. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10234. test no != "$hardcode_minus_L"; then
  10235. # Linking always hardcodes the temporary library directory.
  10236. hardcode_action=relink
  10237. else
  10238. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10239. hardcode_action=immediate
  10240. fi
  10241. else
  10242. # We cannot hardcode anything, or else we can only hardcode existing
  10243. # directories.
  10244. hardcode_action=unsupported
  10245. fi
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10247. $as_echo "$hardcode_action" >&6; }
  10248. if test relink = "$hardcode_action" ||
  10249. test yes = "$inherit_rpath"; then
  10250. # Fast installation is not supported
  10251. enable_fast_install=no
  10252. elif test yes = "$shlibpath_overrides_runpath" ||
  10253. test no = "$enable_shared"; then
  10254. # Fast installation is not necessary
  10255. enable_fast_install=needless
  10256. fi
  10257. if test yes != "$enable_dlopen"; then
  10258. enable_dlopen=unknown
  10259. enable_dlopen_self=unknown
  10260. enable_dlopen_self_static=unknown
  10261. else
  10262. lt_cv_dlopen=no
  10263. lt_cv_dlopen_libs=
  10264. case $host_os in
  10265. beos*)
  10266. lt_cv_dlopen=load_add_on
  10267. lt_cv_dlopen_libs=
  10268. lt_cv_dlopen_self=yes
  10269. ;;
  10270. mingw* | pw32* | cegcc*)
  10271. lt_cv_dlopen=LoadLibrary
  10272. lt_cv_dlopen_libs=
  10273. ;;
  10274. cygwin*)
  10275. lt_cv_dlopen=dlopen
  10276. lt_cv_dlopen_libs=
  10277. ;;
  10278. darwin*)
  10279. # if libdl is installed we need to link against it
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10281. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10282. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. ac_check_lib_save_LIBS=$LIBS
  10286. LIBS="-ldl $LIBS"
  10287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10288. /* end confdefs.h. */
  10289. /* Override any GCC internal prototype to avoid an error.
  10290. Use char because int might match the return type of a GCC
  10291. builtin and then its argument prototype would still apply. */
  10292. #ifdef __cplusplus
  10293. extern "C"
  10294. #endif
  10295. char dlopen ();
  10296. int
  10297. main ()
  10298. {
  10299. return dlopen ();
  10300. ;
  10301. return 0;
  10302. }
  10303. _ACEOF
  10304. if ac_fn_c_try_link "$LINENO"; then :
  10305. ac_cv_lib_dl_dlopen=yes
  10306. else
  10307. ac_cv_lib_dl_dlopen=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext \
  10310. conftest$ac_exeext conftest.$ac_ext
  10311. LIBS=$ac_check_lib_save_LIBS
  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10314. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10315. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10316. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10317. else
  10318. lt_cv_dlopen=dyld
  10319. lt_cv_dlopen_libs=
  10320. lt_cv_dlopen_self=yes
  10321. fi
  10322. ;;
  10323. tpf*)
  10324. # Don't try to run any link tests for TPF. We know it's impossible
  10325. # because TPF is a cross-compiler, and we know how we open DSOs.
  10326. lt_cv_dlopen=dlopen
  10327. lt_cv_dlopen_libs=
  10328. lt_cv_dlopen_self=no
  10329. ;;
  10330. *)
  10331. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10332. if test "x$ac_cv_func_shl_load" = xyes; then :
  10333. lt_cv_dlopen=shl_load
  10334. else
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10336. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10337. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10338. $as_echo_n "(cached) " >&6
  10339. else
  10340. ac_check_lib_save_LIBS=$LIBS
  10341. LIBS="-ldld $LIBS"
  10342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10343. /* end confdefs.h. */
  10344. /* Override any GCC internal prototype to avoid an error.
  10345. Use char because int might match the return type of a GCC
  10346. builtin and then its argument prototype would still apply. */
  10347. #ifdef __cplusplus
  10348. extern "C"
  10349. #endif
  10350. char shl_load ();
  10351. int
  10352. main ()
  10353. {
  10354. return shl_load ();
  10355. ;
  10356. return 0;
  10357. }
  10358. _ACEOF
  10359. if ac_fn_c_try_link "$LINENO"; then :
  10360. ac_cv_lib_dld_shl_load=yes
  10361. else
  10362. ac_cv_lib_dld_shl_load=no
  10363. fi
  10364. rm -f core conftest.err conftest.$ac_objext \
  10365. conftest$ac_exeext conftest.$ac_ext
  10366. LIBS=$ac_check_lib_save_LIBS
  10367. fi
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10369. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10370. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10371. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10372. else
  10373. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10374. if test "x$ac_cv_func_dlopen" = xyes; then :
  10375. lt_cv_dlopen=dlopen
  10376. else
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10378. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10379. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. ac_check_lib_save_LIBS=$LIBS
  10383. LIBS="-ldl $LIBS"
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. /* Override any GCC internal prototype to avoid an error.
  10387. Use char because int might match the return type of a GCC
  10388. builtin and then its argument prototype would still apply. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. #endif
  10392. char dlopen ();
  10393. int
  10394. main ()
  10395. {
  10396. return dlopen ();
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_link "$LINENO"; then :
  10402. ac_cv_lib_dl_dlopen=yes
  10403. else
  10404. ac_cv_lib_dl_dlopen=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LIBS=$ac_check_lib_save_LIBS
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10411. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10412. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10413. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10414. else
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10416. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10417. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. ac_check_lib_save_LIBS=$LIBS
  10421. LIBS="-lsvld $LIBS"
  10422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10423. /* end confdefs.h. */
  10424. /* Override any GCC internal prototype to avoid an error.
  10425. Use char because int might match the return type of a GCC
  10426. builtin and then its argument prototype would still apply. */
  10427. #ifdef __cplusplus
  10428. extern "C"
  10429. #endif
  10430. char dlopen ();
  10431. int
  10432. main ()
  10433. {
  10434. return dlopen ();
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_c_try_link "$LINENO"; then :
  10440. ac_cv_lib_svld_dlopen=yes
  10441. else
  10442. ac_cv_lib_svld_dlopen=no
  10443. fi
  10444. rm -f core conftest.err conftest.$ac_objext \
  10445. conftest$ac_exeext conftest.$ac_ext
  10446. LIBS=$ac_check_lib_save_LIBS
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10449. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10450. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10451. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10452. else
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10454. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10455. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10456. $as_echo_n "(cached) " >&6
  10457. else
  10458. ac_check_lib_save_LIBS=$LIBS
  10459. LIBS="-ldld $LIBS"
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. /* Override any GCC internal prototype to avoid an error.
  10463. Use char because int might match the return type of a GCC
  10464. builtin and then its argument prototype would still apply. */
  10465. #ifdef __cplusplus
  10466. extern "C"
  10467. #endif
  10468. char dld_link ();
  10469. int
  10470. main ()
  10471. {
  10472. return dld_link ();
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_c_try_link "$LINENO"; then :
  10478. ac_cv_lib_dld_dld_link=yes
  10479. else
  10480. ac_cv_lib_dld_dld_link=no
  10481. fi
  10482. rm -f core conftest.err conftest.$ac_objext \
  10483. conftest$ac_exeext conftest.$ac_ext
  10484. LIBS=$ac_check_lib_save_LIBS
  10485. fi
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10487. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10488. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10489. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10490. fi
  10491. fi
  10492. fi
  10493. fi
  10494. fi
  10495. fi
  10496. ;;
  10497. esac
  10498. if test no = "$lt_cv_dlopen"; then
  10499. enable_dlopen=no
  10500. else
  10501. enable_dlopen=yes
  10502. fi
  10503. case $lt_cv_dlopen in
  10504. dlopen)
  10505. save_CPPFLAGS=$CPPFLAGS
  10506. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10507. save_LDFLAGS=$LDFLAGS
  10508. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10509. save_LIBS=$LIBS
  10510. LIBS="$lt_cv_dlopen_libs $LIBS"
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10512. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10513. if ${lt_cv_dlopen_self+:} false; then :
  10514. $as_echo_n "(cached) " >&6
  10515. else
  10516. if test yes = "$cross_compiling"; then :
  10517. lt_cv_dlopen_self=cross
  10518. else
  10519. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10520. lt_status=$lt_dlunknown
  10521. cat > conftest.$ac_ext <<_LT_EOF
  10522. #line $LINENO "configure"
  10523. #include "confdefs.h"
  10524. #if HAVE_DLFCN_H
  10525. #include <dlfcn.h>
  10526. #endif
  10527. #include <stdio.h>
  10528. #ifdef RTLD_GLOBAL
  10529. # define LT_DLGLOBAL RTLD_GLOBAL
  10530. #else
  10531. # ifdef DL_GLOBAL
  10532. # define LT_DLGLOBAL DL_GLOBAL
  10533. # else
  10534. # define LT_DLGLOBAL 0
  10535. # endif
  10536. #endif
  10537. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10538. find out it does not work in some platform. */
  10539. #ifndef LT_DLLAZY_OR_NOW
  10540. # ifdef RTLD_LAZY
  10541. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10542. # else
  10543. # ifdef DL_LAZY
  10544. # define LT_DLLAZY_OR_NOW DL_LAZY
  10545. # else
  10546. # ifdef RTLD_NOW
  10547. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10548. # else
  10549. # ifdef DL_NOW
  10550. # define LT_DLLAZY_OR_NOW DL_NOW
  10551. # else
  10552. # define LT_DLLAZY_OR_NOW 0
  10553. # endif
  10554. # endif
  10555. # endif
  10556. # endif
  10557. #endif
  10558. /* When -fvisibility=hidden is used, assume the code has been annotated
  10559. correspondingly for the symbols needed. */
  10560. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10561. int fnord () __attribute__((visibility("default")));
  10562. #endif
  10563. int fnord () { return 42; }
  10564. int main ()
  10565. {
  10566. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10567. int status = $lt_dlunknown;
  10568. if (self)
  10569. {
  10570. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10571. else
  10572. {
  10573. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10574. else puts (dlerror ());
  10575. }
  10576. /* dlclose (self); */
  10577. }
  10578. else
  10579. puts (dlerror ());
  10580. return status;
  10581. }
  10582. _LT_EOF
  10583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10584. (eval $ac_link) 2>&5
  10585. ac_status=$?
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10587. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10588. (./conftest; exit; ) >&5 2>/dev/null
  10589. lt_status=$?
  10590. case x$lt_status in
  10591. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10592. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10593. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10594. esac
  10595. else :
  10596. # compilation failed
  10597. lt_cv_dlopen_self=no
  10598. fi
  10599. fi
  10600. rm -fr conftest*
  10601. fi
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10603. $as_echo "$lt_cv_dlopen_self" >&6; }
  10604. if test yes = "$lt_cv_dlopen_self"; then
  10605. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10607. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10608. if ${lt_cv_dlopen_self_static+:} false; then :
  10609. $as_echo_n "(cached) " >&6
  10610. else
  10611. if test yes = "$cross_compiling"; then :
  10612. lt_cv_dlopen_self_static=cross
  10613. else
  10614. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10615. lt_status=$lt_dlunknown
  10616. cat > conftest.$ac_ext <<_LT_EOF
  10617. #line $LINENO "configure"
  10618. #include "confdefs.h"
  10619. #if HAVE_DLFCN_H
  10620. #include <dlfcn.h>
  10621. #endif
  10622. #include <stdio.h>
  10623. #ifdef RTLD_GLOBAL
  10624. # define LT_DLGLOBAL RTLD_GLOBAL
  10625. #else
  10626. # ifdef DL_GLOBAL
  10627. # define LT_DLGLOBAL DL_GLOBAL
  10628. # else
  10629. # define LT_DLGLOBAL 0
  10630. # endif
  10631. #endif
  10632. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10633. find out it does not work in some platform. */
  10634. #ifndef LT_DLLAZY_OR_NOW
  10635. # ifdef RTLD_LAZY
  10636. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10637. # else
  10638. # ifdef DL_LAZY
  10639. # define LT_DLLAZY_OR_NOW DL_LAZY
  10640. # else
  10641. # ifdef RTLD_NOW
  10642. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10643. # else
  10644. # ifdef DL_NOW
  10645. # define LT_DLLAZY_OR_NOW DL_NOW
  10646. # else
  10647. # define LT_DLLAZY_OR_NOW 0
  10648. # endif
  10649. # endif
  10650. # endif
  10651. # endif
  10652. #endif
  10653. /* When -fvisibility=hidden is used, assume the code has been annotated
  10654. correspondingly for the symbols needed. */
  10655. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10656. int fnord () __attribute__((visibility("default")));
  10657. #endif
  10658. int fnord () { return 42; }
  10659. int main ()
  10660. {
  10661. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10662. int status = $lt_dlunknown;
  10663. if (self)
  10664. {
  10665. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10666. else
  10667. {
  10668. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10669. else puts (dlerror ());
  10670. }
  10671. /* dlclose (self); */
  10672. }
  10673. else
  10674. puts (dlerror ());
  10675. return status;
  10676. }
  10677. _LT_EOF
  10678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10679. (eval $ac_link) 2>&5
  10680. ac_status=$?
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10682. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10683. (./conftest; exit; ) >&5 2>/dev/null
  10684. lt_status=$?
  10685. case x$lt_status in
  10686. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10687. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10688. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10689. esac
  10690. else :
  10691. # compilation failed
  10692. lt_cv_dlopen_self_static=no
  10693. fi
  10694. fi
  10695. rm -fr conftest*
  10696. fi
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10698. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10699. fi
  10700. CPPFLAGS=$save_CPPFLAGS
  10701. LDFLAGS=$save_LDFLAGS
  10702. LIBS=$save_LIBS
  10703. ;;
  10704. esac
  10705. case $lt_cv_dlopen_self in
  10706. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10707. *) enable_dlopen_self=unknown ;;
  10708. esac
  10709. case $lt_cv_dlopen_self_static in
  10710. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10711. *) enable_dlopen_self_static=unknown ;;
  10712. esac
  10713. fi
  10714. striplib=
  10715. old_striplib=
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10717. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10718. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10719. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10720. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10722. $as_echo "yes" >&6; }
  10723. else
  10724. # FIXME - insert some real tests, host_os isn't really good enough
  10725. case $host_os in
  10726. darwin*)
  10727. if test -n "$STRIP"; then
  10728. striplib="$STRIP -x"
  10729. old_striplib="$STRIP -S"
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10731. $as_echo "yes" >&6; }
  10732. else
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10734. $as_echo "no" >&6; }
  10735. fi
  10736. ;;
  10737. *)
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10739. $as_echo "no" >&6; }
  10740. ;;
  10741. esac
  10742. fi
  10743. # Report what library types will actually be built
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10745. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10747. $as_echo "$can_build_shared" >&6; }
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10749. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10750. test no = "$can_build_shared" && enable_shared=no
  10751. # On AIX, shared libraries and static libraries use the same namespace, and
  10752. # are all built from PIC.
  10753. case $host_os in
  10754. aix3*)
  10755. test yes = "$enable_shared" && enable_static=no
  10756. if test -n "$RANLIB"; then
  10757. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10758. postinstall_cmds='$RANLIB $lib'
  10759. fi
  10760. ;;
  10761. aix[4-9]*)
  10762. if test ia64 != "$host_cpu"; then
  10763. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10764. yes,aix,yes) ;; # shared object as lib.so file only
  10765. yes,svr4,*) ;; # shared object as lib.so archive member only
  10766. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10767. esac
  10768. fi
  10769. ;;
  10770. esac
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10772. $as_echo "$enable_shared" >&6; }
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10774. $as_echo_n "checking whether to build static libraries... " >&6; }
  10775. # Make sure either enable_shared or enable_static is yes.
  10776. test yes = "$enable_shared" || enable_static=yes
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10778. $as_echo "$enable_static" >&6; }
  10779. fi
  10780. ac_ext=cpp
  10781. ac_cpp='$CXXCPP $CPPFLAGS'
  10782. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10783. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10784. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10785. CC=$lt_save_CC
  10786. if test -n "$CXX" && ( test no != "$CXX" &&
  10787. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  10788. (test g++ != "$CXX"))); then
  10789. ac_ext=cpp
  10790. ac_cpp='$CXXCPP $CPPFLAGS'
  10791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10795. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10796. if test -z "$CXXCPP"; then
  10797. if ${ac_cv_prog_CXXCPP+:} false; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. # Double quotes because CXXCPP needs to be expanded
  10801. for CXXCPP in "$CXX -E" "/lib/cpp"
  10802. do
  10803. ac_preproc_ok=false
  10804. for ac_cxx_preproc_warn_flag in '' yes
  10805. do
  10806. # Use a header file that comes with gcc, so configuring glibc
  10807. # with a fresh cross-compiler works.
  10808. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10809. # <limits.h> exists even on freestanding compilers.
  10810. # On the NeXT, cc -E runs the code through the compiler's parser,
  10811. # not just through cpp. "Syntax error" is here to catch this case.
  10812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10813. /* end confdefs.h. */
  10814. #ifdef __STDC__
  10815. # include <limits.h>
  10816. #else
  10817. # include <assert.h>
  10818. #endif
  10819. Syntax error
  10820. _ACEOF
  10821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10822. else
  10823. # Broken: fails on valid input.
  10824. continue
  10825. fi
  10826. rm -f conftest.err conftest.i conftest.$ac_ext
  10827. # OK, works on sane cases. Now check whether nonexistent headers
  10828. # can be detected and how.
  10829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10830. /* end confdefs.h. */
  10831. #include <ac_nonexistent.h>
  10832. _ACEOF
  10833. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10834. # Broken: success on invalid input.
  10835. continue
  10836. else
  10837. # Passes both tests.
  10838. ac_preproc_ok=:
  10839. break
  10840. fi
  10841. rm -f conftest.err conftest.i conftest.$ac_ext
  10842. done
  10843. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10844. rm -f conftest.i conftest.err conftest.$ac_ext
  10845. if $ac_preproc_ok; then :
  10846. break
  10847. fi
  10848. done
  10849. ac_cv_prog_CXXCPP=$CXXCPP
  10850. fi
  10851. CXXCPP=$ac_cv_prog_CXXCPP
  10852. else
  10853. ac_cv_prog_CXXCPP=$CXXCPP
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10856. $as_echo "$CXXCPP" >&6; }
  10857. ac_preproc_ok=false
  10858. for ac_cxx_preproc_warn_flag in '' yes
  10859. do
  10860. # Use a header file that comes with gcc, so configuring glibc
  10861. # with a fresh cross-compiler works.
  10862. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10863. # <limits.h> exists even on freestanding compilers.
  10864. # On the NeXT, cc -E runs the code through the compiler's parser,
  10865. # not just through cpp. "Syntax error" is here to catch this case.
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. #ifdef __STDC__
  10869. # include <limits.h>
  10870. #else
  10871. # include <assert.h>
  10872. #endif
  10873. Syntax error
  10874. _ACEOF
  10875. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10876. else
  10877. # Broken: fails on valid input.
  10878. continue
  10879. fi
  10880. rm -f conftest.err conftest.i conftest.$ac_ext
  10881. # OK, works on sane cases. Now check whether nonexistent headers
  10882. # can be detected and how.
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. #include <ac_nonexistent.h>
  10886. _ACEOF
  10887. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10888. # Broken: success on invalid input.
  10889. continue
  10890. else
  10891. # Passes both tests.
  10892. ac_preproc_ok=:
  10893. break
  10894. fi
  10895. rm -f conftest.err conftest.i conftest.$ac_ext
  10896. done
  10897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10898. rm -f conftest.i conftest.err conftest.$ac_ext
  10899. if $ac_preproc_ok; then :
  10900. else
  10901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10903. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10904. See \`config.log' for more details" "$LINENO" 5; }
  10905. fi
  10906. ac_ext=cpp
  10907. ac_cpp='$CXXCPP $CPPFLAGS'
  10908. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10909. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10910. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10911. else
  10912. _lt_caught_CXX_error=yes
  10913. fi
  10914. ac_ext=cpp
  10915. ac_cpp='$CXXCPP $CPPFLAGS'
  10916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10919. archive_cmds_need_lc_CXX=no
  10920. allow_undefined_flag_CXX=
  10921. always_export_symbols_CXX=no
  10922. archive_expsym_cmds_CXX=
  10923. compiler_needs_object_CXX=no
  10924. export_dynamic_flag_spec_CXX=
  10925. hardcode_direct_CXX=no
  10926. hardcode_direct_absolute_CXX=no
  10927. hardcode_libdir_flag_spec_CXX=
  10928. hardcode_libdir_separator_CXX=
  10929. hardcode_minus_L_CXX=no
  10930. hardcode_shlibpath_var_CXX=unsupported
  10931. hardcode_automatic_CXX=no
  10932. inherit_rpath_CXX=no
  10933. module_cmds_CXX=
  10934. module_expsym_cmds_CXX=
  10935. link_all_deplibs_CXX=unknown
  10936. old_archive_cmds_CXX=$old_archive_cmds
  10937. reload_flag_CXX=$reload_flag
  10938. reload_cmds_CXX=$reload_cmds
  10939. no_undefined_flag_CXX=
  10940. whole_archive_flag_spec_CXX=
  10941. enable_shared_with_static_runtimes_CXX=no
  10942. # Source file extension for C++ test sources.
  10943. ac_ext=cpp
  10944. # Object file extension for compiled C++ test sources.
  10945. objext=o
  10946. objext_CXX=$objext
  10947. # No sense in running all these tests if we already determined that
  10948. # the CXX compiler isn't working. Some variables (like enable_shared)
  10949. # are currently assumed to apply to all compilers on this platform,
  10950. # and will be corrupted by setting them based on a non-working compiler.
  10951. if test yes != "$_lt_caught_CXX_error"; then
  10952. # Code to be used in simple compile tests
  10953. lt_simple_compile_test_code="int some_variable = 0;"
  10954. # Code to be used in simple link tests
  10955. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10956. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10957. # If no C compiler was specified, use CC.
  10958. LTCC=${LTCC-"$CC"}
  10959. # If no C compiler flags were specified, use CFLAGS.
  10960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10961. # Allow CC to be a program name with arguments.
  10962. compiler=$CC
  10963. # save warnings/boilerplate of simple test code
  10964. ac_outfile=conftest.$ac_objext
  10965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10967. _lt_compiler_boilerplate=`cat conftest.err`
  10968. $RM conftest*
  10969. ac_outfile=conftest.$ac_objext
  10970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10972. _lt_linker_boilerplate=`cat conftest.err`
  10973. $RM -r conftest*
  10974. # Allow CC to be a program name with arguments.
  10975. lt_save_CC=$CC
  10976. lt_save_CFLAGS=$CFLAGS
  10977. lt_save_LD=$LD
  10978. lt_save_GCC=$GCC
  10979. GCC=$GXX
  10980. lt_save_with_gnu_ld=$with_gnu_ld
  10981. lt_save_path_LD=$lt_cv_path_LD
  10982. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10983. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10984. else
  10985. $as_unset lt_cv_prog_gnu_ld
  10986. fi
  10987. if test -n "${lt_cv_path_LDCXX+set}"; then
  10988. lt_cv_path_LD=$lt_cv_path_LDCXX
  10989. else
  10990. $as_unset lt_cv_path_LD
  10991. fi
  10992. test -z "${LDCXX+set}" || LD=$LDCXX
  10993. CC=${CXX-"c++"}
  10994. CFLAGS=$CXXFLAGS
  10995. compiler=$CC
  10996. compiler_CXX=$CC
  10997. func_cc_basename $compiler
  10998. cc_basename=$func_cc_basename_result
  10999. if test -n "$compiler"; then
  11000. # We don't want -fno-exception when compiling C++ code, so set the
  11001. # no_builtin_flag separately
  11002. if test yes = "$GXX"; then
  11003. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11004. else
  11005. lt_prog_compiler_no_builtin_flag_CXX=
  11006. fi
  11007. if test yes = "$GXX"; then
  11008. # Set up default GNU C++ configuration
  11009. # Check whether --with-gnu-ld was given.
  11010. if test "${with_gnu_ld+set}" = set; then :
  11011. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11012. else
  11013. with_gnu_ld=no
  11014. fi
  11015. ac_prog=ld
  11016. if test yes = "$GCC"; then
  11017. # Check if gcc -print-prog-name=ld gives a path.
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11019. $as_echo_n "checking for ld used by $CC... " >&6; }
  11020. case $host in
  11021. *-*-mingw*)
  11022. # gcc leaves a trailing carriage return, which upsets mingw
  11023. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11024. *)
  11025. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11026. esac
  11027. case $ac_prog in
  11028. # Accept absolute paths.
  11029. [\\/]* | ?:[\\/]*)
  11030. re_direlt='/[^/][^/]*/\.\./'
  11031. # Canonicalize the pathname of ld
  11032. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11033. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11034. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11035. done
  11036. test -z "$LD" && LD=$ac_prog
  11037. ;;
  11038. "")
  11039. # If it fails, then pretend we aren't using GCC.
  11040. ac_prog=ld
  11041. ;;
  11042. *)
  11043. # If it is relative, then search for the first ld in PATH.
  11044. with_gnu_ld=unknown
  11045. ;;
  11046. esac
  11047. elif test yes = "$with_gnu_ld"; then
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11049. $as_echo_n "checking for GNU ld... " >&6; }
  11050. else
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11052. $as_echo_n "checking for non-GNU ld... " >&6; }
  11053. fi
  11054. if ${lt_cv_path_LD+:} false; then :
  11055. $as_echo_n "(cached) " >&6
  11056. else
  11057. if test -z "$LD"; then
  11058. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11059. for ac_dir in $PATH; do
  11060. IFS=$lt_save_ifs
  11061. test -z "$ac_dir" && ac_dir=.
  11062. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11063. lt_cv_path_LD=$ac_dir/$ac_prog
  11064. # Check to see if the program is GNU ld. I'd rather use --version,
  11065. # but apparently some variants of GNU ld only accept -v.
  11066. # Break only if it was the GNU/non-GNU ld that we prefer.
  11067. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11068. *GNU* | *'with BFD'*)
  11069. test no != "$with_gnu_ld" && break
  11070. ;;
  11071. *)
  11072. test yes != "$with_gnu_ld" && break
  11073. ;;
  11074. esac
  11075. fi
  11076. done
  11077. IFS=$lt_save_ifs
  11078. else
  11079. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11080. fi
  11081. fi
  11082. LD=$lt_cv_path_LD
  11083. if test -n "$LD"; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11085. $as_echo "$LD" >&6; }
  11086. else
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11088. $as_echo "no" >&6; }
  11089. fi
  11090. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11092. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11093. if ${lt_cv_prog_gnu_ld+:} false; then :
  11094. $as_echo_n "(cached) " >&6
  11095. else
  11096. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11097. case `$LD -v 2>&1 </dev/null` in
  11098. *GNU* | *'with BFD'*)
  11099. lt_cv_prog_gnu_ld=yes
  11100. ;;
  11101. *)
  11102. lt_cv_prog_gnu_ld=no
  11103. ;;
  11104. esac
  11105. fi
  11106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11107. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11108. with_gnu_ld=$lt_cv_prog_gnu_ld
  11109. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11110. # archiving commands below assume that GNU ld is being used.
  11111. if test yes = "$with_gnu_ld"; then
  11112. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11113. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11114. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11115. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11116. # If archive_cmds runs LD, not CC, wlarc should be empty
  11117. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11118. # investigate it a little bit more. (MM)
  11119. wlarc='$wl'
  11120. # ancient GNU ld didn't support --whole-archive et. al.
  11121. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11122. $GREP 'no-whole-archive' > /dev/null; then
  11123. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11124. else
  11125. whole_archive_flag_spec_CXX=
  11126. fi
  11127. else
  11128. with_gnu_ld=no
  11129. wlarc=
  11130. # A generic and very simple default shared library creation
  11131. # command for GNU C++ for the case where it uses the native
  11132. # linker, instead of GNU ld. If possible, this setting should
  11133. # overridden to take advantage of the native linker features on
  11134. # the platform it is being used on.
  11135. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11136. fi
  11137. # Commands to make compiler produce verbose output that lists
  11138. # what "hidden" libraries, object files and flags are used when
  11139. # linking a shared library.
  11140. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  11141. else
  11142. GXX=no
  11143. with_gnu_ld=no
  11144. wlarc=
  11145. fi
  11146. # PORTME: fill in a description of your system's C++ link characteristics
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11148. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11149. ld_shlibs_CXX=yes
  11150. case $host_os in
  11151. aix3*)
  11152. # FIXME: insert proper C++ library support
  11153. ld_shlibs_CXX=no
  11154. ;;
  11155. aix[4-9]*)
  11156. if test ia64 = "$host_cpu"; then
  11157. # On IA64, the linker does run time linking by default, so we don't
  11158. # have to do anything special.
  11159. aix_use_runtimelinking=no
  11160. exp_sym_flag='-Bexport'
  11161. no_entry_flag=
  11162. else
  11163. aix_use_runtimelinking=no
  11164. # Test if we are trying to use run time linking or normal
  11165. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11166. # have runtime linking enabled, and use it for executables.
  11167. # For shared libraries, we enable/disable runtime linking
  11168. # depending on the kind of the shared library created -
  11169. # when "with_aix_soname,aix_use_runtimelinking" is:
  11170. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11171. # "aix,yes" lib.so shared, rtl:yes, for executables
  11172. # lib.a static archive
  11173. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11174. # lib.a(lib.so.V) shared, rtl:no, for executables
  11175. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11176. # lib.a(lib.so.V) shared, rtl:no
  11177. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11178. # lib.a static archive
  11179. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11180. for ld_flag in $LDFLAGS; do
  11181. case $ld_flag in
  11182. *-brtl*)
  11183. aix_use_runtimelinking=yes
  11184. break
  11185. ;;
  11186. esac
  11187. done
  11188. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11189. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11190. # so we don't have lib.a shared libs to link our executables.
  11191. # We have to force runtime linking in this case.
  11192. aix_use_runtimelinking=yes
  11193. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11194. fi
  11195. ;;
  11196. esac
  11197. exp_sym_flag='-bexport'
  11198. no_entry_flag='-bnoentry'
  11199. fi
  11200. # When large executables or shared objects are built, AIX ld can
  11201. # have problems creating the table of contents. If linking a library
  11202. # or program results in "error TOC overflow" add -mminimal-toc to
  11203. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11204. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11205. archive_cmds_CXX=''
  11206. hardcode_direct_CXX=yes
  11207. hardcode_direct_absolute_CXX=yes
  11208. hardcode_libdir_separator_CXX=':'
  11209. link_all_deplibs_CXX=yes
  11210. file_list_spec_CXX='$wl-f,'
  11211. case $with_aix_soname,$aix_use_runtimelinking in
  11212. aix,*) ;; # no import file
  11213. svr4,* | *,yes) # use import file
  11214. # The Import File defines what to hardcode.
  11215. hardcode_direct_CXX=no
  11216. hardcode_direct_absolute_CXX=no
  11217. ;;
  11218. esac
  11219. if test yes = "$GXX"; then
  11220. case $host_os in aix4.[012]|aix4.[012].*)
  11221. # We only want to do this on AIX 4.2 and lower, the check
  11222. # below for broken collect2 doesn't work under 4.3+
  11223. collect2name=`$CC -print-prog-name=collect2`
  11224. if test -f "$collect2name" &&
  11225. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11226. then
  11227. # We have reworked collect2
  11228. :
  11229. else
  11230. # We have old collect2
  11231. hardcode_direct_CXX=unsupported
  11232. # It fails to find uninstalled libraries when the uninstalled
  11233. # path is not listed in the libpath. Setting hardcode_minus_L
  11234. # to unsupported forces relinking
  11235. hardcode_minus_L_CXX=yes
  11236. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11237. hardcode_libdir_separator_CXX=
  11238. fi
  11239. esac
  11240. shared_flag='-shared'
  11241. if test yes = "$aix_use_runtimelinking"; then
  11242. shared_flag=$shared_flag' $wl-G'
  11243. fi
  11244. # Need to ensure runtime linking is disabled for the traditional
  11245. # shared library, or the linker may eventually find shared libraries
  11246. # /with/ Import File - we do not want to mix them.
  11247. shared_flag_aix='-shared'
  11248. shared_flag_svr4='-shared $wl-G'
  11249. else
  11250. # not using gcc
  11251. if test ia64 = "$host_cpu"; then
  11252. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11253. # chokes on -Wl,-G. The following line is correct:
  11254. shared_flag='-G'
  11255. else
  11256. if test yes = "$aix_use_runtimelinking"; then
  11257. shared_flag='$wl-G'
  11258. else
  11259. shared_flag='$wl-bM:SRE'
  11260. fi
  11261. shared_flag_aix='$wl-bM:SRE'
  11262. shared_flag_svr4='$wl-G'
  11263. fi
  11264. fi
  11265. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11266. # It seems that -bexpall does not export symbols beginning with
  11267. # underscore (_), so it is better to generate a list of symbols to
  11268. # export.
  11269. always_export_symbols_CXX=yes
  11270. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11271. # Warning - without using the other runtime loading flags (-brtl),
  11272. # -berok will link without error, but may produce a broken library.
  11273. # The "-G" linker flag allows undefined symbols.
  11274. no_undefined_flag_CXX='-bernotok'
  11275. # Determine the default libpath from the value encoded in an empty
  11276. # executable.
  11277. if test set = "${lt_cv_aix_libpath+set}"; then
  11278. aix_libpath=$lt_cv_aix_libpath
  11279. else
  11280. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11281. $as_echo_n "(cached) " >&6
  11282. else
  11283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11284. /* end confdefs.h. */
  11285. int
  11286. main ()
  11287. {
  11288. ;
  11289. return 0;
  11290. }
  11291. _ACEOF
  11292. if ac_fn_cxx_try_link "$LINENO"; then :
  11293. lt_aix_libpath_sed='
  11294. /Import File Strings/,/^$/ {
  11295. /^0/ {
  11296. s/^0 *\([^ ]*\) *$/\1/
  11297. p
  11298. }
  11299. }'
  11300. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11301. # Check for a 64-bit object if we didn't find anything.
  11302. if test -z "$lt_cv_aix_libpath__CXX"; then
  11303. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11304. fi
  11305. fi
  11306. rm -f core conftest.err conftest.$ac_objext \
  11307. conftest$ac_exeext conftest.$ac_ext
  11308. if test -z "$lt_cv_aix_libpath__CXX"; then
  11309. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11310. fi
  11311. fi
  11312. aix_libpath=$lt_cv_aix_libpath__CXX
  11313. fi
  11314. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11315. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11316. else
  11317. if test ia64 = "$host_cpu"; then
  11318. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11319. allow_undefined_flag_CXX="-z nodefs"
  11320. 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"
  11321. else
  11322. # Determine the default libpath from the value encoded in an
  11323. # empty executable.
  11324. if test set = "${lt_cv_aix_libpath+set}"; then
  11325. aix_libpath=$lt_cv_aix_libpath
  11326. else
  11327. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11328. $as_echo_n "(cached) " >&6
  11329. else
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h. */
  11332. int
  11333. main ()
  11334. {
  11335. ;
  11336. return 0;
  11337. }
  11338. _ACEOF
  11339. if ac_fn_cxx_try_link "$LINENO"; then :
  11340. lt_aix_libpath_sed='
  11341. /Import File Strings/,/^$/ {
  11342. /^0/ {
  11343. s/^0 *\([^ ]*\) *$/\1/
  11344. p
  11345. }
  11346. }'
  11347. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11348. # Check for a 64-bit object if we didn't find anything.
  11349. if test -z "$lt_cv_aix_libpath__CXX"; then
  11350. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11351. fi
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext \
  11354. conftest$ac_exeext conftest.$ac_ext
  11355. if test -z "$lt_cv_aix_libpath__CXX"; then
  11356. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11357. fi
  11358. fi
  11359. aix_libpath=$lt_cv_aix_libpath__CXX
  11360. fi
  11361. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11362. # Warning - without using the other run time loading flags,
  11363. # -berok will link without error, but may produce a broken library.
  11364. no_undefined_flag_CXX=' $wl-bernotok'
  11365. allow_undefined_flag_CXX=' $wl-berok'
  11366. if test yes = "$with_gnu_ld"; then
  11367. # We only use this code for GNU lds that support --whole-archive.
  11368. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11369. else
  11370. # Exported symbols can be pulled into shared objects from archives
  11371. whole_archive_flag_spec_CXX='$convenience'
  11372. fi
  11373. archive_cmds_need_lc_CXX=yes
  11374. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11375. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11376. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11377. if test svr4 != "$with_aix_soname"; then
  11378. # This is similar to how AIX traditionally builds its shared
  11379. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11380. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11381. fi
  11382. if test aix != "$with_aix_soname"; then
  11383. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11384. else
  11385. # used by -dlpreopen to get the symbols
  11386. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11387. fi
  11388. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11389. fi
  11390. fi
  11391. ;;
  11392. beos*)
  11393. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11394. allow_undefined_flag_CXX=unsupported
  11395. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11396. # support --undefined. This deserves some investigation. FIXME
  11397. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11398. else
  11399. ld_shlibs_CXX=no
  11400. fi
  11401. ;;
  11402. chorus*)
  11403. case $cc_basename in
  11404. *)
  11405. # FIXME: insert proper C++ library support
  11406. ld_shlibs_CXX=no
  11407. ;;
  11408. esac
  11409. ;;
  11410. cygwin* | mingw* | pw32* | cegcc*)
  11411. case $GXX,$cc_basename in
  11412. ,cl* | no,cl*)
  11413. # Native MSVC
  11414. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11415. # no search path for DLLs.
  11416. hardcode_libdir_flag_spec_CXX=' '
  11417. allow_undefined_flag_CXX=unsupported
  11418. always_export_symbols_CXX=yes
  11419. file_list_spec_CXX='@'
  11420. # Tell ltmain to make .lib files, not .a files.
  11421. libext=lib
  11422. # Tell ltmain to make .dll files, not .so files.
  11423. shrext_cmds=.dll
  11424. # FIXME: Setting linknames here is a bad hack.
  11425. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11426. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11427. cp "$export_symbols" "$output_objdir/$soname.def";
  11428. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11429. else
  11430. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11431. fi~
  11432. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11433. linknames='
  11434. # The linker will not automatically build a static lib if we build a DLL.
  11435. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11436. enable_shared_with_static_runtimes_CXX=yes
  11437. # Don't use ranlib
  11438. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11439. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11440. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11441. case $lt_outputfile in
  11442. *.exe|*.EXE) ;;
  11443. *)
  11444. lt_outputfile=$lt_outputfile.exe
  11445. lt_tool_outputfile=$lt_tool_outputfile.exe
  11446. ;;
  11447. esac~
  11448. func_to_tool_file "$lt_outputfile"~
  11449. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11450. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11451. $RM "$lt_outputfile.manifest";
  11452. fi'
  11453. ;;
  11454. *)
  11455. # g++
  11456. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11457. # as there is no search path for DLLs.
  11458. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11459. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11460. allow_undefined_flag_CXX=unsupported
  11461. always_export_symbols_CXX=no
  11462. enable_shared_with_static_runtimes_CXX=yes
  11463. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11464. 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'
  11465. # If the export-symbols file already is a .def file, use it as
  11466. # is; otherwise, prepend EXPORTS...
  11467. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11468. cp $export_symbols $output_objdir/$soname.def;
  11469. else
  11470. echo EXPORTS > $output_objdir/$soname.def;
  11471. cat $export_symbols >> $output_objdir/$soname.def;
  11472. fi~
  11473. $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'
  11474. else
  11475. ld_shlibs_CXX=no
  11476. fi
  11477. ;;
  11478. esac
  11479. ;;
  11480. darwin* | rhapsody*)
  11481. archive_cmds_need_lc_CXX=no
  11482. hardcode_direct_CXX=no
  11483. hardcode_automatic_CXX=yes
  11484. hardcode_shlibpath_var_CXX=unsupported
  11485. if test yes = "$lt_cv_ld_force_load"; then
  11486. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11487. else
  11488. whole_archive_flag_spec_CXX=''
  11489. fi
  11490. link_all_deplibs_CXX=yes
  11491. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11492. case $cc_basename in
  11493. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11494. *) _lt_dar_can_shared=$GCC ;;
  11495. esac
  11496. if test yes = "$_lt_dar_can_shared"; then
  11497. output_verbose_link_cmd=func_echo_all
  11498. 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"
  11499. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11500. 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"
  11501. 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"
  11502. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11503. 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"
  11504. 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"
  11505. fi
  11506. else
  11507. ld_shlibs_CXX=no
  11508. fi
  11509. ;;
  11510. os2*)
  11511. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11512. hardcode_minus_L_CXX=yes
  11513. allow_undefined_flag_CXX=unsupported
  11514. shrext_cmds=.dll
  11515. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11516. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11517. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11518. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11519. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11520. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11521. emximp -o $lib $output_objdir/$libname.def'
  11522. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11523. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11524. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11525. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11526. prefix_cmds="$SED"~
  11527. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11528. prefix_cmds="$prefix_cmds -e 1d";
  11529. fi~
  11530. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11531. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11532. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11533. emximp -o $lib $output_objdir/$libname.def'
  11534. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11535. enable_shared_with_static_runtimes_CXX=yes
  11536. ;;
  11537. dgux*)
  11538. case $cc_basename in
  11539. ec++*)
  11540. # FIXME: insert proper C++ library support
  11541. ld_shlibs_CXX=no
  11542. ;;
  11543. ghcx*)
  11544. # Green Hills C++ Compiler
  11545. # FIXME: insert proper C++ library support
  11546. ld_shlibs_CXX=no
  11547. ;;
  11548. *)
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. ;;
  11552. esac
  11553. ;;
  11554. freebsd2.*)
  11555. # C++ shared libraries reported to be fairly broken before
  11556. # switch to ELF
  11557. ld_shlibs_CXX=no
  11558. ;;
  11559. freebsd-elf*)
  11560. archive_cmds_need_lc_CXX=no
  11561. ;;
  11562. freebsd* | dragonfly*)
  11563. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11564. # conventions
  11565. ld_shlibs_CXX=yes
  11566. ;;
  11567. haiku*)
  11568. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11569. link_all_deplibs_CXX=yes
  11570. ;;
  11571. hpux9*)
  11572. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11573. hardcode_libdir_separator_CXX=:
  11574. export_dynamic_flag_spec_CXX='$wl-E'
  11575. hardcode_direct_CXX=yes
  11576. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11577. # but as the default
  11578. # location of the library.
  11579. case $cc_basename in
  11580. CC*)
  11581. # FIXME: insert proper C++ library support
  11582. ld_shlibs_CXX=no
  11583. ;;
  11584. aCC*)
  11585. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11586. # Commands to make compiler produce verbose output that lists
  11587. # what "hidden" libraries, object files and flags are used when
  11588. # linking a shared library.
  11589. #
  11590. # There doesn't appear to be a way to prevent this compiler from
  11591. # explicitly linking system object files so we need to strip them
  11592. # from the output so that they don't get included in the library
  11593. # dependencies.
  11594. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11595. ;;
  11596. *)
  11597. if test yes = "$GXX"; then
  11598. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11599. else
  11600. # FIXME: insert proper C++ library support
  11601. ld_shlibs_CXX=no
  11602. fi
  11603. ;;
  11604. esac
  11605. ;;
  11606. hpux10*|hpux11*)
  11607. if test no = "$with_gnu_ld"; then
  11608. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11609. hardcode_libdir_separator_CXX=:
  11610. case $host_cpu in
  11611. hppa*64*|ia64*)
  11612. ;;
  11613. *)
  11614. export_dynamic_flag_spec_CXX='$wl-E'
  11615. ;;
  11616. esac
  11617. fi
  11618. case $host_cpu in
  11619. hppa*64*|ia64*)
  11620. hardcode_direct_CXX=no
  11621. hardcode_shlibpath_var_CXX=no
  11622. ;;
  11623. *)
  11624. hardcode_direct_CXX=yes
  11625. hardcode_direct_absolute_CXX=yes
  11626. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11627. # but as the default
  11628. # location of the library.
  11629. ;;
  11630. esac
  11631. case $cc_basename in
  11632. CC*)
  11633. # FIXME: insert proper C++ library support
  11634. ld_shlibs_CXX=no
  11635. ;;
  11636. aCC*)
  11637. case $host_cpu in
  11638. hppa*64*)
  11639. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11640. ;;
  11641. ia64*)
  11642. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11643. ;;
  11644. *)
  11645. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11646. ;;
  11647. esac
  11648. # Commands to make compiler produce verbose output that lists
  11649. # what "hidden" libraries, object files and flags are used when
  11650. # linking a shared library.
  11651. #
  11652. # There doesn't appear to be a way to prevent this compiler from
  11653. # explicitly linking system object files so we need to strip them
  11654. # from the output so that they don't get included in the library
  11655. # dependencies.
  11656. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11657. ;;
  11658. *)
  11659. if test yes = "$GXX"; then
  11660. if test no = "$with_gnu_ld"; then
  11661. case $host_cpu in
  11662. hppa*64*)
  11663. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11664. ;;
  11665. ia64*)
  11666. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11667. ;;
  11668. *)
  11669. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11670. ;;
  11671. esac
  11672. fi
  11673. else
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. fi
  11677. ;;
  11678. esac
  11679. ;;
  11680. interix[3-9]*)
  11681. hardcode_direct_CXX=no
  11682. hardcode_shlibpath_var_CXX=no
  11683. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11684. export_dynamic_flag_spec_CXX='$wl-E'
  11685. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11686. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11687. # default) and relocated if they conflict, which is a slow very memory
  11688. # consuming and fragmenting process. To avoid this, we pick a random,
  11689. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11690. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11691. 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'
  11692. 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'
  11693. ;;
  11694. irix5* | irix6*)
  11695. case $cc_basename in
  11696. CC*)
  11697. # SGI C++
  11698. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11699. # Archives containing C++ object files must be created using
  11700. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11701. # necessary to make sure instantiated templates are included
  11702. # in the archive.
  11703. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11704. ;;
  11705. *)
  11706. if test yes = "$GXX"; then
  11707. if test no = "$with_gnu_ld"; then
  11708. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11709. else
  11710. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  11711. fi
  11712. fi
  11713. link_all_deplibs_CXX=yes
  11714. ;;
  11715. esac
  11716. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11717. hardcode_libdir_separator_CXX=:
  11718. inherit_rpath_CXX=yes
  11719. ;;
  11720. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11721. case $cc_basename in
  11722. KCC*)
  11723. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11724. # KCC will only create a shared library if the output file
  11725. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11726. # to its proper name (with version) after linking.
  11727. 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'
  11728. 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'
  11729. # Commands to make compiler produce verbose output that lists
  11730. # what "hidden" libraries, object files and flags are used when
  11731. # linking a shared library.
  11732. #
  11733. # There doesn't appear to be a way to prevent this compiler from
  11734. # explicitly linking system object files so we need to strip them
  11735. # from the output so that they don't get included in the library
  11736. # dependencies.
  11737. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11738. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11739. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11740. # Archives containing C++ object files must be created using
  11741. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11742. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11743. ;;
  11744. icpc* | ecpc* )
  11745. # Intel C++
  11746. with_gnu_ld=yes
  11747. # version 8.0 and above of icpc choke on multiply defined symbols
  11748. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11749. # earlier do not add the objects themselves.
  11750. case `$CC -V 2>&1` in
  11751. *"Version 7."*)
  11752. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11753. 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'
  11754. ;;
  11755. *) # Version 8.0 or newer
  11756. tmp_idyn=
  11757. case $host_cpu in
  11758. ia64*) tmp_idyn=' -i_dynamic';;
  11759. esac
  11760. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11761. 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'
  11762. ;;
  11763. esac
  11764. archive_cmds_need_lc_CXX=no
  11765. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11766. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11767. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11768. ;;
  11769. pgCC* | pgcpp*)
  11770. # Portland Group C++ compiler
  11771. case `$CC -V` in
  11772. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11773. prelink_cmds_CXX='tpldir=Template.dir~
  11774. rm -rf $tpldir~
  11775. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11776. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11777. old_archive_cmds_CXX='tpldir=Template.dir~
  11778. rm -rf $tpldir~
  11779. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11780. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11781. $RANLIB $oldlib'
  11782. archive_cmds_CXX='tpldir=Template.dir~
  11783. rm -rf $tpldir~
  11784. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11785. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11786. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11787. rm -rf $tpldir~
  11788. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11789. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11790. ;;
  11791. *) # Version 6 and above use weak symbols
  11792. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11793. 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'
  11794. ;;
  11795. esac
  11796. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  11797. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11798. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11799. ;;
  11800. cxx*)
  11801. # Compaq C++
  11802. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11803. 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'
  11804. runpath_var=LD_RUN_PATH
  11805. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11806. hardcode_libdir_separator_CXX=:
  11807. # Commands to make compiler produce verbose output that lists
  11808. # what "hidden" libraries, object files and flags are used when
  11809. # linking a shared library.
  11810. #
  11811. # There doesn't appear to be a way to prevent this compiler from
  11812. # explicitly linking system object files so we need to strip them
  11813. # from the output so that they don't get included in the library
  11814. # dependencies.
  11815. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11816. ;;
  11817. xl* | mpixl* | bgxl*)
  11818. # IBM XL 8.0 on PPC, with GNU ld
  11819. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11820. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11821. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11822. if test yes = "$supports_anon_versioning"; then
  11823. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11824. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11825. echo "local: *; };" >> $output_objdir/$libname.ver~
  11826. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11827. fi
  11828. ;;
  11829. *)
  11830. case `$CC -V 2>&1 | sed 5q` in
  11831. *Sun\ C*)
  11832. # Sun C++ 5.9
  11833. no_undefined_flag_CXX=' -zdefs'
  11834. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11835. 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'
  11836. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11837. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11838. compiler_needs_object_CXX=yes
  11839. # Not sure whether something based on
  11840. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11841. # would be better.
  11842. output_verbose_link_cmd='func_echo_all'
  11843. # Archives containing C++ object files must be created using
  11844. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11845. # necessary to make sure instantiated templates are included
  11846. # in the archive.
  11847. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11848. ;;
  11849. esac
  11850. ;;
  11851. esac
  11852. ;;
  11853. lynxos*)
  11854. # FIXME: insert proper C++ library support
  11855. ld_shlibs_CXX=no
  11856. ;;
  11857. m88k*)
  11858. # FIXME: insert proper C++ library support
  11859. ld_shlibs_CXX=no
  11860. ;;
  11861. mvs*)
  11862. case $cc_basename in
  11863. cxx*)
  11864. # FIXME: insert proper C++ library support
  11865. ld_shlibs_CXX=no
  11866. ;;
  11867. *)
  11868. # FIXME: insert proper C++ library support
  11869. ld_shlibs_CXX=no
  11870. ;;
  11871. esac
  11872. ;;
  11873. netbsd*)
  11874. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11875. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11876. wlarc=
  11877. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11878. hardcode_direct_CXX=yes
  11879. hardcode_shlibpath_var_CXX=no
  11880. fi
  11881. # Workaround some broken pre-1.5 toolchains
  11882. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11883. ;;
  11884. *nto* | *qnx*)
  11885. ld_shlibs_CXX=yes
  11886. ;;
  11887. openbsd* | bitrig*)
  11888. if test -f /usr/libexec/ld.so; then
  11889. hardcode_direct_CXX=yes
  11890. hardcode_shlibpath_var_CXX=no
  11891. hardcode_direct_absolute_CXX=yes
  11892. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11893. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11894. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  11895. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  11896. export_dynamic_flag_spec_CXX='$wl-E'
  11897. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11898. fi
  11899. output_verbose_link_cmd=func_echo_all
  11900. else
  11901. ld_shlibs_CXX=no
  11902. fi
  11903. ;;
  11904. osf3* | osf4* | osf5*)
  11905. case $cc_basename in
  11906. KCC*)
  11907. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11908. # KCC will only create a shared library if the output file
  11909. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11910. # to its proper name (with version) after linking.
  11911. 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'
  11912. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11913. hardcode_libdir_separator_CXX=:
  11914. # Archives containing C++ object files must be created using
  11915. # the KAI C++ compiler.
  11916. case $host in
  11917. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11918. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11919. esac
  11920. ;;
  11921. RCC*)
  11922. # Rational C++ 2.4.1
  11923. # FIXME: insert proper C++ library support
  11924. ld_shlibs_CXX=no
  11925. ;;
  11926. cxx*)
  11927. case $host in
  11928. osf3*)
  11929. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11930. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11931. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11932. ;;
  11933. *)
  11934. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11935. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11936. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11937. echo "-hidden">> $lib.exp~
  11938. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  11939. $RM $lib.exp'
  11940. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11941. ;;
  11942. esac
  11943. hardcode_libdir_separator_CXX=:
  11944. # Commands to make compiler produce verbose output that lists
  11945. # what "hidden" libraries, object files and flags are used when
  11946. # linking a shared library.
  11947. #
  11948. # There doesn't appear to be a way to prevent this compiler from
  11949. # explicitly linking system object files so we need to strip them
  11950. # from the output so that they don't get included in the library
  11951. # dependencies.
  11952. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11953. ;;
  11954. *)
  11955. if test yes,no = "$GXX,$with_gnu_ld"; then
  11956. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11957. case $host in
  11958. osf3*)
  11959. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11960. ;;
  11961. *)
  11962. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11963. ;;
  11964. esac
  11965. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11966. hardcode_libdir_separator_CXX=:
  11967. # Commands to make compiler produce verbose output that lists
  11968. # what "hidden" libraries, object files and flags are used when
  11969. # linking a shared library.
  11970. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  11971. else
  11972. # FIXME: insert proper C++ library support
  11973. ld_shlibs_CXX=no
  11974. fi
  11975. ;;
  11976. esac
  11977. ;;
  11978. psos*)
  11979. # FIXME: insert proper C++ library support
  11980. ld_shlibs_CXX=no
  11981. ;;
  11982. sunos4*)
  11983. case $cc_basename in
  11984. CC*)
  11985. # Sun C++ 4.x
  11986. # FIXME: insert proper C++ library support
  11987. ld_shlibs_CXX=no
  11988. ;;
  11989. lcc*)
  11990. # Lucid
  11991. # FIXME: insert proper C++ library support
  11992. ld_shlibs_CXX=no
  11993. ;;
  11994. *)
  11995. # FIXME: insert proper C++ library support
  11996. ld_shlibs_CXX=no
  11997. ;;
  11998. esac
  11999. ;;
  12000. solaris*)
  12001. case $cc_basename in
  12002. CC* | sunCC*)
  12003. # Sun C++ 4.2, 5.x and Centerline C++
  12004. archive_cmds_need_lc_CXX=yes
  12005. no_undefined_flag_CXX=' -zdefs'
  12006. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12007. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12008. $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'
  12009. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12010. hardcode_shlibpath_var_CXX=no
  12011. case $host_os in
  12012. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12013. *)
  12014. # The compiler driver will combine and reorder linker options,
  12015. # but understands '-z linker_flag'.
  12016. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12017. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12018. ;;
  12019. esac
  12020. link_all_deplibs_CXX=yes
  12021. output_verbose_link_cmd='func_echo_all'
  12022. # Archives containing C++ object files must be created using
  12023. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12024. # necessary to make sure instantiated templates are included
  12025. # in the archive.
  12026. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12027. ;;
  12028. gcx*)
  12029. # Green Hills C++ Compiler
  12030. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12031. # The C++ compiler must be used to create the archive.
  12032. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12033. ;;
  12034. *)
  12035. # GNU C++ compiler with Solaris linker
  12036. if test yes,no = "$GXX,$with_gnu_ld"; then
  12037. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12038. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12039. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12040. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12041. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12042. # Commands to make compiler produce verbose output that lists
  12043. # what "hidden" libraries, object files and flags are used when
  12044. # linking a shared library.
  12045. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12046. else
  12047. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12048. # platform.
  12049. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12050. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12051. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12052. # Commands to make compiler produce verbose output that lists
  12053. # what "hidden" libraries, object files and flags are used when
  12054. # linking a shared library.
  12055. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12056. fi
  12057. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12058. case $host_os in
  12059. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12060. *)
  12061. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12062. ;;
  12063. esac
  12064. fi
  12065. ;;
  12066. esac
  12067. ;;
  12068. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12069. no_undefined_flag_CXX='$wl-z,text'
  12070. archive_cmds_need_lc_CXX=no
  12071. hardcode_shlibpath_var_CXX=no
  12072. runpath_var='LD_RUN_PATH'
  12073. case $cc_basename in
  12074. CC*)
  12075. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. ;;
  12078. *)
  12079. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12080. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12081. ;;
  12082. esac
  12083. ;;
  12084. sysv5* | sco3.2v5* | sco5v6*)
  12085. # Note: We CANNOT use -z defs as we might desire, because we do not
  12086. # link with -lc, and that would cause any symbols used from libc to
  12087. # always be unresolved, which means just about no library would
  12088. # ever link correctly. If we're not using GNU ld we use -z text
  12089. # though, which does catch some bad symbols but isn't as heavy-handed
  12090. # as -z defs.
  12091. no_undefined_flag_CXX='$wl-z,text'
  12092. allow_undefined_flag_CXX='$wl-z,nodefs'
  12093. archive_cmds_need_lc_CXX=no
  12094. hardcode_shlibpath_var_CXX=no
  12095. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12096. hardcode_libdir_separator_CXX=':'
  12097. link_all_deplibs_CXX=yes
  12098. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12099. runpath_var='LD_RUN_PATH'
  12100. case $cc_basename in
  12101. CC*)
  12102. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12103. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12104. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12105. '"$old_archive_cmds_CXX"
  12106. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12107. '"$reload_cmds_CXX"
  12108. ;;
  12109. *)
  12110. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12111. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12112. ;;
  12113. esac
  12114. ;;
  12115. tandem*)
  12116. case $cc_basename in
  12117. NCC*)
  12118. # NonStop-UX NCC 3.20
  12119. # FIXME: insert proper C++ library support
  12120. ld_shlibs_CXX=no
  12121. ;;
  12122. *)
  12123. # FIXME: insert proper C++ library support
  12124. ld_shlibs_CXX=no
  12125. ;;
  12126. esac
  12127. ;;
  12128. vxworks*)
  12129. # FIXME: insert proper C++ library support
  12130. ld_shlibs_CXX=no
  12131. ;;
  12132. *)
  12133. # FIXME: insert proper C++ library support
  12134. ld_shlibs_CXX=no
  12135. ;;
  12136. esac
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12138. $as_echo "$ld_shlibs_CXX" >&6; }
  12139. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12140. GCC_CXX=$GXX
  12141. LD_CXX=$LD
  12142. ## CAVEAT EMPTOR:
  12143. ## There is no encapsulation within the following macros, do not change
  12144. ## the running order or otherwise move them around unless you know exactly
  12145. ## what you are doing...
  12146. # Dependencies to place before and after the object being linked:
  12147. predep_objects_CXX=
  12148. postdep_objects_CXX=
  12149. predeps_CXX=
  12150. postdeps_CXX=
  12151. compiler_lib_search_path_CXX=
  12152. cat > conftest.$ac_ext <<_LT_EOF
  12153. class Foo
  12154. {
  12155. public:
  12156. Foo (void) { a = 0; }
  12157. private:
  12158. int a;
  12159. };
  12160. _LT_EOF
  12161. _lt_libdeps_save_CFLAGS=$CFLAGS
  12162. case "$CC $CFLAGS " in #(
  12163. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12164. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12165. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12166. esac
  12167. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12168. (eval $ac_compile) 2>&5
  12169. ac_status=$?
  12170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12171. test $ac_status = 0; }; then
  12172. # Parse the compiler output and extract the necessary
  12173. # objects, libraries and library flags.
  12174. # Sentinel used to keep track of whether or not we are before
  12175. # the conftest object file.
  12176. pre_test_object_deps_done=no
  12177. for p in `eval "$output_verbose_link_cmd"`; do
  12178. case $prev$p in
  12179. -L* | -R* | -l*)
  12180. # Some compilers place space between "-{L,R}" and the path.
  12181. # Remove the space.
  12182. if test x-L = "$p" ||
  12183. test x-R = "$p"; then
  12184. prev=$p
  12185. continue
  12186. fi
  12187. # Expand the sysroot to ease extracting the directories later.
  12188. if test -z "$prev"; then
  12189. case $p in
  12190. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12191. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12192. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12193. esac
  12194. fi
  12195. case $p in
  12196. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12197. esac
  12198. if test no = "$pre_test_object_deps_done"; then
  12199. case $prev in
  12200. -L | -R)
  12201. # Internal compiler library paths should come after those
  12202. # provided the user. The postdeps already come after the
  12203. # user supplied libs so there is no need to process them.
  12204. if test -z "$compiler_lib_search_path_CXX"; then
  12205. compiler_lib_search_path_CXX=$prev$p
  12206. else
  12207. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12208. fi
  12209. ;;
  12210. # The "-l" case would never come before the object being
  12211. # linked, so don't bother handling this case.
  12212. esac
  12213. else
  12214. if test -z "$postdeps_CXX"; then
  12215. postdeps_CXX=$prev$p
  12216. else
  12217. postdeps_CXX="${postdeps_CXX} $prev$p"
  12218. fi
  12219. fi
  12220. prev=
  12221. ;;
  12222. *.lto.$objext) ;; # Ignore GCC LTO objects
  12223. *.$objext)
  12224. # This assumes that the test object file only shows up
  12225. # once in the compiler output.
  12226. if test "$p" = "conftest.$objext"; then
  12227. pre_test_object_deps_done=yes
  12228. continue
  12229. fi
  12230. if test no = "$pre_test_object_deps_done"; then
  12231. if test -z "$predep_objects_CXX"; then
  12232. predep_objects_CXX=$p
  12233. else
  12234. predep_objects_CXX="$predep_objects_CXX $p"
  12235. fi
  12236. else
  12237. if test -z "$postdep_objects_CXX"; then
  12238. postdep_objects_CXX=$p
  12239. else
  12240. postdep_objects_CXX="$postdep_objects_CXX $p"
  12241. fi
  12242. fi
  12243. ;;
  12244. *) ;; # Ignore the rest.
  12245. esac
  12246. done
  12247. # Clean up.
  12248. rm -f a.out a.exe
  12249. else
  12250. echo "libtool.m4: error: problem compiling CXX test program"
  12251. fi
  12252. $RM -f confest.$objext
  12253. CFLAGS=$_lt_libdeps_save_CFLAGS
  12254. # PORTME: override above test on systems where it is broken
  12255. case $host_os in
  12256. interix[3-9]*)
  12257. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12258. # hack all around it, let's just trust "g++" to DTRT.
  12259. predep_objects_CXX=
  12260. postdep_objects_CXX=
  12261. postdeps_CXX=
  12262. ;;
  12263. esac
  12264. case " $postdeps_CXX " in
  12265. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12266. esac
  12267. compiler_lib_search_dirs_CXX=
  12268. if test -n "${compiler_lib_search_path_CXX}"; then
  12269. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12270. fi
  12271. lt_prog_compiler_wl_CXX=
  12272. lt_prog_compiler_pic_CXX=
  12273. lt_prog_compiler_static_CXX=
  12274. # C++ specific cases for pic, static, wl, etc.
  12275. if test yes = "$GXX"; then
  12276. lt_prog_compiler_wl_CXX='-Wl,'
  12277. lt_prog_compiler_static_CXX='-static'
  12278. case $host_os in
  12279. aix*)
  12280. # All AIX code is PIC.
  12281. if test ia64 = "$host_cpu"; then
  12282. # AIX 5 now supports IA64 processor
  12283. lt_prog_compiler_static_CXX='-Bstatic'
  12284. fi
  12285. lt_prog_compiler_pic_CXX='-fPIC'
  12286. ;;
  12287. amigaos*)
  12288. case $host_cpu in
  12289. powerpc)
  12290. # see comment about AmigaOS4 .so support
  12291. lt_prog_compiler_pic_CXX='-fPIC'
  12292. ;;
  12293. m68k)
  12294. # FIXME: we need at least 68020 code to build shared libraries, but
  12295. # adding the '-m68020' flag to GCC prevents building anything better,
  12296. # like '-m68040'.
  12297. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12298. ;;
  12299. esac
  12300. ;;
  12301. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12302. # PIC is the default for these OSes.
  12303. ;;
  12304. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12305. # This hack is so that the source file can tell whether it is being
  12306. # built for inclusion in a dll (and should export symbols for example).
  12307. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12308. # (--disable-auto-import) libraries
  12309. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12310. case $host_os in
  12311. os2*)
  12312. lt_prog_compiler_static_CXX='$wl-static'
  12313. ;;
  12314. esac
  12315. ;;
  12316. darwin* | rhapsody*)
  12317. # PIC is the default on this platform
  12318. # Common symbols not allowed in MH_DYLIB files
  12319. lt_prog_compiler_pic_CXX='-fno-common'
  12320. ;;
  12321. *djgpp*)
  12322. # DJGPP does not support shared libraries at all
  12323. lt_prog_compiler_pic_CXX=
  12324. ;;
  12325. haiku*)
  12326. # PIC is the default for Haiku.
  12327. # The "-static" flag exists, but is broken.
  12328. lt_prog_compiler_static_CXX=
  12329. ;;
  12330. interix[3-9]*)
  12331. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12332. # Instead, we relocate shared libraries at runtime.
  12333. ;;
  12334. sysv4*MP*)
  12335. if test -d /usr/nec; then
  12336. lt_prog_compiler_pic_CXX=-Kconform_pic
  12337. fi
  12338. ;;
  12339. hpux*)
  12340. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12341. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12342. # sets the default TLS model and affects inlining.
  12343. case $host_cpu in
  12344. hppa*64*)
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX='-fPIC'
  12348. ;;
  12349. esac
  12350. ;;
  12351. *qnx* | *nto*)
  12352. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12353. # it will coredump.
  12354. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12355. ;;
  12356. *)
  12357. lt_prog_compiler_pic_CXX='-fPIC'
  12358. ;;
  12359. esac
  12360. else
  12361. case $host_os in
  12362. aix[4-9]*)
  12363. # All AIX code is PIC.
  12364. if test ia64 = "$host_cpu"; then
  12365. # AIX 5 now supports IA64 processor
  12366. lt_prog_compiler_static_CXX='-Bstatic'
  12367. else
  12368. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12369. fi
  12370. ;;
  12371. chorus*)
  12372. case $cc_basename in
  12373. cxch68*)
  12374. # Green Hills C++ Compiler
  12375. # _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"
  12376. ;;
  12377. esac
  12378. ;;
  12379. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12380. # This hack is so that the source file can tell whether it is being
  12381. # built for inclusion in a dll (and should export symbols for example).
  12382. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12383. ;;
  12384. dgux*)
  12385. case $cc_basename in
  12386. ec++*)
  12387. lt_prog_compiler_pic_CXX='-KPIC'
  12388. ;;
  12389. ghcx*)
  12390. # Green Hills C++ Compiler
  12391. lt_prog_compiler_pic_CXX='-pic'
  12392. ;;
  12393. *)
  12394. ;;
  12395. esac
  12396. ;;
  12397. freebsd* | dragonfly*)
  12398. # FreeBSD uses GNU C++
  12399. ;;
  12400. hpux9* | hpux10* | hpux11*)
  12401. case $cc_basename in
  12402. CC*)
  12403. lt_prog_compiler_wl_CXX='-Wl,'
  12404. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12405. if test ia64 != "$host_cpu"; then
  12406. lt_prog_compiler_pic_CXX='+Z'
  12407. fi
  12408. ;;
  12409. aCC*)
  12410. lt_prog_compiler_wl_CXX='-Wl,'
  12411. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12412. case $host_cpu in
  12413. hppa*64*|ia64*)
  12414. # +Z the default
  12415. ;;
  12416. *)
  12417. lt_prog_compiler_pic_CXX='+Z'
  12418. ;;
  12419. esac
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. interix*)
  12426. # This is c89, which is MS Visual C++ (no shared libs)
  12427. # Anyone wants to do a port?
  12428. ;;
  12429. irix5* | irix6* | nonstopux*)
  12430. case $cc_basename in
  12431. CC*)
  12432. lt_prog_compiler_wl_CXX='-Wl,'
  12433. lt_prog_compiler_static_CXX='-non_shared'
  12434. # CC pic flag -KPIC is the default.
  12435. ;;
  12436. *)
  12437. ;;
  12438. esac
  12439. ;;
  12440. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12441. case $cc_basename in
  12442. KCC*)
  12443. # KAI C++ Compiler
  12444. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12445. lt_prog_compiler_pic_CXX='-fPIC'
  12446. ;;
  12447. ecpc* )
  12448. # old Intel C++ for x86_64, which still supported -KPIC.
  12449. lt_prog_compiler_wl_CXX='-Wl,'
  12450. lt_prog_compiler_pic_CXX='-KPIC'
  12451. lt_prog_compiler_static_CXX='-static'
  12452. ;;
  12453. icpc* )
  12454. # Intel C++, used to be incompatible with GCC.
  12455. # ICC 10 doesn't accept -KPIC any more.
  12456. lt_prog_compiler_wl_CXX='-Wl,'
  12457. lt_prog_compiler_pic_CXX='-fPIC'
  12458. lt_prog_compiler_static_CXX='-static'
  12459. ;;
  12460. pgCC* | pgcpp*)
  12461. # Portland Group C++ compiler
  12462. lt_prog_compiler_wl_CXX='-Wl,'
  12463. lt_prog_compiler_pic_CXX='-fpic'
  12464. lt_prog_compiler_static_CXX='-Bstatic'
  12465. ;;
  12466. cxx*)
  12467. # Compaq C++
  12468. # Make sure the PIC flag is empty. It appears that all Alpha
  12469. # Linux and Compaq Tru64 Unix objects are PIC.
  12470. lt_prog_compiler_pic_CXX=
  12471. lt_prog_compiler_static_CXX='-non_shared'
  12472. ;;
  12473. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12474. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12475. lt_prog_compiler_wl_CXX='-Wl,'
  12476. lt_prog_compiler_pic_CXX='-qpic'
  12477. lt_prog_compiler_static_CXX='-qstaticlink'
  12478. ;;
  12479. *)
  12480. case `$CC -V 2>&1 | sed 5q` in
  12481. *Sun\ C*)
  12482. # Sun C++ 5.9
  12483. lt_prog_compiler_pic_CXX='-KPIC'
  12484. lt_prog_compiler_static_CXX='-Bstatic'
  12485. lt_prog_compiler_wl_CXX='-Qoption ld '
  12486. ;;
  12487. esac
  12488. ;;
  12489. esac
  12490. ;;
  12491. lynxos*)
  12492. ;;
  12493. m88k*)
  12494. ;;
  12495. mvs*)
  12496. case $cc_basename in
  12497. cxx*)
  12498. lt_prog_compiler_pic_CXX='-W c,exportall'
  12499. ;;
  12500. *)
  12501. ;;
  12502. esac
  12503. ;;
  12504. netbsd* | netbsdelf*-gnu)
  12505. ;;
  12506. *qnx* | *nto*)
  12507. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12508. # it will coredump.
  12509. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12510. ;;
  12511. osf3* | osf4* | osf5*)
  12512. case $cc_basename in
  12513. KCC*)
  12514. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12515. ;;
  12516. RCC*)
  12517. # Rational C++ 2.4.1
  12518. lt_prog_compiler_pic_CXX='-pic'
  12519. ;;
  12520. cxx*)
  12521. # Digital/Compaq C++
  12522. lt_prog_compiler_wl_CXX='-Wl,'
  12523. # Make sure the PIC flag is empty. It appears that all Alpha
  12524. # Linux and Compaq Tru64 Unix objects are PIC.
  12525. lt_prog_compiler_pic_CXX=
  12526. lt_prog_compiler_static_CXX='-non_shared'
  12527. ;;
  12528. *)
  12529. ;;
  12530. esac
  12531. ;;
  12532. psos*)
  12533. ;;
  12534. solaris*)
  12535. case $cc_basename in
  12536. CC* | sunCC*)
  12537. # Sun C++ 4.2, 5.x and Centerline C++
  12538. lt_prog_compiler_pic_CXX='-KPIC'
  12539. lt_prog_compiler_static_CXX='-Bstatic'
  12540. lt_prog_compiler_wl_CXX='-Qoption ld '
  12541. ;;
  12542. gcx*)
  12543. # Green Hills C++ Compiler
  12544. lt_prog_compiler_pic_CXX='-PIC'
  12545. ;;
  12546. *)
  12547. ;;
  12548. esac
  12549. ;;
  12550. sunos4*)
  12551. case $cc_basename in
  12552. CC*)
  12553. # Sun C++ 4.x
  12554. lt_prog_compiler_pic_CXX='-pic'
  12555. lt_prog_compiler_static_CXX='-Bstatic'
  12556. ;;
  12557. lcc*)
  12558. # Lucid
  12559. lt_prog_compiler_pic_CXX='-pic'
  12560. ;;
  12561. *)
  12562. ;;
  12563. esac
  12564. ;;
  12565. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12566. case $cc_basename in
  12567. CC*)
  12568. lt_prog_compiler_wl_CXX='-Wl,'
  12569. lt_prog_compiler_pic_CXX='-KPIC'
  12570. lt_prog_compiler_static_CXX='-Bstatic'
  12571. ;;
  12572. esac
  12573. ;;
  12574. tandem*)
  12575. case $cc_basename in
  12576. NCC*)
  12577. # NonStop-UX NCC 3.20
  12578. lt_prog_compiler_pic_CXX='-KPIC'
  12579. ;;
  12580. *)
  12581. ;;
  12582. esac
  12583. ;;
  12584. vxworks*)
  12585. ;;
  12586. *)
  12587. lt_prog_compiler_can_build_shared_CXX=no
  12588. ;;
  12589. esac
  12590. fi
  12591. case $host_os in
  12592. # For platforms that do not support PIC, -DPIC is meaningless:
  12593. *djgpp*)
  12594. lt_prog_compiler_pic_CXX=
  12595. ;;
  12596. *)
  12597. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12598. ;;
  12599. esac
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12601. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12602. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12606. fi
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12608. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12609. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12610. #
  12611. # Check to make sure the PIC flag actually works.
  12612. #
  12613. if test -n "$lt_prog_compiler_pic_CXX"; then
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12615. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12616. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12617. $as_echo_n "(cached) " >&6
  12618. else
  12619. lt_cv_prog_compiler_pic_works_CXX=no
  12620. ac_outfile=conftest.$ac_objext
  12621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12622. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12623. # Insert the option either (1) after the last *FLAGS variable, or
  12624. # (2) before a word containing "conftest.", or (3) at the end.
  12625. # Note that $ac_compile itself does not contain backslashes and begins
  12626. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12627. # The option is referenced via a variable to avoid confusing sed.
  12628. lt_compile=`echo "$ac_compile" | $SED \
  12629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12631. -e 's:$: $lt_compiler_flag:'`
  12632. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12633. (eval "$lt_compile" 2>conftest.err)
  12634. ac_status=$?
  12635. cat conftest.err >&5
  12636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12637. if (exit $ac_status) && test -s "$ac_outfile"; then
  12638. # The compiler can only warn and ignore the option if not recognized
  12639. # So say no if there are warnings other than the usual output.
  12640. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12641. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12642. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12643. lt_cv_prog_compiler_pic_works_CXX=yes
  12644. fi
  12645. fi
  12646. $RM conftest*
  12647. fi
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12649. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12650. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  12651. case $lt_prog_compiler_pic_CXX in
  12652. "" | " "*) ;;
  12653. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12654. esac
  12655. else
  12656. lt_prog_compiler_pic_CXX=
  12657. lt_prog_compiler_can_build_shared_CXX=no
  12658. fi
  12659. fi
  12660. #
  12661. # Check to make sure the static flag actually works.
  12662. #
  12663. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12665. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12666. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12667. $as_echo_n "(cached) " >&6
  12668. else
  12669. lt_cv_prog_compiler_static_works_CXX=no
  12670. save_LDFLAGS=$LDFLAGS
  12671. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12672. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12673. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12674. # The linker can only warn and ignore the option if not recognized
  12675. # So say no if there are warnings
  12676. if test -s conftest.err; then
  12677. # Append any errors to the config.log.
  12678. cat conftest.err 1>&5
  12679. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12680. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12681. if diff conftest.exp conftest.er2 >/dev/null; then
  12682. lt_cv_prog_compiler_static_works_CXX=yes
  12683. fi
  12684. else
  12685. lt_cv_prog_compiler_static_works_CXX=yes
  12686. fi
  12687. fi
  12688. $RM -r conftest*
  12689. LDFLAGS=$save_LDFLAGS
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12692. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12693. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  12694. :
  12695. else
  12696. lt_prog_compiler_static_CXX=
  12697. fi
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12699. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12700. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12701. $as_echo_n "(cached) " >&6
  12702. else
  12703. lt_cv_prog_compiler_c_o_CXX=no
  12704. $RM -r conftest 2>/dev/null
  12705. mkdir conftest
  12706. cd conftest
  12707. mkdir out
  12708. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12709. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12710. # Insert the option either (1) after the last *FLAGS variable, or
  12711. # (2) before a word containing "conftest.", or (3) at the end.
  12712. # Note that $ac_compile itself does not contain backslashes and begins
  12713. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12714. lt_compile=`echo "$ac_compile" | $SED \
  12715. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12716. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12717. -e 's:$: $lt_compiler_flag:'`
  12718. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12719. (eval "$lt_compile" 2>out/conftest.err)
  12720. ac_status=$?
  12721. cat out/conftest.err >&5
  12722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12723. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12724. then
  12725. # The compiler can only warn and ignore the option if not recognized
  12726. # So say no if there are warnings
  12727. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12728. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12729. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12730. lt_cv_prog_compiler_c_o_CXX=yes
  12731. fi
  12732. fi
  12733. chmod u+w . 2>&5
  12734. $RM conftest*
  12735. # SGI C++ compiler will create directory out/ii_files/ for
  12736. # template instantiation
  12737. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12738. $RM out/* && rmdir out
  12739. cd ..
  12740. $RM -r conftest
  12741. $RM conftest*
  12742. fi
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12744. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12746. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12747. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12748. $as_echo_n "(cached) " >&6
  12749. else
  12750. lt_cv_prog_compiler_c_o_CXX=no
  12751. $RM -r conftest 2>/dev/null
  12752. mkdir conftest
  12753. cd conftest
  12754. mkdir out
  12755. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12756. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12757. # Insert the option either (1) after the last *FLAGS variable, or
  12758. # (2) before a word containing "conftest.", or (3) at the end.
  12759. # Note that $ac_compile itself does not contain backslashes and begins
  12760. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>out/conftest.err)
  12767. ac_status=$?
  12768. cat out/conftest.err >&5
  12769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12771. then
  12772. # The compiler can only warn and ignore the option if not recognized
  12773. # So say no if there are warnings
  12774. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12775. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12776. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12777. lt_cv_prog_compiler_c_o_CXX=yes
  12778. fi
  12779. fi
  12780. chmod u+w . 2>&5
  12781. $RM conftest*
  12782. # SGI C++ compiler will create directory out/ii_files/ for
  12783. # template instantiation
  12784. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12785. $RM out/* && rmdir out
  12786. cd ..
  12787. $RM -r conftest
  12788. $RM conftest*
  12789. fi
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12791. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12792. hard_links=nottested
  12793. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  12794. # do not overwrite the value of need_locks provided by the user
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12796. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12797. hard_links=yes
  12798. $RM conftest*
  12799. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12800. touch conftest.a
  12801. ln conftest.a conftest.b 2>&5 || hard_links=no
  12802. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12804. $as_echo "$hard_links" >&6; }
  12805. if test no = "$hard_links"; then
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  12807. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  12808. need_locks=warn
  12809. fi
  12810. else
  12811. need_locks=no
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12814. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12815. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12816. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12817. case $host_os in
  12818. aix[4-9]*)
  12819. # If we're using GNU nm, then we don't want the "-C" option.
  12820. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  12821. # Without the "-l" option, or with the "-B" option, AIX nm treats
  12822. # weak defined symbols like other global defined symbols, whereas
  12823. # GNU nm marks them as "W".
  12824. # While the 'weak' keyword is ignored in the Export File, we need
  12825. # it in the Import File for the 'aix-soname' feature, so we have
  12826. # to replace the "-B" option with "-P" for AIX nm.
  12827. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12828. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  12829. else
  12830. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  12831. fi
  12832. ;;
  12833. pw32*)
  12834. export_symbols_cmds_CXX=$ltdll_cmds
  12835. ;;
  12836. cygwin* | mingw* | cegcc*)
  12837. case $cc_basename in
  12838. cl*)
  12839. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12840. ;;
  12841. *)
  12842. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12843. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12844. ;;
  12845. esac
  12846. ;;
  12847. linux* | k*bsd*-gnu | gnu*)
  12848. link_all_deplibs_CXX=no
  12849. ;;
  12850. *)
  12851. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12852. ;;
  12853. esac
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12855. $as_echo "$ld_shlibs_CXX" >&6; }
  12856. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12857. with_gnu_ld_CXX=$with_gnu_ld
  12858. #
  12859. # Do we need to explicitly link libc?
  12860. #
  12861. case "x$archive_cmds_need_lc_CXX" in
  12862. x|xyes)
  12863. # Assume -lc should be added
  12864. archive_cmds_need_lc_CXX=yes
  12865. if test yes,yes = "$GCC,$enable_shared"; then
  12866. case $archive_cmds_CXX in
  12867. *'~'*)
  12868. # FIXME: we may have to deal with multi-command sequences.
  12869. ;;
  12870. '$CC '*)
  12871. # Test whether the compiler implicitly links with -lc since on some
  12872. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12873. # to ld, don't add -lc before -lgcc.
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12875. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12876. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12877. $as_echo_n "(cached) " >&6
  12878. else
  12879. $RM conftest*
  12880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12882. (eval $ac_compile) 2>&5
  12883. ac_status=$?
  12884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12885. test $ac_status = 0; } 2>conftest.err; then
  12886. soname=conftest
  12887. lib=conftest
  12888. libobjs=conftest.$ac_objext
  12889. deplibs=
  12890. wl=$lt_prog_compiler_wl_CXX
  12891. pic_flag=$lt_prog_compiler_pic_CXX
  12892. compiler_flags=-v
  12893. linker_flags=-v
  12894. verstring=
  12895. output_objdir=.
  12896. libname=conftest
  12897. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12898. allow_undefined_flag_CXX=
  12899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12900. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12901. ac_status=$?
  12902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12903. test $ac_status = 0; }
  12904. then
  12905. lt_cv_archive_cmds_need_lc_CXX=no
  12906. else
  12907. lt_cv_archive_cmds_need_lc_CXX=yes
  12908. fi
  12909. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12910. else
  12911. cat conftest.err 1>&5
  12912. fi
  12913. $RM conftest*
  12914. fi
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12916. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12917. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12918. ;;
  12919. esac
  12920. fi
  12921. ;;
  12922. esac
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12924. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12925. library_names_spec=
  12926. libname_spec='lib$name'
  12927. soname_spec=
  12928. shrext_cmds=.so
  12929. postinstall_cmds=
  12930. postuninstall_cmds=
  12931. finish_cmds=
  12932. finish_eval=
  12933. shlibpath_var=
  12934. shlibpath_overrides_runpath=unknown
  12935. version_type=none
  12936. dynamic_linker="$host_os ld.so"
  12937. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12938. need_lib_prefix=unknown
  12939. hardcode_into_libs=no
  12940. # when you set need_version to no, make sure it does not cause -set_version
  12941. # flags to be left without arguments
  12942. need_version=unknown
  12943. case $host_os in
  12944. aix3*)
  12945. version_type=linux # correct to gnu/linux during the next big refactor
  12946. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12947. shlibpath_var=LIBPATH
  12948. # AIX 3 has no versioning support, so we append a major version to the name.
  12949. soname_spec='$libname$release$shared_ext$major'
  12950. ;;
  12951. aix[4-9]*)
  12952. version_type=linux # correct to gnu/linux during the next big refactor
  12953. need_lib_prefix=no
  12954. need_version=no
  12955. hardcode_into_libs=yes
  12956. if test ia64 = "$host_cpu"; then
  12957. # AIX 5 supports IA64
  12958. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. else
  12961. # With GCC up to 2.95.x, collect2 would create an import file
  12962. # for dependence libraries. The import file would start with
  12963. # the line '#! .'. This would cause the generated library to
  12964. # depend on '.', always an invalid library. This was fixed in
  12965. # development snapshots of GCC prior to 3.0.
  12966. case $host_os in
  12967. aix4 | aix4.[01] | aix4.[01].*)
  12968. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12969. echo ' yes '
  12970. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12971. :
  12972. else
  12973. can_build_shared=no
  12974. fi
  12975. ;;
  12976. esac
  12977. # Using Import Files as archive members, it is possible to support
  12978. # filename-based versioning of shared library archives on AIX. While
  12979. # this would work for both with and without runtime linking, it will
  12980. # prevent static linking of such archives. So we do filename-based
  12981. # shared library versioning with .so extension only, which is used
  12982. # when both runtime linking and shared linking is enabled.
  12983. # Unfortunately, runtime linking may impact performance, so we do
  12984. # not want this to be the default eventually. Also, we use the
  12985. # versioned .so libs for executables only if there is the -brtl
  12986. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12987. # To allow for filename-based versioning support, we need to create
  12988. # libNAME.so.V as an archive file, containing:
  12989. # *) an Import File, referring to the versioned filename of the
  12990. # archive as well as the shared archive member, telling the
  12991. # bitwidth (32 or 64) of that shared object, and providing the
  12992. # list of exported symbols of that shared object, eventually
  12993. # decorated with the 'weak' keyword
  12994. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12995. # it being seen by the linker.
  12996. # At run time we better use the real file rather than another symlink,
  12997. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12998. case $with_aix_soname,$aix_use_runtimelinking in
  12999. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13000. # soname into executable. Probably we can add versioning support to
  13001. # collect2, so additional links can be useful in future.
  13002. aix,yes) # traditional libtool
  13003. dynamic_linker='AIX unversionable lib.so'
  13004. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13005. # instead of lib<name>.a to let people know that these are not
  13006. # typical AIX shared libraries.
  13007. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13008. ;;
  13009. aix,no) # traditional AIX only
  13010. dynamic_linker='AIX lib.a(lib.so.V)'
  13011. # We preserve .a as extension for shared libraries through AIX4.2
  13012. # and later when we are not doing run time linking.
  13013. library_names_spec='$libname$release.a $libname.a'
  13014. soname_spec='$libname$release$shared_ext$major'
  13015. ;;
  13016. svr4,*) # full svr4 only
  13017. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13018. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13019. # We do not specify a path in Import Files, so LIBPATH fires.
  13020. shlibpath_overrides_runpath=yes
  13021. ;;
  13022. *,yes) # both, prefer svr4
  13023. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13024. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13025. # unpreferred sharedlib libNAME.a needs extra handling
  13026. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13027. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13028. # We do not specify a path in Import Files, so LIBPATH fires.
  13029. shlibpath_overrides_runpath=yes
  13030. ;;
  13031. *,no) # both, prefer aix
  13032. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13033. library_names_spec='$libname$release.a $libname.a'
  13034. soname_spec='$libname$release$shared_ext$major'
  13035. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13036. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13037. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13038. ;;
  13039. esac
  13040. shlibpath_var=LIBPATH
  13041. fi
  13042. ;;
  13043. amigaos*)
  13044. case $host_cpu in
  13045. powerpc)
  13046. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13047. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13049. ;;
  13050. m68k)
  13051. library_names_spec='$libname.ixlibrary $libname.a'
  13052. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13053. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13054. ;;
  13055. esac
  13056. ;;
  13057. beos*)
  13058. library_names_spec='$libname$shared_ext'
  13059. dynamic_linker="$host_os ld.so"
  13060. shlibpath_var=LIBRARY_PATH
  13061. ;;
  13062. bsdi[45]*)
  13063. version_type=linux # correct to gnu/linux during the next big refactor
  13064. need_version=no
  13065. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13066. soname_spec='$libname$release$shared_ext$major'
  13067. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13068. shlibpath_var=LD_LIBRARY_PATH
  13069. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13070. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13071. # the default ld.so.conf also contains /usr/contrib/lib and
  13072. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13073. # libtool to hard-code these into programs
  13074. ;;
  13075. cygwin* | mingw* | pw32* | cegcc*)
  13076. version_type=windows
  13077. shrext_cmds=.dll
  13078. need_version=no
  13079. need_lib_prefix=no
  13080. case $GCC,$cc_basename in
  13081. yes,*)
  13082. # gcc
  13083. library_names_spec='$libname.dll.a'
  13084. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13085. postinstall_cmds='base_file=`basename \$file`~
  13086. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13087. dldir=$destdir/`dirname \$dlpath`~
  13088. test -d \$dldir || mkdir -p \$dldir~
  13089. $install_prog $dir/$dlname \$dldir/$dlname~
  13090. chmod a+x \$dldir/$dlname~
  13091. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13092. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13093. fi'
  13094. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13095. dlpath=$dir/\$dldll~
  13096. $RM \$dlpath'
  13097. shlibpath_overrides_runpath=yes
  13098. case $host_os in
  13099. cygwin*)
  13100. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13101. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13102. ;;
  13103. mingw* | cegcc*)
  13104. # MinGW DLLs use traditional 'lib' prefix
  13105. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13106. ;;
  13107. pw32*)
  13108. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13109. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13110. ;;
  13111. esac
  13112. dynamic_linker='Win32 ld.exe'
  13113. ;;
  13114. *,cl*)
  13115. # Native MSVC
  13116. libname_spec='$name'
  13117. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13118. library_names_spec='$libname.dll.lib'
  13119. case $build_os in
  13120. mingw*)
  13121. sys_lib_search_path_spec=
  13122. lt_save_ifs=$IFS
  13123. IFS=';'
  13124. for lt_path in $LIB
  13125. do
  13126. IFS=$lt_save_ifs
  13127. # Let DOS variable expansion print the short 8.3 style file name.
  13128. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13129. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13130. done
  13131. IFS=$lt_save_ifs
  13132. # Convert to MSYS style.
  13133. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13134. ;;
  13135. cygwin*)
  13136. # Convert to unix form, then to dos form, then back to unix form
  13137. # but this time dos style (no spaces!) so that the unix form looks
  13138. # like /cygdrive/c/PROGRA~1:/cygdr...
  13139. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13140. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13141. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13142. ;;
  13143. *)
  13144. sys_lib_search_path_spec=$LIB
  13145. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13146. # It is most probably a Windows format PATH.
  13147. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13148. else
  13149. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13150. fi
  13151. # FIXME: find the short name or the path components, as spaces are
  13152. # common. (e.g. "Program Files" -> "PROGRA~1")
  13153. ;;
  13154. esac
  13155. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13156. postinstall_cmds='base_file=`basename \$file`~
  13157. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13158. dldir=$destdir/`dirname \$dlpath`~
  13159. test -d \$dldir || mkdir -p \$dldir~
  13160. $install_prog $dir/$dlname \$dldir/$dlname'
  13161. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13162. dlpath=$dir/\$dldll~
  13163. $RM \$dlpath'
  13164. shlibpath_overrides_runpath=yes
  13165. dynamic_linker='Win32 link.exe'
  13166. ;;
  13167. *)
  13168. # Assume MSVC wrapper
  13169. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13170. dynamic_linker='Win32 ld.exe'
  13171. ;;
  13172. esac
  13173. # FIXME: first we should search . and the directory the executable is in
  13174. shlibpath_var=PATH
  13175. ;;
  13176. darwin* | rhapsody*)
  13177. dynamic_linker="$host_os dyld"
  13178. version_type=darwin
  13179. need_lib_prefix=no
  13180. need_version=no
  13181. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13182. soname_spec='$libname$release$major$shared_ext'
  13183. shlibpath_overrides_runpath=yes
  13184. shlibpath_var=DYLD_LIBRARY_PATH
  13185. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13186. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13187. ;;
  13188. dgux*)
  13189. version_type=linux # correct to gnu/linux during the next big refactor
  13190. need_lib_prefix=no
  13191. need_version=no
  13192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13193. soname_spec='$libname$release$shared_ext$major'
  13194. shlibpath_var=LD_LIBRARY_PATH
  13195. ;;
  13196. freebsd* | dragonfly*)
  13197. # DragonFly does not have aout. When/if they implement a new
  13198. # versioning mechanism, adjust this.
  13199. if test -x /usr/bin/objformat; then
  13200. objformat=`/usr/bin/objformat`
  13201. else
  13202. case $host_os in
  13203. freebsd[23].*) objformat=aout ;;
  13204. *) objformat=elf ;;
  13205. esac
  13206. fi
  13207. version_type=freebsd-$objformat
  13208. case $version_type in
  13209. freebsd-elf*)
  13210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13211. soname_spec='$libname$release$shared_ext$major'
  13212. need_version=no
  13213. need_lib_prefix=no
  13214. ;;
  13215. freebsd-*)
  13216. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13217. need_version=yes
  13218. ;;
  13219. esac
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. case $host_os in
  13222. freebsd2.*)
  13223. shlibpath_overrides_runpath=yes
  13224. ;;
  13225. freebsd3.[01]* | freebsdelf3.[01]*)
  13226. shlibpath_overrides_runpath=yes
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13230. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13231. shlibpath_overrides_runpath=no
  13232. hardcode_into_libs=yes
  13233. ;;
  13234. *) # from 4.6 on, and DragonFly
  13235. shlibpath_overrides_runpath=yes
  13236. hardcode_into_libs=yes
  13237. ;;
  13238. esac
  13239. ;;
  13240. haiku*)
  13241. version_type=linux # correct to gnu/linux during the next big refactor
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. dynamic_linker="$host_os runtime_loader"
  13245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13246. soname_spec='$libname$release$shared_ext$major'
  13247. shlibpath_var=LIBRARY_PATH
  13248. shlibpath_overrides_runpath=no
  13249. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13250. hardcode_into_libs=yes
  13251. ;;
  13252. hpux9* | hpux10* | hpux11*)
  13253. # Give a soname corresponding to the major version so that dld.sl refuses to
  13254. # link against other versions.
  13255. version_type=sunos
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. case $host_cpu in
  13259. ia64*)
  13260. shrext_cmds='.so'
  13261. hardcode_into_libs=yes
  13262. dynamic_linker="$host_os dld.so"
  13263. shlibpath_var=LD_LIBRARY_PATH
  13264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13266. soname_spec='$libname$release$shared_ext$major'
  13267. if test 32 = "$HPUX_IA64_MODE"; then
  13268. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13269. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13270. else
  13271. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13272. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13273. fi
  13274. ;;
  13275. hppa*64*)
  13276. shrext_cmds='.sl'
  13277. hardcode_into_libs=yes
  13278. dynamic_linker="$host_os dld.sl"
  13279. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13280. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13281. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13282. soname_spec='$libname$release$shared_ext$major'
  13283. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13284. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13285. ;;
  13286. *)
  13287. shrext_cmds='.sl'
  13288. dynamic_linker="$host_os dld.sl"
  13289. shlibpath_var=SHLIB_PATH
  13290. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13292. soname_spec='$libname$release$shared_ext$major'
  13293. ;;
  13294. esac
  13295. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13296. postinstall_cmds='chmod 555 $lib'
  13297. # or fails outright, so override atomically:
  13298. install_override_mode=555
  13299. ;;
  13300. interix[3-9]*)
  13301. version_type=linux # correct to gnu/linux during the next big refactor
  13302. need_lib_prefix=no
  13303. need_version=no
  13304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13305. soname_spec='$libname$release$shared_ext$major'
  13306. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13307. shlibpath_var=LD_LIBRARY_PATH
  13308. shlibpath_overrides_runpath=no
  13309. hardcode_into_libs=yes
  13310. ;;
  13311. irix5* | irix6* | nonstopux*)
  13312. case $host_os in
  13313. nonstopux*) version_type=nonstopux ;;
  13314. *)
  13315. if test yes = "$lt_cv_prog_gnu_ld"; then
  13316. version_type=linux # correct to gnu/linux during the next big refactor
  13317. else
  13318. version_type=irix
  13319. fi ;;
  13320. esac
  13321. need_lib_prefix=no
  13322. need_version=no
  13323. soname_spec='$libname$release$shared_ext$major'
  13324. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13325. case $host_os in
  13326. irix5* | nonstopux*)
  13327. libsuff= shlibsuff=
  13328. ;;
  13329. *)
  13330. case $LD in # libtool.m4 will add one of these switches to LD
  13331. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13332. libsuff= shlibsuff= libmagic=32-bit;;
  13333. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13334. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13335. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13336. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13337. *) libsuff= shlibsuff= libmagic=never-match;;
  13338. esac
  13339. ;;
  13340. esac
  13341. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13342. shlibpath_overrides_runpath=no
  13343. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13344. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13345. hardcode_into_libs=yes
  13346. ;;
  13347. # No shared lib support for Linux oldld, aout, or coff.
  13348. linux*oldld* | linux*aout* | linux*coff*)
  13349. dynamic_linker=no
  13350. ;;
  13351. linux*android*)
  13352. version_type=none # Android doesn't support versioned libraries.
  13353. need_lib_prefix=no
  13354. need_version=no
  13355. library_names_spec='$libname$release$shared_ext'
  13356. soname_spec='$libname$release$shared_ext'
  13357. finish_cmds=
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=yes
  13360. # This implies no fast_install, which is unacceptable.
  13361. # Some rework will be needed to allow for fast_install
  13362. # before this can be enabled.
  13363. hardcode_into_libs=yes
  13364. dynamic_linker='Android linker'
  13365. # Don't embed -rpath directories since the linker doesn't support them.
  13366. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13367. ;;
  13368. # This must be glibc/ELF.
  13369. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13370. version_type=linux # correct to gnu/linux during the next big refactor
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13374. soname_spec='$libname$release$shared_ext$major'
  13375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13376. shlibpath_var=LD_LIBRARY_PATH
  13377. shlibpath_overrides_runpath=no
  13378. # Some binutils ld are patched to set DT_RUNPATH
  13379. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13380. $as_echo_n "(cached) " >&6
  13381. else
  13382. lt_cv_shlibpath_overrides_runpath=no
  13383. save_LDFLAGS=$LDFLAGS
  13384. save_libdir=$libdir
  13385. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13386. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. int
  13390. main ()
  13391. {
  13392. ;
  13393. return 0;
  13394. }
  13395. _ACEOF
  13396. if ac_fn_cxx_try_link "$LINENO"; then :
  13397. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13398. lt_cv_shlibpath_overrides_runpath=yes
  13399. fi
  13400. fi
  13401. rm -f core conftest.err conftest.$ac_objext \
  13402. conftest$ac_exeext conftest.$ac_ext
  13403. LDFLAGS=$save_LDFLAGS
  13404. libdir=$save_libdir
  13405. fi
  13406. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13407. # This implies no fast_install, which is unacceptable.
  13408. # Some rework will be needed to allow for fast_install
  13409. # before this can be enabled.
  13410. hardcode_into_libs=yes
  13411. # Ideally, we could use ldconfig to report *all* directores which are
  13412. # searched for libraries, however this is still not possible. Aside from not
  13413. # being certain /sbin/ldconfig is available, command
  13414. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13415. # even though it is searched at run-time. Try to do the best guess by
  13416. # appending ld.so.conf contents (and includes) to the search path.
  13417. if test -f /etc/ld.so.conf; then
  13418. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13419. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13420. fi
  13421. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13422. # powerpc, because MkLinux only supported shared libraries with the
  13423. # GNU dynamic linker. Since this was broken with cross compilers,
  13424. # most powerpc-linux boxes support dynamic linking these days and
  13425. # people can always --disable-shared, the test was removed, and we
  13426. # assume the GNU/Linux dynamic linker is in use.
  13427. dynamic_linker='GNU/Linux ld.so'
  13428. ;;
  13429. netbsdelf*-gnu)
  13430. version_type=linux
  13431. need_lib_prefix=no
  13432. need_version=no
  13433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. shlibpath_var=LD_LIBRARY_PATH
  13436. shlibpath_overrides_runpath=no
  13437. hardcode_into_libs=yes
  13438. dynamic_linker='NetBSD ld.elf_so'
  13439. ;;
  13440. netbsd*)
  13441. version_type=sunos
  13442. need_lib_prefix=no
  13443. need_version=no
  13444. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13445. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13446. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13447. dynamic_linker='NetBSD (a.out) ld.so'
  13448. else
  13449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13450. soname_spec='$libname$release$shared_ext$major'
  13451. dynamic_linker='NetBSD ld.elf_so'
  13452. fi
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. shlibpath_overrides_runpath=yes
  13455. hardcode_into_libs=yes
  13456. ;;
  13457. newsos6)
  13458. version_type=linux # correct to gnu/linux during the next big refactor
  13459. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13460. shlibpath_var=LD_LIBRARY_PATH
  13461. shlibpath_overrides_runpath=yes
  13462. ;;
  13463. *nto* | *qnx*)
  13464. version_type=qnx
  13465. need_lib_prefix=no
  13466. need_version=no
  13467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13468. soname_spec='$libname$release$shared_ext$major'
  13469. shlibpath_var=LD_LIBRARY_PATH
  13470. shlibpath_overrides_runpath=no
  13471. hardcode_into_libs=yes
  13472. dynamic_linker='ldqnx.so'
  13473. ;;
  13474. openbsd* | bitrig*)
  13475. version_type=sunos
  13476. sys_lib_dlsearch_path_spec=/usr/lib
  13477. need_lib_prefix=no
  13478. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13479. need_version=no
  13480. else
  13481. need_version=yes
  13482. fi
  13483. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13484. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. shlibpath_overrides_runpath=yes
  13487. ;;
  13488. os2*)
  13489. libname_spec='$name'
  13490. version_type=windows
  13491. shrext_cmds=.dll
  13492. need_version=no
  13493. need_lib_prefix=no
  13494. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13495. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13496. v=$($ECHO $release$versuffix | tr -d .-);
  13497. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13498. $ECHO $n$v`$shared_ext'
  13499. library_names_spec='${libname}_dll.$libext'
  13500. dynamic_linker='OS/2 ld.exe'
  13501. shlibpath_var=BEGINLIBPATH
  13502. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13503. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13504. postinstall_cmds='base_file=`basename \$file`~
  13505. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13506. dldir=$destdir/`dirname \$dlpath`~
  13507. test -d \$dldir || mkdir -p \$dldir~
  13508. $install_prog $dir/$dlname \$dldir/$dlname~
  13509. chmod a+x \$dldir/$dlname~
  13510. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13511. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13512. fi'
  13513. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13514. dlpath=$dir/\$dldll~
  13515. $RM \$dlpath'
  13516. ;;
  13517. osf3* | osf4* | osf5*)
  13518. version_type=osf
  13519. need_lib_prefix=no
  13520. need_version=no
  13521. soname_spec='$libname$release$shared_ext$major'
  13522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13523. shlibpath_var=LD_LIBRARY_PATH
  13524. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13525. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13526. ;;
  13527. rdos*)
  13528. dynamic_linker=no
  13529. ;;
  13530. solaris*)
  13531. version_type=linux # correct to gnu/linux during the next big refactor
  13532. need_lib_prefix=no
  13533. need_version=no
  13534. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13535. soname_spec='$libname$release$shared_ext$major'
  13536. shlibpath_var=LD_LIBRARY_PATH
  13537. shlibpath_overrides_runpath=yes
  13538. hardcode_into_libs=yes
  13539. # ldd complains unless libraries are executable
  13540. postinstall_cmds='chmod +x $lib'
  13541. ;;
  13542. sunos4*)
  13543. version_type=sunos
  13544. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13545. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13546. shlibpath_var=LD_LIBRARY_PATH
  13547. shlibpath_overrides_runpath=yes
  13548. if test yes = "$with_gnu_ld"; then
  13549. need_lib_prefix=no
  13550. fi
  13551. need_version=yes
  13552. ;;
  13553. sysv4 | sysv4.3*)
  13554. version_type=linux # correct to gnu/linux during the next big refactor
  13555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13556. soname_spec='$libname$release$shared_ext$major'
  13557. shlibpath_var=LD_LIBRARY_PATH
  13558. case $host_vendor in
  13559. sni)
  13560. shlibpath_overrides_runpath=no
  13561. need_lib_prefix=no
  13562. runpath_var=LD_RUN_PATH
  13563. ;;
  13564. siemens)
  13565. need_lib_prefix=no
  13566. ;;
  13567. motorola)
  13568. need_lib_prefix=no
  13569. need_version=no
  13570. shlibpath_overrides_runpath=no
  13571. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13572. ;;
  13573. esac
  13574. ;;
  13575. sysv4*MP*)
  13576. if test -d /usr/nec; then
  13577. version_type=linux # correct to gnu/linux during the next big refactor
  13578. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13579. soname_spec='$libname$shared_ext.$major'
  13580. shlibpath_var=LD_LIBRARY_PATH
  13581. fi
  13582. ;;
  13583. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13584. version_type=sco
  13585. need_lib_prefix=no
  13586. need_version=no
  13587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13588. soname_spec='$libname$release$shared_ext$major'
  13589. shlibpath_var=LD_LIBRARY_PATH
  13590. shlibpath_overrides_runpath=yes
  13591. hardcode_into_libs=yes
  13592. if test yes = "$with_gnu_ld"; then
  13593. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13594. else
  13595. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13596. case $host_os in
  13597. sco3.2v5*)
  13598. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13599. ;;
  13600. esac
  13601. fi
  13602. sys_lib_dlsearch_path_spec='/usr/lib'
  13603. ;;
  13604. tpf*)
  13605. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13606. version_type=linux # correct to gnu/linux during the next big refactor
  13607. need_lib_prefix=no
  13608. need_version=no
  13609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13610. shlibpath_var=LD_LIBRARY_PATH
  13611. shlibpath_overrides_runpath=no
  13612. hardcode_into_libs=yes
  13613. ;;
  13614. uts4*)
  13615. version_type=linux # correct to gnu/linux during the next big refactor
  13616. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13617. soname_spec='$libname$release$shared_ext$major'
  13618. shlibpath_var=LD_LIBRARY_PATH
  13619. ;;
  13620. *)
  13621. dynamic_linker=no
  13622. ;;
  13623. esac
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13625. $as_echo "$dynamic_linker" >&6; }
  13626. test no = "$dynamic_linker" && can_build_shared=no
  13627. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13628. if test yes = "$GCC"; then
  13629. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13630. fi
  13631. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13632. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13633. fi
  13634. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13635. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13636. fi
  13637. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13638. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13639. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13640. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13641. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13642. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13644. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13645. hardcode_action_CXX=
  13646. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13647. test -n "$runpath_var_CXX" ||
  13648. test yes = "$hardcode_automatic_CXX"; then
  13649. # We can hardcode non-existent directories.
  13650. if test no != "$hardcode_direct_CXX" &&
  13651. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13652. # have to relink, otherwise we might link with an installed library
  13653. # when we should be linking with a yet-to-be-installed one
  13654. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  13655. test no != "$hardcode_minus_L_CXX"; then
  13656. # Linking always hardcodes the temporary library directory.
  13657. hardcode_action_CXX=relink
  13658. else
  13659. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13660. hardcode_action_CXX=immediate
  13661. fi
  13662. else
  13663. # We cannot hardcode anything, or else we can only hardcode existing
  13664. # directories.
  13665. hardcode_action_CXX=unsupported
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13668. $as_echo "$hardcode_action_CXX" >&6; }
  13669. if test relink = "$hardcode_action_CXX" ||
  13670. test yes = "$inherit_rpath_CXX"; then
  13671. # Fast installation is not supported
  13672. enable_fast_install=no
  13673. elif test yes = "$shlibpath_overrides_runpath" ||
  13674. test no = "$enable_shared"; then
  13675. # Fast installation is not necessary
  13676. enable_fast_install=needless
  13677. fi
  13678. fi # test -n "$compiler"
  13679. CC=$lt_save_CC
  13680. CFLAGS=$lt_save_CFLAGS
  13681. LDCXX=$LD
  13682. LD=$lt_save_LD
  13683. GCC=$lt_save_GCC
  13684. with_gnu_ld=$lt_save_with_gnu_ld
  13685. lt_cv_path_LDCXX=$lt_cv_path_LD
  13686. lt_cv_path_LD=$lt_save_path_LD
  13687. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13688. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13689. fi # test yes != "$_lt_caught_CXX_error"
  13690. ac_ext=cpp
  13691. ac_cpp='$CXXCPP $CPPFLAGS'
  13692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13695. ac_config_commands="$ac_config_commands libtool"
  13696. # Only expand once:
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13698. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13699. set x ${MAKE-make}
  13700. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13701. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13702. $as_echo_n "(cached) " >&6
  13703. else
  13704. cat >conftest.make <<\_ACEOF
  13705. SHELL = /bin/sh
  13706. all:
  13707. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13708. _ACEOF
  13709. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13710. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13711. *@@@%%%=?*=@@@%%%*)
  13712. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13713. *)
  13714. eval ac_cv_prog_make_${ac_make}_set=no;;
  13715. esac
  13716. rm -f conftest.make
  13717. fi
  13718. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13720. $as_echo "yes" >&6; }
  13721. SET_MAKE=
  13722. else
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13724. $as_echo "no" >&6; }
  13725. SET_MAKE="MAKE=${MAKE-make}"
  13726. fi
  13727. # Extract the first word of "mkdir", so it can be a program name with args.
  13728. set dummy mkdir; ac_word=$2
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13730. $as_echo_n "checking for $ac_word... " >&6; }
  13731. if ${ac_cv_path_MKDIR+:} false; then :
  13732. $as_echo_n "(cached) " >&6
  13733. else
  13734. case $MKDIR in
  13735. [\\/]* | ?:[\\/]*)
  13736. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  13737. ;;
  13738. *)
  13739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13740. for as_dir in $PATH
  13741. do
  13742. IFS=$as_save_IFS
  13743. test -z "$as_dir" && as_dir=.
  13744. for ac_exec_ext in '' $ac_executable_extensions; do
  13745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13746. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  13747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13748. break 2
  13749. fi
  13750. done
  13751. done
  13752. IFS=$as_save_IFS
  13753. ;;
  13754. esac
  13755. fi
  13756. MKDIR=$ac_cv_path_MKDIR
  13757. if test -n "$MKDIR"; then
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
  13759. $as_echo "$MKDIR" >&6; }
  13760. else
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13762. $as_echo "no" >&6; }
  13763. fi
  13764. # Documentation.
  13765. # Check whether --enable-documentation was given.
  13766. if test "${enable_documentation+set}" = set; then :
  13767. enableval=$enable_documentation;
  13768. else
  13769. enable_documentation=auto
  13770. fi
  13771. if test -n "$ac_tool_prefix"; then
  13772. # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
  13773. set dummy ${ac_tool_prefix}doxygen; ac_word=$2
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13775. $as_echo_n "checking for $ac_word... " >&6; }
  13776. if ${ac_cv_path_DOXYGEN+:} false; then :
  13777. $as_echo_n "(cached) " >&6
  13778. else
  13779. case $DOXYGEN in
  13780. [\\/]* | ?:[\\/]*)
  13781. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  13782. ;;
  13783. *)
  13784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13785. for as_dir in $PATH
  13786. do
  13787. IFS=$as_save_IFS
  13788. test -z "$as_dir" && as_dir=.
  13789. for ac_exec_ext in '' $ac_executable_extensions; do
  13790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13791. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  13792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13793. break 2
  13794. fi
  13795. done
  13796. done
  13797. IFS=$as_save_IFS
  13798. ;;
  13799. esac
  13800. fi
  13801. DOXYGEN=$ac_cv_path_DOXYGEN
  13802. if test -n "$DOXYGEN"; then
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  13804. $as_echo "$DOXYGEN" >&6; }
  13805. else
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13807. $as_echo "no" >&6; }
  13808. fi
  13809. fi
  13810. if test -z "$ac_cv_path_DOXYGEN"; then
  13811. ac_pt_DOXYGEN=$DOXYGEN
  13812. # Extract the first word of "doxygen", so it can be a program name with args.
  13813. set dummy doxygen; ac_word=$2
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13815. $as_echo_n "checking for $ac_word... " >&6; }
  13816. if ${ac_cv_path_ac_pt_DOXYGEN+:} false; then :
  13817. $as_echo_n "(cached) " >&6
  13818. else
  13819. case $ac_pt_DOXYGEN in
  13820. [\\/]* | ?:[\\/]*)
  13821. ac_cv_path_ac_pt_DOXYGEN="$ac_pt_DOXYGEN" # Let the user override the test with a path.
  13822. ;;
  13823. *)
  13824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13825. for as_dir in $PATH
  13826. do
  13827. IFS=$as_save_IFS
  13828. test -z "$as_dir" && as_dir=.
  13829. for ac_exec_ext in '' $ac_executable_extensions; do
  13830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13831. ac_cv_path_ac_pt_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  13832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13833. break 2
  13834. fi
  13835. done
  13836. done
  13837. IFS=$as_save_IFS
  13838. ;;
  13839. esac
  13840. fi
  13841. ac_pt_DOXYGEN=$ac_cv_path_ac_pt_DOXYGEN
  13842. if test -n "$ac_pt_DOXYGEN"; then
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DOXYGEN" >&5
  13844. $as_echo "$ac_pt_DOXYGEN" >&6; }
  13845. else
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13847. $as_echo "no" >&6; }
  13848. fi
  13849. if test "x$ac_pt_DOXYGEN" = x; then
  13850. DOXYGEN="nodoxygen"
  13851. else
  13852. case $cross_compiling:$ac_tool_warned in
  13853. yes:)
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13856. ac_tool_warned=yes ;;
  13857. esac
  13858. DOXYGEN=$ac_pt_DOXYGEN
  13859. fi
  13860. else
  13861. DOXYGEN="$ac_cv_path_DOXYGEN"
  13862. fi
  13863. if test -n "$ac_tool_prefix"; then
  13864. # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
  13865. set dummy ${ac_tool_prefix}dot; ac_word=$2
  13866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13867. $as_echo_n "checking for $ac_word... " >&6; }
  13868. if ${ac_cv_prog_HAVE_DOT+:} false; then :
  13869. $as_echo_n "(cached) " >&6
  13870. else
  13871. if test -n "$HAVE_DOT"; then
  13872. ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
  13873. else
  13874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13875. for as_dir in NO
  13876. do
  13877. IFS=$as_save_IFS
  13878. test -z "$as_dir" && as_dir=.
  13879. for ac_exec_ext in '' $ac_executable_extensions; do
  13880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13881. ac_cv_prog_HAVE_DOT="${ac_tool_prefix}dot"
  13882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13883. break 2
  13884. fi
  13885. done
  13886. done
  13887. IFS=$as_save_IFS
  13888. fi
  13889. fi
  13890. HAVE_DOT=$ac_cv_prog_HAVE_DOT
  13891. if test -n "$HAVE_DOT"; then
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
  13893. $as_echo "$HAVE_DOT" >&6; }
  13894. else
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13896. $as_echo "no" >&6; }
  13897. fi
  13898. fi
  13899. if test -z "$ac_cv_prog_HAVE_DOT"; then
  13900. ac_ct_HAVE_DOT=$HAVE_DOT
  13901. # Extract the first word of "dot", so it can be a program name with args.
  13902. set dummy dot; ac_word=$2
  13903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13904. $as_echo_n "checking for $ac_word... " >&6; }
  13905. if ${ac_cv_prog_ac_ct_HAVE_DOT+:} false; then :
  13906. $as_echo_n "(cached) " >&6
  13907. else
  13908. if test -n "$ac_ct_HAVE_DOT"; then
  13909. ac_cv_prog_ac_ct_HAVE_DOT="$ac_ct_HAVE_DOT" # Let the user override the test.
  13910. else
  13911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13912. for as_dir in NO
  13913. do
  13914. IFS=$as_save_IFS
  13915. test -z "$as_dir" && as_dir=.
  13916. for ac_exec_ext in '' $ac_executable_extensions; do
  13917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13918. ac_cv_prog_ac_ct_HAVE_DOT="dot"
  13919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13920. break 2
  13921. fi
  13922. done
  13923. done
  13924. IFS=$as_save_IFS
  13925. fi
  13926. fi
  13927. ac_ct_HAVE_DOT=$ac_cv_prog_ac_ct_HAVE_DOT
  13928. if test -n "$ac_ct_HAVE_DOT"; then
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVE_DOT" >&5
  13930. $as_echo "$ac_ct_HAVE_DOT" >&6; }
  13931. else
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13933. $as_echo "no" >&6; }
  13934. fi
  13935. if test "x$ac_ct_HAVE_DOT" = x; then
  13936. HAVE_DOT="YES"
  13937. else
  13938. case $cross_compiling:$ac_tool_warned in
  13939. yes:)
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13942. ac_tool_warned=yes ;;
  13943. esac
  13944. HAVE_DOT=$ac_ct_HAVE_DOT
  13945. fi
  13946. else
  13947. HAVE_DOT="$ac_cv_prog_HAVE_DOT"
  13948. fi
  13949. if test "$enable_documentation" = "yes" && test "$DOXYGEN" = "nodoxygen"; then :
  13950. as_fn_error $? "could not find tools necessary to build documentation" "$LINENO" 5
  13951. fi
  13952. if test "$enable_documentation" != "no" -a "$DOXYGEN" != "nodoxygen"; then
  13953. BUILD_REFERENCE_TRUE=
  13954. BUILD_REFERENCE_FALSE='#'
  13955. else
  13956. BUILD_REFERENCE_TRUE='#'
  13957. BUILD_REFERENCE_FALSE=
  13958. fi
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13960. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13961. # Check whether --enable-maintainer-mode was given.
  13962. if test "${enable_maintainer_mode+set}" = set; then :
  13963. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13964. else
  13965. USE_MAINTAINER_MODE=no
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13968. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13969. if test $USE_MAINTAINER_MODE = yes; then
  13970. MAINTAINER_MODE_TRUE=
  13971. MAINTAINER_MODE_FALSE='#'
  13972. else
  13973. MAINTAINER_MODE_TRUE='#'
  13974. MAINTAINER_MODE_FALSE=
  13975. fi
  13976. MAINT=$MAINTAINER_MODE_TRUE
  13977. # See if we want stricter compiler warnings.
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer mode" >&5
  13979. $as_echo_n "checking maintainer mode... " >&6; }
  13980. # Check whether --enable-maintainer-mode was given.
  13981. if test "${enable_maintainer_mode+set}" = set; then :
  13982. enableval=$enable_maintainer_mode;
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_maintainer_mode}" >&5
  13985. $as_echo "${enable_maintainer_mode}" >&6; }
  13986. # See if we want runtime debug checking.
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking audit" >&5
  13988. $as_echo_n "checking audit... " >&6; }
  13989. # Check whether --enable-audit was given.
  13990. if test "${enable_audit+set}" = set; then :
  13991. enableval=$enable_audit;
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_audit}" >&5
  13994. $as_echo "${enable_audit}" >&6; }
  13995. # See if we want "suggestions," such as "this class could be final."
  13996. # (The suggestions are often useful, but can also easily be wrong.)
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking suggest" >&5
  13998. $as_echo_n "checking suggest... " >&6; }
  13999. # Check whether --enable-suggest was given.
  14000. if test "${enable_suggest+set}" = set; then :
  14001. enableval=$enable_suggest;
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_suggest}" >&5
  14004. $as_echo "${enable_suggest}" >&6; }
  14005. # Check whether --enable-shared was given.
  14006. if test "${enable_shared+set}" = set; then :
  14007. enableval=$enable_shared;
  14008. fi
  14009. if test "${shared}" = "yes" ; then :
  14010. CPPFLAGS="$CPPFLAGS -DPQXX_SHARED"
  14011. fi
  14012. # Add options to compiler command line, if compiler accepts them.
  14013. add_compiler_opts_if_ok() {
  14014. for option in $*
  14015. do
  14016. ACO_SAVE_CXXFLAGS="$CXXFLAGS"
  14017. CXXFLAGS="$CXXFLAGS $option"
  14018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $option" >&5
  14019. $as_echo_n "checking whether $CXX accepts $option... " >&6; }
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. int
  14023. main ()
  14024. {
  14025. ;
  14026. return 0;
  14027. }
  14028. _ACEOF
  14029. if ac_fn_cxx_try_compile "$LINENO"; then :
  14030. has_option=yes
  14031. else
  14032. has_option=no
  14033. fi
  14034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  14036. $as_echo "$has_option" >&6; }
  14037. if test "$has_option" = "no" ; then :
  14038. CXXFLAGS="$ACO_SAVE_CXXFLAGS"
  14039. fi
  14040. done
  14041. }
  14042. # Add options to compiler command line, unconditionally.
  14043. add_compiler_opts() {
  14044. CXXFLAGS="$CXXFLAGS $*"
  14045. }
  14046. # It's tempting to use Autoconf Archive's AX_CXX_COMPILE_STDCXX_17 for this,
  14047. # but it's 2022 and the C++20 equivalent isn't quite ready for use.
  14048. # Seems simpler and more reliable for the user to arrange for the desired
  14049. # language versions by setting the appropriate option for their compiler.
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient C++ language/library level" >&5
  14051. $as_echo_n "checking for sufficient C++ language/library level... " >&6; }
  14052. sufficient_cxx=yes
  14053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14054. /* end confdefs.h. */
  14055. #if __cplusplus < 201611L
  14056. #error "Need C++17 or better."
  14057. #endif
  14058. _ACEOF
  14059. if ac_fn_cxx_try_compile "$LINENO"; then :
  14060. sufficient_cxx=yes
  14061. else
  14062. sufficient_cxx=no
  14063. fi
  14064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sufficient_cxx" >&5
  14066. $as_echo "$sufficient_cxx" >&6; }
  14067. if test "$sufficient_cxx" != "yes"
  14068. then
  14069. as_fn_error $? "This libpqxx version needs at least C++17." "$LINENO" 5
  14070. fi
  14071. # Let's try to get the compiler to be helpful.
  14072. #
  14073. # (Omit options -Weffc++ and -Wabi because they currently yield too many
  14074. # warnings in gcc's standard headers; omit -Wunreachable-code because it isn't
  14075. # always right)
  14076. if test "$GCC" = "yes"
  14077. then
  14078. # In maintainer mode, enable all the warning options we can.
  14079. if test "$enable_maintainer_mode" = "yes"
  14080. then
  14081. # "Eternal" (FLW) g++ options. These have been around for
  14082. # ages, and both g++ and clang++ support them. Don't bother
  14083. # checking for support; just add them to the compiler options.
  14084. add_compiler_opts \
  14085. -fstrict-enums \
  14086. -Werror \
  14087. -Wall \
  14088. -pedantic \
  14089. -Wcast-align \
  14090. -Wcast-qual \
  14091. -Wconversion \
  14092. -Wctor-dtor-privacy \
  14093. -Wendif-labels \
  14094. -Wextra \
  14095. -Wfloat-equal \
  14096. -Wformat=2 \
  14097. -Wformat-security \
  14098. -Wmissing-include-dirs \
  14099. -Wno-div-by-zero \
  14100. -Wnon-virtual-dtor \
  14101. -Wold-style-cast \
  14102. -Woverlength-strings \
  14103. -Woverloaded-virtual \
  14104. -Wpointer-arith \
  14105. -Wredundant-decls \
  14106. -Wshadow \
  14107. -Wsign-promo \
  14108. -Wundef \
  14109. -Wunused \
  14110. -Wwrite-strings
  14111. # "Iffy" g++ options. Some reasonably current g++-like
  14112. # compilers may not support these.
  14113. add_compiler_opts_if_ok \
  14114. -fnothrow-opt \
  14115. -Wattribute-alias=2 \
  14116. -Wextra-semi \
  14117. -Wlogical-op \
  14118. -Wmismatched-tags \
  14119. -Wnoexcept \
  14120. -Wredundant-tags \
  14121. -Wrestrict \
  14122. -Wstringop-overflow \
  14123. -Wzero-as-null-pointer-constant \
  14124. -Warray-bounds=2 \
  14125. -Wduplicated-branches \
  14126. -Wduplicated-cond \
  14127. -Wsuggest-attribute=noreturn \
  14128. -Wsuggest-override \
  14129. -Wtrampolines
  14130. fi
  14131. # In "audit," enable all runtime checks we can.
  14132. if test "$enable_audit" = "yes"
  14133. then
  14134. add_compiler_opts_if_ok \
  14135. -D_FORTIFY_SOURCE=2 \
  14136. -fsanitize=address \
  14137. -fsanitize-address-use-after-scope \
  14138. -fsanitize=alignment \
  14139. -fsanitize=bool \
  14140. -fsanitize=bounds \
  14141. -fsanitize=bounds-strict \
  14142. -fsanitize=builtin \
  14143. -fsanitize=enum \
  14144. -fsanitize=float-cast-overflow \
  14145. -fsanitize=float-divide-by-zero \
  14146. -fsanitize=integer-divide-by-zero \
  14147. -fsanitize=leak \
  14148. -fsanitize=nonnull-attribute \
  14149. -fsanitize=null \
  14150. -fsanitize=object-size \
  14151. -fsanitize=pointer-compare \
  14152. -fsanitize=pointer-overflow \
  14153. -fsanitize=pointer-subtract \
  14154. -fsanitize=return \
  14155. -fsanitize=returns-nonnull-attribute \
  14156. -fsanitize=shift \
  14157. -fsanitize=shift-base \
  14158. -fsanitize=shift-exponent \
  14159. -fsanitize=signed-integer-overflow \
  14160. -fsanitize=undefined \
  14161. -fsanitize=unreachable \
  14162. -fsanitize=vla-bound \
  14163. -fsanitize=vptr \
  14164. -fstack-protector-all
  14165. fi
  14166. # In "suggest" mode, enable a bunch of code suggestions.
  14167. if test "$enable_suggest" = "yes"
  14168. then
  14169. add_compiler_opts_if_ok \
  14170. -Wsuggest-attribute=cold \
  14171. -Wsuggest-attribute=const \
  14172. -Wsuggest-attribute=malloc \
  14173. -Wsuggest-attribute=pure \
  14174. -Wsuggest-final-types \
  14175. -Wsuggest-final-methods
  14176. fi
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking g++ visibility attribute" >&5
  14178. $as_echo_n "checking g++ visibility attribute... " >&6; }
  14179. gcc_visibility=yes
  14180. SAVE_CXXFLAGS="$CXXFLAGS"
  14181. CXXFLAGS="$CXXFLAGS -Werror"
  14182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14183. /* end confdefs.h. */
  14184. // Test for gcc-style "visibility" attribute.
  14185. struct __attribute__((visibility("hidden"))) D
  14186. {
  14187. D() {}
  14188. int f() { return 0; }
  14189. };
  14190. int main()
  14191. {
  14192. D d;
  14193. return d.f();
  14194. }
  14195. _ACEOF
  14196. if ac_fn_cxx_try_compile "$LINENO"; then :
  14197. $as_echo "#define PQXX_HAVE_GCC_VISIBILITY 1" >>confdefs.h
  14198. else
  14199. gcc_visibility=no
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_visibility" >&5
  14203. $as_echo "$gcc_visibility" >&6; }
  14204. CXXFLAGS="$SAVE_CXXFLAGS"
  14205. if test "$gcc_visibility" = "yes"
  14206. then
  14207. # Make internal definitions accessible only to the library itself.
  14208. # Only definitions marked PQXX_LIBEXPORT will be accessible.
  14209. add_compiler_opts -fvisibility=hidden
  14210. add_compiler_opts -fvisibility-inlines-hidden
  14211. fi
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking g++ pure attribute" >&5
  14213. $as_echo_n "checking g++ pure attribute... " >&6; }
  14214. gcc_pure=yes
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. // Test for gcc-style "pure" attribute.
  14218. int __attribute__((pure)) f()
  14219. {
  14220. return 0;
  14221. }
  14222. int main()
  14223. {
  14224. return f();
  14225. }
  14226. _ACEOF
  14227. if ac_fn_cxx_try_compile "$LINENO"; then :
  14228. $as_echo "#define PQXX_HAVE_GCC_PURE 1" >>confdefs.h
  14229. else
  14230. gcc_pure=no
  14231. fi
  14232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_pure" >&5
  14234. $as_echo "$gcc_pure" >&6; }
  14235. fi # End of gcc-specific part.
  14236. # Check for __cxa_demangle.
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __cxa_demangle" >&5
  14238. $as_echo_n "checking __cxa_demangle... " >&6; }
  14239. cxa_demangle=yes
  14240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14241. /* end confdefs.h. */
  14242. // Test for cross-vendor C++ ABI's __cxa_demangle function.
  14243. #include <cstdlib>
  14244. #include <cstring>
  14245. #include <stdexcept>
  14246. #include <typeinfo>
  14247. #include <cxxabi.h>
  14248. int main()
  14249. {
  14250. int status = 0;
  14251. char *name =
  14252. abi::__cxa_demangle(typeid(10).name(), nullptr, nullptr, &status);
  14253. if (status != 0)
  14254. throw std::runtime_error("Demangle failed!");
  14255. int result = std::strcmp(name, "int");
  14256. std::free(name);
  14257. return result;
  14258. }
  14259. _ACEOF
  14260. if ac_fn_cxx_try_compile "$LINENO"; then :
  14261. $as_echo "#define PQXX_HAVE_CXA_DEMANGLE 1" >>confdefs.h
  14262. else
  14263. cxa_demangle=no
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxa_demangle" >&5
  14267. $as_echo "$cxa_demangle" >&6; }
  14268. # Check for sufficient Concepts support, introduced with C++20.
  14269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking concepts" >&5
  14270. $as_echo_n "checking concepts... " >&6; }
  14271. concepts=yes
  14272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14273. /* end confdefs.h. */
  14274. // Test for concepts support. Not just the language feature; also headers.
  14275. #include <iostream>
  14276. #include <ranges>
  14277. #include <vector>
  14278. template<typename T>
  14279. concept Foo = std::ranges::input_range<T>;
  14280. template<Foo F> auto foo(F const &r)
  14281. {
  14282. return std::distance(std::begin(r), std::end(r));
  14283. }
  14284. int main()
  14285. {
  14286. std::vector<int> const v{1, 2, 3};
  14287. std::cout << foo(v) << '\n';
  14288. }
  14289. _ACEOF
  14290. if ac_fn_cxx_try_compile "$LINENO"; then :
  14291. $as_echo "#define PQXX_HAVE_CONCEPTS 1" >>confdefs.h
  14292. else
  14293. concepts=no
  14294. fi
  14295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $concepts" >&5
  14297. $as_echo "$concepts" >&6; }
  14298. # Check for C++20 std::span.
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking std::span" >&5
  14300. $as_echo_n "checking std::span... " >&6; }
  14301. span=yes
  14302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14303. /* end confdefs.h. */
  14304. // Test for std::span.
  14305. #include <span>
  14306. int main(int argc, char **argv)
  14307. {
  14308. std::span<char *> args{argv, static_cast<std::size_t>(argc)};
  14309. return static_cast<int>(std::size(args) - 1u);
  14310. }
  14311. _ACEOF
  14312. if ac_fn_cxx_try_compile "$LINENO"; then :
  14313. $as_echo "#define PQXX_HAVE_SPAN 1" >>confdefs.h
  14314. else
  14315. span=no
  14316. fi
  14317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $span" >&5
  14319. $as_echo "$span" >&6; }
  14320. # Check for multidimensional subscript operator support. Proposed for C++23.
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multidimensional subscript operator support" >&5
  14322. $as_echo_n "checking for multidimensional subscript operator support... " >&6; }
  14323. multidim_subscript=yes
  14324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14325. /* end confdefs.h. */
  14326. // Test for multidimensional subscript operator support.
  14327. // Proposed for C++23: P2128R6.
  14328. struct table
  14329. {
  14330. int width = 100;
  14331. int operator[](int x, int y) const { return x + width * y; }
  14332. };
  14333. int main()
  14334. {
  14335. return table{}[0, 0];
  14336. }
  14337. _ACEOF
  14338. if ac_fn_cxx_try_compile "$LINENO"; then :
  14339. $as_echo "#define PQXX_HAVE_MULTIDIMENSIONAL_SUBSCRIPT 1" >>confdefs.h
  14340. else
  14341. multidim_subscript=no
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $multidim_subscript" >&5
  14345. $as_echo "$multidim_subscript" >&6; }
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r()" >&5
  14347. $as_echo_n "checking for strerror_r()... " >&6; }
  14348. strerror_r=yes
  14349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14350. /* end confdefs.h. */
  14351. // Check for strerror_r.
  14352. // It can be either the POSIX version (which returns int) or the GNU version
  14353. // (which returns char *).
  14354. #include <cstring>
  14355. #include <type_traits>
  14356. int main()
  14357. {
  14358. char buffer[200];
  14359. auto res{strerror_r(1, buffer, 200)};
  14360. // Sidestep type differences. We don't really care what the value is.
  14361. return not not res;
  14362. }
  14363. _ACEOF
  14364. if ac_fn_cxx_try_link "$LINENO"; then :
  14365. $as_echo "#define PQXX_HAVE_STRERROR_R 1" >>confdefs.h
  14366. else
  14367. strerror_r=no
  14368. fi
  14369. rm -f core conftest.err conftest.$ac_objext \
  14370. conftest$ac_exeext conftest.$ac_ext
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $strerror_r" >&5
  14372. $as_echo "$strerror_r" >&6; }
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_s()" >&5
  14374. $as_echo_n "checking for strerror_s()... " >&6; }
  14375. strerror_s=yes
  14376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14377. /* end confdefs.h. */
  14378. // Test for strerror_s, as defined in Windows and C11.
  14379. // Presumably this'll be part of the C++ standard some day.
  14380. #include <cstring>
  14381. int main()
  14382. {
  14383. using namespace std;
  14384. char buf[200];
  14385. return strerror_s(buf, 200, 1);
  14386. }
  14387. _ACEOF
  14388. if ac_fn_cxx_try_link "$LINENO"; then :
  14389. $as_echo "#define PQXX_HAVE_STRERROR_S 1" >>confdefs.h
  14390. else
  14391. strerror_s=no
  14392. fi
  14393. rm -f core conftest.err conftest.$ac_objext \
  14394. conftest$ac_exeext conftest.$ac_ext
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $strerror_s" >&5
  14396. $as_echo "$strerror_s" >&6; }
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::chrono::year_month_day etc" >&5
  14398. $as_echo_n "checking for std::chrono::year_month_day etc... " >&6; }
  14399. year_month_day=yes
  14400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14401. /* end confdefs.h. */
  14402. // Test for std::chrono::year_month_day etc.
  14403. #include <chrono>
  14404. int main()
  14405. {
  14406. return int(std::chrono::year{1});
  14407. }
  14408. _ACEOF
  14409. if ac_fn_cxx_try_link "$LINENO"; then :
  14410. $as_echo "#define PQXX_HAVE_YEAR_MONTH_DAY 1" >>confdefs.h
  14411. else
  14412. year_month_day=no
  14413. fi
  14414. rm -f core conftest.err conftest.$ac_objext \
  14415. conftest$ac_exeext conftest.$ac_ext
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $year_month_day" >&5
  14417. $as_echo "$year_month_day" >&6; }
  14418. # Check for [[likely]] and [[unlikely]] attributes.
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking attributes \"likely\" and \"unlikely\"." >&5
  14420. $as_echo_n "checking attributes \"likely\" and \"unlikely\".... " >&6; }
  14421. likely=yes
  14422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14423. /* end confdefs.h. */
  14424. // Test for C++20 [[likely]] and [[unlikely]] attributes.
  14425. int main(int argc, char **)
  14426. {
  14427. #if __cplusplus < 202002L
  14428. deliberately_fail(because, older, C++, standard);
  14429. #endif
  14430. int x = 0;
  14431. if (argc == 1) [[likely]]
  14432. x = 0;
  14433. else
  14434. x = 1;
  14435. return x;
  14436. }
  14437. _ACEOF
  14438. if ac_fn_cxx_try_compile "$LINENO"; then :
  14439. $as_echo "#define PQXX_HAVE_LIKELY 1" >>confdefs.h
  14440. else
  14441. likely=no
  14442. fi
  14443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $likely" >&5
  14445. $as_echo "$likely" >&6; }
  14446. # It's mid-2019, and gcc's charconv supports integers but not yet floats.
  14447. # So for now, we test for int and float conversion... separately.
  14448. #
  14449. # It's worse for older clang versions, which compile the integer conversions
  14450. # but then fail at link time because of a missing symbol "__muloti4" with the
  14451. # "long long" version. I couldn't resolve that symbol by adding -lm either.
  14452. # So don't just compile these tests; link them as well.
  14453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++17 charconv integer conversion" >&5
  14454. $as_echo_n "checking for C++17 charconv integer conversion... " >&6; }
  14455. have_charconv_int=yes
  14456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14457. /* end confdefs.h. */
  14458. // Test for std::to_string/std::from_string for integral types.
  14459. #include <charconv>
  14460. #include <iterator>
  14461. int main()
  14462. {
  14463. char z[100];
  14464. auto rt = std::to_chars(std::begin(z), std::end(z), 9ULL);
  14465. if (rt.ec != std::errc{})
  14466. return 1;
  14467. unsigned long long n;
  14468. auto rf = std::from_chars(std::cbegin(z), std::cend(z), n);
  14469. if (rf.ec != std::errc{})
  14470. return 2;
  14471. return (n == 9ULL) ? 0 : 1;
  14472. }
  14473. _ACEOF
  14474. if ac_fn_cxx_try_link "$LINENO"; then :
  14475. $as_echo "#define PQXX_HAVE_CHARCONV_INT 1" >>confdefs.h
  14476. else
  14477. have_charconv_int=no
  14478. fi
  14479. rm -f core conftest.err conftest.$ac_objext \
  14480. conftest$ac_exeext conftest.$ac_ext
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_charconv_int" >&5
  14482. $as_echo "$have_charconv_int" >&6; }
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++17 charconv floating-point conversion" >&5
  14484. $as_echo_n "checking for C++17 charconv floating-point conversion... " >&6; }
  14485. have_charconv_float=yes
  14486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14487. /* end confdefs.h. */
  14488. // Test for std::to_string/std::from_string for floating-point types.
  14489. #include <charconv>
  14490. #include <iterator>
  14491. int main()
  14492. {
  14493. char z[100];
  14494. auto rt = std::to_chars(std::begin(z), std::end(z), 3.14159L);
  14495. if (rt.ec != std::errc{})
  14496. return 1;
  14497. long double n;
  14498. auto rf = std::from_chars(std::cbegin(z), std::cend(z), n);
  14499. if (rf.ec != std::errc{})
  14500. return 2;
  14501. return (n > 3 and n < 4) ? 0 : 1;
  14502. }
  14503. _ACEOF
  14504. if ac_fn_cxx_try_link "$LINENO"; then :
  14505. $as_echo "#define PQXX_HAVE_CHARCONV_FLOAT 1" >>confdefs.h
  14506. else
  14507. have_charconv_float=no
  14508. fi
  14509. rm -f core conftest.err conftest.$ac_objext \
  14510. conftest$ac_exeext conftest.$ac_ext
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_charconv_float" >&5
  14512. $as_echo "$have_charconv_float" >&6; }
  14513. # As per #262, clang with libcxxrt does not support thread_local on non-POD
  14514. # objects. Luckily we can live without those, it's just less efficient.
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full thread_local support" >&5
  14516. $as_echo_n "checking for full thread_local support... " >&6; }
  14517. have_thread_local=yes
  14518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14519. /* end confdefs.h. */
  14520. // Test for std::to_string/std::from_string for floating-point types.
  14521. #include <iostream>
  14522. #include <sstream>
  14523. int main(int argc, char **)
  14524. {
  14525. #if defined(__MINGW32__) && defined(__GNUC__)
  14526. # if __GNUC__ < 11 || ((__GNUC__ == 11) && (__GNU_MINOR__ == 0))
  14527. # error "On MinGW before gcc 11.1, thread_local breaks at run time."
  14528. # endif
  14529. #endif
  14530. thread_local std::stringstream s;
  14531. s << argc;
  14532. std::cout << s.str();
  14533. }
  14534. _ACEOF
  14535. if ac_fn_cxx_try_link "$LINENO"; then :
  14536. $as_echo "#define PQXX_HAVE_THREAD_LOCAL 1" >>confdefs.h
  14537. else
  14538. have_thread_local=no
  14539. fi
  14540. rm -f core conftest.err conftest.$ac_objext \
  14541. conftest$ac_exeext conftest.$ac_ext
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_thread_local" >&5
  14543. $as_echo "$have_thread_local" >&6; }
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::this_thread::sleep_for" >&5
  14545. $as_echo_n "checking for std::this_thread::sleep_for... " >&6; }
  14546. have_sleep_for=yes
  14547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14548. /* end confdefs.h. */
  14549. // Test for std::this_thread::sleep_for().
  14550. /* For some reason MinGW's <thread> header seems to be broken.
  14551. *
  14552. * But it gets worse. It looks as if we can include <thread> without problems
  14553. * in this configuration test. Why does it break when MinGW users try to build
  14554. * the library, but succeed when we try it here?
  14555. *
  14556. * To try and get close to the situation in the library code itself, we try
  14557. * including some standard headers that we don't strictly need here.
  14558. */
  14559. #if __has_include(<ciso646>)
  14560. # include <ciso646>
  14561. #endif
  14562. #include <cerrno>
  14563. #include <cmath>
  14564. #include <cstdlib>
  14565. #include <cstring>
  14566. #include <new>
  14567. #include <chrono>
  14568. #include <thread>
  14569. int main()
  14570. {
  14571. std::this_thread::sleep_for(std::chrono::microseconds{10u});
  14572. }
  14573. _ACEOF
  14574. if ac_fn_cxx_try_link "$LINENO"; then :
  14575. $as_echo "#define PQXX_HAVE_SLEEP_FOR 1" >>confdefs.h
  14576. else
  14577. have_sleep_for=no
  14578. fi
  14579. rm -f core conftest.err conftest.$ac_objext \
  14580. conftest$ac_exeext conftest.$ac_ext
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sleep_for" >&5
  14582. $as_echo "$have_sleep_for" >&6; }
  14583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::cmp_greater, std::cmp_less_equal, etc" >&5
  14584. $as_echo_n "checking for std::cmp_greater, std::cmp_less_equal, etc... " >&6; }
  14585. have_cmp=yes
  14586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14587. /* end confdefs.h. */
  14588. // Test for C++20 std::cmp_greater etc. support.
  14589. #include <utility>
  14590. int main()
  14591. {
  14592. return std::cmp_greater(-1, 2u) && std::cmp_less_equal(3, 0);
  14593. }
  14594. _ACEOF
  14595. if ac_fn_cxx_try_compile "$LINENO"; then :
  14596. $as_echo "#define PQXX_HAVE_CMP 1" >>confdefs.h
  14597. else
  14598. have_cmp=no
  14599. fi
  14600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cmp" >&5
  14602. $as_echo "$have_cmp" >&6; }
  14603. # Doing my own check for poll(). There's one built into autoconf-archive, but
  14604. # it produces warnings in C++ (about unnecessarily using "struct", and using 0
  14605. # as a null pointer constant). In maintainer mode, those warnings turn into
  14606. # errors.
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll()" >&5
  14608. $as_echo_n "checking for poll()... " >&6; }
  14609. ax_cv_have_poll=yes
  14610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14611. /* end confdefs.h. */
  14612. // Test for poll().
  14613. #include <poll.h>
  14614. int main()
  14615. {
  14616. return poll(nullptr, 0, 0);
  14617. }
  14618. _ACEOF
  14619. if ac_fn_cxx_try_link "$LINENO"; then :
  14620. $as_echo "#define PQXX_HAVE_POLL 1" >>confdefs.h
  14621. else
  14622. ax_cv_have_poll=no
  14623. fi
  14624. rm -f core conftest.err conftest.$ac_objext \
  14625. conftest$ac_exeext conftest.$ac_ext
  14626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_poll" >&5
  14627. $as_echo "$ax_cv_have_poll" >&6; }
  14628. if test "$ax_cv_have_poll" != "yes"
  14629. then
  14630. # No poll(); we'll fall back to select().
  14631. # Some systems keep select() in a separate library which is not linked by
  14632. # default. See if we need one of those.
  14633. socklibok=no
  14634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing select" >&5
  14635. $as_echo_n "checking for library containing select... " >&6; }
  14636. if ${ac_cv_search_select+:} false; then :
  14637. $as_echo_n "(cached) " >&6
  14638. else
  14639. ac_func_search_save_LIBS=$LIBS
  14640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14641. /* end confdefs.h. */
  14642. /* Override any GCC internal prototype to avoid an error.
  14643. Use char because int might match the return type of a GCC
  14644. builtin and then its argument prototype would still apply. */
  14645. #ifdef __cplusplus
  14646. extern "C"
  14647. #endif
  14648. char select ();
  14649. int
  14650. main ()
  14651. {
  14652. return select ();
  14653. ;
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. for ac_lib in '' socket nsl ws2_32 wsock32 winsock; do
  14658. if test -z "$ac_lib"; then
  14659. ac_res="none required"
  14660. else
  14661. ac_res=-l$ac_lib
  14662. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14663. fi
  14664. if ac_fn_cxx_try_link "$LINENO"; then :
  14665. ac_cv_search_select=$ac_res
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext \
  14668. conftest$ac_exeext
  14669. if ${ac_cv_search_select+:} false; then :
  14670. break
  14671. fi
  14672. done
  14673. if ${ac_cv_search_select+:} false; then :
  14674. else
  14675. ac_cv_search_select=no
  14676. fi
  14677. rm conftest.$ac_ext
  14678. LIBS=$ac_func_search_save_LIBS
  14679. fi
  14680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_select" >&5
  14681. $as_echo "$ac_cv_search_select" >&6; }
  14682. ac_res=$ac_cv_search_select
  14683. if test "$ac_res" != no; then :
  14684. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14685. socklibok=yes
  14686. fi
  14687. # Microsoft proprietary libraries do not work with code that is generated with
  14688. # autoconf's SEARCH_LIBS macro, so we need to check manually and just use the
  14689. # first socket library available.
  14690. # We only do this if select() is not available by other means, to avoid picking
  14691. # up an unnecessary Windows compatibility library on a non-Windows system.
  14692. for l in ws2_32 wsock32 winsock
  14693. do
  14694. if test "${socklibok}" != "yes"
  14695. then
  14696. as_ac_Lib=`$as_echo "ac_cv_lib_$l''_main" | $as_tr_sh`
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$l" >&5
  14698. $as_echo_n "checking for main in -l$l... " >&6; }
  14699. if eval \${$as_ac_Lib+:} false; then :
  14700. $as_echo_n "(cached) " >&6
  14701. else
  14702. ac_check_lib_save_LIBS=$LIBS
  14703. LIBS="-l$l $LIBS"
  14704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14705. /* end confdefs.h. */
  14706. int
  14707. main ()
  14708. {
  14709. return main ();
  14710. ;
  14711. return 0;
  14712. }
  14713. _ACEOF
  14714. if ac_fn_cxx_try_link "$LINENO"; then :
  14715. eval "$as_ac_Lib=yes"
  14716. else
  14717. eval "$as_ac_Lib=no"
  14718. fi
  14719. rm -f core conftest.err conftest.$ac_objext \
  14720. conftest$ac_exeext conftest.$ac_ext
  14721. LIBS=$ac_check_lib_save_LIBS
  14722. fi
  14723. eval ac_res=\$$as_ac_Lib
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14725. $as_echo "$ac_res" >&6; }
  14726. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14727. LIBS="$LIBS -l$l";socklibok=yes
  14728. fi
  14729. fi
  14730. done
  14731. if test "${socklibok}" != "yes"
  14732. then
  14733. as_fn_error $? "
  14734. Could not figure out how to link a simple sockets-based program. Please read
  14735. the config.log file for more clues as to why this failed.
  14736. " "$LINENO" 5
  14737. fi
  14738. fi # No poll()
  14739. # Find PostgreSQL includes and libraries
  14740. # Extract the first word of "pkg-config", so it can be a program name with args.
  14741. set dummy pkg-config; ac_word=$2
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14743. $as_echo_n "checking for $ac_word... " >&6; }
  14744. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14745. $as_echo_n "(cached) " >&6
  14746. else
  14747. case $PKG_CONFIG in
  14748. [\\/]* | ?:[\\/]*)
  14749. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14750. ;;
  14751. *)
  14752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14753. for as_dir in $PATH
  14754. do
  14755. IFS=$as_save_IFS
  14756. test -z "$as_dir" && as_dir=.
  14757. for ac_exec_ext in '' $ac_executable_extensions; do
  14758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14759. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14761. break 2
  14762. fi
  14763. done
  14764. done
  14765. IFS=$as_save_IFS
  14766. ;;
  14767. esac
  14768. fi
  14769. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14770. if test -n "$PKG_CONFIG"; then
  14771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14772. $as_echo "$PKG_CONFIG" >&6; }
  14773. else
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14775. $as_echo "no" >&6; }
  14776. fi
  14777. for ac_prog in pg_config
  14778. do
  14779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14780. set dummy $ac_prog; ac_word=$2
  14781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14782. $as_echo_n "checking for $ac_word... " >&6; }
  14783. if ${ac_cv_path_PG_CONFIG+:} false; then :
  14784. $as_echo_n "(cached) " >&6
  14785. else
  14786. case $PG_CONFIG in
  14787. [\\/]* | ?:[\\/]*)
  14788. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  14789. ;;
  14790. *)
  14791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14792. for as_dir in $PATH
  14793. do
  14794. IFS=$as_save_IFS
  14795. test -z "$as_dir" && as_dir=.
  14796. for ac_exec_ext in '' $ac_executable_extensions; do
  14797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14798. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14800. break 2
  14801. fi
  14802. done
  14803. done
  14804. IFS=$as_save_IFS
  14805. ;;
  14806. esac
  14807. fi
  14808. PG_CONFIG=$ac_cv_path_PG_CONFIG
  14809. if test -n "$PG_CONFIG"; then
  14810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  14811. $as_echo "$PG_CONFIG" >&6; }
  14812. else
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14814. $as_echo "no" >&6; }
  14815. fi
  14816. test -n "$PG_CONFIG" && break
  14817. done
  14818. # Check whether --with-postgres-include was given.
  14819. if test "${with_postgres_include+set}" = set; then :
  14820. withval=$with_postgres_include; if test "x$with_postgres_include" = "xyes"; then :
  14821. with_postgres_include=""
  14822. fi
  14823. fi
  14824. if test -n "$with_postgres_include"
  14825. then
  14826. POSTGRES_INCLUDE="-I$with_postgres_include"
  14827. else
  14828. if test -x "$PKG_CONFIG" || test -x "$PG_CONFIG"
  14829. then
  14830. # We should prefer pkg-config over pg_config, but there seems to be a
  14831. # problem in pkg-config 1.6.3. Until that's been resolved (#291), go
  14832. # with pg_config if we can.
  14833. if test -x "$PG_CONFIG"
  14834. then
  14835. # From pg_config we can either get the C compiler options used to
  14836. # compile postgres, which isn't quite what we want; or we can get
  14837. # the headers directory, without the full option. That's something
  14838. # we can work with. The compiler must support the "-I" option for
  14839. # that, but both scripts assume that anyway.
  14840. POSTGRES_INCLUDE="-I$($PG_CONFIG --includedir)"
  14841. else
  14842. # From pkg-config we can get the compiler options to extend the
  14843. # include path. We use that.
  14844. POSTGRES_INCLUDE=$($PKG_CONFIG libpq --cflags-only-I)
  14845. fi
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: finding PostgreSQL headers using $POSTGRES_INCLUDE" >&5
  14847. $as_echo "$as_me: finding PostgreSQL headers using $POSTGRES_INCLUDE" >&6;}
  14848. else
  14849. POSTGRES_INCLUDE=""
  14850. # We have nothing to tell us where the libpq headers are. That's fine
  14851. # if the compiler can find it, but if not, fail here.
  14852. ac_fn_cxx_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
  14853. if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
  14854. else
  14855. as_fn_error $? "
  14856. Can't find the main PostgreSQL client header, libpq-fe.h. Make sure that it
  14857. is installed, and either use the --with-postgres-include option or install
  14858. pkg-config.
  14859. " "$LINENO" 5
  14860. fi
  14861. fi
  14862. fi
  14863. # Add the compiler option so we can compile configure tests which rely on the
  14864. # libpq headers.
  14865. CPPFLAGS="$CPPFLAGS $POSTGRES_INCLUDE"
  14866. # Check whether --with-postgres-lib was given.
  14867. if test "${with_postgres_lib+set}" = set; then :
  14868. withval=$with_postgres_lib; if test "x$with_postgres_lib" = "xyes"; then :
  14869. with_postgres_lib=""
  14870. fi
  14871. fi
  14872. # If no --with-postgres-lib was given, and we have pkg-config, use that.
  14873. if test -z "$with_postgres_lib" -a -x "$PKG_CONFIG"; then :
  14874. with_postgres_lib=$($PKG_CONFIG libpq --libs-only-L | sed 's/^-L//')
  14875. fi
  14876. # pg_config is deprecated, but for some users it may still provide the only
  14877. # right answer. For instance, `pkg-config` may not know where `libpq` is
  14878. # installed.
  14879. if test -z "$with_postgres_lib" -a -x "$PG_CONFIG"; then :
  14880. with_postgres_lib=$($PG_CONFIG --libdir)
  14881. fi
  14882. if test -n "$with_postgres_lib"; then :
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL libraries at $with_postgres_lib" >&5
  14884. $as_echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
  14885. else
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL libraries in default location" >&5
  14887. $as_echo "$as_me: using PostgreSQL libraries in default location" >&6;}
  14888. fi
  14889. ac_fn_cxx_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
  14890. if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
  14891. else
  14892. as_fn_error $? "
  14893. Can't find the main PostgreSQL client header, libpq-fe.h. Are you sure the
  14894. libpq headers are installed correctly, and that we've got the right path?
  14895. " "$LINENO" 5
  14896. fi
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ability to compile source files using libpq" >&5
  14898. $as_echo_n "checking for ability to compile source files using libpq... " >&6; }
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. #include<libpq-fe.h>
  14902. int
  14903. main ()
  14904. {
  14905. PQexec(nullptr,"")
  14906. ;
  14907. return 0;
  14908. }
  14909. _ACEOF
  14910. if ac_fn_cxx_try_compile "$LINENO"; then :
  14911. else
  14912. as_fn_error $? "
  14913. Could not compile a call to a basic libpq function. There must be something
  14914. seriously wrong with the headers that \"pg_config --includedir\" or \"pkg-config
  14915. libpq --cflags\" pointed to; the contents of config.log may give you a clue
  14916. about the nature of the failure.
  14917. Source including the libpq header libpq-fe.h can be compiled, but a call to the
  14918. most basic libpq function PQexec() failed to compile successfully. This is the
  14919. litmus test for a working libpq.
  14920. " "$LINENO" 5
  14921. fi
  14922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14924. $as_echo "yes" >&6; }
  14925. if test "x${with_postgres_lib}" = "x"; then
  14926. with_postgres_libpath=""
  14927. else
  14928. with_postgres_libpath="-L${with_postgres_lib}"
  14929. fi
  14930. LDFLAGS="$LDFLAGS ${with_postgres_libpath}"
  14931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in -lpq" >&5
  14932. $as_echo_n "checking for PQexec in -lpq... " >&6; }
  14933. if ${ac_cv_lib_pq_PQexec+:} false; then :
  14934. $as_echo_n "(cached) " >&6
  14935. else
  14936. ac_check_lib_save_LIBS=$LIBS
  14937. LIBS="-lpq ${with_postgres_libpath} $LIBS"
  14938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14939. /* end confdefs.h. */
  14940. /* Override any GCC internal prototype to avoid an error.
  14941. Use char because int might match the return type of a GCC
  14942. builtin and then its argument prototype would still apply. */
  14943. #ifdef __cplusplus
  14944. extern "C"
  14945. #endif
  14946. char PQexec ();
  14947. int
  14948. main ()
  14949. {
  14950. return PQexec ();
  14951. ;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. if ac_fn_cxx_try_link "$LINENO"; then :
  14956. ac_cv_lib_pq_PQexec=yes
  14957. else
  14958. ac_cv_lib_pq_PQexec=no
  14959. fi
  14960. rm -f core conftest.err conftest.$ac_objext \
  14961. conftest$ac_exeext conftest.$ac_ext
  14962. LIBS=$ac_check_lib_save_LIBS
  14963. fi
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexec" >&5
  14965. $as_echo "$ac_cv_lib_pq_PQexec" >&6; }
  14966. if test "x$ac_cv_lib_pq_PQexec" = xyes; then :
  14967. cat >>confdefs.h <<_ACEOF
  14968. #define HAVE_LIBPQ 1
  14969. _ACEOF
  14970. LIBS="-lpq $LIBS"
  14971. else
  14972. as_fn_error $? "
  14973. Did not find the PQexec() function in libpq. This is the litmus test for a
  14974. working libpq installation.
  14975. A source file using the PQexec() function did compile without problems, and the
  14976. libpq library is available for linking, but for some reason a call to PQexec()
  14977. failed to link properly to the libpq library. This may be because the libpq
  14978. library file is damaged, or in some incorrect format, or if your libpq is much
  14979. more recent than libpqxx version $PQXX_ABI, perhaps libpq has undergone a
  14980. radical ABI change.
  14981. The last parts of config.log may give you a clue as to what really went wrong,
  14982. but be warned that this is no easy reading. Look for the last error message
  14983. occurring in the file.
  14984. " "$LINENO" 5
  14985. fi
  14986. # PQencryptPasswordConn was added in postgres 10.
  14987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQencryptPasswordConn" >&5
  14988. $as_echo_n "checking for PQencryptPasswordConn... " >&6; }
  14989. have_pqencryptpasswordconn=yes
  14990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14991. /* end confdefs.h. */
  14992. #include<libpq-fe.h>
  14993. int
  14994. main ()
  14995. {
  14996. extern PGconn *conn;
  14997. PQencryptPasswordConn(
  14998. conn, "pwd", "user", "scram-sha-256")
  14999. ;
  15000. return 0;
  15001. }
  15002. _ACEOF
  15003. if ac_fn_cxx_try_compile "$LINENO"; then :
  15004. $as_echo "#define PQXX_HAVE_PQENCRYPTPASSWORDCONN 1" >>confdefs.h
  15005. else
  15006. have_pqencryptpasswordconn=no
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pqencryptpasswordconn" >&5
  15010. $as_echo "$have_pqencryptpasswordconn" >&6; }
  15011. # "Pipeline mode" was introduced in libpq 14.
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq pipeline mode" >&5
  15013. $as_echo_n "checking for libpq pipeline mode... " >&6; }
  15014. have_pq_pipeline=yes
  15015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15016. /* end confdefs.h. */
  15017. #include<libpq-fe.h>
  15018. int
  15019. main ()
  15020. {
  15021. extern PGconn *conn;
  15022. PQenterPipelineMode(conn)
  15023. ;
  15024. return 0;
  15025. }
  15026. _ACEOF
  15027. if ac_fn_cxx_try_compile "$LINENO"; then :
  15028. $as_echo "#define PQXX_HAVE_PQ_PIPELINE 1" >>confdefs.h
  15029. else
  15030. have_pq_pipeline=no
  15031. fi
  15032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pq_pipeline" >&5
  15034. $as_echo "$have_pq_pipeline" >&6; }
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable std::filesystem::path" >&5
  15036. $as_echo_n "checking for usable std::filesystem::path... " >&6; }
  15037. have_path=yes
  15038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15039. /* end confdefs.h. */
  15040. // Check for working std::filesystem support.
  15041. #include <filesystem>
  15042. int main()
  15043. {
  15044. // Apparently some versions of MinGW lack this comparison operator.
  15045. return std::filesystem::path{} != std::filesystem::path{};
  15046. }
  15047. _ACEOF
  15048. if ac_fn_cxx_try_compile "$LINENO"; then :
  15049. $as_echo "#define PQXX_HAVE_PATH 1" >>confdefs.h
  15050. else
  15051. have_path=no
  15052. fi
  15053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_path" >&5
  15055. $as_echo "$have_path" >&6; }
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need a link option for <filesystem> support" >&5
  15057. $as_echo_n "checking whether we need a link option for <filesystem> support... " >&6; }
  15058. LIBS_SAVE="$LIBS"
  15059. found_fslib=no
  15060. for l in '' '-lstdc++fs' '-lc++fs'
  15061. do
  15062. if test "$found_fslib" != "yes"
  15063. then
  15064. LIBS="$LIBS $l"
  15065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15066. /* end confdefs.h. */
  15067. // Check whether we need to link to the stdc++fs library.
  15068. //
  15069. // We assume that the presence of the <filesystem> header means that we have
  15070. // support for the basics of std::filesystem. This check will succeed if
  15071. // either there is no <filesystem> header, or there is one and it works without
  15072. // any special options. If the link fails, we assume that -lstdc++fs will fix
  15073. // it for us.
  15074. #include <iostream>
  15075. #if __has_include(<filesystem>)
  15076. # include <filesystem>
  15077. #endif
  15078. int main()
  15079. {
  15080. #if __has_include(<filesystem>)
  15081. std::cout << std::filesystem::path{"foo.bar"}.c_str() << '\n';
  15082. #endif
  15083. }
  15084. _ACEOF
  15085. if ac_fn_cxx_try_link "$LINENO"; then :
  15086. found_fslib=yes
  15087. else
  15088. LIBS="$LIBS_SAVE"
  15089. fi
  15090. rm -f core conftest.err conftest.$ac_objext \
  15091. conftest$ac_exeext conftest.$ac_ext
  15092. if test "$found_fslib" = "yes"
  15093. then
  15094. result_msg="$l"
  15095. # (And keep our current value of $LIBS.)
  15096. fi
  15097. fi
  15098. done
  15099. if test "$found_fslib" != "yes"
  15100. then
  15101. as_fn_error $? "
  15102. There seems to be <filesystem> support, but I could not figure out now to make
  15103. it work. You'll have to add set your own build options for this.
  15104. " "$LINENO" 5
  15105. fi
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_msg" >&5
  15107. $as_echo "$result_msg" >&6; }
  15108. # Remove redundant occurrances of -lpq
  15109. LIBS=$(echo "$LIBS" | sed -e 's/-lpq * -lpq\>/-lpq/g')
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that type of libpq's Oid is as expected" >&5
  15111. $as_echo_n "checking that type of libpq's Oid is as expected... " >&6; }
  15112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15113. /* end confdefs.h. */
  15114. #include<libpq-fe.h>
  15115. #include"${srcdir}/include/pqxx/internal/libpq-forward.hxx"
  15116. extern void f(pqxx::oid&);
  15117. int
  15118. main ()
  15119. {
  15120. Oid o;f(o)
  15121. ;
  15122. return 0;
  15123. }
  15124. _ACEOF
  15125. if ac_fn_cxx_try_compile "$LINENO"; then :
  15126. else
  15127. as_fn_error $? "
  15128. The Oid typedef in libpq has changed. Please notify the libpqxx authors of the
  15129. change!
  15130. " "$LINENO" 5
  15131. fi
  15132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15134. $as_echo "yes" >&6; }
  15135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15136. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15137. set x ${MAKE-make}
  15138. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15139. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15140. $as_echo_n "(cached) " >&6
  15141. else
  15142. cat >conftest.make <<\_ACEOF
  15143. SHELL = /bin/sh
  15144. all:
  15145. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15146. _ACEOF
  15147. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15148. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15149. *@@@%%%=?*=@@@%%%*)
  15150. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15151. *)
  15152. eval ac_cv_prog_make_${ac_make}_set=no;;
  15153. esac
  15154. rm -f conftest.make
  15155. fi
  15156. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15158. $as_echo "yes" >&6; }
  15159. SET_MAKE=
  15160. else
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15162. $as_echo "no" >&6; }
  15163. SET_MAKE="MAKE=${MAKE-make}"
  15164. fi
  15165. ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile doc/Doxyfile src/Makefile test/Makefile tools/Makefile include/Makefile include/pqxx/Makefile libpqxx.pc"
  15166. ac_config_commands="$ac_config_commands configitems"
  15167. ac_config_files="$ac_config_files compile_flags"
  15168. cat >confcache <<\_ACEOF
  15169. # This file is a shell script that caches the results of configure
  15170. # tests run on this system so they can be shared between configure
  15171. # scripts and configure runs, see configure's option --config-cache.
  15172. # It is not useful on other systems. If it contains results you don't
  15173. # want to keep, you may remove or edit it.
  15174. #
  15175. # config.status only pays attention to the cache file if you give it
  15176. # the --recheck option to rerun configure.
  15177. #
  15178. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15179. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15180. # following values.
  15181. _ACEOF
  15182. # The following way of writing the cache mishandles newlines in values,
  15183. # but we know of no workaround that is simple, portable, and efficient.
  15184. # So, we kill variables containing newlines.
  15185. # Ultrix sh set writes to stderr and can't be redirected directly,
  15186. # and sets the high bit in the cache file unless we assign to the vars.
  15187. (
  15188. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15189. eval ac_val=\$$ac_var
  15190. case $ac_val in #(
  15191. *${as_nl}*)
  15192. case $ac_var in #(
  15193. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15194. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15195. esac
  15196. case $ac_var in #(
  15197. _ | IFS | as_nl) ;; #(
  15198. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15199. *) { eval $ac_var=; unset $ac_var;} ;;
  15200. esac ;;
  15201. esac
  15202. done
  15203. (set) 2>&1 |
  15204. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15205. *${as_nl}ac_space=\ *)
  15206. # `set' does not quote correctly, so add quotes: double-quote
  15207. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15208. sed -n \
  15209. "s/'/'\\\\''/g;
  15210. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15211. ;; #(
  15212. *)
  15213. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15214. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15215. ;;
  15216. esac |
  15217. sort
  15218. ) |
  15219. sed '
  15220. /^ac_cv_env_/b end
  15221. t clear
  15222. :clear
  15223. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15224. t end
  15225. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15226. :end' >>confcache
  15227. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15228. if test -w "$cache_file"; then
  15229. if test "x$cache_file" != "x/dev/null"; then
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15231. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15232. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15233. cat confcache >"$cache_file"
  15234. else
  15235. case $cache_file in #(
  15236. */* | ?:*)
  15237. mv -f confcache "$cache_file"$$ &&
  15238. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15239. *)
  15240. mv -f confcache "$cache_file" ;;
  15241. esac
  15242. fi
  15243. fi
  15244. else
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15246. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15247. fi
  15248. fi
  15249. rm -f confcache
  15250. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15251. # Let make expand exec_prefix.
  15252. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15253. DEFS=-DHAVE_CONFIG_H
  15254. ac_libobjs=
  15255. ac_ltlibobjs=
  15256. U=
  15257. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15258. # 1. Remove the extension, and $U if already installed.
  15259. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15260. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15261. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15262. # will be set to the directory where LIBOBJS objects are built.
  15263. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15264. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15265. done
  15266. LIBOBJS=$ac_libobjs
  15267. LTLIBOBJS=$ac_ltlibobjs
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15269. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15270. if test -n "$am_sleep_pid"; then
  15271. # Hide warnings about reused PIDs.
  15272. wait $am_sleep_pid 2>/dev/null
  15273. fi
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15275. $as_echo "done" >&6; }
  15276. if test -n "$EXEEXT"; then
  15277. am__EXEEXT_TRUE=
  15278. am__EXEEXT_FALSE='#'
  15279. else
  15280. am__EXEEXT_TRUE='#'
  15281. am__EXEEXT_FALSE=
  15282. fi
  15283. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15284. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15286. fi
  15287. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15288. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15290. fi
  15291. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15292. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15294. fi
  15295. if test -z "${BUILD_REFERENCE_TRUE}" && test -z "${BUILD_REFERENCE_FALSE}"; then
  15296. as_fn_error $? "conditional \"BUILD_REFERENCE\" was never defined.
  15297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15298. fi
  15299. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  15300. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  15301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15302. fi
  15303. : "${CONFIG_STATUS=./config.status}"
  15304. ac_write_fail=0
  15305. ac_clean_files_save=$ac_clean_files
  15306. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15308. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15309. as_write_fail=0
  15310. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15311. #! $SHELL
  15312. # Generated by $as_me.
  15313. # Run this file to recreate the current configuration.
  15314. # Compiler output produced by configure, useful for debugging
  15315. # configure, is in config.log if it exists.
  15316. debug=false
  15317. ac_cs_recheck=false
  15318. ac_cs_silent=false
  15319. SHELL=\${CONFIG_SHELL-$SHELL}
  15320. export SHELL
  15321. _ASEOF
  15322. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15323. ## -------------------- ##
  15324. ## M4sh Initialization. ##
  15325. ## -------------------- ##
  15326. # Be more Bourne compatible
  15327. DUALCASE=1; export DUALCASE # for MKS sh
  15328. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15329. emulate sh
  15330. NULLCMD=:
  15331. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15332. # is contrary to our usage. Disable this feature.
  15333. alias -g '${1+"$@"}'='"$@"'
  15334. setopt NO_GLOB_SUBST
  15335. else
  15336. case `(set -o) 2>/dev/null` in #(
  15337. *posix*) :
  15338. set -o posix ;; #(
  15339. *) :
  15340. ;;
  15341. esac
  15342. fi
  15343. as_nl='
  15344. '
  15345. export as_nl
  15346. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15347. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15348. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15349. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15350. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15351. # but without wasting forks for bash or zsh.
  15352. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15353. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15354. as_echo='print -r --'
  15355. as_echo_n='print -rn --'
  15356. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15357. as_echo='printf %s\n'
  15358. as_echo_n='printf %s'
  15359. else
  15360. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15361. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15362. as_echo_n='/usr/ucb/echo -n'
  15363. else
  15364. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15365. as_echo_n_body='eval
  15366. arg=$1;
  15367. case $arg in #(
  15368. *"$as_nl"*)
  15369. expr "X$arg" : "X\\(.*\\)$as_nl";
  15370. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15371. esac;
  15372. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15373. '
  15374. export as_echo_n_body
  15375. as_echo_n='sh -c $as_echo_n_body as_echo'
  15376. fi
  15377. export as_echo_body
  15378. as_echo='sh -c $as_echo_body as_echo'
  15379. fi
  15380. # The user is always right.
  15381. if test "${PATH_SEPARATOR+set}" != set; then
  15382. PATH_SEPARATOR=:
  15383. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15384. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15385. PATH_SEPARATOR=';'
  15386. }
  15387. fi
  15388. # IFS
  15389. # We need space, tab and new line, in precisely that order. Quoting is
  15390. # there to prevent editors from complaining about space-tab.
  15391. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15392. # splitting by setting IFS to empty value.)
  15393. IFS=" "" $as_nl"
  15394. # Find who we are. Look in the path if we contain no directory separator.
  15395. as_myself=
  15396. case $0 in #((
  15397. *[\\/]* ) as_myself=$0 ;;
  15398. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15399. for as_dir in $PATH
  15400. do
  15401. IFS=$as_save_IFS
  15402. test -z "$as_dir" && as_dir=.
  15403. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15404. done
  15405. IFS=$as_save_IFS
  15406. ;;
  15407. esac
  15408. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15409. # in which case we are not to be found in the path.
  15410. if test "x$as_myself" = x; then
  15411. as_myself=$0
  15412. fi
  15413. if test ! -f "$as_myself"; then
  15414. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15415. exit 1
  15416. fi
  15417. # Unset variables that we do not need and which cause bugs (e.g. in
  15418. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15419. # suppresses any "Segmentation fault" message there. '((' could
  15420. # trigger a bug in pdksh 5.2.14.
  15421. for as_var in BASH_ENV ENV MAIL MAILPATH
  15422. do eval test x\${$as_var+set} = xset \
  15423. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15424. done
  15425. PS1='$ '
  15426. PS2='> '
  15427. PS4='+ '
  15428. # NLS nuisances.
  15429. LC_ALL=C
  15430. export LC_ALL
  15431. LANGUAGE=C
  15432. export LANGUAGE
  15433. # CDPATH.
  15434. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15435. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15436. # ----------------------------------------
  15437. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15438. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15439. # script with STATUS, using 1 if that was 0.
  15440. as_fn_error ()
  15441. {
  15442. as_status=$1; test $as_status -eq 0 && as_status=1
  15443. if test "$4"; then
  15444. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15445. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15446. fi
  15447. $as_echo "$as_me: error: $2" >&2
  15448. as_fn_exit $as_status
  15449. } # as_fn_error
  15450. # as_fn_set_status STATUS
  15451. # -----------------------
  15452. # Set $? to STATUS, without forking.
  15453. as_fn_set_status ()
  15454. {
  15455. return $1
  15456. } # as_fn_set_status
  15457. # as_fn_exit STATUS
  15458. # -----------------
  15459. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15460. as_fn_exit ()
  15461. {
  15462. set +e
  15463. as_fn_set_status $1
  15464. exit $1
  15465. } # as_fn_exit
  15466. # as_fn_unset VAR
  15467. # ---------------
  15468. # Portably unset VAR.
  15469. as_fn_unset ()
  15470. {
  15471. { eval $1=; unset $1;}
  15472. }
  15473. as_unset=as_fn_unset
  15474. # as_fn_append VAR VALUE
  15475. # ----------------------
  15476. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15477. # advantage of any shell optimizations that allow amortized linear growth over
  15478. # repeated appends, instead of the typical quadratic growth present in naive
  15479. # implementations.
  15480. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15481. eval 'as_fn_append ()
  15482. {
  15483. eval $1+=\$2
  15484. }'
  15485. else
  15486. as_fn_append ()
  15487. {
  15488. eval $1=\$$1\$2
  15489. }
  15490. fi # as_fn_append
  15491. # as_fn_arith ARG...
  15492. # ------------------
  15493. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15494. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15495. # must be portable across $(()) and expr.
  15496. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15497. eval 'as_fn_arith ()
  15498. {
  15499. as_val=$(( $* ))
  15500. }'
  15501. else
  15502. as_fn_arith ()
  15503. {
  15504. as_val=`expr "$@" || test $? -eq 1`
  15505. }
  15506. fi # as_fn_arith
  15507. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15508. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15509. as_expr=expr
  15510. else
  15511. as_expr=false
  15512. fi
  15513. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15514. as_basename=basename
  15515. else
  15516. as_basename=false
  15517. fi
  15518. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15519. as_dirname=dirname
  15520. else
  15521. as_dirname=false
  15522. fi
  15523. as_me=`$as_basename -- "$0" ||
  15524. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15525. X"$0" : 'X\(//\)$' \| \
  15526. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15527. $as_echo X/"$0" |
  15528. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15529. s//\1/
  15530. q
  15531. }
  15532. /^X\/\(\/\/\)$/{
  15533. s//\1/
  15534. q
  15535. }
  15536. /^X\/\(\/\).*/{
  15537. s//\1/
  15538. q
  15539. }
  15540. s/.*/./; q'`
  15541. # Avoid depending upon Character Ranges.
  15542. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15543. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15544. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15545. as_cr_digits='0123456789'
  15546. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15547. ECHO_C= ECHO_N= ECHO_T=
  15548. case `echo -n x` in #(((((
  15549. -n*)
  15550. case `echo 'xy\c'` in
  15551. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15552. xy) ECHO_C='\c';;
  15553. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15554. ECHO_T=' ';;
  15555. esac;;
  15556. *)
  15557. ECHO_N='-n';;
  15558. esac
  15559. rm -f conf$$ conf$$.exe conf$$.file
  15560. if test -d conf$$.dir; then
  15561. rm -f conf$$.dir/conf$$.file
  15562. else
  15563. rm -f conf$$.dir
  15564. mkdir conf$$.dir 2>/dev/null
  15565. fi
  15566. if (echo >conf$$.file) 2>/dev/null; then
  15567. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15568. as_ln_s='ln -s'
  15569. # ... but there are two gotchas:
  15570. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15571. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15572. # In both cases, we have to default to `cp -pR'.
  15573. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15574. as_ln_s='cp -pR'
  15575. elif ln conf$$.file conf$$ 2>/dev/null; then
  15576. as_ln_s=ln
  15577. else
  15578. as_ln_s='cp -pR'
  15579. fi
  15580. else
  15581. as_ln_s='cp -pR'
  15582. fi
  15583. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15584. rmdir conf$$.dir 2>/dev/null
  15585. # as_fn_mkdir_p
  15586. # -------------
  15587. # Create "$as_dir" as a directory, including parents if necessary.
  15588. as_fn_mkdir_p ()
  15589. {
  15590. case $as_dir in #(
  15591. -*) as_dir=./$as_dir;;
  15592. esac
  15593. test -d "$as_dir" || eval $as_mkdir_p || {
  15594. as_dirs=
  15595. while :; do
  15596. case $as_dir in #(
  15597. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15598. *) as_qdir=$as_dir;;
  15599. esac
  15600. as_dirs="'$as_qdir' $as_dirs"
  15601. as_dir=`$as_dirname -- "$as_dir" ||
  15602. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15603. X"$as_dir" : 'X\(//\)[^/]' \| \
  15604. X"$as_dir" : 'X\(//\)$' \| \
  15605. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15606. $as_echo X"$as_dir" |
  15607. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15608. s//\1/
  15609. q
  15610. }
  15611. /^X\(\/\/\)[^/].*/{
  15612. s//\1/
  15613. q
  15614. }
  15615. /^X\(\/\/\)$/{
  15616. s//\1/
  15617. q
  15618. }
  15619. /^X\(\/\).*/{
  15620. s//\1/
  15621. q
  15622. }
  15623. s/.*/./; q'`
  15624. test -d "$as_dir" && break
  15625. done
  15626. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15627. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15628. } # as_fn_mkdir_p
  15629. if mkdir -p . 2>/dev/null; then
  15630. as_mkdir_p='mkdir -p "$as_dir"'
  15631. else
  15632. test -d ./-p && rmdir ./-p
  15633. as_mkdir_p=false
  15634. fi
  15635. # as_fn_executable_p FILE
  15636. # -----------------------
  15637. # Test if FILE is an executable regular file.
  15638. as_fn_executable_p ()
  15639. {
  15640. test -f "$1" && test -x "$1"
  15641. } # as_fn_executable_p
  15642. as_test_x='test -x'
  15643. as_executable_p=as_fn_executable_p
  15644. # Sed expression to map a string onto a valid CPP name.
  15645. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15646. # Sed expression to map a string onto a valid variable name.
  15647. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15648. exec 6>&1
  15649. ## ----------------------------------- ##
  15650. ## Main body of $CONFIG_STATUS script. ##
  15651. ## ----------------------------------- ##
  15652. _ASEOF
  15653. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15655. # Save the log message, to keep $0 and so on meaningful, and to
  15656. # report actual input values of CONFIG_FILES etc. instead of their
  15657. # values after options handling.
  15658. ac_log="
  15659. This file was extended by libpqxx $as_me 7.7.3, which was
  15660. generated by GNU Autoconf 2.69. Invocation command line was
  15661. CONFIG_FILES = $CONFIG_FILES
  15662. CONFIG_HEADERS = $CONFIG_HEADERS
  15663. CONFIG_LINKS = $CONFIG_LINKS
  15664. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15665. $ $0 $@
  15666. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15667. "
  15668. _ACEOF
  15669. case $ac_config_files in *"
  15670. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15671. esac
  15672. case $ac_config_headers in *"
  15673. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15674. esac
  15675. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15676. # Files that config.status was made for.
  15677. config_files="$ac_config_files"
  15678. config_headers="$ac_config_headers"
  15679. config_commands="$ac_config_commands"
  15680. _ACEOF
  15681. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15682. ac_cs_usage="\
  15683. \`$as_me' instantiates files and other configuration actions
  15684. from templates according to the current configuration. Unless the files
  15685. and actions are specified as TAGs, all are instantiated by default.
  15686. Usage: $0 [OPTION]... [TAG]...
  15687. -h, --help print this help, then exit
  15688. -V, --version print version number and configuration settings, then exit
  15689. --config print configuration, then exit
  15690. -q, --quiet, --silent
  15691. do not print progress messages
  15692. -d, --debug don't remove temporary files
  15693. --recheck update $as_me by reconfiguring in the same conditions
  15694. --file=FILE[:TEMPLATE]
  15695. instantiate the configuration file FILE
  15696. --header=FILE[:TEMPLATE]
  15697. instantiate the configuration header FILE
  15698. Configuration files:
  15699. $config_files
  15700. Configuration headers:
  15701. $config_headers
  15702. Configuration commands:
  15703. $config_commands
  15704. Report bugs to <Jeroen T. Vermeulen>."
  15705. _ACEOF
  15706. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15707. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15708. ac_cs_version="\\
  15709. libpqxx config.status 7.7.3
  15710. configured by $0, generated by GNU Autoconf 2.69,
  15711. with options \\"\$ac_cs_config\\"
  15712. Copyright (C) 2012 Free Software Foundation, Inc.
  15713. This config.status script is free software; the Free Software Foundation
  15714. gives unlimited permission to copy, distribute and modify it."
  15715. ac_pwd='$ac_pwd'
  15716. srcdir='$srcdir'
  15717. INSTALL='$INSTALL'
  15718. MKDIR_P='$MKDIR_P'
  15719. AWK='$AWK'
  15720. test -n "\$AWK" || AWK=awk
  15721. _ACEOF
  15722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15723. # The default lists apply if the user does not specify any file.
  15724. ac_need_defaults=:
  15725. while test $# != 0
  15726. do
  15727. case $1 in
  15728. --*=?*)
  15729. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15730. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15731. ac_shift=:
  15732. ;;
  15733. --*=)
  15734. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15735. ac_optarg=
  15736. ac_shift=:
  15737. ;;
  15738. *)
  15739. ac_option=$1
  15740. ac_optarg=$2
  15741. ac_shift=shift
  15742. ;;
  15743. esac
  15744. case $ac_option in
  15745. # Handling of the options.
  15746. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15747. ac_cs_recheck=: ;;
  15748. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15749. $as_echo "$ac_cs_version"; exit ;;
  15750. --config | --confi | --conf | --con | --co | --c )
  15751. $as_echo "$ac_cs_config"; exit ;;
  15752. --debug | --debu | --deb | --de | --d | -d )
  15753. debug=: ;;
  15754. --file | --fil | --fi | --f )
  15755. $ac_shift
  15756. case $ac_optarg in
  15757. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15758. '') as_fn_error $? "missing file argument" ;;
  15759. esac
  15760. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15761. ac_need_defaults=false;;
  15762. --header | --heade | --head | --hea )
  15763. $ac_shift
  15764. case $ac_optarg in
  15765. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15766. esac
  15767. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15768. ac_need_defaults=false;;
  15769. --he | --h)
  15770. # Conflict between --help and --header
  15771. as_fn_error $? "ambiguous option: \`$1'
  15772. Try \`$0 --help' for more information.";;
  15773. --help | --hel | -h )
  15774. $as_echo "$ac_cs_usage"; exit ;;
  15775. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15776. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15777. ac_cs_silent=: ;;
  15778. # This is an error.
  15779. -*) as_fn_error $? "unrecognized option: \`$1'
  15780. Try \`$0 --help' for more information." ;;
  15781. *) as_fn_append ac_config_targets " $1"
  15782. ac_need_defaults=false ;;
  15783. esac
  15784. shift
  15785. done
  15786. ac_configure_extra_args=
  15787. if $ac_cs_silent; then
  15788. exec 6>/dev/null
  15789. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15790. fi
  15791. _ACEOF
  15792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15793. if \$ac_cs_recheck; then
  15794. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15795. shift
  15796. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15797. CONFIG_SHELL='$SHELL'
  15798. export CONFIG_SHELL
  15799. exec "\$@"
  15800. fi
  15801. _ACEOF
  15802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15803. exec 5>>config.log
  15804. {
  15805. echo
  15806. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15807. ## Running $as_me. ##
  15808. _ASBOX
  15809. $as_echo "$ac_log"
  15810. } >&5
  15811. _ACEOF
  15812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15813. #
  15814. # INIT-COMMANDS
  15815. #
  15816. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  15817. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15818. # if CDPATH is set.
  15819. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15820. sed_quote_subst='$sed_quote_subst'
  15821. double_quote_subst='$double_quote_subst'
  15822. delay_variable_subst='$delay_variable_subst'
  15823. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15824. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15825. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15826. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15827. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15828. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15829. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15830. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15831. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15832. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15833. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15834. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15835. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15836. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15837. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15838. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15839. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15840. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15841. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15842. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15843. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15844. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15845. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15846. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15847. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15848. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15849. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15850. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15851. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15852. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15853. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15854. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15855. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15856. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15857. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15858. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15859. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15860. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15861. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15862. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15863. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15864. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15865. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15866. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15867. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15868. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15869. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15870. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15871. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15872. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15873. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15874. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15875. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15876. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15877. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15878. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15879. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15880. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15881. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15882. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15883. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15884. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15885. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15886. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15887. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15888. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15889. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15890. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15891. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15892. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15893. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15894. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15895. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15896. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15897. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15898. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15899. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15900. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15901. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15902. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15903. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15904. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15905. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15906. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15907. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15908. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15909. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15910. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15911. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15912. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15913. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15914. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15915. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15916. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15917. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15918. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15919. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15920. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15921. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15922. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15923. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15924. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15925. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15926. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15927. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15928. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15929. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15930. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15931. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15932. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15933. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15934. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15935. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15936. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15937. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15938. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15939. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15940. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15941. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15942. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15943. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15944. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15945. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15946. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15947. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15948. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15949. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15950. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15951. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15952. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15953. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15954. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15955. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15956. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15957. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15958. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15959. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15960. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15961. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15962. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15963. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15964. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15965. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15966. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15967. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15968. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15969. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15970. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15971. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15972. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15973. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15974. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15975. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15976. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15977. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15978. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15979. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15980. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15981. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15982. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15983. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15984. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15985. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15986. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15987. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15988. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15989. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15990. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15991. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15992. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15993. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15994. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15995. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15996. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15997. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15998. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15999. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16000. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16001. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16002. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16003. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16004. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16005. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16006. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16007. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16008. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16009. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16010. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16011. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16012. LTCC='$LTCC'
  16013. LTCFLAGS='$LTCFLAGS'
  16014. compiler='$compiler_DEFAULT'
  16015. # A function that is used when there is no print builtin or printf.
  16016. func_fallback_echo ()
  16017. {
  16018. eval 'cat <<_LTECHO_EOF
  16019. \$1
  16020. _LTECHO_EOF'
  16021. }
  16022. # Quote evaled strings.
  16023. for var in SHELL \
  16024. ECHO \
  16025. PATH_SEPARATOR \
  16026. SED \
  16027. GREP \
  16028. EGREP \
  16029. FGREP \
  16030. LD \
  16031. NM \
  16032. LN_S \
  16033. lt_SP2NL \
  16034. lt_NL2SP \
  16035. reload_flag \
  16036. OBJDUMP \
  16037. deplibs_check_method \
  16038. file_magic_cmd \
  16039. file_magic_glob \
  16040. want_nocaseglob \
  16041. DLLTOOL \
  16042. sharedlib_from_linklib_cmd \
  16043. AR \
  16044. AR_FLAGS \
  16045. archiver_list_spec \
  16046. STRIP \
  16047. RANLIB \
  16048. CC \
  16049. CFLAGS \
  16050. compiler \
  16051. lt_cv_sys_global_symbol_pipe \
  16052. lt_cv_sys_global_symbol_to_cdecl \
  16053. lt_cv_sys_global_symbol_to_import \
  16054. lt_cv_sys_global_symbol_to_c_name_address \
  16055. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16056. lt_cv_nm_interface \
  16057. nm_file_list_spec \
  16058. lt_cv_truncate_bin \
  16059. lt_prog_compiler_no_builtin_flag \
  16060. lt_prog_compiler_pic \
  16061. lt_prog_compiler_wl \
  16062. lt_prog_compiler_static \
  16063. lt_cv_prog_compiler_c_o \
  16064. need_locks \
  16065. MANIFEST_TOOL \
  16066. DSYMUTIL \
  16067. NMEDIT \
  16068. LIPO \
  16069. OTOOL \
  16070. OTOOL64 \
  16071. shrext_cmds \
  16072. export_dynamic_flag_spec \
  16073. whole_archive_flag_spec \
  16074. compiler_needs_object \
  16075. with_gnu_ld \
  16076. allow_undefined_flag \
  16077. no_undefined_flag \
  16078. hardcode_libdir_flag_spec \
  16079. hardcode_libdir_separator \
  16080. exclude_expsyms \
  16081. include_expsyms \
  16082. file_list_spec \
  16083. variables_saved_for_relink \
  16084. libname_spec \
  16085. library_names_spec \
  16086. soname_spec \
  16087. install_override_mode \
  16088. finish_eval \
  16089. old_striplib \
  16090. striplib \
  16091. compiler_lib_search_dirs \
  16092. predep_objects \
  16093. postdep_objects \
  16094. predeps \
  16095. postdeps \
  16096. compiler_lib_search_path \
  16097. LD_CXX \
  16098. reload_flag_CXX \
  16099. compiler_CXX \
  16100. lt_prog_compiler_no_builtin_flag_CXX \
  16101. lt_prog_compiler_pic_CXX \
  16102. lt_prog_compiler_wl_CXX \
  16103. lt_prog_compiler_static_CXX \
  16104. lt_cv_prog_compiler_c_o_CXX \
  16105. export_dynamic_flag_spec_CXX \
  16106. whole_archive_flag_spec_CXX \
  16107. compiler_needs_object_CXX \
  16108. with_gnu_ld_CXX \
  16109. allow_undefined_flag_CXX \
  16110. no_undefined_flag_CXX \
  16111. hardcode_libdir_flag_spec_CXX \
  16112. hardcode_libdir_separator_CXX \
  16113. exclude_expsyms_CXX \
  16114. include_expsyms_CXX \
  16115. file_list_spec_CXX \
  16116. compiler_lib_search_dirs_CXX \
  16117. predep_objects_CXX \
  16118. postdep_objects_CXX \
  16119. predeps_CXX \
  16120. postdeps_CXX \
  16121. compiler_lib_search_path_CXX; do
  16122. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16123. *[\\\\\\\`\\"\\\$]*)
  16124. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16125. ;;
  16126. *)
  16127. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16128. ;;
  16129. esac
  16130. done
  16131. # Double-quote double-evaled strings.
  16132. for var in reload_cmds \
  16133. old_postinstall_cmds \
  16134. old_postuninstall_cmds \
  16135. old_archive_cmds \
  16136. extract_expsyms_cmds \
  16137. old_archive_from_new_cmds \
  16138. old_archive_from_expsyms_cmds \
  16139. archive_cmds \
  16140. archive_expsym_cmds \
  16141. module_cmds \
  16142. module_expsym_cmds \
  16143. export_symbols_cmds \
  16144. prelink_cmds \
  16145. postlink_cmds \
  16146. postinstall_cmds \
  16147. postuninstall_cmds \
  16148. finish_cmds \
  16149. sys_lib_search_path_spec \
  16150. configure_time_dlsearch_path \
  16151. configure_time_lt_sys_library_path \
  16152. reload_cmds_CXX \
  16153. old_archive_cmds_CXX \
  16154. old_archive_from_new_cmds_CXX \
  16155. old_archive_from_expsyms_cmds_CXX \
  16156. archive_cmds_CXX \
  16157. archive_expsym_cmds_CXX \
  16158. module_cmds_CXX \
  16159. module_expsym_cmds_CXX \
  16160. export_symbols_cmds_CXX \
  16161. prelink_cmds_CXX \
  16162. postlink_cmds_CXX; do
  16163. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16164. *[\\\\\\\`\\"\\\$]*)
  16165. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16166. ;;
  16167. *)
  16168. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16169. ;;
  16170. esac
  16171. done
  16172. ac_aux_dir='$ac_aux_dir'
  16173. # See if we are running on zsh, and set the options that allow our
  16174. # commands through without removal of \ escapes INIT.
  16175. if test -n "\${ZSH_VERSION+set}"; then
  16176. setopt NO_GLOB_SUBST
  16177. fi
  16178. PACKAGE='$PACKAGE'
  16179. VERSION='$VERSION'
  16180. RM='$RM'
  16181. ofile='$ofile'
  16182. _ACEOF
  16183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16184. # Handling of arguments.
  16185. for ac_config_target in $ac_config_targets
  16186. do
  16187. case $ac_config_target in
  16188. "include/pqxx/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/pqxx/config.h" ;;
  16189. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16190. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16191. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16192. "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
  16193. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16194. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  16195. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16196. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  16197. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  16198. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  16199. "include/pqxx/Makefile") CONFIG_FILES="$CONFIG_FILES include/pqxx/Makefile" ;;
  16200. "libpqxx.pc") CONFIG_FILES="$CONFIG_FILES libpqxx.pc" ;;
  16201. "configitems") CONFIG_COMMANDS="$CONFIG_COMMANDS configitems" ;;
  16202. "compile_flags") CONFIG_FILES="$CONFIG_FILES compile_flags" ;;
  16203. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16204. esac
  16205. done
  16206. # If the user did not use the arguments to specify the items to instantiate,
  16207. # then the envvar interface is used. Set only those that are not.
  16208. # We use the long form for the default assignment because of an extremely
  16209. # bizarre bug on SunOS 4.1.3.
  16210. if $ac_need_defaults; then
  16211. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16212. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16213. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16214. fi
  16215. # Have a temporary directory for convenience. Make it in the build tree
  16216. # simply because there is no reason against having it here, and in addition,
  16217. # creating and moving files from /tmp can sometimes cause problems.
  16218. # Hook for its removal unless debugging.
  16219. # Note that there is a small window in which the directory will not be cleaned:
  16220. # after its creation but before its name has been assigned to `$tmp'.
  16221. $debug ||
  16222. {
  16223. tmp= ac_tmp=
  16224. trap 'exit_status=$?
  16225. : "${ac_tmp:=$tmp}"
  16226. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16227. ' 0
  16228. trap 'as_fn_exit 1' 1 2 13 15
  16229. }
  16230. # Create a (secure) tmp directory for tmp files.
  16231. {
  16232. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16233. test -d "$tmp"
  16234. } ||
  16235. {
  16236. tmp=./conf$$-$RANDOM
  16237. (umask 077 && mkdir "$tmp")
  16238. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16239. ac_tmp=$tmp
  16240. # Set up the scripts for CONFIG_FILES section.
  16241. # No need to generate them if there are no CONFIG_FILES.
  16242. # This happens for instance with `./config.status config.h'.
  16243. if test -n "$CONFIG_FILES"; then
  16244. ac_cr=`echo X | tr X '\015'`
  16245. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16246. # But we know of no other shell where ac_cr would be empty at this
  16247. # point, so we can use a bashism as a fallback.
  16248. if test "x$ac_cr" = x; then
  16249. eval ac_cr=\$\'\\r\'
  16250. fi
  16251. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16252. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16253. ac_cs_awk_cr='\\r'
  16254. else
  16255. ac_cs_awk_cr=$ac_cr
  16256. fi
  16257. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16258. _ACEOF
  16259. {
  16260. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16261. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16262. echo "_ACEOF"
  16263. } >conf$$subs.sh ||
  16264. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16265. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16266. ac_delim='%!_!# '
  16267. for ac_last_try in false false false false false :; do
  16268. . ./conf$$subs.sh ||
  16269. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16270. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16271. if test $ac_delim_n = $ac_delim_num; then
  16272. break
  16273. elif $ac_last_try; then
  16274. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16275. else
  16276. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16277. fi
  16278. done
  16279. rm -f conf$$subs.sh
  16280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16281. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16282. _ACEOF
  16283. sed -n '
  16284. h
  16285. s/^/S["/; s/!.*/"]=/
  16286. p
  16287. g
  16288. s/^[^!]*!//
  16289. :repl
  16290. t repl
  16291. s/'"$ac_delim"'$//
  16292. t delim
  16293. :nl
  16294. h
  16295. s/\(.\{148\}\)..*/\1/
  16296. t more1
  16297. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16298. p
  16299. n
  16300. b repl
  16301. :more1
  16302. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16303. p
  16304. g
  16305. s/.\{148\}//
  16306. t nl
  16307. :delim
  16308. h
  16309. s/\(.\{148\}\)..*/\1/
  16310. t more2
  16311. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16312. p
  16313. b
  16314. :more2
  16315. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16316. p
  16317. g
  16318. s/.\{148\}//
  16319. t delim
  16320. ' <conf$$subs.awk | sed '
  16321. /^[^""]/{
  16322. N
  16323. s/\n//
  16324. }
  16325. ' >>$CONFIG_STATUS || ac_write_fail=1
  16326. rm -f conf$$subs.awk
  16327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16328. _ACAWK
  16329. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16330. for (key in S) S_is_set[key] = 1
  16331. FS = ""
  16332. }
  16333. {
  16334. line = $ 0
  16335. nfields = split(line, field, "@")
  16336. substed = 0
  16337. len = length(field[1])
  16338. for (i = 2; i < nfields; i++) {
  16339. key = field[i]
  16340. keylen = length(key)
  16341. if (S_is_set[key]) {
  16342. value = S[key]
  16343. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16344. len += length(value) + length(field[++i])
  16345. substed = 1
  16346. } else
  16347. len += 1 + keylen
  16348. }
  16349. print line
  16350. }
  16351. _ACAWK
  16352. _ACEOF
  16353. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16354. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16355. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16356. else
  16357. cat
  16358. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16359. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16360. _ACEOF
  16361. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16362. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16363. # trailing colons and then remove the whole line if VPATH becomes empty
  16364. # (actually we leave an empty line to preserve line numbers).
  16365. if test "x$srcdir" = x.; then
  16366. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16367. h
  16368. s///
  16369. s/^/:/
  16370. s/[ ]*$/:/
  16371. s/:\$(srcdir):/:/g
  16372. s/:\${srcdir}:/:/g
  16373. s/:@srcdir@:/:/g
  16374. s/^:*//
  16375. s/:*$//
  16376. x
  16377. s/\(=[ ]*\).*/\1/
  16378. G
  16379. s/\n//
  16380. s/^[^=]*=[ ]*$//
  16381. }'
  16382. fi
  16383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16384. fi # test -n "$CONFIG_FILES"
  16385. # Set up the scripts for CONFIG_HEADERS section.
  16386. # No need to generate them if there are no CONFIG_HEADERS.
  16387. # This happens for instance with `./config.status Makefile'.
  16388. if test -n "$CONFIG_HEADERS"; then
  16389. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16390. BEGIN {
  16391. _ACEOF
  16392. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16393. # here-document in config.status, that substitutes the proper values into
  16394. # config.h.in to produce config.h.
  16395. # Create a delimiter string that does not exist in confdefs.h, to ease
  16396. # handling of long lines.
  16397. ac_delim='%!_!# '
  16398. for ac_last_try in false false :; do
  16399. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16400. if test -z "$ac_tt"; then
  16401. break
  16402. elif $ac_last_try; then
  16403. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16404. else
  16405. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16406. fi
  16407. done
  16408. # For the awk script, D is an array of macro values keyed by name,
  16409. # likewise P contains macro parameters if any. Preserve backslash
  16410. # newline sequences.
  16411. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16412. sed -n '
  16413. s/.\{148\}/&'"$ac_delim"'/g
  16414. t rset
  16415. :rset
  16416. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16417. t def
  16418. d
  16419. :def
  16420. s/\\$//
  16421. t bsnl
  16422. s/["\\]/\\&/g
  16423. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16424. D["\1"]=" \3"/p
  16425. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16426. d
  16427. :bsnl
  16428. s/["\\]/\\&/g
  16429. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16430. D["\1"]=" \3\\\\\\n"\\/p
  16431. t cont
  16432. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16433. t cont
  16434. d
  16435. :cont
  16436. n
  16437. s/.\{148\}/&'"$ac_delim"'/g
  16438. t clear
  16439. :clear
  16440. s/\\$//
  16441. t bsnlc
  16442. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16443. d
  16444. :bsnlc
  16445. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16446. b cont
  16447. ' <confdefs.h | sed '
  16448. s/'"$ac_delim"'/"\\\
  16449. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16450. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16451. for (key in D) D_is_set[key] = 1
  16452. FS = ""
  16453. }
  16454. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16455. line = \$ 0
  16456. split(line, arg, " ")
  16457. if (arg[1] == "#") {
  16458. defundef = arg[2]
  16459. mac1 = arg[3]
  16460. } else {
  16461. defundef = substr(arg[1], 2)
  16462. mac1 = arg[2]
  16463. }
  16464. split(mac1, mac2, "(") #)
  16465. macro = mac2[1]
  16466. prefix = substr(line, 1, index(line, defundef) - 1)
  16467. if (D_is_set[macro]) {
  16468. # Preserve the white space surrounding the "#".
  16469. print prefix "define", macro P[macro] D[macro]
  16470. next
  16471. } else {
  16472. # Replace #undef with comments. This is necessary, for example,
  16473. # in the case of _POSIX_SOURCE, which is predefined and required
  16474. # on some systems where configure will not decide to define it.
  16475. if (defundef == "undef") {
  16476. print "/*", prefix defundef, macro, "*/"
  16477. next
  16478. }
  16479. }
  16480. }
  16481. { print }
  16482. _ACAWK
  16483. _ACEOF
  16484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16485. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16486. fi # test -n "$CONFIG_HEADERS"
  16487. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16488. shift
  16489. for ac_tag
  16490. do
  16491. case $ac_tag in
  16492. :[FHLC]) ac_mode=$ac_tag; continue;;
  16493. esac
  16494. case $ac_mode$ac_tag in
  16495. :[FHL]*:*);;
  16496. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16497. :[FH]-) ac_tag=-:-;;
  16498. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16499. esac
  16500. ac_save_IFS=$IFS
  16501. IFS=:
  16502. set x $ac_tag
  16503. IFS=$ac_save_IFS
  16504. shift
  16505. ac_file=$1
  16506. shift
  16507. case $ac_mode in
  16508. :L) ac_source=$1;;
  16509. :[FH])
  16510. ac_file_inputs=
  16511. for ac_f
  16512. do
  16513. case $ac_f in
  16514. -) ac_f="$ac_tmp/stdin";;
  16515. *) # Look for the file first in the build tree, then in the source tree
  16516. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16517. # because $ac_f cannot contain `:'.
  16518. test -f "$ac_f" ||
  16519. case $ac_f in
  16520. [\\/$]*) false;;
  16521. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16522. esac ||
  16523. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16524. esac
  16525. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16526. as_fn_append ac_file_inputs " '$ac_f'"
  16527. done
  16528. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16529. # use $as_me), people would be surprised to read:
  16530. # /* config.h. Generated by config.status. */
  16531. configure_input='Generated from '`
  16532. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16533. `' by configure.'
  16534. if test x"$ac_file" != x-; then
  16535. configure_input="$ac_file. $configure_input"
  16536. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16537. $as_echo "$as_me: creating $ac_file" >&6;}
  16538. fi
  16539. # Neutralize special characters interpreted by sed in replacement strings.
  16540. case $configure_input in #(
  16541. *\&* | *\|* | *\\* )
  16542. ac_sed_conf_input=`$as_echo "$configure_input" |
  16543. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16544. *) ac_sed_conf_input=$configure_input;;
  16545. esac
  16546. case $ac_tag in
  16547. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16548. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16549. esac
  16550. ;;
  16551. esac
  16552. ac_dir=`$as_dirname -- "$ac_file" ||
  16553. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16554. X"$ac_file" : 'X\(//\)[^/]' \| \
  16555. X"$ac_file" : 'X\(//\)$' \| \
  16556. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16557. $as_echo X"$ac_file" |
  16558. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16559. s//\1/
  16560. q
  16561. }
  16562. /^X\(\/\/\)[^/].*/{
  16563. s//\1/
  16564. q
  16565. }
  16566. /^X\(\/\/\)$/{
  16567. s//\1/
  16568. q
  16569. }
  16570. /^X\(\/\).*/{
  16571. s//\1/
  16572. q
  16573. }
  16574. s/.*/./; q'`
  16575. as_dir="$ac_dir"; as_fn_mkdir_p
  16576. ac_builddir=.
  16577. case "$ac_dir" in
  16578. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16579. *)
  16580. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16581. # A ".." for each directory in $ac_dir_suffix.
  16582. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16583. case $ac_top_builddir_sub in
  16584. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16585. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16586. esac ;;
  16587. esac
  16588. ac_abs_top_builddir=$ac_pwd
  16589. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16590. # for backward compatibility:
  16591. ac_top_builddir=$ac_top_build_prefix
  16592. case $srcdir in
  16593. .) # We are building in place.
  16594. ac_srcdir=.
  16595. ac_top_srcdir=$ac_top_builddir_sub
  16596. ac_abs_top_srcdir=$ac_pwd ;;
  16597. [\\/]* | ?:[\\/]* ) # Absolute name.
  16598. ac_srcdir=$srcdir$ac_dir_suffix;
  16599. ac_top_srcdir=$srcdir
  16600. ac_abs_top_srcdir=$srcdir ;;
  16601. *) # Relative name.
  16602. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16603. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16604. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16605. esac
  16606. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16607. case $ac_mode in
  16608. :F)
  16609. #
  16610. # CONFIG_FILE
  16611. #
  16612. case $INSTALL in
  16613. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16614. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16615. esac
  16616. ac_MKDIR_P=$MKDIR_P
  16617. case $MKDIR_P in
  16618. [\\/$]* | ?:[\\/]* ) ;;
  16619. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16620. esac
  16621. _ACEOF
  16622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16623. # If the template does not know about datarootdir, expand it.
  16624. # FIXME: This hack should be removed a few years after 2.60.
  16625. ac_datarootdir_hack=; ac_datarootdir_seen=
  16626. ac_sed_dataroot='
  16627. /datarootdir/ {
  16628. p
  16629. q
  16630. }
  16631. /@datadir@/p
  16632. /@docdir@/p
  16633. /@infodir@/p
  16634. /@localedir@/p
  16635. /@mandir@/p'
  16636. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16637. *datarootdir*) ac_datarootdir_seen=yes;;
  16638. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16640. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16641. _ACEOF
  16642. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16643. ac_datarootdir_hack='
  16644. s&@datadir@&$datadir&g
  16645. s&@docdir@&$docdir&g
  16646. s&@infodir@&$infodir&g
  16647. s&@localedir@&$localedir&g
  16648. s&@mandir@&$mandir&g
  16649. s&\\\${datarootdir}&$datarootdir&g' ;;
  16650. esac
  16651. _ACEOF
  16652. # Neutralize VPATH when `$srcdir' = `.'.
  16653. # Shell code in configure.ac might set extrasub.
  16654. # FIXME: do we really want to maintain this feature?
  16655. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16656. ac_sed_extra="$ac_vpsub
  16657. $extrasub
  16658. _ACEOF
  16659. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16660. :t
  16661. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16662. s|@configure_input@|$ac_sed_conf_input|;t t
  16663. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16664. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16665. s&@srcdir@&$ac_srcdir&;t t
  16666. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16667. s&@top_srcdir@&$ac_top_srcdir&;t t
  16668. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16669. s&@builddir@&$ac_builddir&;t t
  16670. s&@abs_builddir@&$ac_abs_builddir&;t t
  16671. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16672. s&@INSTALL@&$ac_INSTALL&;t t
  16673. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16674. $ac_datarootdir_hack
  16675. "
  16676. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16677. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16678. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16679. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16680. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16681. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16683. which seems to be undefined. Please make sure it is defined" >&5
  16684. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16685. which seems to be undefined. Please make sure it is defined" >&2;}
  16686. rm -f "$ac_tmp/stdin"
  16687. case $ac_file in
  16688. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16689. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16690. esac \
  16691. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16692. ;;
  16693. :H)
  16694. #
  16695. # CONFIG_HEADER
  16696. #
  16697. if test x"$ac_file" != x-; then
  16698. {
  16699. $as_echo "/* $configure_input */" \
  16700. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16701. } >"$ac_tmp/config.h" \
  16702. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16703. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16704. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16705. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16706. else
  16707. rm -f "$ac_file"
  16708. mv "$ac_tmp/config.h" "$ac_file" \
  16709. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16710. fi
  16711. else
  16712. $as_echo "/* $configure_input */" \
  16713. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16714. || as_fn_error $? "could not create -" "$LINENO" 5
  16715. fi
  16716. # Compute "$ac_file"'s index in $config_headers.
  16717. _am_arg="$ac_file"
  16718. _am_stamp_count=1
  16719. for _am_header in $config_headers :; do
  16720. case $_am_header in
  16721. $_am_arg | $_am_arg:* )
  16722. break ;;
  16723. * )
  16724. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16725. esac
  16726. done
  16727. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16728. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16729. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16730. X"$_am_arg" : 'X\(//\)$' \| \
  16731. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16732. $as_echo X"$_am_arg" |
  16733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16734. s//\1/
  16735. q
  16736. }
  16737. /^X\(\/\/\)[^/].*/{
  16738. s//\1/
  16739. q
  16740. }
  16741. /^X\(\/\/\)$/{
  16742. s//\1/
  16743. q
  16744. }
  16745. /^X\(\/\).*/{
  16746. s//\1/
  16747. q
  16748. }
  16749. s/.*/./; q'`/stamp-h$_am_stamp_count
  16750. ;;
  16751. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16752. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16753. ;;
  16754. esac
  16755. case $ac_file$ac_mode in
  16756. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16757. # Older Autoconf quotes --file arguments for eval, but not when files
  16758. # are listed without --file. Let's play safe and only enable the eval
  16759. # if we detect the quoting.
  16760. # TODO: see whether this extra hack can be removed once we start
  16761. # requiring Autoconf 2.70 or later.
  16762. case $CONFIG_FILES in #(
  16763. *\'*) :
  16764. eval set x "$CONFIG_FILES" ;; #(
  16765. *) :
  16766. set x $CONFIG_FILES ;; #(
  16767. *) :
  16768. ;;
  16769. esac
  16770. shift
  16771. # Used to flag and report bootstrapping failures.
  16772. am_rc=0
  16773. for am_mf
  16774. do
  16775. # Strip MF so we end up with the name of the file.
  16776. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  16777. # Check whether this is an Automake generated Makefile which includes
  16778. # dependency-tracking related rules and includes.
  16779. # Grep'ing the whole file directly is not great: AIX grep has a line
  16780. # limit of 2048, but all sed's we know have understand at least 4000.
  16781. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  16782. || continue
  16783. am_dirpart=`$as_dirname -- "$am_mf" ||
  16784. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16785. X"$am_mf" : 'X\(//\)[^/]' \| \
  16786. X"$am_mf" : 'X\(//\)$' \| \
  16787. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16788. $as_echo X"$am_mf" |
  16789. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16790. s//\1/
  16791. q
  16792. }
  16793. /^X\(\/\/\)[^/].*/{
  16794. s//\1/
  16795. q
  16796. }
  16797. /^X\(\/\/\)$/{
  16798. s//\1/
  16799. q
  16800. }
  16801. /^X\(\/\).*/{
  16802. s//\1/
  16803. q
  16804. }
  16805. s/.*/./; q'`
  16806. am_filepart=`$as_basename -- "$am_mf" ||
  16807. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  16808. X"$am_mf" : 'X\(//\)$' \| \
  16809. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16810. $as_echo X/"$am_mf" |
  16811. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16812. s//\1/
  16813. q
  16814. }
  16815. /^X\/\(\/\/\)$/{
  16816. s//\1/
  16817. q
  16818. }
  16819. /^X\/\(\/\).*/{
  16820. s//\1/
  16821. q
  16822. }
  16823. s/.*/./; q'`
  16824. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  16825. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16826. | $MAKE -f - am--depfiles" >&5
  16827. (cd "$am_dirpart" \
  16828. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16829. | $MAKE -f - am--depfiles) >&5 2>&5
  16830. ac_status=$?
  16831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16832. (exit $ac_status); } || am_rc=$?
  16833. done
  16834. if test $am_rc -ne 0; then
  16835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16837. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  16838. for automatic dependency tracking. If GNU make was not used, consider
  16839. re-running the configure script with MAKE=\"gmake\" (or whatever is
  16840. necessary). You can also try re-running configure with the
  16841. '--disable-dependency-tracking' option to at least be able to build
  16842. the package (albeit without support for automatic dependency tracking).
  16843. See \`config.log' for more details" "$LINENO" 5; }
  16844. fi
  16845. { am_dirpart=; unset am_dirpart;}
  16846. { am_filepart=; unset am_filepart;}
  16847. { am_mf=; unset am_mf;}
  16848. { am_rc=; unset am_rc;}
  16849. rm -f conftest-deps.mk
  16850. }
  16851. ;;
  16852. "libtool":C)
  16853. # See if we are running on zsh, and set the options that allow our
  16854. # commands through without removal of \ escapes.
  16855. if test -n "${ZSH_VERSION+set}"; then
  16856. setopt NO_GLOB_SUBST
  16857. fi
  16858. cfgfile=${ofile}T
  16859. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16860. $RM "$cfgfile"
  16861. cat <<_LT_EOF >> "$cfgfile"
  16862. #! $SHELL
  16863. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16864. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16865. # Provide generalized library-building support services.
  16866. # Written by Gordon Matzigkeit, 1996
  16867. # Copyright (C) 2014 Free Software Foundation, Inc.
  16868. # This is free software; see the source for copying conditions. There is NO
  16869. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16870. # GNU Libtool is free software; you can redistribute it and/or modify
  16871. # it under the terms of the GNU General Public License as published by
  16872. # the Free Software Foundation; either version 2 of of the License, or
  16873. # (at your option) any later version.
  16874. #
  16875. # As a special exception to the GNU General Public License, if you
  16876. # distribute this file as part of a program or library that is built
  16877. # using GNU Libtool, you may include this file under the same
  16878. # distribution terms that you use for the rest of that program.
  16879. #
  16880. # GNU Libtool is distributed in the hope that it will be useful, but
  16881. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16882. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16883. # GNU General Public License for more details.
  16884. #
  16885. # You should have received a copy of the GNU General Public License
  16886. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16887. # The names of the tagged configurations supported by this script.
  16888. available_tags='CXX '
  16889. # Configured defaults for sys_lib_dlsearch_path munging.
  16890. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16891. # ### BEGIN LIBTOOL CONFIG
  16892. # Whether or not to build shared libraries.
  16893. build_libtool_libs=$enable_shared
  16894. # Which release of libtool.m4 was used?
  16895. macro_version=$macro_version
  16896. macro_revision=$macro_revision
  16897. # Whether or not to build static libraries.
  16898. build_old_libs=$enable_static
  16899. # What type of objects to build.
  16900. pic_mode=$pic_mode
  16901. # Whether or not to optimize for fast installation.
  16902. fast_install=$enable_fast_install
  16903. # Shared archive member basename,for filename based shared library versioning on AIX.
  16904. shared_archive_member_spec=$shared_archive_member_spec
  16905. # Shell to use when invoking shell scripts.
  16906. SHELL=$lt_SHELL
  16907. # An echo program that protects backslashes.
  16908. ECHO=$lt_ECHO
  16909. # The PATH separator for the build system.
  16910. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16911. # The host system.
  16912. host_alias=$host_alias
  16913. host=$host
  16914. host_os=$host_os
  16915. # The build system.
  16916. build_alias=$build_alias
  16917. build=$build
  16918. build_os=$build_os
  16919. # A sed program that does not truncate output.
  16920. SED=$lt_SED
  16921. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16922. Xsed="\$SED -e 1s/^X//"
  16923. # A grep program that handles long lines.
  16924. GREP=$lt_GREP
  16925. # An ERE matcher.
  16926. EGREP=$lt_EGREP
  16927. # A literal string matcher.
  16928. FGREP=$lt_FGREP
  16929. # A BSD- or MS-compatible name lister.
  16930. NM=$lt_NM
  16931. # Whether we need soft or hard links.
  16932. LN_S=$lt_LN_S
  16933. # What is the maximum length of a command?
  16934. max_cmd_len=$max_cmd_len
  16935. # Object file suffix (normally "o").
  16936. objext=$ac_objext
  16937. # Executable file suffix (normally "").
  16938. exeext=$exeext
  16939. # whether the shell understands "unset".
  16940. lt_unset=$lt_unset
  16941. # turn spaces into newlines.
  16942. SP2NL=$lt_lt_SP2NL
  16943. # turn newlines into spaces.
  16944. NL2SP=$lt_lt_NL2SP
  16945. # convert \$build file names to \$host format.
  16946. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16947. # convert \$build files to toolchain format.
  16948. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16949. # An object symbol dumper.
  16950. OBJDUMP=$lt_OBJDUMP
  16951. # Method to check whether dependent libraries are shared objects.
  16952. deplibs_check_method=$lt_deplibs_check_method
  16953. # Command to use when deplibs_check_method = "file_magic".
  16954. file_magic_cmd=$lt_file_magic_cmd
  16955. # How to find potential files when deplibs_check_method = "file_magic".
  16956. file_magic_glob=$lt_file_magic_glob
  16957. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16958. want_nocaseglob=$lt_want_nocaseglob
  16959. # DLL creation program.
  16960. DLLTOOL=$lt_DLLTOOL
  16961. # Command to associate shared and link libraries.
  16962. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16963. # The archiver.
  16964. AR=$lt_AR
  16965. # Flags to create an archive.
  16966. AR_FLAGS=$lt_AR_FLAGS
  16967. # How to feed a file listing to the archiver.
  16968. archiver_list_spec=$lt_archiver_list_spec
  16969. # A symbol stripping program.
  16970. STRIP=$lt_STRIP
  16971. # Commands used to install an old-style archive.
  16972. RANLIB=$lt_RANLIB
  16973. old_postinstall_cmds=$lt_old_postinstall_cmds
  16974. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16975. # Whether to use a lock for old archive extraction.
  16976. lock_old_archive_extraction=$lock_old_archive_extraction
  16977. # A C compiler.
  16978. LTCC=$lt_CC
  16979. # LTCC compiler flags.
  16980. LTCFLAGS=$lt_CFLAGS
  16981. # Take the output of nm and produce a listing of raw symbols and C names.
  16982. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16983. # Transform the output of nm in a proper C declaration.
  16984. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16985. # Transform the output of nm into a list of symbols to manually relocate.
  16986. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16987. # Transform the output of nm in a C name address pair.
  16988. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16989. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16990. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16991. # The name lister interface.
  16992. nm_interface=$lt_lt_cv_nm_interface
  16993. # Specify filename containing input files for \$NM.
  16994. nm_file_list_spec=$lt_nm_file_list_spec
  16995. # The root where to search for dependent libraries,and where our libraries should be installed.
  16996. lt_sysroot=$lt_sysroot
  16997. # Command to truncate a binary pipe.
  16998. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16999. # The name of the directory that contains temporary libtool files.
  17000. objdir=$objdir
  17001. # Used to examine libraries when file_magic_cmd begins with "file".
  17002. MAGIC_CMD=$MAGIC_CMD
  17003. # Must we lock files when doing compilation?
  17004. need_locks=$lt_need_locks
  17005. # Manifest tool.
  17006. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17007. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17008. DSYMUTIL=$lt_DSYMUTIL
  17009. # Tool to change global to local symbols on Mac OS X.
  17010. NMEDIT=$lt_NMEDIT
  17011. # Tool to manipulate fat objects and archives on Mac OS X.
  17012. LIPO=$lt_LIPO
  17013. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17014. OTOOL=$lt_OTOOL
  17015. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17016. OTOOL64=$lt_OTOOL64
  17017. # Old archive suffix (normally "a").
  17018. libext=$libext
  17019. # Shared library suffix (normally ".so").
  17020. shrext_cmds=$lt_shrext_cmds
  17021. # The commands to extract the exported symbol list from a shared archive.
  17022. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17023. # Variables whose values should be saved in libtool wrapper scripts and
  17024. # restored at link time.
  17025. variables_saved_for_relink=$lt_variables_saved_for_relink
  17026. # Do we need the "lib" prefix for modules?
  17027. need_lib_prefix=$need_lib_prefix
  17028. # Do we need a version for libraries?
  17029. need_version=$need_version
  17030. # Library versioning type.
  17031. version_type=$version_type
  17032. # Shared library runtime path variable.
  17033. runpath_var=$runpath_var
  17034. # Shared library path variable.
  17035. shlibpath_var=$shlibpath_var
  17036. # Is shlibpath searched before the hard-coded library search path?
  17037. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17038. # Format of library name prefix.
  17039. libname_spec=$lt_libname_spec
  17040. # List of archive names. First name is the real one, the rest are links.
  17041. # The last name is the one that the linker finds with -lNAME
  17042. library_names_spec=$lt_library_names_spec
  17043. # The coded name of the library, if different from the real name.
  17044. soname_spec=$lt_soname_spec
  17045. # Permission mode override for installation of shared libraries.
  17046. install_override_mode=$lt_install_override_mode
  17047. # Command to use after installation of a shared archive.
  17048. postinstall_cmds=$lt_postinstall_cmds
  17049. # Command to use after uninstallation of a shared archive.
  17050. postuninstall_cmds=$lt_postuninstall_cmds
  17051. # Commands used to finish a libtool library installation in a directory.
  17052. finish_cmds=$lt_finish_cmds
  17053. # As "finish_cmds", except a single script fragment to be evaled but
  17054. # not shown.
  17055. finish_eval=$lt_finish_eval
  17056. # Whether we should hardcode library paths into libraries.
  17057. hardcode_into_libs=$hardcode_into_libs
  17058. # Compile-time system search path for libraries.
  17059. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17060. # Detected run-time system search path for libraries.
  17061. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17062. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17063. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17064. # Whether dlopen is supported.
  17065. dlopen_support=$enable_dlopen
  17066. # Whether dlopen of programs is supported.
  17067. dlopen_self=$enable_dlopen_self
  17068. # Whether dlopen of statically linked programs is supported.
  17069. dlopen_self_static=$enable_dlopen_self_static
  17070. # Commands to strip libraries.
  17071. old_striplib=$lt_old_striplib
  17072. striplib=$lt_striplib
  17073. # The linker used to build libraries.
  17074. LD=$lt_LD
  17075. # How to create reloadable object files.
  17076. reload_flag=$lt_reload_flag
  17077. reload_cmds=$lt_reload_cmds
  17078. # Commands used to build an old-style archive.
  17079. old_archive_cmds=$lt_old_archive_cmds
  17080. # A language specific compiler.
  17081. CC=$lt_compiler
  17082. # Is the compiler the GNU compiler?
  17083. with_gcc=$GCC
  17084. # Compiler flag to turn off builtin functions.
  17085. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17086. # Additional compiler flags for building library objects.
  17087. pic_flag=$lt_lt_prog_compiler_pic
  17088. # How to pass a linker flag through the compiler.
  17089. wl=$lt_lt_prog_compiler_wl
  17090. # Compiler flag to prevent dynamic linking.
  17091. link_static_flag=$lt_lt_prog_compiler_static
  17092. # Does compiler simultaneously support -c and -o options?
  17093. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17094. # Whether or not to add -lc for building shared libraries.
  17095. build_libtool_need_lc=$archive_cmds_need_lc
  17096. # Whether or not to disallow shared libs when runtime libs are static.
  17097. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17098. # Compiler flag to allow reflexive dlopens.
  17099. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17100. # Compiler flag to generate shared objects directly from archives.
  17101. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17102. # Whether the compiler copes with passing no objects directly.
  17103. compiler_needs_object=$lt_compiler_needs_object
  17104. # Create an old-style archive from a shared archive.
  17105. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17106. # Create a temporary old-style archive to link instead of a shared archive.
  17107. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17108. # Commands used to build a shared archive.
  17109. archive_cmds=$lt_archive_cmds
  17110. archive_expsym_cmds=$lt_archive_expsym_cmds
  17111. # Commands used to build a loadable module if different from building
  17112. # a shared archive.
  17113. module_cmds=$lt_module_cmds
  17114. module_expsym_cmds=$lt_module_expsym_cmds
  17115. # Whether we are building with GNU ld or not.
  17116. with_gnu_ld=$lt_with_gnu_ld
  17117. # Flag that allows shared libraries with undefined symbols to be built.
  17118. allow_undefined_flag=$lt_allow_undefined_flag
  17119. # Flag that enforces no undefined symbols.
  17120. no_undefined_flag=$lt_no_undefined_flag
  17121. # Flag to hardcode \$libdir into a binary during linking.
  17122. # This must work even if \$libdir does not exist
  17123. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17124. # Whether we need a single "-rpath" flag with a separated argument.
  17125. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17126. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17127. # DIR into the resulting binary.
  17128. hardcode_direct=$hardcode_direct
  17129. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17130. # DIR into the resulting binary and the resulting library dependency is
  17131. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17132. # library is relocated.
  17133. hardcode_direct_absolute=$hardcode_direct_absolute
  17134. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17135. # into the resulting binary.
  17136. hardcode_minus_L=$hardcode_minus_L
  17137. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17138. # into the resulting binary.
  17139. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17140. # Set to "yes" if building a shared library automatically hardcodes DIR
  17141. # into the library and all subsequent libraries and executables linked
  17142. # against it.
  17143. hardcode_automatic=$hardcode_automatic
  17144. # Set to yes if linker adds runtime paths of dependent libraries
  17145. # to runtime path list.
  17146. inherit_rpath=$inherit_rpath
  17147. # Whether libtool must link a program against all its dependency libraries.
  17148. link_all_deplibs=$link_all_deplibs
  17149. # Set to "yes" if exported symbols are required.
  17150. always_export_symbols=$always_export_symbols
  17151. # The commands to list exported symbols.
  17152. export_symbols_cmds=$lt_export_symbols_cmds
  17153. # Symbols that should not be listed in the preloaded symbols.
  17154. exclude_expsyms=$lt_exclude_expsyms
  17155. # Symbols that must always be exported.
  17156. include_expsyms=$lt_include_expsyms
  17157. # Commands necessary for linking programs (against libraries) with templates.
  17158. prelink_cmds=$lt_prelink_cmds
  17159. # Commands necessary for finishing linking programs.
  17160. postlink_cmds=$lt_postlink_cmds
  17161. # Specify filename containing input files.
  17162. file_list_spec=$lt_file_list_spec
  17163. # How to hardcode a shared library path into an executable.
  17164. hardcode_action=$hardcode_action
  17165. # The directories searched by this compiler when creating a shared library.
  17166. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17167. # Dependencies to place before and after the objects being linked to
  17168. # create a shared library.
  17169. predep_objects=$lt_predep_objects
  17170. postdep_objects=$lt_postdep_objects
  17171. predeps=$lt_predeps
  17172. postdeps=$lt_postdeps
  17173. # The library search path used internally by the compiler when linking
  17174. # a shared library.
  17175. compiler_lib_search_path=$lt_compiler_lib_search_path
  17176. # ### END LIBTOOL CONFIG
  17177. _LT_EOF
  17178. cat <<'_LT_EOF' >> "$cfgfile"
  17179. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17180. # func_munge_path_list VARIABLE PATH
  17181. # -----------------------------------
  17182. # VARIABLE is name of variable containing _space_ separated list of
  17183. # directories to be munged by the contents of PATH, which is string
  17184. # having a format:
  17185. # "DIR[:DIR]:"
  17186. # string "DIR[ DIR]" will be prepended to VARIABLE
  17187. # ":DIR[:DIR]"
  17188. # string "DIR[ DIR]" will be appended to VARIABLE
  17189. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17190. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17191. # "DIRA[ DIRA]" will be appended to VARIABLE
  17192. # "DIR[:DIR]"
  17193. # VARIABLE will be replaced by "DIR[ DIR]"
  17194. func_munge_path_list ()
  17195. {
  17196. case x$2 in
  17197. x)
  17198. ;;
  17199. *:)
  17200. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17201. ;;
  17202. x:*)
  17203. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17204. ;;
  17205. *::*)
  17206. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17207. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17208. ;;
  17209. *)
  17210. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17211. ;;
  17212. esac
  17213. }
  17214. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17215. func_cc_basename ()
  17216. {
  17217. for cc_temp in $*""; do
  17218. case $cc_temp in
  17219. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17220. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17221. \-*) ;;
  17222. *) break;;
  17223. esac
  17224. done
  17225. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17226. }
  17227. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17228. _LT_EOF
  17229. case $host_os in
  17230. aix3*)
  17231. cat <<\_LT_EOF >> "$cfgfile"
  17232. # AIX sometimes has problems with the GCC collect2 program. For some
  17233. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17234. # vanish in a puff of smoke.
  17235. if test set != "${COLLECT_NAMES+set}"; then
  17236. COLLECT_NAMES=
  17237. export COLLECT_NAMES
  17238. fi
  17239. _LT_EOF
  17240. ;;
  17241. esac
  17242. ltmain=$ac_aux_dir/ltmain.sh
  17243. # We use sed instead of cat because bash on DJGPP gets confused if
  17244. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17245. # text mode, it properly converts lines to CR/LF. This bash problem
  17246. # is reportedly fixed, but why not run on old versions too?
  17247. sed '$q' "$ltmain" >> "$cfgfile" \
  17248. || (rm -f "$cfgfile"; exit 1)
  17249. mv -f "$cfgfile" "$ofile" ||
  17250. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17251. chmod +x "$ofile"
  17252. cat <<_LT_EOF >> "$ofile"
  17253. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17254. # The linker used to build libraries.
  17255. LD=$lt_LD_CXX
  17256. # How to create reloadable object files.
  17257. reload_flag=$lt_reload_flag_CXX
  17258. reload_cmds=$lt_reload_cmds_CXX
  17259. # Commands used to build an old-style archive.
  17260. old_archive_cmds=$lt_old_archive_cmds_CXX
  17261. # A language specific compiler.
  17262. CC=$lt_compiler_CXX
  17263. # Is the compiler the GNU compiler?
  17264. with_gcc=$GCC_CXX
  17265. # Compiler flag to turn off builtin functions.
  17266. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17267. # Additional compiler flags for building library objects.
  17268. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17269. # How to pass a linker flag through the compiler.
  17270. wl=$lt_lt_prog_compiler_wl_CXX
  17271. # Compiler flag to prevent dynamic linking.
  17272. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17273. # Does compiler simultaneously support -c and -o options?
  17274. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17275. # Whether or not to add -lc for building shared libraries.
  17276. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17277. # Whether or not to disallow shared libs when runtime libs are static.
  17278. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17279. # Compiler flag to allow reflexive dlopens.
  17280. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17281. # Compiler flag to generate shared objects directly from archives.
  17282. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17283. # Whether the compiler copes with passing no objects directly.
  17284. compiler_needs_object=$lt_compiler_needs_object_CXX
  17285. # Create an old-style archive from a shared archive.
  17286. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17287. # Create a temporary old-style archive to link instead of a shared archive.
  17288. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17289. # Commands used to build a shared archive.
  17290. archive_cmds=$lt_archive_cmds_CXX
  17291. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17292. # Commands used to build a loadable module if different from building
  17293. # a shared archive.
  17294. module_cmds=$lt_module_cmds_CXX
  17295. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17296. # Whether we are building with GNU ld or not.
  17297. with_gnu_ld=$lt_with_gnu_ld_CXX
  17298. # Flag that allows shared libraries with undefined symbols to be built.
  17299. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17300. # Flag that enforces no undefined symbols.
  17301. no_undefined_flag=$lt_no_undefined_flag_CXX
  17302. # Flag to hardcode \$libdir into a binary during linking.
  17303. # This must work even if \$libdir does not exist
  17304. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17305. # Whether we need a single "-rpath" flag with a separated argument.
  17306. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17307. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17308. # DIR into the resulting binary.
  17309. hardcode_direct=$hardcode_direct_CXX
  17310. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17311. # DIR into the resulting binary and the resulting library dependency is
  17312. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17313. # library is relocated.
  17314. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17315. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17316. # into the resulting binary.
  17317. hardcode_minus_L=$hardcode_minus_L_CXX
  17318. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17319. # into the resulting binary.
  17320. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17321. # Set to "yes" if building a shared library automatically hardcodes DIR
  17322. # into the library and all subsequent libraries and executables linked
  17323. # against it.
  17324. hardcode_automatic=$hardcode_automatic_CXX
  17325. # Set to yes if linker adds runtime paths of dependent libraries
  17326. # to runtime path list.
  17327. inherit_rpath=$inherit_rpath_CXX
  17328. # Whether libtool must link a program against all its dependency libraries.
  17329. link_all_deplibs=$link_all_deplibs_CXX
  17330. # Set to "yes" if exported symbols are required.
  17331. always_export_symbols=$always_export_symbols_CXX
  17332. # The commands to list exported symbols.
  17333. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17334. # Symbols that should not be listed in the preloaded symbols.
  17335. exclude_expsyms=$lt_exclude_expsyms_CXX
  17336. # Symbols that must always be exported.
  17337. include_expsyms=$lt_include_expsyms_CXX
  17338. # Commands necessary for linking programs (against libraries) with templates.
  17339. prelink_cmds=$lt_prelink_cmds_CXX
  17340. # Commands necessary for finishing linking programs.
  17341. postlink_cmds=$lt_postlink_cmds_CXX
  17342. # Specify filename containing input files.
  17343. file_list_spec=$lt_file_list_spec_CXX
  17344. # How to hardcode a shared library path into an executable.
  17345. hardcode_action=$hardcode_action_CXX
  17346. # The directories searched by this compiler when creating a shared library.
  17347. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17348. # Dependencies to place before and after the objects being linked to
  17349. # create a shared library.
  17350. predep_objects=$lt_predep_objects_CXX
  17351. postdep_objects=$lt_postdep_objects_CXX
  17352. predeps=$lt_predeps_CXX
  17353. postdeps=$lt_postdeps_CXX
  17354. # The library search path used internally by the compiler when linking
  17355. # a shared library.
  17356. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17357. # ### END LIBTOOL TAG CONFIG: CXX
  17358. _LT_EOF
  17359. ;;
  17360. "configitems":C) "${srcdir}/tools/splitconfig" "${srcdir}" ;;
  17361. esac
  17362. done # for ac_tag
  17363. as_fn_exit 0
  17364. _ACEOF
  17365. ac_clean_files=$ac_clean_files_save
  17366. test $ac_write_fail = 0 ||
  17367. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17368. # configure is writing to config.log, and then calls config.status.
  17369. # config.status does its own redirection, appending to config.log.
  17370. # Unfortunately, on DOS this fails, as config.log is still kept open
  17371. # by configure, so config.status won't be able to write to it; its
  17372. # output is simply discarded. So we exec the FD to /dev/null,
  17373. # effectively closing config.log, so it can be properly (re)opened and
  17374. # appended to by config.status. When coming back to configure, we
  17375. # need to make the FD available again.
  17376. if test "$no_create" != yes; then
  17377. ac_cs_success=:
  17378. ac_config_status_args=
  17379. test "$silent" = yes &&
  17380. ac_config_status_args="$ac_config_status_args --quiet"
  17381. exec 5>/dev/null
  17382. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17383. exec 5>>config.log
  17384. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17385. # would make configure fail if this is the last instruction.
  17386. $ac_cs_success || as_fn_exit 1
  17387. fi
  17388. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17390. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17391. fi