configure 633 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for expat 2.2.9.
  4. #
  5. # Report bugs to <[email protected]>.
  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
  259. $0: [email protected] about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a 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='expat'
  542. PACKAGE_TARNAME='expat'
  543. PACKAGE_VERSION='2.2.9'
  544. PACKAGE_STRING='expat 2.2.9'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="Makefile.in"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. WITH_DOCBOOK_FALSE
  589. WITH_DOCBOOK_TRUE
  590. DOCBOOK_TO_MAN
  591. FILEMAP
  592. UNICODE_FALSE
  593. UNICODE_TRUE
  594. MINGW_FALSE
  595. MINGW_TRUE
  596. WITH_TESTS_FALSE
  597. WITH_TESTS_TRUE
  598. WITH_EXAMPLES_FALSE
  599. WITH_EXAMPLES_TRUE
  600. WITH_XMLWF_FALSE
  601. WITH_XMLWF_TRUE
  602. CXXCPP
  603. am__fastdepCXX_FALSE
  604. am__fastdepCXX_TRUE
  605. CXXDEPMODE
  606. ac_ct_CXX
  607. CXXFLAGS
  608. CXX
  609. LIBAGE
  610. LIBREVISION
  611. LIBCURRENT
  612. CPP
  613. LT_SYS_LIBRARY_PATH
  614. OTOOL64
  615. OTOOL
  616. LIPO
  617. NMEDIT
  618. DSYMUTIL
  619. MANIFEST_TOOL
  620. RANLIB
  621. NM
  622. ac_ct_DUMPBIN
  623. DUMPBIN
  624. LD
  625. FGREP
  626. EGREP
  627. GREP
  628. SED
  629. LIBTOOL
  630. OBJDUMP
  631. DLLTOOL
  632. AS
  633. LN_S
  634. am__fastdepCC_FALSE
  635. am__fastdepCC_TRUE
  636. CCDEPMODE
  637. am__nodep
  638. AMDEPBACKSLASH
  639. AMDEP_FALSE
  640. AMDEP_TRUE
  641. am__include
  642. DEPDIR
  643. OBJEXT
  644. EXEEXT
  645. ac_ct_CC
  646. CPPFLAGS
  647. LDFLAGS
  648. CFLAGS
  649. CC
  650. ac_ct_AR
  651. AR
  652. AM_BACKSLASH
  653. AM_DEFAULT_VERBOSITY
  654. AM_DEFAULT_V
  655. AM_V
  656. am__untar
  657. am__tar
  658. AMTAR
  659. am__leading_dot
  660. SET_MAKE
  661. AWK
  662. mkdir_p
  663. MKDIR_P
  664. INSTALL_STRIP_PROGRAM
  665. STRIP
  666. install_sh
  667. MAKEINFO
  668. AUTOHEADER
  669. AUTOMAKE
  670. AUTOCONF
  671. ACLOCAL
  672. VERSION
  673. PACKAGE
  674. CYGPATH_W
  675. am__isrc
  676. INSTALL_DATA
  677. INSTALL_SCRIPT
  678. INSTALL_PROGRAM
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. build_os
  684. build_vendor
  685. build_cpu
  686. build
  687. target_alias
  688. host_alias
  689. build_alias
  690. LIBS
  691. ECHO_T
  692. ECHO_N
  693. ECHO_C
  694. DEFS
  695. mandir
  696. localedir
  697. libdir
  698. psdir
  699. pdfdir
  700. dvidir
  701. htmldir
  702. infodir
  703. docdir
  704. oldincludedir
  705. includedir
  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. with_xmlwf
  740. with_examples
  741. with_tests
  742. with_libbsd
  743. with_getrandom
  744. with_sys_getrandom
  745. enable_xml_attr_info
  746. enable_xml_context
  747. with_docbook
  748. '
  749. ac_precious_vars='build_alias
  750. host_alias
  751. target_alias
  752. CC
  753. CFLAGS
  754. LDFLAGS
  755. LIBS
  756. CPPFLAGS
  757. LT_SYS_LIBRARY_PATH
  758. CPP
  759. CXX
  760. CXXFLAGS
  761. CCC
  762. CXXCPP
  763. DOCBOOK_TO_MAN'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. ac_unrecognized_opts=
  768. ac_unrecognized_sep=
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. includedir='${prefix}/include'
  800. oldincludedir='/usr/include'
  801. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  802. infodir='${datarootdir}/info'
  803. htmldir='${docdir}'
  804. dvidir='${docdir}'
  805. pdfdir='${docdir}'
  806. psdir='${docdir}'
  807. libdir='${exec_prefix}/lib'
  808. localedir='${datarootdir}/locale'
  809. mandir='${datarootdir}/man'
  810. ac_prev=
  811. ac_dashdash=
  812. for ac_option
  813. do
  814. # If the previous option needs an argument, assign it.
  815. if test -n "$ac_prev"; then
  816. eval $ac_prev=\$ac_option
  817. ac_prev=
  818. continue
  819. fi
  820. case $ac_option in
  821. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  822. *=) ac_optarg= ;;
  823. *) ac_optarg=yes ;;
  824. esac
  825. # Accept the important Cygnus configure options, so we can diagnose typos.
  826. case $ac_dashdash$ac_option in
  827. --)
  828. ac_dashdash=yes ;;
  829. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  830. ac_prev=bindir ;;
  831. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  832. bindir=$ac_optarg ;;
  833. -build | --build | --buil | --bui | --bu)
  834. ac_prev=build_alias ;;
  835. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  836. build_alias=$ac_optarg ;;
  837. -cache-file | --cache-file | --cache-fil | --cache-fi \
  838. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  839. ac_prev=cache_file ;;
  840. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  841. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  842. cache_file=$ac_optarg ;;
  843. --config-cache | -C)
  844. cache_file=config.cache ;;
  845. -datadir | --datadir | --datadi | --datad)
  846. ac_prev=datadir ;;
  847. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  848. datadir=$ac_optarg ;;
  849. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  850. | --dataroo | --dataro | --datar)
  851. ac_prev=datarootdir ;;
  852. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  853. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  854. datarootdir=$ac_optarg ;;
  855. -disable-* | --disable-*)
  856. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  859. as_fn_error $? "invalid feature name: $ac_useropt"
  860. ac_useropt_orig=$ac_useropt
  861. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  862. case $ac_user_opts in
  863. *"
  864. "enable_$ac_useropt"
  865. "*) ;;
  866. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  867. ac_unrecognized_sep=', ';;
  868. esac
  869. eval enable_$ac_useropt=no ;;
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875. ac_prev=dvidir ;;
  876. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877. dvidir=$ac_optarg ;;
  878. -enable-* | --enable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: $ac_useropt"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=\$ac_optarg ;;
  893. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  894. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  895. | --exec | --exe | --ex)
  896. ac_prev=exec_prefix ;;
  897. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  898. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  899. | --exec=* | --exe=* | --ex=*)
  900. exec_prefix=$ac_optarg ;;
  901. -gas | --gas | --ga | --g)
  902. # Obsolete; use --with-gas.
  903. with_gas=yes ;;
  904. -help | --help | --hel | --he | -h)
  905. ac_init_help=long ;;
  906. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  907. ac_init_help=recursive ;;
  908. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  909. ac_init_help=short ;;
  910. -host | --host | --hos | --ho)
  911. ac_prev=host_alias ;;
  912. -host=* | --host=* | --hos=* | --ho=*)
  913. host_alias=$ac_optarg ;;
  914. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  915. ac_prev=htmldir ;;
  916. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  917. | --ht=*)
  918. htmldir=$ac_optarg ;;
  919. -includedir | --includedir | --includedi | --included | --include \
  920. | --includ | --inclu | --incl | --inc)
  921. ac_prev=includedir ;;
  922. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  923. | --includ=* | --inclu=* | --incl=* | --inc=*)
  924. includedir=$ac_optarg ;;
  925. -infodir | --infodir | --infodi | --infod | --info | --inf)
  926. ac_prev=infodir ;;
  927. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  928. infodir=$ac_optarg ;;
  929. -libdir | --libdir | --libdi | --libd)
  930. ac_prev=libdir ;;
  931. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  932. libdir=$ac_optarg ;;
  933. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  934. | --libexe | --libex | --libe)
  935. ac_prev=libexecdir ;;
  936. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  937. | --libexe=* | --libex=* | --libe=*)
  938. libexecdir=$ac_optarg ;;
  939. -localedir | --localedir | --localedi | --localed | --locale)
  940. ac_prev=localedir ;;
  941. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  942. localedir=$ac_optarg ;;
  943. -localstatedir | --localstatedir | --localstatedi | --localstated \
  944. | --localstate | --localstat | --localsta | --localst | --locals)
  945. ac_prev=localstatedir ;;
  946. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  947. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  948. localstatedir=$ac_optarg ;;
  949. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  950. ac_prev=mandir ;;
  951. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  952. mandir=$ac_optarg ;;
  953. -nfp | --nfp | --nf)
  954. # Obsolete; use --without-fp.
  955. with_fp=no ;;
  956. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  957. | --no-cr | --no-c | -n)
  958. no_create=yes ;;
  959. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  960. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  961. no_recursion=yes ;;
  962. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  963. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  964. | --oldin | --oldi | --old | --ol | --o)
  965. ac_prev=oldincludedir ;;
  966. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  967. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  968. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  969. oldincludedir=$ac_optarg ;;
  970. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  971. ac_prev=prefix ;;
  972. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  973. prefix=$ac_optarg ;;
  974. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  975. | --program-pre | --program-pr | --program-p)
  976. ac_prev=program_prefix ;;
  977. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  978. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  979. program_prefix=$ac_optarg ;;
  980. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  981. | --program-suf | --program-su | --program-s)
  982. ac_prev=program_suffix ;;
  983. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  984. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  985. program_suffix=$ac_optarg ;;
  986. -program-transform-name | --program-transform-name \
  987. | --program-transform-nam | --program-transform-na \
  988. | --program-transform-n | --program-transform- \
  989. | --program-transform | --program-transfor \
  990. | --program-transfo | --program-transf \
  991. | --program-trans | --program-tran \
  992. | --progr-tra | --program-tr | --program-t)
  993. ac_prev=program_transform_name ;;
  994. -program-transform-name=* | --program-transform-name=* \
  995. | --program-transform-nam=* | --program-transform-na=* \
  996. | --program-transform-n=* | --program-transform-=* \
  997. | --program-transform=* | --program-transfor=* \
  998. | --program-transfo=* | --program-transf=* \
  999. | --program-trans=* | --program-tran=* \
  1000. | --progr-tra=* | --program-tr=* | --program-t=*)
  1001. program_transform_name=$ac_optarg ;;
  1002. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1003. ac_prev=pdfdir ;;
  1004. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1005. pdfdir=$ac_optarg ;;
  1006. -psdir | --psdir | --psdi | --psd | --ps)
  1007. ac_prev=psdir ;;
  1008. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1009. psdir=$ac_optarg ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. silent=yes ;;
  1013. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1014. ac_prev=sbindir ;;
  1015. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1016. | --sbi=* | --sb=*)
  1017. sbindir=$ac_optarg ;;
  1018. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1019. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1020. | --sharedst | --shareds | --shared | --share | --shar \
  1021. | --sha | --sh)
  1022. ac_prev=sharedstatedir ;;
  1023. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1024. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1025. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1026. | --sha=* | --sh=*)
  1027. sharedstatedir=$ac_optarg ;;
  1028. -site | --site | --sit)
  1029. ac_prev=site ;;
  1030. -site=* | --site=* | --sit=*)
  1031. site=$ac_optarg ;;
  1032. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1033. ac_prev=srcdir ;;
  1034. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1035. srcdir=$ac_optarg ;;
  1036. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1037. | --syscon | --sysco | --sysc | --sys | --sy)
  1038. ac_prev=sysconfdir ;;
  1039. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1040. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1041. sysconfdir=$ac_optarg ;;
  1042. -target | --target | --targe | --targ | --tar | --ta | --t)
  1043. ac_prev=target_alias ;;
  1044. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1045. target_alias=$ac_optarg ;;
  1046. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1047. verbose=yes ;;
  1048. -version | --version | --versio | --versi | --vers | -V)
  1049. ac_init_version=: ;;
  1050. -with-* | --with-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=\$ac_optarg ;;
  1065. -without-* | --without-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=no ;;
  1080. --x)
  1081. # Obsolete; use --with-x.
  1082. with_x=yes ;;
  1083. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1084. | --x-incl | --x-inc | --x-in | --x-i)
  1085. ac_prev=x_includes ;;
  1086. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1087. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1088. x_includes=$ac_optarg ;;
  1089. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1090. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1091. ac_prev=x_libraries ;;
  1092. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1093. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1094. x_libraries=$ac_optarg ;;
  1095. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1096. Try \`$0 --help' for more information"
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. case $ac_envvar in #(
  1102. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1103. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1104. esac
  1105. eval $ac_envvar=\$ac_optarg
  1106. export $ac_envvar ;;
  1107. *)
  1108. # FIXME: should be removed in autoconf 3.0.
  1109. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1110. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1111. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1112. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1113. ;;
  1114. esac
  1115. done
  1116. if test -n "$ac_prev"; then
  1117. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1118. as_fn_error $? "missing argument to $ac_option"
  1119. fi
  1120. if test -n "$ac_unrecognized_opts"; then
  1121. case $enable_option_checking in
  1122. no) ;;
  1123. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1124. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1125. esac
  1126. fi
  1127. # Check all directory arguments for consistency.
  1128. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1129. datadir sysconfdir sharedstatedir localstatedir includedir \
  1130. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1131. libdir localedir mandir
  1132. do
  1133. eval ac_val=\$$ac_var
  1134. # Remove trailing slashes.
  1135. case $ac_val in
  1136. */ )
  1137. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1138. eval $ac_var=\$ac_val;;
  1139. esac
  1140. # Be sure to have absolute directory names.
  1141. case $ac_val in
  1142. [\\/$]* | ?:[\\/]* ) continue;;
  1143. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1144. esac
  1145. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1146. done
  1147. # There might be people who depend on the old broken behavior: `$host'
  1148. # used to hold the argument of --host etc.
  1149. # FIXME: To remove some day.
  1150. build=$build_alias
  1151. host=$host_alias
  1152. target=$target_alias
  1153. # FIXME: To remove some day.
  1154. if test "x$host_alias" != x; then
  1155. if test "x$build_alias" = x; then
  1156. cross_compiling=maybe
  1157. elif test "x$build_alias" != "x$host_alias"; then
  1158. cross_compiling=yes
  1159. fi
  1160. fi
  1161. ac_tool_prefix=
  1162. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1163. test "$silent" = yes && exec 6>/dev/null
  1164. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1165. ac_ls_di=`ls -di .` &&
  1166. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1167. as_fn_error $? "working directory cannot be determined"
  1168. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1169. as_fn_error $? "pwd does not report name of working directory"
  1170. # Find the source files, if location was not specified.
  1171. if test -z "$srcdir"; then
  1172. ac_srcdir_defaulted=yes
  1173. # Try the directory containing this script, then the parent directory.
  1174. ac_confdir=`$as_dirname -- "$as_myself" ||
  1175. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1176. X"$as_myself" : 'X\(//\)[^/]' \| \
  1177. X"$as_myself" : 'X\(//\)$' \| \
  1178. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1179. $as_echo X"$as_myself" |
  1180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\/\)[^/].*/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)$/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\).*/{
  1193. s//\1/
  1194. q
  1195. }
  1196. s/.*/./; q'`
  1197. srcdir=$ac_confdir
  1198. if test ! -r "$srcdir/$ac_unique_file"; then
  1199. srcdir=..
  1200. fi
  1201. else
  1202. ac_srcdir_defaulted=no
  1203. fi
  1204. if test ! -r "$srcdir/$ac_unique_file"; then
  1205. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1206. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1207. fi
  1208. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1209. ac_abs_confdir=`(
  1210. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1211. pwd)`
  1212. # When building in place, set srcdir=.
  1213. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1214. srcdir=.
  1215. fi
  1216. # Remove unnecessary trailing slashes from srcdir.
  1217. # Double slashes in file names in object file debugging info
  1218. # mess up M-x gdb in Emacs.
  1219. case $srcdir in
  1220. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1221. esac
  1222. for ac_var in $ac_precious_vars; do
  1223. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1224. eval ac_env_${ac_var}_value=\$${ac_var}
  1225. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1226. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1227. done
  1228. #
  1229. # Report the --help message.
  1230. #
  1231. if test "$ac_init_help" = "long"; then
  1232. # Omit some internal or obsolete options to make the list less imposing.
  1233. # This message is too long to be a string in the A/UX 3.1 sh.
  1234. cat <<_ACEOF
  1235. \`configure' configures expat 2.2.9 to adapt to many kinds of systems.
  1236. Usage: $0 [OPTION]... [VAR=VALUE]...
  1237. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1238. VAR=VALUE. See below for descriptions of some of the useful variables.
  1239. Defaults for the options are specified in brackets.
  1240. Configuration:
  1241. -h, --help display this help and exit
  1242. --help=short display options specific to this package
  1243. --help=recursive display the short help of all the included packages
  1244. -V, --version display version information and exit
  1245. -q, --quiet, --silent do not print \`checking ...' messages
  1246. --cache-file=FILE cache test results in FILE [disabled]
  1247. -C, --config-cache alias for \`--cache-file=config.cache'
  1248. -n, --no-create do not create output files
  1249. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1250. Installation directories:
  1251. --prefix=PREFIX install architecture-independent files in PREFIX
  1252. [$ac_default_prefix]
  1253. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1254. [PREFIX]
  1255. By default, \`make install' will install all the files in
  1256. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1257. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1258. for instance \`--prefix=\$HOME'.
  1259. For better control, use the options below.
  1260. Fine tuning of the installation directories:
  1261. --bindir=DIR user executables [EPREFIX/bin]
  1262. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1263. --libexecdir=DIR program executables [EPREFIX/libexec]
  1264. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1265. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1266. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1267. --libdir=DIR object code libraries [EPREFIX/lib]
  1268. --includedir=DIR C header files [PREFIX/include]
  1269. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1270. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1271. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1272. --infodir=DIR info documentation [DATAROOTDIR/info]
  1273. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1274. --mandir=DIR man documentation [DATAROOTDIR/man]
  1275. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1276. --htmldir=DIR html documentation [DOCDIR]
  1277. --dvidir=DIR dvi documentation [DOCDIR]
  1278. --pdfdir=DIR pdf documentation [DOCDIR]
  1279. --psdir=DIR ps documentation [DOCDIR]
  1280. _ACEOF
  1281. cat <<\_ACEOF
  1282. Program names:
  1283. --program-prefix=PREFIX prepend PREFIX to installed program names
  1284. --program-suffix=SUFFIX append SUFFIX to installed program names
  1285. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1286. System types:
  1287. --build=BUILD configure for building on BUILD [guessed]
  1288. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1289. _ACEOF
  1290. fi
  1291. if test -n "$ac_init_help"; then
  1292. case $ac_init_help in
  1293. short | recursive ) echo "Configuration of expat 2.2.9:";;
  1294. esac
  1295. cat <<\_ACEOF
  1296. Optional Features:
  1297. --disable-option-checking ignore unrecognized --enable/--with options
  1298. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1299. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1300. --enable-silent-rules less verbose build output (undo: "make V=1")
  1301. --disable-silent-rules verbose build output (undo: "make V=0")
  1302. --enable-dependency-tracking
  1303. do not reject slow dependency extractors
  1304. --disable-dependency-tracking
  1305. speeds up one-time build
  1306. --enable-shared[=PKGS] build shared libraries [default=yes]
  1307. --enable-static[=PKGS] build static libraries [default=yes]
  1308. --enable-fast-install[=PKGS]
  1309. optimize for fast installation [default=yes]
  1310. --disable-libtool-lock avoid locking (might break parallel builds)
  1311. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1312. names and values [default=no]
  1313. --enable-xml-context [COUNT]
  1314. Retain context around the current parse point;
  1315. default is enabled and a size of 1024 bytes
  1316. --disable-xml-context Do not retain context around the current parse point
  1317. Optional Packages:
  1318. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1319. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1320. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1321. both]
  1322. --with-aix-soname=aix|svr4|both
  1323. shared library versioning (aka "SONAME") variant to
  1324. provide on AIX, [default=aix].
  1325. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1326. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1327. compiler's sysroot if not specified).
  1328. --without-xmlwf do not build xmlwf
  1329. --without-examples do not build examples [default=included]
  1330. --without-tests do not build tests [default=included]
  1331. --with-libbsd utilize libbsd (for arc4random_buf)
  1332. --with-getrandom enforce the use of getrandom function in the system
  1333. [default=check]
  1334. --without-getrandom skip auto detect of getrandom [default=check]
  1335. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1336. the system [default=check]
  1337. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1338. [default=check]
  1339. --with-docbook enforce XML to man page compilation [default=check]
  1340. --without-docbook skip XML to man page compilation [default=check]
  1341. Some influential environment variables:
  1342. CC C compiler command
  1343. CFLAGS C compiler flags
  1344. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1345. nonstandard directory <lib dir>
  1346. LIBS libraries to pass to the linker, e.g. -l<library>
  1347. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1348. you have headers in a nonstandard directory <include dir>
  1349. LT_SYS_LIBRARY_PATH
  1350. User-defined run-time library search path.
  1351. CPP C preprocessor
  1352. CXX C++ compiler command
  1353. CXXFLAGS C++ compiler flags
  1354. CXXCPP C++ preprocessor
  1355. DOCBOOK_TO_MAN
  1356. docbook2x-man command
  1357. Use these variables to override the choices made by `configure' or to help
  1358. it to find libraries and programs with nonstandard names/locations.
  1359. Report bugs to <[email protected]>.
  1360. _ACEOF
  1361. ac_status=$?
  1362. fi
  1363. if test "$ac_init_help" = "recursive"; then
  1364. # If there are subdirs, report their specific --help.
  1365. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1366. test -d "$ac_dir" ||
  1367. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1368. continue
  1369. ac_builddir=.
  1370. case "$ac_dir" in
  1371. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1372. *)
  1373. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1374. # A ".." for each directory in $ac_dir_suffix.
  1375. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1376. case $ac_top_builddir_sub in
  1377. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1378. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1379. esac ;;
  1380. esac
  1381. ac_abs_top_builddir=$ac_pwd
  1382. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1383. # for backward compatibility:
  1384. ac_top_builddir=$ac_top_build_prefix
  1385. case $srcdir in
  1386. .) # We are building in place.
  1387. ac_srcdir=.
  1388. ac_top_srcdir=$ac_top_builddir_sub
  1389. ac_abs_top_srcdir=$ac_pwd ;;
  1390. [\\/]* | ?:[\\/]* ) # Absolute name.
  1391. ac_srcdir=$srcdir$ac_dir_suffix;
  1392. ac_top_srcdir=$srcdir
  1393. ac_abs_top_srcdir=$srcdir ;;
  1394. *) # Relative name.
  1395. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1396. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1397. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1398. esac
  1399. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1400. cd "$ac_dir" || { ac_status=$?; continue; }
  1401. # Check for guested configure.
  1402. if test -f "$ac_srcdir/configure.gnu"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1405. elif test -f "$ac_srcdir/configure"; then
  1406. echo &&
  1407. $SHELL "$ac_srcdir/configure" --help=recursive
  1408. else
  1409. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1410. fi || ac_status=$?
  1411. cd "$ac_pwd" || { ac_status=$?; break; }
  1412. done
  1413. fi
  1414. test -n "$ac_init_help" && exit $ac_status
  1415. if $ac_init_version; then
  1416. cat <<\_ACEOF
  1417. expat configure 2.2.9
  1418. generated by GNU Autoconf 2.69
  1419. Copyright (C) 2012 Free Software Foundation, Inc.
  1420. This configure script is free software; the Free Software Foundation
  1421. gives unlimited permission to copy, distribute and modify it.
  1422. _ACEOF
  1423. exit
  1424. fi
  1425. ## ------------------------ ##
  1426. ## Autoconf initialization. ##
  1427. ## ------------------------ ##
  1428. # ac_fn_c_try_compile LINENO
  1429. # --------------------------
  1430. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1431. ac_fn_c_try_compile ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. rm -f conftest.$ac_objext
  1435. if { { ac_try="$ac_compile"
  1436. case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_compile") 2>conftest.err
  1443. ac_status=$?
  1444. if test -s conftest.err; then
  1445. grep -v '^ *+' conftest.err >conftest.er1
  1446. cat conftest.er1 >&5
  1447. mv -f conftest.er1 conftest.err
  1448. fi
  1449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1450. test $ac_status = 0; } && {
  1451. test -z "$ac_c_werror_flag" ||
  1452. test ! -s conftest.err
  1453. } && test -s conftest.$ac_objext; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_c_try_compile
  1463. # ac_fn_c_try_link LINENO
  1464. # -----------------------
  1465. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_c_try_link ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. rm -f conftest.$ac_objext conftest$ac_exeext
  1470. if { { ac_try="$ac_link"
  1471. case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_link") 2>conftest.err
  1478. ac_status=$?
  1479. if test -s conftest.err; then
  1480. grep -v '^ *+' conftest.err >conftest.er1
  1481. cat conftest.er1 >&5
  1482. mv -f conftest.er1 conftest.err
  1483. fi
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } && {
  1486. test -z "$ac_c_werror_flag" ||
  1487. test ! -s conftest.err
  1488. } && test -s conftest$ac_exeext && {
  1489. test "$cross_compiling" = yes ||
  1490. test -x conftest$ac_exeext
  1491. }; then :
  1492. ac_retval=0
  1493. else
  1494. $as_echo "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1499. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1500. # interfere with the next link command; also delete a directory that is
  1501. # left behind by Apple's compiler. We do this before executing the actions.
  1502. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1504. as_fn_set_status $ac_retval
  1505. } # ac_fn_c_try_link
  1506. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1507. # -------------------------------------------------------
  1508. # Tests whether HEADER exists and can be compiled using the include files in
  1509. # INCLUDES, setting the cache variable VAR accordingly.
  1510. ac_fn_c_check_header_compile ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1514. $as_echo_n "checking for $2... " >&6; }
  1515. if eval \${$3+:} false; then :
  1516. $as_echo_n "(cached) " >&6
  1517. else
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. eval "$3=yes"
  1525. else
  1526. eval "$3=no"
  1527. fi
  1528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1529. fi
  1530. eval ac_res=\$$3
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1532. $as_echo "$ac_res" >&6; }
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_c_check_header_compile
  1535. # ac_fn_c_try_cpp LINENO
  1536. # ----------------------
  1537. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1538. ac_fn_c_try_cpp ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1549. ac_status=$?
  1550. if test -s conftest.err; then
  1551. grep -v '^ *+' conftest.err >conftest.er1
  1552. cat conftest.er1 >&5
  1553. mv -f conftest.er1 conftest.err
  1554. fi
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; } > conftest.i && {
  1557. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1558. test ! -s conftest.err
  1559. }; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1567. as_fn_set_status $ac_retval
  1568. } # ac_fn_c_try_cpp
  1569. # ac_fn_c_try_run LINENO
  1570. # ----------------------
  1571. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1572. # that executables *can* be run.
  1573. ac_fn_c_try_run ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. if { { ac_try="$ac_link"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_link") 2>&5
  1584. ac_status=$?
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1587. { { case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_try") 2>&5
  1594. ac_status=$?
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; }; }; then :
  1597. ac_retval=0
  1598. else
  1599. $as_echo "$as_me: program exited with status $ac_status" >&5
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=$ac_status
  1603. fi
  1604. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1605. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1606. as_fn_set_status $ac_retval
  1607. } # ac_fn_c_try_run
  1608. # ac_fn_c_check_func LINENO FUNC VAR
  1609. # ----------------------------------
  1610. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1611. ac_fn_c_check_func ()
  1612. {
  1613. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1615. $as_echo_n "checking for $2... " >&6; }
  1616. if eval \${$3+:} false; then :
  1617. $as_echo_n "(cached) " >&6
  1618. else
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1622. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1623. #define $2 innocuous_$2
  1624. /* System header to define __stub macros and hopefully few prototypes,
  1625. which can conflict with char $2 (); below.
  1626. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1627. <limits.h> exists even on freestanding compilers. */
  1628. #ifdef __STDC__
  1629. # include <limits.h>
  1630. #else
  1631. # include <assert.h>
  1632. #endif
  1633. #undef $2
  1634. /* Override any GCC internal prototype to avoid an error.
  1635. Use char because int might match the return type of a GCC
  1636. builtin and then its argument prototype would still apply. */
  1637. #ifdef __cplusplus
  1638. extern "C"
  1639. #endif
  1640. char $2 ();
  1641. /* The GNU C library defines this for functions which it implements
  1642. to always fail with ENOSYS. Some functions are actually named
  1643. something starting with __ and the normal name is an alias. */
  1644. #if defined __stub_$2 || defined __stub___$2
  1645. choke me
  1646. #endif
  1647. int
  1648. main ()
  1649. {
  1650. return $2 ();
  1651. ;
  1652. return 0;
  1653. }
  1654. _ACEOF
  1655. if ac_fn_c_try_link "$LINENO"; then :
  1656. eval "$3=yes"
  1657. else
  1658. eval "$3=no"
  1659. fi
  1660. rm -f core conftest.err conftest.$ac_objext \
  1661. conftest$ac_exeext conftest.$ac_ext
  1662. fi
  1663. eval ac_res=\$$3
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1665. $as_echo "$ac_res" >&6; }
  1666. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1667. } # ac_fn_c_check_func
  1668. # ac_fn_cxx_try_compile LINENO
  1669. # ----------------------------
  1670. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1671. ac_fn_cxx_try_compile ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. rm -f conftest.$ac_objext
  1675. if { { ac_try="$ac_compile"
  1676. case "(($ac_try" in
  1677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1678. *) ac_try_echo=$ac_try;;
  1679. esac
  1680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1681. $as_echo "$ac_try_echo"; } >&5
  1682. (eval "$ac_compile") 2>conftest.err
  1683. ac_status=$?
  1684. if test -s conftest.err; then
  1685. grep -v '^ *+' conftest.err >conftest.er1
  1686. cat conftest.er1 >&5
  1687. mv -f conftest.er1 conftest.err
  1688. fi
  1689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1690. test $ac_status = 0; } && {
  1691. test -z "$ac_cxx_werror_flag" ||
  1692. test ! -s conftest.err
  1693. } && test -s conftest.$ac_objext; then :
  1694. ac_retval=0
  1695. else
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=1
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_cxx_try_compile
  1703. # ac_fn_cxx_try_cpp LINENO
  1704. # ------------------------
  1705. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_cxx_try_cpp ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1717. ac_status=$?
  1718. if test -s conftest.err; then
  1719. grep -v '^ *+' conftest.err >conftest.er1
  1720. cat conftest.er1 >&5
  1721. mv -f conftest.er1 conftest.err
  1722. fi
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } > conftest.i && {
  1725. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1726. test ! -s conftest.err
  1727. }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. ac_retval=1
  1733. fi
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_cxx_try_cpp
  1737. # ac_fn_cxx_try_link LINENO
  1738. # -------------------------
  1739. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_cxx_try_link ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext conftest$ac_exeext
  1744. if { { ac_try="$ac_link"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_link") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_cxx_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest$ac_exeext && {
  1763. test "$cross_compiling" = yes ||
  1764. test -x conftest$ac_exeext
  1765. }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1773. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1774. # interfere with the next link command; also delete a directory that is
  1775. # left behind by Apple's compiler. We do this before executing the actions.
  1776. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1777. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1778. as_fn_set_status $ac_retval
  1779. } # ac_fn_cxx_try_link
  1780. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1781. # -------------------------------------------
  1782. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1783. # variable VAR accordingly.
  1784. ac_fn_c_check_type ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1788. $as_echo_n "checking for $2... " >&6; }
  1789. if eval \${$3+:} false; then :
  1790. $as_echo_n "(cached) " >&6
  1791. else
  1792. eval "$3=no"
  1793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1794. /* end confdefs.h. */
  1795. $4
  1796. int
  1797. main ()
  1798. {
  1799. if (sizeof ($2))
  1800. return 0;
  1801. ;
  1802. return 0;
  1803. }
  1804. _ACEOF
  1805. if ac_fn_c_try_compile "$LINENO"; then :
  1806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1807. /* end confdefs.h. */
  1808. $4
  1809. int
  1810. main ()
  1811. {
  1812. if (sizeof (($2)))
  1813. return 0;
  1814. ;
  1815. return 0;
  1816. }
  1817. _ACEOF
  1818. if ac_fn_c_try_compile "$LINENO"; then :
  1819. else
  1820. eval "$3=yes"
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_c_check_type
  1831. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1832. # -------------------------------------------------------
  1833. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1834. # the include files in INCLUDES and setting the cache variable VAR
  1835. # accordingly.
  1836. ac_fn_c_check_header_mongrel ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. if eval \${$3+:} false; then :
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1841. $as_echo_n "checking for $2... " >&6; }
  1842. if eval \${$3+:} false; then :
  1843. $as_echo_n "(cached) " >&6
  1844. fi
  1845. eval ac_res=\$$3
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1847. $as_echo "$ac_res" >&6; }
  1848. else
  1849. # Is the header compilable?
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1851. $as_echo_n "checking $2 usability... " >&6; }
  1852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1853. /* end confdefs.h. */
  1854. $4
  1855. #include <$2>
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_header_compiler=yes
  1859. else
  1860. ac_header_compiler=no
  1861. fi
  1862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1864. $as_echo "$ac_header_compiler" >&6; }
  1865. # Is the header present?
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1867. $as_echo_n "checking $2 presence... " >&6; }
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. #include <$2>
  1871. _ACEOF
  1872. if ac_fn_c_try_cpp "$LINENO"; then :
  1873. ac_header_preproc=yes
  1874. else
  1875. ac_header_preproc=no
  1876. fi
  1877. rm -f conftest.err conftest.i conftest.$ac_ext
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1879. $as_echo "$ac_header_preproc" >&6; }
  1880. # So? What about this header?
  1881. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1882. yes:no: )
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1884. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1886. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1887. ;;
  1888. no:yes:* )
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1890. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1892. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1894. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1896. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1898. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1899. ( $as_echo "## -------------------------------------- ##
  1900. ## Report this to [email protected] ##
  1901. ## -------------------------------------- ##"
  1902. ) | sed "s/^/$as_me: WARNING: /" >&2
  1903. ;;
  1904. esac
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1906. $as_echo_n "checking for $2... " >&6; }
  1907. if eval \${$3+:} false; then :
  1908. $as_echo_n "(cached) " >&6
  1909. else
  1910. eval "$3=\$ac_header_compiler"
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. fi
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. } # ac_fn_c_check_header_mongrel
  1918. cat >config.log <<_ACEOF
  1919. This file contains any messages produced by compilers while
  1920. running configure, to aid debugging if configure makes a mistake.
  1921. It was created by expat $as_me 2.2.9, which was
  1922. generated by GNU Autoconf 2.69. Invocation command line was
  1923. $ $0 $@
  1924. _ACEOF
  1925. exec 5>>config.log
  1926. {
  1927. cat <<_ASUNAME
  1928. ## --------- ##
  1929. ## Platform. ##
  1930. ## --------- ##
  1931. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1932. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1933. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1934. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1935. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1936. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1937. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1938. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1939. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1940. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1941. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1942. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1943. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1944. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1945. _ASUNAME
  1946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1947. for as_dir in $PATH
  1948. do
  1949. IFS=$as_save_IFS
  1950. test -z "$as_dir" && as_dir=.
  1951. $as_echo "PATH: $as_dir"
  1952. done
  1953. IFS=$as_save_IFS
  1954. } >&5
  1955. cat >&5 <<_ACEOF
  1956. ## ----------- ##
  1957. ## Core tests. ##
  1958. ## ----------- ##
  1959. _ACEOF
  1960. # Keep a trace of the command line.
  1961. # Strip out --no-create and --no-recursion so they do not pile up.
  1962. # Strip out --silent because we don't want to record it for future runs.
  1963. # Also quote any args containing shell meta-characters.
  1964. # Make two passes to allow for proper duplicate-argument suppression.
  1965. ac_configure_args=
  1966. ac_configure_args0=
  1967. ac_configure_args1=
  1968. ac_must_keep_next=false
  1969. for ac_pass in 1 2
  1970. do
  1971. for ac_arg
  1972. do
  1973. case $ac_arg in
  1974. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1976. | -silent | --silent | --silen | --sile | --sil)
  1977. continue ;;
  1978. *\'*)
  1979. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1980. esac
  1981. case $ac_pass in
  1982. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1983. 2)
  1984. as_fn_append ac_configure_args1 " '$ac_arg'"
  1985. if test $ac_must_keep_next = true; then
  1986. ac_must_keep_next=false # Got value, back to normal.
  1987. else
  1988. case $ac_arg in
  1989. *=* | --config-cache | -C | -disable-* | --disable-* \
  1990. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1991. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1992. | -with-* | --with-* | -without-* | --without-* | --x)
  1993. case "$ac_configure_args0 " in
  1994. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1995. esac
  1996. ;;
  1997. -* ) ac_must_keep_next=true ;;
  1998. esac
  1999. fi
  2000. as_fn_append ac_configure_args " '$ac_arg'"
  2001. ;;
  2002. esac
  2003. done
  2004. done
  2005. { ac_configure_args0=; unset ac_configure_args0;}
  2006. { ac_configure_args1=; unset ac_configure_args1;}
  2007. # When interrupted or exit'd, cleanup temporary files, and complete
  2008. # config.log. We remove comments because anyway the quotes in there
  2009. # would cause problems or look ugly.
  2010. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2011. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2012. trap 'exit_status=$?
  2013. # Save into config.log some information that might help in debugging.
  2014. {
  2015. echo
  2016. $as_echo "## ---------------- ##
  2017. ## Cache variables. ##
  2018. ## ---------------- ##"
  2019. echo
  2020. # The following way of writing the cache mishandles newlines in values,
  2021. (
  2022. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2023. eval ac_val=\$$ac_var
  2024. case $ac_val in #(
  2025. *${as_nl}*)
  2026. case $ac_var in #(
  2027. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2028. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2029. esac
  2030. case $ac_var in #(
  2031. _ | IFS | as_nl) ;; #(
  2032. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2033. *) { eval $ac_var=; unset $ac_var;} ;;
  2034. esac ;;
  2035. esac
  2036. done
  2037. (set) 2>&1 |
  2038. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2039. *${as_nl}ac_space=\ *)
  2040. sed -n \
  2041. "s/'\''/'\''\\\\'\'''\''/g;
  2042. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2043. ;; #(
  2044. *)
  2045. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2046. ;;
  2047. esac |
  2048. sort
  2049. )
  2050. echo
  2051. $as_echo "## ----------------- ##
  2052. ## Output variables. ##
  2053. ## ----------------- ##"
  2054. echo
  2055. for ac_var in $ac_subst_vars
  2056. do
  2057. eval ac_val=\$$ac_var
  2058. case $ac_val in
  2059. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2060. esac
  2061. $as_echo "$ac_var='\''$ac_val'\''"
  2062. done | sort
  2063. echo
  2064. if test -n "$ac_subst_files"; then
  2065. $as_echo "## ------------------- ##
  2066. ## File substitutions. ##
  2067. ## ------------------- ##"
  2068. echo
  2069. for ac_var in $ac_subst_files
  2070. do
  2071. eval ac_val=\$$ac_var
  2072. case $ac_val in
  2073. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2074. esac
  2075. $as_echo "$ac_var='\''$ac_val'\''"
  2076. done | sort
  2077. echo
  2078. fi
  2079. if test -s confdefs.h; then
  2080. $as_echo "## ----------- ##
  2081. ## confdefs.h. ##
  2082. ## ----------- ##"
  2083. echo
  2084. cat confdefs.h
  2085. echo
  2086. fi
  2087. test "$ac_signal" != 0 &&
  2088. $as_echo "$as_me: caught signal $ac_signal"
  2089. $as_echo "$as_me: exit $exit_status"
  2090. } >&5
  2091. rm -f core *.core core.conftest.* &&
  2092. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2093. exit $exit_status
  2094. ' 0
  2095. for ac_signal in 1 2 13 15; do
  2096. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2097. done
  2098. ac_signal=0
  2099. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2100. rm -f -r conftest* confdefs.h
  2101. $as_echo "/* confdefs.h */" > confdefs.h
  2102. # Predefined preprocessor variables.
  2103. cat >>confdefs.h <<_ACEOF
  2104. #define PACKAGE_NAME "$PACKAGE_NAME"
  2105. _ACEOF
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_STRING "$PACKAGE_STRING"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2117. _ACEOF
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE_URL "$PACKAGE_URL"
  2120. _ACEOF
  2121. # Let the site file select an alternate cache file if it wants to.
  2122. # Prefer an explicitly selected file to automatically selected ones.
  2123. ac_site_file1=NONE
  2124. ac_site_file2=NONE
  2125. if test -n "$CONFIG_SITE"; then
  2126. # We do not want a PATH search for config.site.
  2127. case $CONFIG_SITE in #((
  2128. -*) ac_site_file1=./$CONFIG_SITE;;
  2129. */*) ac_site_file1=$CONFIG_SITE;;
  2130. *) ac_site_file1=./$CONFIG_SITE;;
  2131. esac
  2132. elif test "x$prefix" != xNONE; then
  2133. ac_site_file1=$prefix/share/config.site
  2134. ac_site_file2=$prefix/etc/config.site
  2135. else
  2136. ac_site_file1=$ac_default_prefix/share/config.site
  2137. ac_site_file2=$ac_default_prefix/etc/config.site
  2138. fi
  2139. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2140. do
  2141. test "x$ac_site_file" = xNONE && continue
  2142. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2144. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2145. sed 's/^/| /' "$ac_site_file" >&5
  2146. . "$ac_site_file" \
  2147. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2149. as_fn_error $? "failed to load site script $ac_site_file
  2150. See \`config.log' for more details" "$LINENO" 5; }
  2151. fi
  2152. done
  2153. if test -r "$cache_file"; then
  2154. # Some versions of bash will fail to source /dev/null (special files
  2155. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2156. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2158. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2159. case $cache_file in
  2160. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2161. *) . "./$cache_file";;
  2162. esac
  2163. fi
  2164. else
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2166. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2167. >$cache_file
  2168. fi
  2169. as_fn_append ac_header_list " stdlib.h"
  2170. as_fn_append ac_header_list " unistd.h"
  2171. as_fn_append ac_header_list " sys/param.h"
  2172. # Check that the precious variables saved in the cache have kept the same
  2173. # value.
  2174. ac_cache_corrupted=false
  2175. for ac_var in $ac_precious_vars; do
  2176. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2177. eval ac_new_set=\$ac_env_${ac_var}_set
  2178. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2179. eval ac_new_val=\$ac_env_${ac_var}_value
  2180. case $ac_old_set,$ac_new_set in
  2181. set,)
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2183. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2184. ac_cache_corrupted=: ;;
  2185. ,set)
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2187. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2188. ac_cache_corrupted=: ;;
  2189. ,);;
  2190. *)
  2191. if test "x$ac_old_val" != "x$ac_new_val"; then
  2192. # differences in whitespace do not lead to failure.
  2193. ac_old_val_w=`echo x $ac_old_val`
  2194. ac_new_val_w=`echo x $ac_new_val`
  2195. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2197. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2198. ac_cache_corrupted=:
  2199. else
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2201. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2202. eval $ac_var=\$ac_old_val
  2203. fi
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2205. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2207. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2208. fi;;
  2209. esac
  2210. # Pass precious variables to config.status.
  2211. if test "$ac_new_set" = set; then
  2212. case $ac_new_val in
  2213. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2214. *) ac_arg=$ac_var=$ac_new_val ;;
  2215. esac
  2216. case " $ac_configure_args " in
  2217. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2218. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2219. esac
  2220. fi
  2221. done
  2222. if $ac_cache_corrupted; then
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2224. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2226. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2227. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2228. fi
  2229. ## -------------------- ##
  2230. ## Main body of script. ##
  2231. ## -------------------- ##
  2232. ac_ext=c
  2233. ac_cpp='$CPP $CPPFLAGS'
  2234. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2235. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2236. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2237. ac_aux_dir=
  2238. for ac_dir in conftools "$srcdir"/conftools; do
  2239. if test -f "$ac_dir/install-sh"; then
  2240. ac_aux_dir=$ac_dir
  2241. ac_install_sh="$ac_aux_dir/install-sh -c"
  2242. break
  2243. elif test -f "$ac_dir/install.sh"; then
  2244. ac_aux_dir=$ac_dir
  2245. ac_install_sh="$ac_aux_dir/install.sh -c"
  2246. break
  2247. elif test -f "$ac_dir/shtool"; then
  2248. ac_aux_dir=$ac_dir
  2249. ac_install_sh="$ac_aux_dir/shtool install -c"
  2250. break
  2251. fi
  2252. done
  2253. if test -z "$ac_aux_dir"; then
  2254. as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
  2255. fi
  2256. # These three variables are undocumented and unsupported,
  2257. # and are intended to be withdrawn in a future Autoconf release.
  2258. # They can cause serious problems if a builder's source tree is in a directory
  2259. # whose full name contains unusual characters.
  2260. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2261. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2262. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2263. # Make sure we can run config.sub.
  2264. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2265. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2267. $as_echo_n "checking build system type... " >&6; }
  2268. if ${ac_cv_build+:} false; then :
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. ac_build_alias=$build_alias
  2272. test "x$ac_build_alias" = x &&
  2273. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2274. test "x$ac_build_alias" = x &&
  2275. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2276. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2277. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2278. fi
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2280. $as_echo "$ac_cv_build" >&6; }
  2281. case $ac_cv_build in
  2282. *-*-*) ;;
  2283. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2284. esac
  2285. build=$ac_cv_build
  2286. ac_save_IFS=$IFS; IFS='-'
  2287. set x $ac_cv_build
  2288. shift
  2289. build_cpu=$1
  2290. build_vendor=$2
  2291. shift; shift
  2292. # Remember, the first character of IFS is used to create $*,
  2293. # except with old shells:
  2294. build_os=$*
  2295. IFS=$ac_save_IFS
  2296. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2298. $as_echo_n "checking host system type... " >&6; }
  2299. if ${ac_cv_host+:} false; then :
  2300. $as_echo_n "(cached) " >&6
  2301. else
  2302. if test "x$host_alias" = x; then
  2303. ac_cv_host=$ac_cv_build
  2304. else
  2305. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2306. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2307. fi
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2310. $as_echo "$ac_cv_host" >&6; }
  2311. case $ac_cv_host in
  2312. *-*-*) ;;
  2313. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2314. esac
  2315. host=$ac_cv_host
  2316. ac_save_IFS=$IFS; IFS='-'
  2317. set x $ac_cv_host
  2318. shift
  2319. host_cpu=$1
  2320. host_vendor=$2
  2321. shift; shift
  2322. # Remember, the first character of IFS is used to create $*,
  2323. # except with old shells:
  2324. host_os=$*
  2325. IFS=$ac_save_IFS
  2326. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2327. am__api_version='1.16'
  2328. # Find a good install program. We prefer a C program (faster),
  2329. # so one script is as good as another. But avoid the broken or
  2330. # incompatible versions:
  2331. # SysV /etc/install, /usr/sbin/install
  2332. # SunOS /usr/etc/install
  2333. # IRIX /sbin/install
  2334. # AIX /bin/install
  2335. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2336. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2337. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2338. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2339. # OS/2's system install, which has a completely different semantic
  2340. # ./install, which can be erroneously created by make from ./install.sh.
  2341. # Reject install programs that cannot install multiple files.
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2343. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2344. if test -z "$INSTALL"; then
  2345. if ${ac_cv_path_install+:} false; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. for as_dir in $PATH
  2350. do
  2351. IFS=$as_save_IFS
  2352. test -z "$as_dir" && as_dir=.
  2353. # Account for people who put trailing slashes in PATH elements.
  2354. case $as_dir/ in #((
  2355. ./ | .// | /[cC]/* | \
  2356. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2357. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2358. /usr/ucb/* ) ;;
  2359. *)
  2360. # OSF1 and SCO ODT 3.0 have their own names for install.
  2361. # Don't use installbsd from OSF since it installs stuff as root
  2362. # by default.
  2363. for ac_prog in ginstall scoinst install; do
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2366. if test $ac_prog = install &&
  2367. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2368. # AIX install. It has an incompatible calling convention.
  2369. :
  2370. elif test $ac_prog = install &&
  2371. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2372. # program-specific install script used by HP pwplus--don't use.
  2373. :
  2374. else
  2375. rm -rf conftest.one conftest.two conftest.dir
  2376. echo one > conftest.one
  2377. echo two > conftest.two
  2378. mkdir conftest.dir
  2379. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2380. test -s conftest.one && test -s conftest.two &&
  2381. test -s conftest.dir/conftest.one &&
  2382. test -s conftest.dir/conftest.two
  2383. then
  2384. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2385. break 3
  2386. fi
  2387. fi
  2388. fi
  2389. done
  2390. done
  2391. ;;
  2392. esac
  2393. done
  2394. IFS=$as_save_IFS
  2395. rm -rf conftest.one conftest.two conftest.dir
  2396. fi
  2397. if test "${ac_cv_path_install+set}" = set; then
  2398. INSTALL=$ac_cv_path_install
  2399. else
  2400. # As a last resort, use the slow shell script. Don't cache a
  2401. # value for INSTALL within a source directory, because that will
  2402. # break other packages using the cache if that directory is
  2403. # removed, or if the value is a relative name.
  2404. INSTALL=$ac_install_sh
  2405. fi
  2406. fi
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2408. $as_echo "$INSTALL" >&6; }
  2409. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2410. # It thinks the first close brace ends the variable substitution.
  2411. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2412. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2413. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2415. $as_echo_n "checking whether build environment is sane... " >&6; }
  2416. # Reject unsafe characters in $srcdir or the absolute working directory
  2417. # name. Accept space and tab only in the latter.
  2418. am_lf='
  2419. '
  2420. case `pwd` in
  2421. *[\\\"\#\$\&\'\`$am_lf]*)
  2422. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2423. esac
  2424. case $srcdir in
  2425. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2426. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2427. esac
  2428. # Do 'set' in a subshell so we don't clobber the current shell's
  2429. # arguments. Must try -L first in case configure is actually a
  2430. # symlink; some systems play weird games with the mod time of symlinks
  2431. # (eg FreeBSD returns the mod time of the symlink's containing
  2432. # directory).
  2433. if (
  2434. am_has_slept=no
  2435. for am_try in 1 2; do
  2436. echo "timestamp, slept: $am_has_slept" > conftest.file
  2437. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2438. if test "$*" = "X"; then
  2439. # -L didn't work.
  2440. set X `ls -t "$srcdir/configure" conftest.file`
  2441. fi
  2442. if test "$*" != "X $srcdir/configure conftest.file" \
  2443. && test "$*" != "X conftest.file $srcdir/configure"; then
  2444. # If neither matched, then we have a broken ls. This can happen
  2445. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2446. # broken ls alias from the environment. This has actually
  2447. # happened. Such a system could not be considered "sane".
  2448. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2449. alias in your environment" "$LINENO" 5
  2450. fi
  2451. if test "$2" = conftest.file || test $am_try -eq 2; then
  2452. break
  2453. fi
  2454. # Just in case.
  2455. sleep 1
  2456. am_has_slept=yes
  2457. done
  2458. test "$2" = conftest.file
  2459. )
  2460. then
  2461. # Ok.
  2462. :
  2463. else
  2464. as_fn_error $? "newly created file is older than distributed files!
  2465. Check your system clock" "$LINENO" 5
  2466. fi
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2468. $as_echo "yes" >&6; }
  2469. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2470. # generated files are strictly newer.
  2471. am_sleep_pid=
  2472. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2473. ( sleep 1 ) &
  2474. am_sleep_pid=$!
  2475. fi
  2476. rm -f conftest.file
  2477. test "$program_prefix" != NONE &&
  2478. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2479. # Use a double $ so make ignores it.
  2480. test "$program_suffix" != NONE &&
  2481. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2482. # Double any \ or $.
  2483. # By default was `s,x,x', remove it if useless.
  2484. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2485. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2486. # Expand $ac_aux_dir to an absolute path.
  2487. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2488. if test x"${MISSING+set}" != xset; then
  2489. case $am_aux_dir in
  2490. *\ * | *\ *)
  2491. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2492. *)
  2493. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2494. esac
  2495. fi
  2496. # Use eval to expand $SHELL
  2497. if eval "$MISSING --is-lightweight"; then
  2498. am_missing_run="$MISSING "
  2499. else
  2500. am_missing_run=
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2502. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2503. fi
  2504. if test x"${install_sh+set}" != xset; then
  2505. case $am_aux_dir in
  2506. *\ * | *\ *)
  2507. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2508. *)
  2509. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2510. esac
  2511. fi
  2512. # Installed binaries are usually stripped using 'strip' when the user
  2513. # run "make install-strip". However 'strip' might not be the right
  2514. # tool to use in cross-compilation environments, therefore Automake
  2515. # will honor the 'STRIP' environment variable to overrule this program.
  2516. if test "$cross_compiling" != no; then
  2517. if test -n "$ac_tool_prefix"; then
  2518. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2519. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2521. $as_echo_n "checking for $ac_word... " >&6; }
  2522. if ${ac_cv_prog_STRIP+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. if test -n "$STRIP"; then
  2526. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2527. else
  2528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2529. for as_dir in $PATH
  2530. do
  2531. IFS=$as_save_IFS
  2532. test -z "$as_dir" && as_dir=.
  2533. for ac_exec_ext in '' $ac_executable_extensions; do
  2534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2535. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537. break 2
  2538. fi
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. fi
  2543. fi
  2544. STRIP=$ac_cv_prog_STRIP
  2545. if test -n "$STRIP"; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2547. $as_echo "$STRIP" >&6; }
  2548. else
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2550. $as_echo "no" >&6; }
  2551. fi
  2552. fi
  2553. if test -z "$ac_cv_prog_STRIP"; then
  2554. ac_ct_STRIP=$STRIP
  2555. # Extract the first word of "strip", so it can be a program name with args.
  2556. set dummy strip; ac_word=$2
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2558. $as_echo_n "checking for $ac_word... " >&6; }
  2559. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. if test -n "$ac_ct_STRIP"; then
  2563. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2564. else
  2565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2566. for as_dir in $PATH
  2567. do
  2568. IFS=$as_save_IFS
  2569. test -z "$as_dir" && as_dir=.
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2572. ac_cv_prog_ac_ct_STRIP="strip"
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574. break 2
  2575. fi
  2576. done
  2577. done
  2578. IFS=$as_save_IFS
  2579. fi
  2580. fi
  2581. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2582. if test -n "$ac_ct_STRIP"; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2584. $as_echo "$ac_ct_STRIP" >&6; }
  2585. else
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2587. $as_echo "no" >&6; }
  2588. fi
  2589. if test "x$ac_ct_STRIP" = x; then
  2590. STRIP=":"
  2591. else
  2592. case $cross_compiling:$ac_tool_warned in
  2593. yes:)
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2596. ac_tool_warned=yes ;;
  2597. esac
  2598. STRIP=$ac_ct_STRIP
  2599. fi
  2600. else
  2601. STRIP="$ac_cv_prog_STRIP"
  2602. fi
  2603. fi
  2604. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2606. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2607. if test -z "$MKDIR_P"; then
  2608. if ${ac_cv_path_mkdir+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_prog in mkdir gmkdir; do
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2619. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2620. 'mkdir (GNU coreutils) '* | \
  2621. 'mkdir (coreutils) '* | \
  2622. 'mkdir (fileutils) '4.1*)
  2623. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2624. break 3;;
  2625. esac
  2626. done
  2627. done
  2628. done
  2629. IFS=$as_save_IFS
  2630. fi
  2631. test -d ./--version && rmdir ./--version
  2632. if test "${ac_cv_path_mkdir+set}" = set; then
  2633. MKDIR_P="$ac_cv_path_mkdir -p"
  2634. else
  2635. # As a last resort, use the slow shell script. Don't cache a
  2636. # value for MKDIR_P within a source directory, because that will
  2637. # break other packages using the cache if that directory is
  2638. # removed, or if the value is a relative name.
  2639. MKDIR_P="$ac_install_sh -d"
  2640. fi
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2643. $as_echo "$MKDIR_P" >&6; }
  2644. for ac_prog in gawk mawk nawk awk
  2645. do
  2646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2647. set dummy $ac_prog; ac_word=$2
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2649. $as_echo_n "checking for $ac_word... " >&6; }
  2650. if ${ac_cv_prog_AWK+:} false; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. if test -n "$AWK"; then
  2654. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2655. else
  2656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2657. for as_dir in $PATH
  2658. do
  2659. IFS=$as_save_IFS
  2660. test -z "$as_dir" && as_dir=.
  2661. for ac_exec_ext in '' $ac_executable_extensions; do
  2662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2663. ac_cv_prog_AWK="$ac_prog"
  2664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665. break 2
  2666. fi
  2667. done
  2668. done
  2669. IFS=$as_save_IFS
  2670. fi
  2671. fi
  2672. AWK=$ac_cv_prog_AWK
  2673. if test -n "$AWK"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2675. $as_echo "$AWK" >&6; }
  2676. else
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680. test -n "$AWK" && break
  2681. done
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2683. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2684. set x ${MAKE-make}
  2685. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2686. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. cat >conftest.make <<\_ACEOF
  2690. SHELL = /bin/sh
  2691. all:
  2692. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2693. _ACEOF
  2694. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2695. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2696. *@@@%%%=?*=@@@%%%*)
  2697. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2698. *)
  2699. eval ac_cv_prog_make_${ac_make}_set=no;;
  2700. esac
  2701. rm -f conftest.make
  2702. fi
  2703. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2705. $as_echo "yes" >&6; }
  2706. SET_MAKE=
  2707. else
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. SET_MAKE="MAKE=${MAKE-make}"
  2711. fi
  2712. rm -rf .tst 2>/dev/null
  2713. mkdir .tst 2>/dev/null
  2714. if test -d .tst; then
  2715. am__leading_dot=.
  2716. else
  2717. am__leading_dot=_
  2718. fi
  2719. rmdir .tst 2>/dev/null
  2720. # Check whether --enable-silent-rules was given.
  2721. if test "${enable_silent_rules+set}" = set; then :
  2722. enableval=$enable_silent_rules;
  2723. fi
  2724. case $enable_silent_rules in # (((
  2725. yes) AM_DEFAULT_VERBOSITY=0;;
  2726. no) AM_DEFAULT_VERBOSITY=1;;
  2727. *) AM_DEFAULT_VERBOSITY=1;;
  2728. esac
  2729. am_make=${MAKE-make}
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2731. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2732. if ${am_cv_make_support_nested_variables+:} false; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. if $as_echo 'TRUE=$(BAR$(V))
  2736. BAR0=false
  2737. BAR1=true
  2738. V=1
  2739. am__doit:
  2740. @$(TRUE)
  2741. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2742. am_cv_make_support_nested_variables=yes
  2743. else
  2744. am_cv_make_support_nested_variables=no
  2745. fi
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2748. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2749. if test $am_cv_make_support_nested_variables = yes; then
  2750. AM_V='$(V)'
  2751. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2752. else
  2753. AM_V=$AM_DEFAULT_VERBOSITY
  2754. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2755. fi
  2756. AM_BACKSLASH='\'
  2757. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2758. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2759. # is not polluted with repeated "-I."
  2760. am__isrc=' -I$(srcdir)'
  2761. # test to see if srcdir already configured
  2762. if test -f $srcdir/config.status; then
  2763. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2764. fi
  2765. fi
  2766. # test whether we have cygpath
  2767. if test -z "$CYGPATH_W"; then
  2768. if (cygpath --version) >/dev/null 2>/dev/null; then
  2769. CYGPATH_W='cygpath -w'
  2770. else
  2771. CYGPATH_W=echo
  2772. fi
  2773. fi
  2774. # Define the identity of the package.
  2775. PACKAGE='expat'
  2776. VERSION='2.2.9'
  2777. cat >>confdefs.h <<_ACEOF
  2778. #define PACKAGE "$PACKAGE"
  2779. _ACEOF
  2780. cat >>confdefs.h <<_ACEOF
  2781. #define VERSION "$VERSION"
  2782. _ACEOF
  2783. # Some tools Automake needs.
  2784. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2785. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2786. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2787. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2788. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2789. # For better backward compatibility. To be removed once Automake 1.9.x
  2790. # dies out for good. For more background, see:
  2791. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2792. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2793. mkdir_p='$(MKDIR_P)'
  2794. # We need awk for the "check" target (and possibly the TAP driver). The
  2795. # system "awk" is bad on some platforms.
  2796. # Always define AMTAR for backward compatibility. Yes, it's still used
  2797. # in the wild :-( We should find a proper way to deprecate it ...
  2798. AMTAR='$${TAR-tar}'
  2799. # We'll loop over all known methods to create a tar archive until one works.
  2800. _am_tools='gnutar pax cpio none'
  2801. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2802. # POSIX will say in a future version that running "rm -f" with no argument
  2803. # is OK; and we want to be able to make that assumption in our Makefile
  2804. # recipes. So use an aggressive probe to check that the usage we want is
  2805. # actually supported "in the wild" to an acceptable degree.
  2806. # See automake bug#10828.
  2807. # To make any issue more visible, cause the running configure to be aborted
  2808. # by default if the 'rm' program in use doesn't match our expectations; the
  2809. # user can still override this though.
  2810. if rm -f && rm -fr && rm -rf; then : OK; else
  2811. cat >&2 <<'END'
  2812. Oops!
  2813. Your 'rm' program seems unable to run without file operands specified
  2814. on the command line, even when the '-f' option is present. This is contrary
  2815. to the behaviour of most rm programs out there, and not conforming with
  2816. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2817. Please tell [email protected] about your system, including the value
  2818. of your $PATH and any error possibly output before this message. This
  2819. can help us improve future automake versions.
  2820. END
  2821. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2822. echo 'Configuration will proceed anyway, since you have set the' >&2
  2823. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2824. echo >&2
  2825. else
  2826. cat >&2 <<'END'
  2827. Aborting the configuration process, to ensure you take notice of the issue.
  2828. You can download and install GNU coreutils to get an 'rm' implementation
  2829. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2830. If you want to complete the configuration process using your problematic
  2831. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2832. to "yes", and re-run configure.
  2833. END
  2834. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2835. fi
  2836. fi
  2837. LIBCURRENT=7 # sync
  2838. LIBREVISION=11 # with
  2839. LIBAGE=6 # CMakeLists.txt!
  2840. if ${CPPFLAGS+:} false; then :
  2841. case " $CPPFLAGS " in #(
  2842. *" -DHAVE_EXPAT_CONFIG_H "*) :
  2843. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H"; } >&5
  2844. (: CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H) 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2847. test $ac_status = 0; } ;; #(
  2848. *) :
  2849. as_fn_append CPPFLAGS " -DHAVE_EXPAT_CONFIG_H"
  2850. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
  2851. (: CPPFLAGS="$CPPFLAGS") 2>&5
  2852. ac_status=$?
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2854. test $ac_status = 0; }
  2855. ;;
  2856. esac
  2857. else
  2858. CPPFLAGS=-DHAVE_EXPAT_CONFIG_H
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
  2860. (: CPPFLAGS="$CPPFLAGS") 2>&5
  2861. ac_status=$?
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2863. test $ac_status = 0; }
  2864. fi
  2865. ac_config_headers="$ac_config_headers expat_config.h"
  2866. DEPDIR="${am__leading_dot}deps"
  2867. ac_config_commands="$ac_config_commands depfiles"
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2869. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2870. cat > confinc.mk << 'END'
  2871. am__doit:
  2872. @echo this is the am__doit target >confinc.out
  2873. .PHONY: am__doit
  2874. END
  2875. am__include="#"
  2876. am__quote=
  2877. # BSD make does it like this.
  2878. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2879. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2880. echo 'include confinc.mk # ignored' > confmf.GNU
  2881. _am_result=no
  2882. for s in GNU BSD; do
  2883. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  2884. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  2885. ac_status=$?
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); }
  2888. case $?:`cat confinc.out 2>/dev/null` in #(
  2889. '0:this is the am__doit target') :
  2890. case $s in #(
  2891. BSD) :
  2892. am__include='.include' am__quote='"' ;; #(
  2893. *) :
  2894. am__include='include' am__quote='' ;;
  2895. esac ;; #(
  2896. *) :
  2897. ;;
  2898. esac
  2899. if test "$am__include" != "#"; then
  2900. _am_result="yes ($s style)"
  2901. break
  2902. fi
  2903. done
  2904. rm -f confinc.* confmf.*
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  2906. $as_echo "${_am_result}" >&6; }
  2907. # Check whether --enable-dependency-tracking was given.
  2908. if test "${enable_dependency_tracking+set}" = set; then :
  2909. enableval=$enable_dependency_tracking;
  2910. fi
  2911. if test "x$enable_dependency_tracking" != xno; then
  2912. am_depcomp="$ac_aux_dir/depcomp"
  2913. AMDEPBACKSLASH='\'
  2914. am__nodep='_no'
  2915. fi
  2916. if test "x$enable_dependency_tracking" != xno; then
  2917. AMDEP_TRUE=
  2918. AMDEP_FALSE='#'
  2919. else
  2920. AMDEP_TRUE='#'
  2921. AMDEP_FALSE=
  2922. fi
  2923. ac_ext=c
  2924. ac_cpp='$CPP $CPPFLAGS'
  2925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2928. if test -n "$ac_tool_prefix"; then
  2929. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2930. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2932. $as_echo_n "checking for $ac_word... " >&6; }
  2933. if ${ac_cv_prog_CC+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. if test -n "$CC"; then
  2937. ac_cv_prog_CC="$CC" # Let the user override the test.
  2938. else
  2939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2940. for as_dir in $PATH
  2941. do
  2942. IFS=$as_save_IFS
  2943. test -z "$as_dir" && as_dir=.
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2946. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2948. break 2
  2949. fi
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. fi
  2954. fi
  2955. CC=$ac_cv_prog_CC
  2956. if test -n "$CC"; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2958. $as_echo "$CC" >&6; }
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. fi
  2963. fi
  2964. if test -z "$ac_cv_prog_CC"; then
  2965. ac_ct_CC=$CC
  2966. # Extract the first word of "gcc", so it can be a program name with args.
  2967. set dummy gcc; ac_word=$2
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2969. $as_echo_n "checking for $ac_word... " >&6; }
  2970. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if test -n "$ac_ct_CC"; then
  2974. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2975. else
  2976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2977. for as_dir in $PATH
  2978. do
  2979. IFS=$as_save_IFS
  2980. test -z "$as_dir" && as_dir=.
  2981. for ac_exec_ext in '' $ac_executable_extensions; do
  2982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2983. ac_cv_prog_ac_ct_CC="gcc"
  2984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2985. break 2
  2986. fi
  2987. done
  2988. done
  2989. IFS=$as_save_IFS
  2990. fi
  2991. fi
  2992. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2993. if test -n "$ac_ct_CC"; then
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2995. $as_echo "$ac_ct_CC" >&6; }
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. fi
  3000. if test "x$ac_ct_CC" = x; then
  3001. CC=""
  3002. else
  3003. case $cross_compiling:$ac_tool_warned in
  3004. yes:)
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3007. ac_tool_warned=yes ;;
  3008. esac
  3009. CC=$ac_ct_CC
  3010. fi
  3011. else
  3012. CC="$ac_cv_prog_CC"
  3013. fi
  3014. if test -z "$CC"; then
  3015. if test -n "$ac_tool_prefix"; then
  3016. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3017. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3019. $as_echo_n "checking for $ac_word... " >&6; }
  3020. if ${ac_cv_prog_CC+:} false; then :
  3021. $as_echo_n "(cached) " >&6
  3022. else
  3023. if test -n "$CC"; then
  3024. ac_cv_prog_CC="$CC" # Let the user override the test.
  3025. else
  3026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3027. for as_dir in $PATH
  3028. do
  3029. IFS=$as_save_IFS
  3030. test -z "$as_dir" && as_dir=.
  3031. for ac_exec_ext in '' $ac_executable_extensions; do
  3032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3033. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3035. break 2
  3036. fi
  3037. done
  3038. done
  3039. IFS=$as_save_IFS
  3040. fi
  3041. fi
  3042. CC=$ac_cv_prog_CC
  3043. if test -n "$CC"; then
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3045. $as_echo "$CC" >&6; }
  3046. else
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3048. $as_echo "no" >&6; }
  3049. fi
  3050. fi
  3051. fi
  3052. if test -z "$CC"; then
  3053. # Extract the first word of "cc", so it can be a program name with args.
  3054. set dummy cc; ac_word=$2
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3056. $as_echo_n "checking for $ac_word... " >&6; }
  3057. if ${ac_cv_prog_CC+:} false; then :
  3058. $as_echo_n "(cached) " >&6
  3059. else
  3060. if test -n "$CC"; then
  3061. ac_cv_prog_CC="$CC" # Let the user override the test.
  3062. else
  3063. ac_prog_rejected=no
  3064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3065. for as_dir in $PATH
  3066. do
  3067. IFS=$as_save_IFS
  3068. test -z "$as_dir" && as_dir=.
  3069. for ac_exec_ext in '' $ac_executable_extensions; do
  3070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3071. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3072. ac_prog_rejected=yes
  3073. continue
  3074. fi
  3075. ac_cv_prog_CC="cc"
  3076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. IFS=$as_save_IFS
  3082. if test $ac_prog_rejected = yes; then
  3083. # We found a bogon in the path, so make sure we never use it.
  3084. set dummy $ac_cv_prog_CC
  3085. shift
  3086. if test $# != 0; then
  3087. # We chose a different compiler from the bogus one.
  3088. # However, it has the same basename, so the bogon will be chosen
  3089. # first if we set CC to just the basename; use the full file name.
  3090. shift
  3091. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3092. fi
  3093. fi
  3094. fi
  3095. fi
  3096. CC=$ac_cv_prog_CC
  3097. if test -n "$CC"; then
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3099. $as_echo "$CC" >&6; }
  3100. else
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3102. $as_echo "no" >&6; }
  3103. fi
  3104. fi
  3105. if test -z "$CC"; then
  3106. if test -n "$ac_tool_prefix"; then
  3107. for ac_prog in cl.exe
  3108. do
  3109. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3110. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3112. $as_echo_n "checking for $ac_word... " >&6; }
  3113. if ${ac_cv_prog_CC+:} false; then :
  3114. $as_echo_n "(cached) " >&6
  3115. else
  3116. if test -n "$CC"; then
  3117. ac_cv_prog_CC="$CC" # Let the user override the test.
  3118. else
  3119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3120. for as_dir in $PATH
  3121. do
  3122. IFS=$as_save_IFS
  3123. test -z "$as_dir" && as_dir=.
  3124. for ac_exec_ext in '' $ac_executable_extensions; do
  3125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3126. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3128. break 2
  3129. fi
  3130. done
  3131. done
  3132. IFS=$as_save_IFS
  3133. fi
  3134. fi
  3135. CC=$ac_cv_prog_CC
  3136. if test -n "$CC"; then
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3138. $as_echo "$CC" >&6; }
  3139. else
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3141. $as_echo "no" >&6; }
  3142. fi
  3143. test -n "$CC" && break
  3144. done
  3145. fi
  3146. if test -z "$CC"; then
  3147. ac_ct_CC=$CC
  3148. for ac_prog in cl.exe
  3149. do
  3150. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3151. set dummy $ac_prog; ac_word=$2
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3153. $as_echo_n "checking for $ac_word... " >&6; }
  3154. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3155. $as_echo_n "(cached) " >&6
  3156. else
  3157. if test -n "$ac_ct_CC"; then
  3158. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3159. else
  3160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3161. for as_dir in $PATH
  3162. do
  3163. IFS=$as_save_IFS
  3164. test -z "$as_dir" && as_dir=.
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3167. ac_cv_prog_ac_ct_CC="$ac_prog"
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3177. if test -n "$ac_ct_CC"; then
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3179. $as_echo "$ac_ct_CC" >&6; }
  3180. else
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. fi
  3184. test -n "$ac_ct_CC" && break
  3185. done
  3186. if test "x$ac_ct_CC" = x; then
  3187. CC=""
  3188. else
  3189. case $cross_compiling:$ac_tool_warned in
  3190. yes:)
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3193. ac_tool_warned=yes ;;
  3194. esac
  3195. CC=$ac_ct_CC
  3196. fi
  3197. fi
  3198. fi
  3199. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3201. as_fn_error $? "no acceptable C compiler found in \$PATH
  3202. See \`config.log' for more details" "$LINENO" 5; }
  3203. # Provide some information about the compiler.
  3204. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3205. set X $ac_compile
  3206. ac_compiler=$2
  3207. for ac_option in --version -v -V -qversion; do
  3208. { { ac_try="$ac_compiler $ac_option >&5"
  3209. case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3214. $as_echo "$ac_try_echo"; } >&5
  3215. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3216. ac_status=$?
  3217. if test -s conftest.err; then
  3218. sed '10a\
  3219. ... rest of stderr output deleted ...
  3220. 10q' conftest.err >conftest.er1
  3221. cat conftest.er1 >&5
  3222. fi
  3223. rm -f conftest.er1 conftest.err
  3224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3225. test $ac_status = 0; }
  3226. done
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. ac_clean_files_save=$ac_clean_files
  3237. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3238. # Try to create an executable without -o first, disregard a.out.
  3239. # It will help us diagnose broken compilers, and finding out an intuition
  3240. # of exeext.
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3242. $as_echo_n "checking whether the C compiler works... " >&6; }
  3243. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3244. # The possible output files:
  3245. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3246. ac_rmfiles=
  3247. for ac_file in $ac_files
  3248. do
  3249. case $ac_file in
  3250. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3251. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3252. esac
  3253. done
  3254. rm -f $ac_rmfiles
  3255. if { { ac_try="$ac_link_default"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3261. $as_echo "$ac_try_echo"; } >&5
  3262. (eval "$ac_link_default") 2>&5
  3263. ac_status=$?
  3264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3265. test $ac_status = 0; }; then :
  3266. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3267. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3268. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3269. # so that the user can short-circuit this test for compilers unknown to
  3270. # Autoconf.
  3271. for ac_file in $ac_files ''
  3272. do
  3273. test -f "$ac_file" || continue
  3274. case $ac_file in
  3275. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3276. ;;
  3277. [ab].out )
  3278. # We found the default executable, but exeext='' is most
  3279. # certainly right.
  3280. break;;
  3281. *.* )
  3282. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3283. then :; else
  3284. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3285. fi
  3286. # We set ac_cv_exeext here because the later test for it is not
  3287. # safe: cross compilers may not add the suffix if given an `-o'
  3288. # argument, so we may need to know it at that point already.
  3289. # Even if this section looks crufty: it has the advantage of
  3290. # actually working.
  3291. break;;
  3292. * )
  3293. break;;
  3294. esac
  3295. done
  3296. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3297. else
  3298. ac_file=''
  3299. fi
  3300. if test -z "$ac_file"; then :
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3302. $as_echo "no" >&6; }
  3303. $as_echo "$as_me: failed program was:" >&5
  3304. sed 's/^/| /' conftest.$ac_ext >&5
  3305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3307. as_fn_error 77 "C compiler cannot create executables
  3308. See \`config.log' for more details" "$LINENO" 5; }
  3309. else
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3311. $as_echo "yes" >&6; }
  3312. fi
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3314. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3316. $as_echo "$ac_file" >&6; }
  3317. ac_exeext=$ac_cv_exeext
  3318. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3319. ac_clean_files=$ac_clean_files_save
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3321. $as_echo_n "checking for suffix of executables... " >&6; }
  3322. if { { ac_try="$ac_link"
  3323. case "(($ac_try" in
  3324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3325. *) ac_try_echo=$ac_try;;
  3326. esac
  3327. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3328. $as_echo "$ac_try_echo"; } >&5
  3329. (eval "$ac_link") 2>&5
  3330. ac_status=$?
  3331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3332. test $ac_status = 0; }; then :
  3333. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3334. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3335. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3336. # `rm'.
  3337. for ac_file in conftest.exe conftest conftest.*; do
  3338. test -f "$ac_file" || continue
  3339. case $ac_file in
  3340. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3341. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3342. break;;
  3343. * ) break;;
  3344. esac
  3345. done
  3346. else
  3347. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3348. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3349. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3350. See \`config.log' for more details" "$LINENO" 5; }
  3351. fi
  3352. rm -f conftest conftest$ac_cv_exeext
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3354. $as_echo "$ac_cv_exeext" >&6; }
  3355. rm -f conftest.$ac_ext
  3356. EXEEXT=$ac_cv_exeext
  3357. ac_exeext=$EXEEXT
  3358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3359. /* end confdefs.h. */
  3360. #include <stdio.h>
  3361. int
  3362. main ()
  3363. {
  3364. FILE *f = fopen ("conftest.out", "w");
  3365. return ferror (f) || fclose (f) != 0;
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. ac_clean_files="$ac_clean_files conftest.out"
  3371. # Check that the compiler produces executables we can run. If not, either
  3372. # the compiler is broken, or we cross compile.
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3374. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3375. if test "$cross_compiling" != yes; then
  3376. { { ac_try="$ac_link"
  3377. case "(($ac_try" in
  3378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3379. *) ac_try_echo=$ac_try;;
  3380. esac
  3381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3382. $as_echo "$ac_try_echo"; } >&5
  3383. (eval "$ac_link") 2>&5
  3384. ac_status=$?
  3385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3386. test $ac_status = 0; }
  3387. if { ac_try='./conftest$ac_cv_exeext'
  3388. { { case "(($ac_try" in
  3389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3390. *) ac_try_echo=$ac_try;;
  3391. esac
  3392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3393. $as_echo "$ac_try_echo"; } >&5
  3394. (eval "$ac_try") 2>&5
  3395. ac_status=$?
  3396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3397. test $ac_status = 0; }; }; then
  3398. cross_compiling=no
  3399. else
  3400. if test "$cross_compiling" = maybe; then
  3401. cross_compiling=yes
  3402. else
  3403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3405. as_fn_error $? "cannot run C compiled programs.
  3406. If you meant to cross compile, use \`--host'.
  3407. See \`config.log' for more details" "$LINENO" 5; }
  3408. fi
  3409. fi
  3410. fi
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3412. $as_echo "$cross_compiling" >&6; }
  3413. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3414. ac_clean_files=$ac_clean_files_save
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3416. $as_echo_n "checking for suffix of object files... " >&6; }
  3417. if ${ac_cv_objext+:} false; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. rm -f conftest.o conftest.obj
  3430. if { { ac_try="$ac_compile"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3436. $as_echo "$ac_try_echo"; } >&5
  3437. (eval "$ac_compile") 2>&5
  3438. ac_status=$?
  3439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3440. test $ac_status = 0; }; then :
  3441. for ac_file in conftest.o conftest.obj conftest.*; do
  3442. test -f "$ac_file" || continue;
  3443. case $ac_file in
  3444. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3445. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3446. break;;
  3447. esac
  3448. done
  3449. else
  3450. $as_echo "$as_me: failed program was:" >&5
  3451. sed 's/^/| /' conftest.$ac_ext >&5
  3452. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3453. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3454. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3455. See \`config.log' for more details" "$LINENO" 5; }
  3456. fi
  3457. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3460. $as_echo "$ac_cv_objext" >&6; }
  3461. OBJEXT=$ac_cv_objext
  3462. ac_objext=$OBJEXT
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3464. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3465. if ${ac_cv_c_compiler_gnu+:} false; then :
  3466. $as_echo_n "(cached) " >&6
  3467. else
  3468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3469. /* end confdefs.h. */
  3470. int
  3471. main ()
  3472. {
  3473. #ifndef __GNUC__
  3474. choke me
  3475. #endif
  3476. ;
  3477. return 0;
  3478. }
  3479. _ACEOF
  3480. if ac_fn_c_try_compile "$LINENO"; then :
  3481. ac_compiler_gnu=yes
  3482. else
  3483. ac_compiler_gnu=no
  3484. fi
  3485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3486. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3487. fi
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3489. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3490. if test $ac_compiler_gnu = yes; then
  3491. GCC=yes
  3492. else
  3493. GCC=
  3494. fi
  3495. ac_test_CFLAGS=${CFLAGS+set}
  3496. ac_save_CFLAGS=$CFLAGS
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3498. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3499. if ${ac_cv_prog_cc_g+:} false; then :
  3500. $as_echo_n "(cached) " >&6
  3501. else
  3502. ac_save_c_werror_flag=$ac_c_werror_flag
  3503. ac_c_werror_flag=yes
  3504. ac_cv_prog_cc_g=no
  3505. CFLAGS="-g"
  3506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3507. /* end confdefs.h. */
  3508. int
  3509. main ()
  3510. {
  3511. ;
  3512. return 0;
  3513. }
  3514. _ACEOF
  3515. if ac_fn_c_try_compile "$LINENO"; then :
  3516. ac_cv_prog_cc_g=yes
  3517. else
  3518. CFLAGS=""
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. int
  3522. main ()
  3523. {
  3524. ;
  3525. return 0;
  3526. }
  3527. _ACEOF
  3528. if ac_fn_c_try_compile "$LINENO"; then :
  3529. else
  3530. ac_c_werror_flag=$ac_save_c_werror_flag
  3531. CFLAGS="-g"
  3532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3533. /* end confdefs.h. */
  3534. int
  3535. main ()
  3536. {
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. if ac_fn_c_try_compile "$LINENO"; then :
  3542. ac_cv_prog_cc_g=yes
  3543. fi
  3544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3545. fi
  3546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3547. fi
  3548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3549. ac_c_werror_flag=$ac_save_c_werror_flag
  3550. fi
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3552. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3553. if test "$ac_test_CFLAGS" = set; then
  3554. CFLAGS=$ac_save_CFLAGS
  3555. elif test $ac_cv_prog_cc_g = yes; then
  3556. if test "$GCC" = yes; then
  3557. CFLAGS="-g -O2"
  3558. else
  3559. CFLAGS="-g"
  3560. fi
  3561. else
  3562. if test "$GCC" = yes; then
  3563. CFLAGS="-O2"
  3564. else
  3565. CFLAGS=
  3566. fi
  3567. fi
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3569. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3570. if ${ac_cv_prog_cc_c89+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. ac_cv_prog_cc_c89=no
  3574. ac_save_CC=$CC
  3575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3576. /* end confdefs.h. */
  3577. #include <stdarg.h>
  3578. #include <stdio.h>
  3579. struct stat;
  3580. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3581. struct buf { int x; };
  3582. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3583. static char *e (p, i)
  3584. char **p;
  3585. int i;
  3586. {
  3587. return p[i];
  3588. }
  3589. static char *f (char * (*g) (char **, int), char **p, ...)
  3590. {
  3591. char *s;
  3592. va_list v;
  3593. va_start (v,p);
  3594. s = g (p, va_arg (v,int));
  3595. va_end (v);
  3596. return s;
  3597. }
  3598. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3599. function prototypes and stuff, but not '\xHH' hex character constants.
  3600. These don't provoke an error unfortunately, instead are silently treated
  3601. as 'x'. The following induces an error, until -std is added to get
  3602. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3603. array size at least. It's necessary to write '\x00'==0 to get something
  3604. that's true only with -std. */
  3605. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3606. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3607. inside strings and character constants. */
  3608. #define FOO(x) 'x'
  3609. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3610. int test (int i, double x);
  3611. struct s1 {int (*f) (int a);};
  3612. struct s2 {int (*f) (double a);};
  3613. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3614. int argc;
  3615. char **argv;
  3616. int
  3617. main ()
  3618. {
  3619. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3625. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3626. do
  3627. CC="$ac_save_CC $ac_arg"
  3628. if ac_fn_c_try_compile "$LINENO"; then :
  3629. ac_cv_prog_cc_c89=$ac_arg
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext
  3632. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3633. done
  3634. rm -f conftest.$ac_ext
  3635. CC=$ac_save_CC
  3636. fi
  3637. # AC_CACHE_VAL
  3638. case "x$ac_cv_prog_cc_c89" in
  3639. x)
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3641. $as_echo "none needed" >&6; } ;;
  3642. xno)
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3644. $as_echo "unsupported" >&6; } ;;
  3645. *)
  3646. CC="$CC $ac_cv_prog_cc_c89"
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3648. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3649. esac
  3650. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3651. fi
  3652. ac_ext=c
  3653. ac_cpp='$CPP $CPPFLAGS'
  3654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3657. ac_ext=c
  3658. ac_cpp='$CPP $CPPFLAGS'
  3659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3663. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3664. if ${am_cv_prog_cc_c_o+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. # Make sure it works both with $CC and with simple cc.
  3677. # Following AC_PROG_CC_C_O, we do the test twice because some
  3678. # compilers refuse to overwrite an existing .o file with -o,
  3679. # though they will create one.
  3680. am_cv_prog_cc_c_o=yes
  3681. for am_i in 1 2; do
  3682. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3683. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3684. ac_status=$?
  3685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3686. (exit $ac_status); } \
  3687. && test -f conftest2.$ac_objext; then
  3688. : OK
  3689. else
  3690. am_cv_prog_cc_c_o=no
  3691. break
  3692. fi
  3693. done
  3694. rm -f core conftest*
  3695. unset am_i
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3698. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3699. if test "$am_cv_prog_cc_c_o" != yes; then
  3700. # Losing compiler, so override with the script.
  3701. # FIXME: It is wrong to rewrite CC.
  3702. # But if we don't then we get into trouble of one sort or another.
  3703. # A longer-term fix would be to have automake use am__CC in this case,
  3704. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3705. CC="$am_aux_dir/compile $CC"
  3706. fi
  3707. ac_ext=c
  3708. ac_cpp='$CPP $CPPFLAGS'
  3709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3712. depcc="$CC" am_compiler_list=
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3714. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3715. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3719. # We make a subdir and do the tests there. Otherwise we can end up
  3720. # making bogus files that we don't know about and never remove. For
  3721. # instance it was reported that on HP-UX the gcc test will end up
  3722. # making a dummy file named 'D' -- because '-MD' means "put the output
  3723. # in D".
  3724. rm -rf conftest.dir
  3725. mkdir conftest.dir
  3726. # Copy depcomp to subdir because otherwise we won't find it if we're
  3727. # using a relative directory.
  3728. cp "$am_depcomp" conftest.dir
  3729. cd conftest.dir
  3730. # We will build objects and dependencies in a subdirectory because
  3731. # it helps to detect inapplicable dependency modes. For instance
  3732. # both Tru64's cc and ICC support -MD to output dependencies as a
  3733. # side effect of compilation, but ICC will put the dependencies in
  3734. # the current directory while Tru64 will put them in the object
  3735. # directory.
  3736. mkdir sub
  3737. am_cv_CC_dependencies_compiler_type=none
  3738. if test "$am_compiler_list" = ""; then
  3739. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3740. fi
  3741. am__universal=false
  3742. case " $depcc " in #(
  3743. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3744. esac
  3745. for depmode in $am_compiler_list; do
  3746. # Setup a source with many dependencies, because some compilers
  3747. # like to wrap large dependency lists on column 80 (with \), and
  3748. # we should not choose a depcomp mode which is confused by this.
  3749. #
  3750. # We need to recreate these files for each test, as the compiler may
  3751. # overwrite some of them when testing with obscure command lines.
  3752. # This happens at least with the AIX C compiler.
  3753. : > sub/conftest.c
  3754. for i in 1 2 3 4 5 6; do
  3755. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3756. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3757. # Solaris 10 /bin/sh.
  3758. echo '/* dummy */' > sub/conftst$i.h
  3759. done
  3760. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3761. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3762. # mode. It turns out that the SunPro C++ compiler does not properly
  3763. # handle '-M -o', and we need to detect this. Also, some Intel
  3764. # versions had trouble with output in subdirs.
  3765. am__obj=sub/conftest.${OBJEXT-o}
  3766. am__minus_obj="-o $am__obj"
  3767. case $depmode in
  3768. gcc)
  3769. # This depmode causes a compiler race in universal mode.
  3770. test "$am__universal" = false || continue
  3771. ;;
  3772. nosideeffect)
  3773. # After this tag, mechanisms are not by side-effect, so they'll
  3774. # only be used when explicitly requested.
  3775. if test "x$enable_dependency_tracking" = xyes; then
  3776. continue
  3777. else
  3778. break
  3779. fi
  3780. ;;
  3781. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3782. # This compiler won't grok '-c -o', but also, the minuso test has
  3783. # not run yet. These depmodes are late enough in the game, and
  3784. # so weak that their functioning should not be impacted.
  3785. am__obj=conftest.${OBJEXT-o}
  3786. am__minus_obj=
  3787. ;;
  3788. none) break ;;
  3789. esac
  3790. if depmode=$depmode \
  3791. source=sub/conftest.c object=$am__obj \
  3792. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3793. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3794. >/dev/null 2>conftest.err &&
  3795. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3796. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3797. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3798. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3799. # icc doesn't choke on unknown options, it will just issue warnings
  3800. # or remarks (even with -Werror). So we grep stderr for any message
  3801. # that says an option was ignored or not supported.
  3802. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3803. # icc: Command line warning: ignoring option '-M'; no argument required
  3804. # The diagnosis changed in icc 8.0:
  3805. # icc: Command line remark: option '-MP' not supported
  3806. if (grep 'ignoring option' conftest.err ||
  3807. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3808. am_cv_CC_dependencies_compiler_type=$depmode
  3809. break
  3810. fi
  3811. fi
  3812. done
  3813. cd ..
  3814. rm -rf conftest.dir
  3815. else
  3816. am_cv_CC_dependencies_compiler_type=none
  3817. fi
  3818. fi
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3820. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3821. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3822. if
  3823. test "x$enable_dependency_tracking" != xno \
  3824. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3825. am__fastdepCC_TRUE=
  3826. am__fastdepCC_FALSE='#'
  3827. else
  3828. am__fastdepCC_TRUE='#'
  3829. am__fastdepCC_FALSE=
  3830. fi
  3831. if test -n "$ac_tool_prefix"; then
  3832. for ac_prog in ar lib "link -lib"
  3833. do
  3834. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3835. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3837. $as_echo_n "checking for $ac_word... " >&6; }
  3838. if ${ac_cv_prog_AR+:} false; then :
  3839. $as_echo_n "(cached) " >&6
  3840. else
  3841. if test -n "$AR"; then
  3842. ac_cv_prog_AR="$AR" # Let the user override the test.
  3843. else
  3844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3845. for as_dir in $PATH
  3846. do
  3847. IFS=$as_save_IFS
  3848. test -z "$as_dir" && as_dir=.
  3849. for ac_exec_ext in '' $ac_executable_extensions; do
  3850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3851. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3853. break 2
  3854. fi
  3855. done
  3856. done
  3857. IFS=$as_save_IFS
  3858. fi
  3859. fi
  3860. AR=$ac_cv_prog_AR
  3861. if test -n "$AR"; then
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3863. $as_echo "$AR" >&6; }
  3864. else
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3866. $as_echo "no" >&6; }
  3867. fi
  3868. test -n "$AR" && break
  3869. done
  3870. fi
  3871. if test -z "$AR"; then
  3872. ac_ct_AR=$AR
  3873. for ac_prog in ar lib "link -lib"
  3874. do
  3875. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3876. set dummy $ac_prog; ac_word=$2
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3878. $as_echo_n "checking for $ac_word... " >&6; }
  3879. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$ac_ct_AR"; then
  3883. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3892. ac_cv_prog_ac_ct_AR="$ac_prog"
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. fi
  3900. fi
  3901. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3902. if test -n "$ac_ct_AR"; then
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3904. $as_echo "$ac_ct_AR" >&6; }
  3905. else
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3907. $as_echo "no" >&6; }
  3908. fi
  3909. test -n "$ac_ct_AR" && break
  3910. done
  3911. if test "x$ac_ct_AR" = x; then
  3912. AR="false"
  3913. else
  3914. case $cross_compiling:$ac_tool_warned in
  3915. yes:)
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3918. ac_tool_warned=yes ;;
  3919. esac
  3920. AR=$ac_ct_AR
  3921. fi
  3922. fi
  3923. : ${AR=ar}
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3925. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3926. if ${am_cv_ar_interface+:} false; then :
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. ac_ext=c
  3930. ac_cpp='$CPP $CPPFLAGS'
  3931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3934. am_cv_ar_interface=ar
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. int some_variable = 0;
  3938. _ACEOF
  3939. if ac_fn_c_try_compile "$LINENO"; then :
  3940. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3941. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3942. (eval $am_ar_try) 2>&5
  3943. ac_status=$?
  3944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3945. test $ac_status = 0; }
  3946. if test "$ac_status" -eq 0; then
  3947. am_cv_ar_interface=ar
  3948. else
  3949. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3950. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3951. (eval $am_ar_try) 2>&5
  3952. ac_status=$?
  3953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3954. test $ac_status = 0; }
  3955. if test "$ac_status" -eq 0; then
  3956. am_cv_ar_interface=lib
  3957. else
  3958. am_cv_ar_interface=unknown
  3959. fi
  3960. fi
  3961. rm -f conftest.lib libconftest.a
  3962. fi
  3963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3964. ac_ext=c
  3965. ac_cpp='$CPP $CPPFLAGS'
  3966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3969. fi
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3971. $as_echo "$am_cv_ar_interface" >&6; }
  3972. case $am_cv_ar_interface in
  3973. ar)
  3974. ;;
  3975. lib)
  3976. # Microsoft lib, so override with the ar-lib wrapper script.
  3977. # FIXME: It is wrong to rewrite AR.
  3978. # But if we don't then we get into trouble of one sort or another.
  3979. # A longer-term fix would be to have automake use am__AR in this case,
  3980. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3981. # similar.
  3982. AR="$am_aux_dir/ar-lib $AR"
  3983. ;;
  3984. unknown)
  3985. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3986. ;;
  3987. esac
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3989. $as_echo_n "checking whether ln -s works... " >&6; }
  3990. LN_S=$as_ln_s
  3991. if test "$LN_S" = "ln -s"; then
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3993. $as_echo "yes" >&6; }
  3994. else
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3996. $as_echo "no, using $LN_S" >&6; }
  3997. fi
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3999. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4000. set x ${MAKE-make}
  4001. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4002. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. cat >conftest.make <<\_ACEOF
  4006. SHELL = /bin/sh
  4007. all:
  4008. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4009. _ACEOF
  4010. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4011. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4012. *@@@%%%=?*=@@@%%%*)
  4013. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4014. *)
  4015. eval ac_cv_prog_make_${ac_make}_set=no;;
  4016. esac
  4017. rm -f conftest.make
  4018. fi
  4019. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4021. $as_echo "yes" >&6; }
  4022. SET_MAKE=
  4023. else
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4025. $as_echo "no" >&6; }
  4026. SET_MAKE="MAKE=${MAKE-make}"
  4027. fi
  4028. case `pwd` in
  4029. *\ * | *\ *)
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4031. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4032. esac
  4033. macro_version='2.4.6'
  4034. macro_revision='2.4.6'
  4035. ltmain=$ac_aux_dir/ltmain.sh
  4036. # Backslashify metacharacters that are still active within
  4037. # double-quoted strings.
  4038. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4039. # Same as above, but do not quote variable references.
  4040. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4041. # Sed substitution to delay expansion of an escaped shell variable in a
  4042. # double_quote_subst'ed string.
  4043. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4044. # Sed substitution to delay expansion of an escaped single quote.
  4045. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4046. # Sed substitution to avoid accidental globbing in evaled expressions
  4047. no_glob_subst='s/\*/\\\*/g'
  4048. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4049. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4050. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4052. $as_echo_n "checking how to print strings... " >&6; }
  4053. # Test print first, because it will be a builtin if present.
  4054. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4055. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4056. ECHO='print -r --'
  4057. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4058. ECHO='printf %s\n'
  4059. else
  4060. # Use this function as a fallback that always works.
  4061. func_fallback_echo ()
  4062. {
  4063. eval 'cat <<_LTECHO_EOF
  4064. $1
  4065. _LTECHO_EOF'
  4066. }
  4067. ECHO='func_fallback_echo'
  4068. fi
  4069. # func_echo_all arg...
  4070. # Invoke $ECHO with all args, space-separated.
  4071. func_echo_all ()
  4072. {
  4073. $ECHO ""
  4074. }
  4075. case $ECHO in
  4076. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4077. $as_echo "printf" >&6; } ;;
  4078. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4079. $as_echo "print -r" >&6; } ;;
  4080. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4081. $as_echo "cat" >&6; } ;;
  4082. esac
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4084. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4085. if ${ac_cv_path_SED+:} false; then :
  4086. $as_echo_n "(cached) " >&6
  4087. else
  4088. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4089. for ac_i in 1 2 3 4 5 6 7; do
  4090. ac_script="$ac_script$as_nl$ac_script"
  4091. done
  4092. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4093. { ac_script=; unset ac_script;}
  4094. if test -z "$SED"; then
  4095. ac_path_SED_found=false
  4096. # Loop through the user's path and test for each of PROGNAME-LIST
  4097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4098. for as_dir in $PATH
  4099. do
  4100. IFS=$as_save_IFS
  4101. test -z "$as_dir" && as_dir=.
  4102. for ac_prog in sed gsed; do
  4103. for ac_exec_ext in '' $ac_executable_extensions; do
  4104. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4105. as_fn_executable_p "$ac_path_SED" || continue
  4106. # Check for GNU ac_path_SED and select it if it is found.
  4107. # Check for GNU $ac_path_SED
  4108. case `"$ac_path_SED" --version 2>&1` in
  4109. *GNU*)
  4110. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4111. *)
  4112. ac_count=0
  4113. $as_echo_n 0123456789 >"conftest.in"
  4114. while :
  4115. do
  4116. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4117. mv "conftest.tmp" "conftest.in"
  4118. cp "conftest.in" "conftest.nl"
  4119. $as_echo '' >> "conftest.nl"
  4120. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4121. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4122. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4123. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4124. # Best one so far, save it but keep looking for a better one
  4125. ac_cv_path_SED="$ac_path_SED"
  4126. ac_path_SED_max=$ac_count
  4127. fi
  4128. # 10*(2^10) chars as input seems more than enough
  4129. test $ac_count -gt 10 && break
  4130. done
  4131. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4132. esac
  4133. $ac_path_SED_found && break 3
  4134. done
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. if test -z "$ac_cv_path_SED"; then
  4139. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4140. fi
  4141. else
  4142. ac_cv_path_SED=$SED
  4143. fi
  4144. fi
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4146. $as_echo "$ac_cv_path_SED" >&6; }
  4147. SED="$ac_cv_path_SED"
  4148. rm -f conftest.sed
  4149. test -z "$SED" && SED=sed
  4150. Xsed="$SED -e 1s/^X//"
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4152. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4153. if ${ac_cv_path_GREP+:} false; then :
  4154. $as_echo_n "(cached) " >&6
  4155. else
  4156. if test -z "$GREP"; then
  4157. ac_path_GREP_found=false
  4158. # Loop through the user's path and test for each of PROGNAME-LIST
  4159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4160. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4161. do
  4162. IFS=$as_save_IFS
  4163. test -z "$as_dir" && as_dir=.
  4164. for ac_prog in grep ggrep; do
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4167. as_fn_executable_p "$ac_path_GREP" || continue
  4168. # Check for GNU ac_path_GREP and select it if it is found.
  4169. # Check for GNU $ac_path_GREP
  4170. case `"$ac_path_GREP" --version 2>&1` in
  4171. *GNU*)
  4172. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4173. *)
  4174. ac_count=0
  4175. $as_echo_n 0123456789 >"conftest.in"
  4176. while :
  4177. do
  4178. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4179. mv "conftest.tmp" "conftest.in"
  4180. cp "conftest.in" "conftest.nl"
  4181. $as_echo 'GREP' >> "conftest.nl"
  4182. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4183. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4184. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4185. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4186. # Best one so far, save it but keep looking for a better one
  4187. ac_cv_path_GREP="$ac_path_GREP"
  4188. ac_path_GREP_max=$ac_count
  4189. fi
  4190. # 10*(2^10) chars as input seems more than enough
  4191. test $ac_count -gt 10 && break
  4192. done
  4193. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4194. esac
  4195. $ac_path_GREP_found && break 3
  4196. done
  4197. done
  4198. done
  4199. IFS=$as_save_IFS
  4200. if test -z "$ac_cv_path_GREP"; then
  4201. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4202. fi
  4203. else
  4204. ac_cv_path_GREP=$GREP
  4205. fi
  4206. fi
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4208. $as_echo "$ac_cv_path_GREP" >&6; }
  4209. GREP="$ac_cv_path_GREP"
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4211. $as_echo_n "checking for egrep... " >&6; }
  4212. if ${ac_cv_path_EGREP+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4216. then ac_cv_path_EGREP="$GREP -E"
  4217. else
  4218. if test -z "$EGREP"; then
  4219. ac_path_EGREP_found=false
  4220. # Loop through the user's path and test for each of PROGNAME-LIST
  4221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4222. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4223. do
  4224. IFS=$as_save_IFS
  4225. test -z "$as_dir" && as_dir=.
  4226. for ac_prog in egrep; do
  4227. for ac_exec_ext in '' $ac_executable_extensions; do
  4228. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4229. as_fn_executable_p "$ac_path_EGREP" || continue
  4230. # Check for GNU ac_path_EGREP and select it if it is found.
  4231. # Check for GNU $ac_path_EGREP
  4232. case `"$ac_path_EGREP" --version 2>&1` in
  4233. *GNU*)
  4234. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4235. *)
  4236. ac_count=0
  4237. $as_echo_n 0123456789 >"conftest.in"
  4238. while :
  4239. do
  4240. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4241. mv "conftest.tmp" "conftest.in"
  4242. cp "conftest.in" "conftest.nl"
  4243. $as_echo 'EGREP' >> "conftest.nl"
  4244. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4245. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4246. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4247. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4248. # Best one so far, save it but keep looking for a better one
  4249. ac_cv_path_EGREP="$ac_path_EGREP"
  4250. ac_path_EGREP_max=$ac_count
  4251. fi
  4252. # 10*(2^10) chars as input seems more than enough
  4253. test $ac_count -gt 10 && break
  4254. done
  4255. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4256. esac
  4257. $ac_path_EGREP_found && break 3
  4258. done
  4259. done
  4260. done
  4261. IFS=$as_save_IFS
  4262. if test -z "$ac_cv_path_EGREP"; then
  4263. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4264. fi
  4265. else
  4266. ac_cv_path_EGREP=$EGREP
  4267. fi
  4268. fi
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4271. $as_echo "$ac_cv_path_EGREP" >&6; }
  4272. EGREP="$ac_cv_path_EGREP"
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4274. $as_echo_n "checking for fgrep... " >&6; }
  4275. if ${ac_cv_path_FGREP+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4279. then ac_cv_path_FGREP="$GREP -F"
  4280. else
  4281. if test -z "$FGREP"; then
  4282. ac_path_FGREP_found=false
  4283. # Loop through the user's path and test for each of PROGNAME-LIST
  4284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4285. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4286. do
  4287. IFS=$as_save_IFS
  4288. test -z "$as_dir" && as_dir=.
  4289. for ac_prog in fgrep; do
  4290. for ac_exec_ext in '' $ac_executable_extensions; do
  4291. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4292. as_fn_executable_p "$ac_path_FGREP" || continue
  4293. # Check for GNU ac_path_FGREP and select it if it is found.
  4294. # Check for GNU $ac_path_FGREP
  4295. case `"$ac_path_FGREP" --version 2>&1` in
  4296. *GNU*)
  4297. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4298. *)
  4299. ac_count=0
  4300. $as_echo_n 0123456789 >"conftest.in"
  4301. while :
  4302. do
  4303. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4304. mv "conftest.tmp" "conftest.in"
  4305. cp "conftest.in" "conftest.nl"
  4306. $as_echo 'FGREP' >> "conftest.nl"
  4307. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4308. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4309. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4310. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4311. # Best one so far, save it but keep looking for a better one
  4312. ac_cv_path_FGREP="$ac_path_FGREP"
  4313. ac_path_FGREP_max=$ac_count
  4314. fi
  4315. # 10*(2^10) chars as input seems more than enough
  4316. test $ac_count -gt 10 && break
  4317. done
  4318. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4319. esac
  4320. $ac_path_FGREP_found && break 3
  4321. done
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. if test -z "$ac_cv_path_FGREP"; then
  4326. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4327. fi
  4328. else
  4329. ac_cv_path_FGREP=$FGREP
  4330. fi
  4331. fi
  4332. fi
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4334. $as_echo "$ac_cv_path_FGREP" >&6; }
  4335. FGREP="$ac_cv_path_FGREP"
  4336. test -z "$GREP" && GREP=grep
  4337. # Check whether --with-gnu-ld was given.
  4338. if test "${with_gnu_ld+set}" = set; then :
  4339. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4340. else
  4341. with_gnu_ld=no
  4342. fi
  4343. ac_prog=ld
  4344. if test yes = "$GCC"; then
  4345. # Check if gcc -print-prog-name=ld gives a path.
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4347. $as_echo_n "checking for ld used by $CC... " >&6; }
  4348. case $host in
  4349. *-*-mingw*)
  4350. # gcc leaves a trailing carriage return, which upsets mingw
  4351. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4352. *)
  4353. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4354. esac
  4355. case $ac_prog in
  4356. # Accept absolute paths.
  4357. [\\/]* | ?:[\\/]*)
  4358. re_direlt='/[^/][^/]*/\.\./'
  4359. # Canonicalize the pathname of ld
  4360. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4361. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4362. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4363. done
  4364. test -z "$LD" && LD=$ac_prog
  4365. ;;
  4366. "")
  4367. # If it fails, then pretend we aren't using GCC.
  4368. ac_prog=ld
  4369. ;;
  4370. *)
  4371. # If it is relative, then search for the first ld in PATH.
  4372. with_gnu_ld=unknown
  4373. ;;
  4374. esac
  4375. elif test yes = "$with_gnu_ld"; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4377. $as_echo_n "checking for GNU ld... " >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4380. $as_echo_n "checking for non-GNU ld... " >&6; }
  4381. fi
  4382. if ${lt_cv_path_LD+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -z "$LD"; then
  4386. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4387. for ac_dir in $PATH; do
  4388. IFS=$lt_save_ifs
  4389. test -z "$ac_dir" && ac_dir=.
  4390. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4391. lt_cv_path_LD=$ac_dir/$ac_prog
  4392. # Check to see if the program is GNU ld. I'd rather use --version,
  4393. # but apparently some variants of GNU ld only accept -v.
  4394. # Break only if it was the GNU/non-GNU ld that we prefer.
  4395. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4396. *GNU* | *'with BFD'*)
  4397. test no != "$with_gnu_ld" && break
  4398. ;;
  4399. *)
  4400. test yes != "$with_gnu_ld" && break
  4401. ;;
  4402. esac
  4403. fi
  4404. done
  4405. IFS=$lt_save_ifs
  4406. else
  4407. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4408. fi
  4409. fi
  4410. LD=$lt_cv_path_LD
  4411. if test -n "$LD"; then
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4413. $as_echo "$LD" >&6; }
  4414. else
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4416. $as_echo "no" >&6; }
  4417. fi
  4418. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4420. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4421. if ${lt_cv_prog_gnu_ld+:} false; then :
  4422. $as_echo_n "(cached) " >&6
  4423. else
  4424. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4425. case `$LD -v 2>&1 </dev/null` in
  4426. *GNU* | *'with BFD'*)
  4427. lt_cv_prog_gnu_ld=yes
  4428. ;;
  4429. *)
  4430. lt_cv_prog_gnu_ld=no
  4431. ;;
  4432. esac
  4433. fi
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4435. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4436. with_gnu_ld=$lt_cv_prog_gnu_ld
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4438. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4439. if ${lt_cv_path_NM+:} false; then :
  4440. $as_echo_n "(cached) " >&6
  4441. else
  4442. if test -n "$NM"; then
  4443. # Let the user override the test.
  4444. lt_cv_path_NM=$NM
  4445. else
  4446. lt_nm_to_check=${ac_tool_prefix}nm
  4447. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4448. lt_nm_to_check="$lt_nm_to_check nm"
  4449. fi
  4450. for lt_tmp_nm in $lt_nm_to_check; do
  4451. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4452. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4453. IFS=$lt_save_ifs
  4454. test -z "$ac_dir" && ac_dir=.
  4455. tmp_nm=$ac_dir/$lt_tmp_nm
  4456. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4457. # Check to see if the nm accepts a BSD-compat flag.
  4458. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4459. # nm: unknown option "B" ignored
  4460. # Tru64's nm complains that /dev/null is an invalid object file
  4461. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4462. case $build_os in
  4463. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4464. *) lt_bad_file=/dev/null ;;
  4465. esac
  4466. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4467. *$lt_bad_file* | *'Invalid file or object type'*)
  4468. lt_cv_path_NM="$tmp_nm -B"
  4469. break 2
  4470. ;;
  4471. *)
  4472. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4473. */dev/null*)
  4474. lt_cv_path_NM="$tmp_nm -p"
  4475. break 2
  4476. ;;
  4477. *)
  4478. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4479. continue # so that we can try to find one that supports BSD flags
  4480. ;;
  4481. esac
  4482. ;;
  4483. esac
  4484. fi
  4485. done
  4486. IFS=$lt_save_ifs
  4487. done
  4488. : ${lt_cv_path_NM=no}
  4489. fi
  4490. fi
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4492. $as_echo "$lt_cv_path_NM" >&6; }
  4493. if test no != "$lt_cv_path_NM"; then
  4494. NM=$lt_cv_path_NM
  4495. else
  4496. # Didn't find any BSD compatible name lister, look for dumpbin.
  4497. if test -n "$DUMPBIN"; then :
  4498. # Let the user override the test.
  4499. else
  4500. if test -n "$ac_tool_prefix"; then
  4501. for ac_prog in dumpbin "link -dump"
  4502. do
  4503. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4504. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4506. $as_echo_n "checking for $ac_word... " >&6; }
  4507. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. if test -n "$DUMPBIN"; then
  4511. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4512. else
  4513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4514. for as_dir in $PATH
  4515. do
  4516. IFS=$as_save_IFS
  4517. test -z "$as_dir" && as_dir=.
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4520. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4522. break 2
  4523. fi
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. fi
  4528. fi
  4529. DUMPBIN=$ac_cv_prog_DUMPBIN
  4530. if test -n "$DUMPBIN"; then
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4532. $as_echo "$DUMPBIN" >&6; }
  4533. else
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4535. $as_echo "no" >&6; }
  4536. fi
  4537. test -n "$DUMPBIN" && break
  4538. done
  4539. fi
  4540. if test -z "$DUMPBIN"; then
  4541. ac_ct_DUMPBIN=$DUMPBIN
  4542. for ac_prog in dumpbin "link -dump"
  4543. do
  4544. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4545. set dummy $ac_prog; ac_word=$2
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. $as_echo_n "checking for $ac_word... " >&6; }
  4548. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -n "$ac_ct_DUMPBIN"; then
  4552. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4553. else
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4561. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4563. break 2
  4564. fi
  4565. done
  4566. done
  4567. IFS=$as_save_IFS
  4568. fi
  4569. fi
  4570. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4571. if test -n "$ac_ct_DUMPBIN"; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4573. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4574. else
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4576. $as_echo "no" >&6; }
  4577. fi
  4578. test -n "$ac_ct_DUMPBIN" && break
  4579. done
  4580. if test "x$ac_ct_DUMPBIN" = x; then
  4581. DUMPBIN=":"
  4582. else
  4583. case $cross_compiling:$ac_tool_warned in
  4584. yes:)
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4587. ac_tool_warned=yes ;;
  4588. esac
  4589. DUMPBIN=$ac_ct_DUMPBIN
  4590. fi
  4591. fi
  4592. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4593. *COFF*)
  4594. DUMPBIN="$DUMPBIN -symbols -headers"
  4595. ;;
  4596. *)
  4597. DUMPBIN=:
  4598. ;;
  4599. esac
  4600. fi
  4601. if test : != "$DUMPBIN"; then
  4602. NM=$DUMPBIN
  4603. fi
  4604. fi
  4605. test -z "$NM" && NM=nm
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4607. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4608. if ${lt_cv_nm_interface+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. lt_cv_nm_interface="BSD nm"
  4612. echo "int some_variable = 0;" > conftest.$ac_ext
  4613. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4614. (eval "$ac_compile" 2>conftest.err)
  4615. cat conftest.err >&5
  4616. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4617. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4618. cat conftest.err >&5
  4619. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4620. cat conftest.out >&5
  4621. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4622. lt_cv_nm_interface="MS dumpbin"
  4623. fi
  4624. rm -f conftest*
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4627. $as_echo "$lt_cv_nm_interface" >&6; }
  4628. # find the maximum length of command line arguments
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4630. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4631. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. i=0
  4635. teststring=ABCD
  4636. case $build_os in
  4637. msdosdjgpp*)
  4638. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4639. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4640. # during glob expansion). Even if it were fixed, the result of this
  4641. # check would be larger than it should be.
  4642. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4643. ;;
  4644. gnu*)
  4645. # Under GNU Hurd, this test is not required because there is
  4646. # no limit to the length of command line arguments.
  4647. # Libtool will interpret -1 as no limit whatsoever
  4648. lt_cv_sys_max_cmd_len=-1;
  4649. ;;
  4650. cygwin* | mingw* | cegcc*)
  4651. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4652. # about 5 minutes as the teststring grows exponentially.
  4653. # Worse, since 9x/ME are not pre-emptively multitasking,
  4654. # you end up with a "frozen" computer, even though with patience
  4655. # the test eventually succeeds (with a max line length of 256k).
  4656. # Instead, let's just punt: use the minimum linelength reported by
  4657. # all of the supported platforms: 8192 (on NT/2K/XP).
  4658. lt_cv_sys_max_cmd_len=8192;
  4659. ;;
  4660. mint*)
  4661. # On MiNT this can take a long time and run out of memory.
  4662. lt_cv_sys_max_cmd_len=8192;
  4663. ;;
  4664. mint*)
  4665. # On MiNT this can take a long time and run out of memory.
  4666. lt_cv_sys_max_cmd_len=8192;
  4667. ;;
  4668. amigaos*)
  4669. # On AmigaOS with pdksh, this test takes hours, literally.
  4670. # So we just punt and use a minimum line length of 8192.
  4671. lt_cv_sys_max_cmd_len=8192;
  4672. ;;
  4673. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4674. # This has been around since 386BSD, at least. Likely further.
  4675. if test -x /sbin/sysctl; then
  4676. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4677. elif test -x /usr/sbin/sysctl; then
  4678. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4679. else
  4680. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4681. fi
  4682. # And add a safety zone
  4683. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4684. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4685. ;;
  4686. interix*)
  4687. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4688. lt_cv_sys_max_cmd_len=196608
  4689. ;;
  4690. os2*)
  4691. # The test takes a long time on OS/2.
  4692. lt_cv_sys_max_cmd_len=8192
  4693. ;;
  4694. osf*)
  4695. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4696. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4697. # nice to cause kernel panics so lets avoid the loop below.
  4698. # First set a reasonable default.
  4699. lt_cv_sys_max_cmd_len=16384
  4700. #
  4701. if test -x /sbin/sysconfig; then
  4702. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4703. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4704. esac
  4705. fi
  4706. ;;
  4707. sco3.2v5*)
  4708. lt_cv_sys_max_cmd_len=102400
  4709. ;;
  4710. sysv5* | sco5v6* | sysv4.2uw2*)
  4711. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4712. if test -n "$kargmax"; then
  4713. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4714. else
  4715. lt_cv_sys_max_cmd_len=32768
  4716. fi
  4717. ;;
  4718. *)
  4719. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4720. if test -n "$lt_cv_sys_max_cmd_len" && \
  4721. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4722. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4723. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4724. else
  4725. # Make teststring a little bigger before we do anything with it.
  4726. # a 1K string should be a reasonable start.
  4727. for i in 1 2 3 4 5 6 7 8; do
  4728. teststring=$teststring$teststring
  4729. done
  4730. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4731. # If test is not a shell built-in, we'll probably end up computing a
  4732. # maximum length that is only half of the actual maximum length, but
  4733. # we can't tell.
  4734. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4735. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4736. test 17 != "$i" # 1/2 MB should be enough
  4737. do
  4738. i=`expr $i + 1`
  4739. teststring=$teststring$teststring
  4740. done
  4741. # Only check the string length outside the loop.
  4742. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4743. teststring=
  4744. # Add a significant safety factor because C++ compilers can tack on
  4745. # massive amounts of additional arguments before passing them to the
  4746. # linker. It appears as though 1/2 is a usable value.
  4747. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4748. fi
  4749. ;;
  4750. esac
  4751. fi
  4752. if test -n "$lt_cv_sys_max_cmd_len"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4754. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4757. $as_echo "none" >&6; }
  4758. fi
  4759. max_cmd_len=$lt_cv_sys_max_cmd_len
  4760. : ${CP="cp -f"}
  4761. : ${MV="mv -f"}
  4762. : ${RM="rm -f"}
  4763. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4764. lt_unset=unset
  4765. else
  4766. lt_unset=false
  4767. fi
  4768. # test EBCDIC or ASCII
  4769. case `echo X|tr X '\101'` in
  4770. A) # ASCII based system
  4771. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4772. lt_SP2NL='tr \040 \012'
  4773. lt_NL2SP='tr \015\012 \040\040'
  4774. ;;
  4775. *) # EBCDIC based system
  4776. lt_SP2NL='tr \100 \n'
  4777. lt_NL2SP='tr \r\n \100\100'
  4778. ;;
  4779. esac
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4781. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4782. if ${lt_cv_to_host_file_cmd+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. case $host in
  4786. *-*-mingw* )
  4787. case $build in
  4788. *-*-mingw* ) # actually msys
  4789. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4790. ;;
  4791. *-*-cygwin* )
  4792. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4793. ;;
  4794. * ) # otherwise, assume *nix
  4795. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4796. ;;
  4797. esac
  4798. ;;
  4799. *-*-cygwin* )
  4800. case $build in
  4801. *-*-mingw* ) # actually msys
  4802. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4803. ;;
  4804. *-*-cygwin* )
  4805. lt_cv_to_host_file_cmd=func_convert_file_noop
  4806. ;;
  4807. * ) # otherwise, assume *nix
  4808. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4809. ;;
  4810. esac
  4811. ;;
  4812. * ) # unhandled hosts (and "normal" native builds)
  4813. lt_cv_to_host_file_cmd=func_convert_file_noop
  4814. ;;
  4815. esac
  4816. fi
  4817. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4819. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4821. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4822. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. #assume ordinary cross tools, or native build.
  4826. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4827. case $host in
  4828. *-*-mingw* )
  4829. case $build in
  4830. *-*-mingw* ) # actually msys
  4831. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4832. ;;
  4833. esac
  4834. ;;
  4835. esac
  4836. fi
  4837. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4839. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4841. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4842. if ${lt_cv_ld_reload_flag+:} false; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. lt_cv_ld_reload_flag='-r'
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4848. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4849. reload_flag=$lt_cv_ld_reload_flag
  4850. case $reload_flag in
  4851. "" | " "*) ;;
  4852. *) reload_flag=" $reload_flag" ;;
  4853. esac
  4854. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4855. case $host_os in
  4856. cygwin* | mingw* | pw32* | cegcc*)
  4857. if test yes != "$GCC"; then
  4858. reload_cmds=false
  4859. fi
  4860. ;;
  4861. darwin*)
  4862. if test yes = "$GCC"; then
  4863. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4864. else
  4865. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4866. fi
  4867. ;;
  4868. esac
  4869. if test -n "$ac_tool_prefix"; then
  4870. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4871. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4873. $as_echo_n "checking for $ac_word... " >&6; }
  4874. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4875. $as_echo_n "(cached) " >&6
  4876. else
  4877. if test -n "$OBJDUMP"; then
  4878. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4879. else
  4880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4881. for as_dir in $PATH
  4882. do
  4883. IFS=$as_save_IFS
  4884. test -z "$as_dir" && as_dir=.
  4885. for ac_exec_ext in '' $ac_executable_extensions; do
  4886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4887. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4889. break 2
  4890. fi
  4891. done
  4892. done
  4893. IFS=$as_save_IFS
  4894. fi
  4895. fi
  4896. OBJDUMP=$ac_cv_prog_OBJDUMP
  4897. if test -n "$OBJDUMP"; then
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4899. $as_echo "$OBJDUMP" >&6; }
  4900. else
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4902. $as_echo "no" >&6; }
  4903. fi
  4904. fi
  4905. if test -z "$ac_cv_prog_OBJDUMP"; then
  4906. ac_ct_OBJDUMP=$OBJDUMP
  4907. # Extract the first word of "objdump", so it can be a program name with args.
  4908. set dummy objdump; ac_word=$2
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4910. $as_echo_n "checking for $ac_word... " >&6; }
  4911. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if test -n "$ac_ct_OBJDUMP"; then
  4915. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4916. else
  4917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4918. for as_dir in $PATH
  4919. do
  4920. IFS=$as_save_IFS
  4921. test -z "$as_dir" && as_dir=.
  4922. for ac_exec_ext in '' $ac_executable_extensions; do
  4923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4924. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4926. break 2
  4927. fi
  4928. done
  4929. done
  4930. IFS=$as_save_IFS
  4931. fi
  4932. fi
  4933. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4934. if test -n "$ac_ct_OBJDUMP"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4936. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. if test "x$ac_ct_OBJDUMP" = x; then
  4942. OBJDUMP="false"
  4943. else
  4944. case $cross_compiling:$ac_tool_warned in
  4945. yes:)
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4947. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4948. ac_tool_warned=yes ;;
  4949. esac
  4950. OBJDUMP=$ac_ct_OBJDUMP
  4951. fi
  4952. else
  4953. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4954. fi
  4955. test -z "$OBJDUMP" && OBJDUMP=objdump
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4957. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4958. if ${lt_cv_deplibs_check_method+:} false; then :
  4959. $as_echo_n "(cached) " >&6
  4960. else
  4961. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4962. lt_cv_file_magic_test_file=
  4963. lt_cv_deplibs_check_method='unknown'
  4964. # Need to set the preceding variable on all platforms that support
  4965. # interlibrary dependencies.
  4966. # 'none' -- dependencies not supported.
  4967. # 'unknown' -- same as none, but documents that we really don't know.
  4968. # 'pass_all' -- all dependencies passed with no checks.
  4969. # 'test_compile' -- check by making test program.
  4970. # 'file_magic [[regex]]' -- check by looking for files in library path
  4971. # that responds to the $file_magic_cmd with a given extended regex.
  4972. # If you have 'file' or equivalent on your system and you're not sure
  4973. # whether 'pass_all' will *always* work, you probably want this one.
  4974. case $host_os in
  4975. aix[4-9]*)
  4976. lt_cv_deplibs_check_method=pass_all
  4977. ;;
  4978. beos*)
  4979. lt_cv_deplibs_check_method=pass_all
  4980. ;;
  4981. bsdi[45]*)
  4982. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4983. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4984. lt_cv_file_magic_test_file=/shlib/libc.so
  4985. ;;
  4986. cygwin*)
  4987. # func_win32_libid is a shell function defined in ltmain.sh
  4988. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4989. lt_cv_file_magic_cmd='func_win32_libid'
  4990. ;;
  4991. mingw* | pw32*)
  4992. # Base MSYS/MinGW do not provide the 'file' command needed by
  4993. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4994. # unless we find 'file', for example because we are cross-compiling.
  4995. if ( file / ) >/dev/null 2>&1; then
  4996. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4997. lt_cv_file_magic_cmd='func_win32_libid'
  4998. else
  4999. # Keep this pattern in sync with the one in func_win32_libid.
  5000. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5001. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5002. fi
  5003. ;;
  5004. cegcc*)
  5005. # use the weaker test based on 'objdump'. See mingw*.
  5006. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5007. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5008. ;;
  5009. darwin* | rhapsody*)
  5010. lt_cv_deplibs_check_method=pass_all
  5011. ;;
  5012. freebsd* | dragonfly*)
  5013. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5014. case $host_cpu in
  5015. i*86 )
  5016. # Not sure whether the presence of OpenBSD here was a mistake.
  5017. # Let's accept both of them until this is cleared up.
  5018. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5019. lt_cv_file_magic_cmd=/usr/bin/file
  5020. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5021. ;;
  5022. esac
  5023. else
  5024. lt_cv_deplibs_check_method=pass_all
  5025. fi
  5026. ;;
  5027. haiku*)
  5028. lt_cv_deplibs_check_method=pass_all
  5029. ;;
  5030. hpux10.20* | hpux11*)
  5031. lt_cv_file_magic_cmd=/usr/bin/file
  5032. case $host_cpu in
  5033. ia64*)
  5034. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5035. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5036. ;;
  5037. hppa*64*)
  5038. 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]'
  5039. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5040. ;;
  5041. *)
  5042. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5043. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5044. ;;
  5045. esac
  5046. ;;
  5047. interix[3-9]*)
  5048. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5049. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5050. ;;
  5051. irix5* | irix6* | nonstopux*)
  5052. case $LD in
  5053. *-32|*"-32 ") libmagic=32-bit;;
  5054. *-n32|*"-n32 ") libmagic=N32;;
  5055. *-64|*"-64 ") libmagic=64-bit;;
  5056. *) libmagic=never-match;;
  5057. esac
  5058. lt_cv_deplibs_check_method=pass_all
  5059. ;;
  5060. # This must be glibc/ELF.
  5061. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5062. lt_cv_deplibs_check_method=pass_all
  5063. ;;
  5064. netbsd*)
  5065. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5066. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5067. else
  5068. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5069. fi
  5070. ;;
  5071. newos6*)
  5072. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5073. lt_cv_file_magic_cmd=/usr/bin/file
  5074. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5075. ;;
  5076. *nto* | *qnx*)
  5077. lt_cv_deplibs_check_method=pass_all
  5078. ;;
  5079. openbsd* | bitrig*)
  5080. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5081. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5082. else
  5083. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5084. fi
  5085. ;;
  5086. osf3* | osf4* | osf5*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. rdos*)
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. solaris*)
  5093. lt_cv_deplibs_check_method=pass_all
  5094. ;;
  5095. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5096. lt_cv_deplibs_check_method=pass_all
  5097. ;;
  5098. sysv4 | sysv4.3*)
  5099. case $host_vendor in
  5100. motorola)
  5101. 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]'
  5102. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5103. ;;
  5104. ncr)
  5105. lt_cv_deplibs_check_method=pass_all
  5106. ;;
  5107. sequent)
  5108. lt_cv_file_magic_cmd='/bin/file'
  5109. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5110. ;;
  5111. sni)
  5112. lt_cv_file_magic_cmd='/bin/file'
  5113. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5114. lt_cv_file_magic_test_file=/lib/libc.so
  5115. ;;
  5116. siemens)
  5117. lt_cv_deplibs_check_method=pass_all
  5118. ;;
  5119. pc)
  5120. lt_cv_deplibs_check_method=pass_all
  5121. ;;
  5122. esac
  5123. ;;
  5124. tpf*)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. os2*)
  5128. lt_cv_deplibs_check_method=pass_all
  5129. ;;
  5130. esac
  5131. fi
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5133. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5134. file_magic_glob=
  5135. want_nocaseglob=no
  5136. if test "$build" = "$host"; then
  5137. case $host_os in
  5138. mingw* | pw32*)
  5139. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5140. want_nocaseglob=yes
  5141. else
  5142. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5143. fi
  5144. ;;
  5145. esac
  5146. fi
  5147. file_magic_cmd=$lt_cv_file_magic_cmd
  5148. deplibs_check_method=$lt_cv_deplibs_check_method
  5149. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5150. if test -n "$ac_tool_prefix"; then
  5151. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5152. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5154. $as_echo_n "checking for $ac_word... " >&6; }
  5155. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. if test -n "$DLLTOOL"; then
  5159. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5160. else
  5161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5162. for as_dir in $PATH
  5163. do
  5164. IFS=$as_save_IFS
  5165. test -z "$as_dir" && as_dir=.
  5166. for ac_exec_ext in '' $ac_executable_extensions; do
  5167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5168. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5170. break 2
  5171. fi
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. fi
  5176. fi
  5177. DLLTOOL=$ac_cv_prog_DLLTOOL
  5178. if test -n "$DLLTOOL"; then
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5180. $as_echo "$DLLTOOL" >&6; }
  5181. else
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5183. $as_echo "no" >&6; }
  5184. fi
  5185. fi
  5186. if test -z "$ac_cv_prog_DLLTOOL"; then
  5187. ac_ct_DLLTOOL=$DLLTOOL
  5188. # Extract the first word of "dlltool", so it can be a program name with args.
  5189. set dummy dlltool; ac_word=$2
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5191. $as_echo_n "checking for $ac_word... " >&6; }
  5192. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. if test -n "$ac_ct_DLLTOOL"; then
  5196. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5197. else
  5198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5199. for as_dir in $PATH
  5200. do
  5201. IFS=$as_save_IFS
  5202. test -z "$as_dir" && as_dir=.
  5203. for ac_exec_ext in '' $ac_executable_extensions; do
  5204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5205. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5207. break 2
  5208. fi
  5209. done
  5210. done
  5211. IFS=$as_save_IFS
  5212. fi
  5213. fi
  5214. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5215. if test -n "$ac_ct_DLLTOOL"; then
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5217. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5218. else
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5220. $as_echo "no" >&6; }
  5221. fi
  5222. if test "x$ac_ct_DLLTOOL" = x; then
  5223. DLLTOOL="false"
  5224. else
  5225. case $cross_compiling:$ac_tool_warned in
  5226. yes:)
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5229. ac_tool_warned=yes ;;
  5230. esac
  5231. DLLTOOL=$ac_ct_DLLTOOL
  5232. fi
  5233. else
  5234. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5235. fi
  5236. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5238. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5239. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5240. $as_echo_n "(cached) " >&6
  5241. else
  5242. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5243. case $host_os in
  5244. cygwin* | mingw* | pw32* | cegcc*)
  5245. # two different shell functions defined in ltmain.sh;
  5246. # decide which one to use based on capabilities of $DLLTOOL
  5247. case `$DLLTOOL --help 2>&1` in
  5248. *--identify-strict*)
  5249. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5250. ;;
  5251. *)
  5252. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5253. ;;
  5254. esac
  5255. ;;
  5256. *)
  5257. # fallback: assume linklib IS sharedlib
  5258. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5259. ;;
  5260. esac
  5261. fi
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5263. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5264. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5265. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5266. if test -n "$ac_tool_prefix"; then
  5267. for ac_prog in ar
  5268. do
  5269. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if ${ac_cv_prog_AR+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$AR"; then
  5277. ac_cv_prog_AR="$AR" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. AR=$ac_cv_prog_AR
  5296. if test -n "$AR"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5298. $as_echo "$AR" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. test -n "$AR" && break
  5304. done
  5305. fi
  5306. if test -z "$AR"; then
  5307. ac_ct_AR=$AR
  5308. for ac_prog in ar
  5309. do
  5310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5311. set dummy $ac_prog; ac_word=$2
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5313. $as_echo_n "checking for $ac_word... " >&6; }
  5314. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5315. $as_echo_n "(cached) " >&6
  5316. else
  5317. if test -n "$ac_ct_AR"; then
  5318. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5319. else
  5320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5321. for as_dir in $PATH
  5322. do
  5323. IFS=$as_save_IFS
  5324. test -z "$as_dir" && as_dir=.
  5325. for ac_exec_ext in '' $ac_executable_extensions; do
  5326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5327. ac_cv_prog_ac_ct_AR="$ac_prog"
  5328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5329. break 2
  5330. fi
  5331. done
  5332. done
  5333. IFS=$as_save_IFS
  5334. fi
  5335. fi
  5336. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5337. if test -n "$ac_ct_AR"; then
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5339. $as_echo "$ac_ct_AR" >&6; }
  5340. else
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5342. $as_echo "no" >&6; }
  5343. fi
  5344. test -n "$ac_ct_AR" && break
  5345. done
  5346. if test "x$ac_ct_AR" = x; then
  5347. AR="false"
  5348. else
  5349. case $cross_compiling:$ac_tool_warned in
  5350. yes:)
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5353. ac_tool_warned=yes ;;
  5354. esac
  5355. AR=$ac_ct_AR
  5356. fi
  5357. fi
  5358. : ${AR=ar}
  5359. : ${AR_FLAGS=cru}
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5361. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5362. if ${lt_cv_ar_at_file+:} false; then :
  5363. $as_echo_n "(cached) " >&6
  5364. else
  5365. lt_cv_ar_at_file=no
  5366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5367. /* end confdefs.h. */
  5368. int
  5369. main ()
  5370. {
  5371. ;
  5372. return 0;
  5373. }
  5374. _ACEOF
  5375. if ac_fn_c_try_compile "$LINENO"; then :
  5376. echo conftest.$ac_objext > conftest.lst
  5377. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5378. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5379. (eval $lt_ar_try) 2>&5
  5380. ac_status=$?
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5382. test $ac_status = 0; }
  5383. if test 0 -eq "$ac_status"; then
  5384. # Ensure the archiver fails upon bogus file names.
  5385. rm -f conftest.$ac_objext libconftest.a
  5386. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5387. (eval $lt_ar_try) 2>&5
  5388. ac_status=$?
  5389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5390. test $ac_status = 0; }
  5391. if test 0 -ne "$ac_status"; then
  5392. lt_cv_ar_at_file=@
  5393. fi
  5394. fi
  5395. rm -f conftest.* libconftest.a
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5398. fi
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5400. $as_echo "$lt_cv_ar_at_file" >&6; }
  5401. if test no = "$lt_cv_ar_at_file"; then
  5402. archiver_list_spec=
  5403. else
  5404. archiver_list_spec=$lt_cv_ar_at_file
  5405. fi
  5406. if test -n "$ac_tool_prefix"; then
  5407. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5408. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5410. $as_echo_n "checking for $ac_word... " >&6; }
  5411. if ${ac_cv_prog_STRIP+:} false; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. if test -n "$STRIP"; then
  5415. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5416. else
  5417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5418. for as_dir in $PATH
  5419. do
  5420. IFS=$as_save_IFS
  5421. test -z "$as_dir" && as_dir=.
  5422. for ac_exec_ext in '' $ac_executable_extensions; do
  5423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5424. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5426. break 2
  5427. fi
  5428. done
  5429. done
  5430. IFS=$as_save_IFS
  5431. fi
  5432. fi
  5433. STRIP=$ac_cv_prog_STRIP
  5434. if test -n "$STRIP"; then
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5436. $as_echo "$STRIP" >&6; }
  5437. else
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5439. $as_echo "no" >&6; }
  5440. fi
  5441. fi
  5442. if test -z "$ac_cv_prog_STRIP"; then
  5443. ac_ct_STRIP=$STRIP
  5444. # Extract the first word of "strip", so it can be a program name with args.
  5445. set dummy strip; ac_word=$2
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5447. $as_echo_n "checking for $ac_word... " >&6; }
  5448. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. if test -n "$ac_ct_STRIP"; then
  5452. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5453. else
  5454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5455. for as_dir in $PATH
  5456. do
  5457. IFS=$as_save_IFS
  5458. test -z "$as_dir" && as_dir=.
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_STRIP="strip"
  5462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5471. if test -n "$ac_ct_STRIP"; then
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5473. $as_echo "$ac_ct_STRIP" >&6; }
  5474. else
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. $as_echo "no" >&6; }
  5477. fi
  5478. if test "x$ac_ct_STRIP" = x; then
  5479. STRIP=":"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. STRIP=$ac_ct_STRIP
  5488. fi
  5489. else
  5490. STRIP="$ac_cv_prog_STRIP"
  5491. fi
  5492. test -z "$STRIP" && STRIP=:
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_RANLIB+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$RANLIB"; then
  5502. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. RANLIB=$ac_cv_prog_RANLIB
  5521. if test -n "$RANLIB"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5523. $as_echo "$RANLIB" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. fi
  5529. if test -z "$ac_cv_prog_RANLIB"; then
  5530. ac_ct_RANLIB=$RANLIB
  5531. # Extract the first word of "ranlib", so it can be a program name with args.
  5532. set dummy ranlib; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$ac_ct_RANLIB"; then
  5539. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5558. if test -n "$ac_ct_RANLIB"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5560. $as_echo "$ac_ct_RANLIB" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. if test "x$ac_ct_RANLIB" = x; then
  5566. RANLIB=":"
  5567. else
  5568. case $cross_compiling:$ac_tool_warned in
  5569. yes:)
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5572. ac_tool_warned=yes ;;
  5573. esac
  5574. RANLIB=$ac_ct_RANLIB
  5575. fi
  5576. else
  5577. RANLIB="$ac_cv_prog_RANLIB"
  5578. fi
  5579. test -z "$RANLIB" && RANLIB=:
  5580. # Determine commands to create old-style static archives.
  5581. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5582. old_postinstall_cmds='chmod 644 $oldlib'
  5583. old_postuninstall_cmds=
  5584. if test -n "$RANLIB"; then
  5585. case $host_os in
  5586. bitrig* | openbsd*)
  5587. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5588. ;;
  5589. *)
  5590. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5591. ;;
  5592. esac
  5593. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5594. fi
  5595. case $host_os in
  5596. darwin*)
  5597. lock_old_archive_extraction=yes ;;
  5598. *)
  5599. lock_old_archive_extraction=no ;;
  5600. esac
  5601. # If no C compiler was specified, use CC.
  5602. LTCC=${LTCC-"$CC"}
  5603. # If no C compiler flags were specified, use CFLAGS.
  5604. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5605. # Allow CC to be a program name with arguments.
  5606. compiler=$CC
  5607. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5609. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5610. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5611. $as_echo_n "(cached) " >&6
  5612. else
  5613. # These are sane defaults that work on at least a few old systems.
  5614. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5615. # Character class describing NM global symbol codes.
  5616. symcode='[BCDEGRST]'
  5617. # Regexp to match symbols that can be accessed directly from C.
  5618. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5619. # Define system-specific variables.
  5620. case $host_os in
  5621. aix*)
  5622. symcode='[BCDT]'
  5623. ;;
  5624. cygwin* | mingw* | pw32* | cegcc*)
  5625. symcode='[ABCDGISTW]'
  5626. ;;
  5627. hpux*)
  5628. if test ia64 = "$host_cpu"; then
  5629. symcode='[ABCDEGRST]'
  5630. fi
  5631. ;;
  5632. irix* | nonstopux*)
  5633. symcode='[BCDEGRST]'
  5634. ;;
  5635. osf*)
  5636. symcode='[BCDEGQRST]'
  5637. ;;
  5638. solaris*)
  5639. symcode='[BDRT]'
  5640. ;;
  5641. sco3.2v5*)
  5642. symcode='[DT]'
  5643. ;;
  5644. sysv4.2uw2*)
  5645. symcode='[DT]'
  5646. ;;
  5647. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5648. symcode='[ABDT]'
  5649. ;;
  5650. sysv4)
  5651. symcode='[DFNSTU]'
  5652. ;;
  5653. esac
  5654. # If we're using GNU nm, then use its standard symbol codes.
  5655. case `$NM -V 2>&1` in
  5656. *GNU* | *'with BFD'*)
  5657. symcode='[ABCDGIRSTW]' ;;
  5658. esac
  5659. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5660. # Gets list of data symbols to import.
  5661. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5662. # Adjust the below global symbol transforms to fixup imported variables.
  5663. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5664. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5665. lt_c_name_lib_hook="\
  5666. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5667. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5668. else
  5669. # Disable hooks by default.
  5670. lt_cv_sys_global_symbol_to_import=
  5671. lt_cdecl_hook=
  5672. lt_c_name_hook=
  5673. lt_c_name_lib_hook=
  5674. fi
  5675. # Transform an extracted symbol line into a proper C declaration.
  5676. # Some systems (esp. on ia64) link data and code symbols differently,
  5677. # so use this general approach.
  5678. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5679. $lt_cdecl_hook\
  5680. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5681. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5682. # Transform an extracted symbol line into symbol name and symbol address
  5683. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5684. $lt_c_name_hook\
  5685. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5686. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5687. # Transform an extracted symbol line into symbol name with lib prefix and
  5688. # symbol address.
  5689. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5690. $lt_c_name_lib_hook\
  5691. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5692. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5693. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5694. # Handle CRLF in mingw tool chain
  5695. opt_cr=
  5696. case $build_os in
  5697. mingw*)
  5698. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5699. ;;
  5700. esac
  5701. # Try without a prefix underscore, then with it.
  5702. for ac_symprfx in "" "_"; do
  5703. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5704. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5705. # Write the raw and C identifiers.
  5706. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5707. # Fake it for dumpbin and say T for any non-static function,
  5708. # D for any global variable and I for any imported variable.
  5709. # Also find C++ and __fastcall symbols from MSVC++,
  5710. # which start with @ or ?.
  5711. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5712. " {last_section=section; section=\$ 3};"\
  5713. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5714. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5715. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5716. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5717. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5718. " \$ 0!~/External *\|/{next};"\
  5719. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5720. " {if(hide[section]) next};"\
  5721. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5722. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5723. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5724. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5725. " ' prfx=^$ac_symprfx"
  5726. else
  5727. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5728. fi
  5729. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5730. # Check to see that the pipe works correctly.
  5731. pipe_works=no
  5732. rm -f conftest*
  5733. cat > conftest.$ac_ext <<_LT_EOF
  5734. #ifdef __cplusplus
  5735. extern "C" {
  5736. #endif
  5737. char nm_test_var;
  5738. void nm_test_func(void);
  5739. void nm_test_func(void){}
  5740. #ifdef __cplusplus
  5741. }
  5742. #endif
  5743. int main(){nm_test_var='a';nm_test_func();return(0);}
  5744. _LT_EOF
  5745. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5746. (eval $ac_compile) 2>&5
  5747. ac_status=$?
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5749. test $ac_status = 0; }; then
  5750. # Now try to grab the symbols.
  5751. nlist=conftest.nm
  5752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5753. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5754. ac_status=$?
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5756. test $ac_status = 0; } && test -s "$nlist"; then
  5757. # Try sorting and uniquifying the output.
  5758. if sort "$nlist" | uniq > "$nlist"T; then
  5759. mv -f "$nlist"T "$nlist"
  5760. else
  5761. rm -f "$nlist"T
  5762. fi
  5763. # Make sure that we snagged all the symbols we need.
  5764. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5765. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5766. cat <<_LT_EOF > conftest.$ac_ext
  5767. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5768. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5769. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5770. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5771. # define LT_DLSYM_CONST
  5772. #elif defined __osf__
  5773. /* This system does not cope well with relocations in const data. */
  5774. # define LT_DLSYM_CONST
  5775. #else
  5776. # define LT_DLSYM_CONST const
  5777. #endif
  5778. #ifdef __cplusplus
  5779. extern "C" {
  5780. #endif
  5781. _LT_EOF
  5782. # Now generate the symbol file.
  5783. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5784. cat <<_LT_EOF >> conftest.$ac_ext
  5785. /* The mapping between symbol names and symbols. */
  5786. LT_DLSYM_CONST struct {
  5787. const char *name;
  5788. void *address;
  5789. }
  5790. lt__PROGRAM__LTX_preloaded_symbols[] =
  5791. {
  5792. { "@PROGRAM@", (void *) 0 },
  5793. _LT_EOF
  5794. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5795. cat <<\_LT_EOF >> conftest.$ac_ext
  5796. {0, (void *) 0}
  5797. };
  5798. /* This works around a problem in FreeBSD linker */
  5799. #ifdef FREEBSD_WORKAROUND
  5800. static const void *lt_preloaded_setup() {
  5801. return lt__PROGRAM__LTX_preloaded_symbols;
  5802. }
  5803. #endif
  5804. #ifdef __cplusplus
  5805. }
  5806. #endif
  5807. _LT_EOF
  5808. # Now try linking the two files.
  5809. mv conftest.$ac_objext conftstm.$ac_objext
  5810. lt_globsym_save_LIBS=$LIBS
  5811. lt_globsym_save_CFLAGS=$CFLAGS
  5812. LIBS=conftstm.$ac_objext
  5813. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5815. (eval $ac_link) 2>&5
  5816. ac_status=$?
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5818. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5819. pipe_works=yes
  5820. fi
  5821. LIBS=$lt_globsym_save_LIBS
  5822. CFLAGS=$lt_globsym_save_CFLAGS
  5823. else
  5824. echo "cannot find nm_test_func in $nlist" >&5
  5825. fi
  5826. else
  5827. echo "cannot find nm_test_var in $nlist" >&5
  5828. fi
  5829. else
  5830. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5831. fi
  5832. else
  5833. echo "$progname: failed program was:" >&5
  5834. cat conftest.$ac_ext >&5
  5835. fi
  5836. rm -rf conftest* conftst*
  5837. # Do not use the global_symbol_pipe unless it works.
  5838. if test yes = "$pipe_works"; then
  5839. break
  5840. else
  5841. lt_cv_sys_global_symbol_pipe=
  5842. fi
  5843. done
  5844. fi
  5845. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5846. lt_cv_sys_global_symbol_to_cdecl=
  5847. fi
  5848. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5850. $as_echo "failed" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5853. $as_echo "ok" >&6; }
  5854. fi
  5855. # Response file support.
  5856. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5857. nm_file_list_spec='@'
  5858. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5859. nm_file_list_spec='@'
  5860. fi
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5862. $as_echo_n "checking for sysroot... " >&6; }
  5863. # Check whether --with-sysroot was given.
  5864. if test "${with_sysroot+set}" = set; then :
  5865. withval=$with_sysroot;
  5866. else
  5867. with_sysroot=no
  5868. fi
  5869. lt_sysroot=
  5870. case $with_sysroot in #(
  5871. yes)
  5872. if test yes = "$GCC"; then
  5873. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5874. fi
  5875. ;; #(
  5876. /*)
  5877. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5878. ;; #(
  5879. no|'')
  5880. ;; #(
  5881. *)
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5883. $as_echo "$with_sysroot" >&6; }
  5884. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5885. ;;
  5886. esac
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5888. $as_echo "${lt_sysroot:-no}" >&6; }
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5890. $as_echo_n "checking for a working dd... " >&6; }
  5891. if ${ac_cv_path_lt_DD+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. printf 0123456789abcdef0123456789abcdef >conftest.i
  5895. cat conftest.i conftest.i >conftest2.i
  5896. : ${lt_DD:=$DD}
  5897. if test -z "$lt_DD"; then
  5898. ac_path_lt_DD_found=false
  5899. # Loop through the user's path and test for each of PROGNAME-LIST
  5900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5901. for as_dir in $PATH
  5902. do
  5903. IFS=$as_save_IFS
  5904. test -z "$as_dir" && as_dir=.
  5905. for ac_prog in dd; do
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5908. as_fn_executable_p "$ac_path_lt_DD" || continue
  5909. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5910. cmp -s conftest.i conftest.out \
  5911. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5912. fi
  5913. $ac_path_lt_DD_found && break 3
  5914. done
  5915. done
  5916. done
  5917. IFS=$as_save_IFS
  5918. if test -z "$ac_cv_path_lt_DD"; then
  5919. :
  5920. fi
  5921. else
  5922. ac_cv_path_lt_DD=$lt_DD
  5923. fi
  5924. rm -f conftest.i conftest2.i conftest.out
  5925. fi
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5927. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5929. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5930. if ${lt_cv_truncate_bin+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. printf 0123456789abcdef0123456789abcdef >conftest.i
  5934. cat conftest.i conftest.i >conftest2.i
  5935. lt_cv_truncate_bin=
  5936. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5937. cmp -s conftest.i conftest.out \
  5938. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5939. fi
  5940. rm -f conftest.i conftest2.i conftest.out
  5941. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5942. fi
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5944. $as_echo "$lt_cv_truncate_bin" >&6; }
  5945. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5946. func_cc_basename ()
  5947. {
  5948. for cc_temp in $*""; do
  5949. case $cc_temp in
  5950. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5951. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5952. \-*) ;;
  5953. *) break;;
  5954. esac
  5955. done
  5956. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5957. }
  5958. # Check whether --enable-libtool-lock was given.
  5959. if test "${enable_libtool_lock+set}" = set; then :
  5960. enableval=$enable_libtool_lock;
  5961. fi
  5962. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5963. # Some flags need to be propagated to the compiler or linker for good
  5964. # libtool support.
  5965. case $host in
  5966. ia64-*-hpux*)
  5967. # Find out what ABI is being produced by ac_compile, and set mode
  5968. # options accordingly.
  5969. echo 'int i;' > conftest.$ac_ext
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5971. (eval $ac_compile) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; }; then
  5975. case `/usr/bin/file conftest.$ac_objext` in
  5976. *ELF-32*)
  5977. HPUX_IA64_MODE=32
  5978. ;;
  5979. *ELF-64*)
  5980. HPUX_IA64_MODE=64
  5981. ;;
  5982. esac
  5983. fi
  5984. rm -rf conftest*
  5985. ;;
  5986. *-*-irix6*)
  5987. # Find out what ABI is being produced by ac_compile, and set linker
  5988. # options accordingly.
  5989. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5990. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5991. (eval $ac_compile) 2>&5
  5992. ac_status=$?
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5994. test $ac_status = 0; }; then
  5995. if test yes = "$lt_cv_prog_gnu_ld"; then
  5996. case `/usr/bin/file conftest.$ac_objext` in
  5997. *32-bit*)
  5998. LD="${LD-ld} -melf32bsmip"
  5999. ;;
  6000. *N32*)
  6001. LD="${LD-ld} -melf32bmipn32"
  6002. ;;
  6003. *64-bit*)
  6004. LD="${LD-ld} -melf64bmip"
  6005. ;;
  6006. esac
  6007. else
  6008. case `/usr/bin/file conftest.$ac_objext` in
  6009. *32-bit*)
  6010. LD="${LD-ld} -32"
  6011. ;;
  6012. *N32*)
  6013. LD="${LD-ld} -n32"
  6014. ;;
  6015. *64-bit*)
  6016. LD="${LD-ld} -64"
  6017. ;;
  6018. esac
  6019. fi
  6020. fi
  6021. rm -rf conftest*
  6022. ;;
  6023. mips64*-*linux*)
  6024. # Find out what ABI is being produced by ac_compile, and set linker
  6025. # options accordingly.
  6026. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6028. (eval $ac_compile) 2>&5
  6029. ac_status=$?
  6030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031. test $ac_status = 0; }; then
  6032. emul=elf
  6033. case `/usr/bin/file conftest.$ac_objext` in
  6034. *32-bit*)
  6035. emul="${emul}32"
  6036. ;;
  6037. *64-bit*)
  6038. emul="${emul}64"
  6039. ;;
  6040. esac
  6041. case `/usr/bin/file conftest.$ac_objext` in
  6042. *MSB*)
  6043. emul="${emul}btsmip"
  6044. ;;
  6045. *LSB*)
  6046. emul="${emul}ltsmip"
  6047. ;;
  6048. esac
  6049. case `/usr/bin/file conftest.$ac_objext` in
  6050. *N32*)
  6051. emul="${emul}n32"
  6052. ;;
  6053. esac
  6054. LD="${LD-ld} -m $emul"
  6055. fi
  6056. rm -rf conftest*
  6057. ;;
  6058. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6059. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6060. # Find out what ABI is being produced by ac_compile, and set linker
  6061. # options accordingly. Note that the listed cases only cover the
  6062. # situations where additional linker options are needed (such as when
  6063. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6064. # vice versa); the common cases where no linker options are needed do
  6065. # not appear in the list.
  6066. echo 'int i;' > conftest.$ac_ext
  6067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6068. (eval $ac_compile) 2>&5
  6069. ac_status=$?
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6071. test $ac_status = 0; }; then
  6072. case `/usr/bin/file conftest.o` in
  6073. *32-bit*)
  6074. case $host in
  6075. x86_64-*kfreebsd*-gnu)
  6076. LD="${LD-ld} -m elf_i386_fbsd"
  6077. ;;
  6078. x86_64-*linux*)
  6079. case `/usr/bin/file conftest.o` in
  6080. *x86-64*)
  6081. LD="${LD-ld} -m elf32_x86_64"
  6082. ;;
  6083. *)
  6084. LD="${LD-ld} -m elf_i386"
  6085. ;;
  6086. esac
  6087. ;;
  6088. powerpc64le-*linux*)
  6089. LD="${LD-ld} -m elf32lppclinux"
  6090. ;;
  6091. powerpc64-*linux*)
  6092. LD="${LD-ld} -m elf32ppclinux"
  6093. ;;
  6094. s390x-*linux*)
  6095. LD="${LD-ld} -m elf_s390"
  6096. ;;
  6097. sparc64-*linux*)
  6098. LD="${LD-ld} -m elf32_sparc"
  6099. ;;
  6100. esac
  6101. ;;
  6102. *64-bit*)
  6103. case $host in
  6104. x86_64-*kfreebsd*-gnu)
  6105. LD="${LD-ld} -m elf_x86_64_fbsd"
  6106. ;;
  6107. x86_64-*linux*)
  6108. LD="${LD-ld} -m elf_x86_64"
  6109. ;;
  6110. powerpcle-*linux*|powerpc64le-*linux*)
  6111. LD="${LD-ld} -m elf64lppc"
  6112. ;;
  6113. powerpc-*linux*|powerpc64-*linux*)
  6114. LD="${LD-ld} -m elf64ppc"
  6115. ;;
  6116. s390*-*linux*|s390*-*tpf*)
  6117. LD="${LD-ld} -m elf64_s390"
  6118. ;;
  6119. sparc*-*linux*)
  6120. LD="${LD-ld} -m elf64_sparc"
  6121. ;;
  6122. esac
  6123. ;;
  6124. esac
  6125. fi
  6126. rm -rf conftest*
  6127. ;;
  6128. *-*-sco3.2v5*)
  6129. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6130. SAVE_CFLAGS=$CFLAGS
  6131. CFLAGS="$CFLAGS -belf"
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6133. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6134. if ${lt_cv_cc_needs_belf+:} false; then :
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. ac_ext=c
  6138. ac_cpp='$CPP $CPPFLAGS'
  6139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6143. /* end confdefs.h. */
  6144. int
  6145. main ()
  6146. {
  6147. ;
  6148. return 0;
  6149. }
  6150. _ACEOF
  6151. if ac_fn_c_try_link "$LINENO"; then :
  6152. lt_cv_cc_needs_belf=yes
  6153. else
  6154. lt_cv_cc_needs_belf=no
  6155. fi
  6156. rm -f core conftest.err conftest.$ac_objext \
  6157. conftest$ac_exeext conftest.$ac_ext
  6158. ac_ext=c
  6159. ac_cpp='$CPP $CPPFLAGS'
  6160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6163. fi
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6165. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6166. if test yes != "$lt_cv_cc_needs_belf"; then
  6167. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6168. CFLAGS=$SAVE_CFLAGS
  6169. fi
  6170. ;;
  6171. *-*solaris*)
  6172. # Find out what ABI is being produced by ac_compile, and set linker
  6173. # options accordingly.
  6174. echo 'int i;' > conftest.$ac_ext
  6175. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6176. (eval $ac_compile) 2>&5
  6177. ac_status=$?
  6178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6179. test $ac_status = 0; }; then
  6180. case `/usr/bin/file conftest.o` in
  6181. *64-bit*)
  6182. case $lt_cv_prog_gnu_ld in
  6183. yes*)
  6184. case $host in
  6185. i?86-*-solaris*|x86_64-*-solaris*)
  6186. LD="${LD-ld} -m elf_x86_64"
  6187. ;;
  6188. sparc*-*-solaris*)
  6189. LD="${LD-ld} -m elf64_sparc"
  6190. ;;
  6191. esac
  6192. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6193. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6194. LD=${LD-ld}_sol2
  6195. fi
  6196. ;;
  6197. *)
  6198. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6199. LD="${LD-ld} -64"
  6200. fi
  6201. ;;
  6202. esac
  6203. ;;
  6204. esac
  6205. fi
  6206. rm -rf conftest*
  6207. ;;
  6208. esac
  6209. need_locks=$enable_libtool_lock
  6210. if test -n "$ac_tool_prefix"; then
  6211. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6212. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$MANIFEST_TOOL"; then
  6219. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6238. if test -n "$MANIFEST_TOOL"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6240. $as_echo "$MANIFEST_TOOL" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. fi
  6246. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6247. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6248. # Extract the first word of "mt", so it can be a program name with args.
  6249. set dummy mt; ac_word=$2
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6251. $as_echo_n "checking for $ac_word... " >&6; }
  6252. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6256. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. fi
  6273. fi
  6274. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6275. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6277. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6283. MANIFEST_TOOL=":"
  6284. else
  6285. case $cross_compiling:$ac_tool_warned in
  6286. yes:)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6289. ac_tool_warned=yes ;;
  6290. esac
  6291. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6292. fi
  6293. else
  6294. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6295. fi
  6296. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6298. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6299. if ${lt_cv_path_mainfest_tool+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. lt_cv_path_mainfest_tool=no
  6303. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6304. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6305. cat conftest.err >&5
  6306. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6307. lt_cv_path_mainfest_tool=yes
  6308. fi
  6309. rm -f conftest*
  6310. fi
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6312. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6313. if test yes != "$lt_cv_path_mainfest_tool"; then
  6314. MANIFEST_TOOL=:
  6315. fi
  6316. case $host_os in
  6317. rhapsody* | darwin*)
  6318. if test -n "$ac_tool_prefix"; then
  6319. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6320. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6322. $as_echo_n "checking for $ac_word... " >&6; }
  6323. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6324. $as_echo_n "(cached) " >&6
  6325. else
  6326. if test -n "$DSYMUTIL"; then
  6327. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6328. else
  6329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6330. for as_dir in $PATH
  6331. do
  6332. IFS=$as_save_IFS
  6333. test -z "$as_dir" && as_dir=.
  6334. for ac_exec_ext in '' $ac_executable_extensions; do
  6335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6336. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6338. break 2
  6339. fi
  6340. done
  6341. done
  6342. IFS=$as_save_IFS
  6343. fi
  6344. fi
  6345. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6346. if test -n "$DSYMUTIL"; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6348. $as_echo "$DSYMUTIL" >&6; }
  6349. else
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6351. $as_echo "no" >&6; }
  6352. fi
  6353. fi
  6354. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6355. ac_ct_DSYMUTIL=$DSYMUTIL
  6356. # Extract the first word of "dsymutil", so it can be a program name with args.
  6357. set dummy dsymutil; ac_word=$2
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6359. $as_echo_n "checking for $ac_word... " >&6; }
  6360. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. if test -n "$ac_ct_DSYMUTIL"; then
  6364. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. test -z "$as_dir" && as_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6373. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6375. break 2
  6376. fi
  6377. done
  6378. done
  6379. IFS=$as_save_IFS
  6380. fi
  6381. fi
  6382. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6383. if test -n "$ac_ct_DSYMUTIL"; then
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6385. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6386. else
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6388. $as_echo "no" >&6; }
  6389. fi
  6390. if test "x$ac_ct_DSYMUTIL" = x; then
  6391. DSYMUTIL=":"
  6392. else
  6393. case $cross_compiling:$ac_tool_warned in
  6394. yes:)
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6396. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6397. ac_tool_warned=yes ;;
  6398. esac
  6399. DSYMUTIL=$ac_ct_DSYMUTIL
  6400. fi
  6401. else
  6402. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6403. fi
  6404. if test -n "$ac_tool_prefix"; then
  6405. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6406. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6408. $as_echo_n "checking for $ac_word... " >&6; }
  6409. if ${ac_cv_prog_NMEDIT+:} false; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. if test -n "$NMEDIT"; then
  6413. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6414. else
  6415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6416. for as_dir in $PATH
  6417. do
  6418. IFS=$as_save_IFS
  6419. test -z "$as_dir" && as_dir=.
  6420. for ac_exec_ext in '' $ac_executable_extensions; do
  6421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6422. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6424. break 2
  6425. fi
  6426. done
  6427. done
  6428. IFS=$as_save_IFS
  6429. fi
  6430. fi
  6431. NMEDIT=$ac_cv_prog_NMEDIT
  6432. if test -n "$NMEDIT"; then
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6434. $as_echo "$NMEDIT" >&6; }
  6435. else
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. fi
  6440. if test -z "$ac_cv_prog_NMEDIT"; then
  6441. ac_ct_NMEDIT=$NMEDIT
  6442. # Extract the first word of "nmedit", so it can be a program name with args.
  6443. set dummy nmedit; ac_word=$2
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$ac_ct_NMEDIT"; then
  6450. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6451. else
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6469. if test -n "$ac_ct_NMEDIT"; then
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6471. $as_echo "$ac_ct_NMEDIT" >&6; }
  6472. else
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6474. $as_echo "no" >&6; }
  6475. fi
  6476. if test "x$ac_ct_NMEDIT" = x; then
  6477. NMEDIT=":"
  6478. else
  6479. case $cross_compiling:$ac_tool_warned in
  6480. yes:)
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6483. ac_tool_warned=yes ;;
  6484. esac
  6485. NMEDIT=$ac_ct_NMEDIT
  6486. fi
  6487. else
  6488. NMEDIT="$ac_cv_prog_NMEDIT"
  6489. fi
  6490. if test -n "$ac_tool_prefix"; then
  6491. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6492. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if ${ac_cv_prog_LIPO+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$LIPO"; then
  6499. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6508. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. LIPO=$ac_cv_prog_LIPO
  6518. if test -n "$LIPO"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6520. $as_echo "$LIPO" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. fi
  6526. if test -z "$ac_cv_prog_LIPO"; then
  6527. ac_ct_LIPO=$LIPO
  6528. # Extract the first word of "lipo", so it can be a program name with args.
  6529. set dummy lipo; ac_word=$2
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6531. $as_echo_n "checking for $ac_word... " >&6; }
  6532. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. if test -n "$ac_ct_LIPO"; then
  6536. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6537. else
  6538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6539. for as_dir in $PATH
  6540. do
  6541. IFS=$as_save_IFS
  6542. test -z "$as_dir" && as_dir=.
  6543. for ac_exec_ext in '' $ac_executable_extensions; do
  6544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6545. ac_cv_prog_ac_ct_LIPO="lipo"
  6546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6547. break 2
  6548. fi
  6549. done
  6550. done
  6551. IFS=$as_save_IFS
  6552. fi
  6553. fi
  6554. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6555. if test -n "$ac_ct_LIPO"; then
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6557. $as_echo "$ac_ct_LIPO" >&6; }
  6558. else
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6560. $as_echo "no" >&6; }
  6561. fi
  6562. if test "x$ac_ct_LIPO" = x; then
  6563. LIPO=":"
  6564. else
  6565. case $cross_compiling:$ac_tool_warned in
  6566. yes:)
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6569. ac_tool_warned=yes ;;
  6570. esac
  6571. LIPO=$ac_ct_LIPO
  6572. fi
  6573. else
  6574. LIPO="$ac_cv_prog_LIPO"
  6575. fi
  6576. if test -n "$ac_tool_prefix"; then
  6577. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6578. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6580. $as_echo_n "checking for $ac_word... " >&6; }
  6581. if ${ac_cv_prog_OTOOL+:} false; then :
  6582. $as_echo_n "(cached) " >&6
  6583. else
  6584. if test -n "$OTOOL"; then
  6585. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6586. else
  6587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6588. for as_dir in $PATH
  6589. do
  6590. IFS=$as_save_IFS
  6591. test -z "$as_dir" && as_dir=.
  6592. for ac_exec_ext in '' $ac_executable_extensions; do
  6593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6594. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6596. break 2
  6597. fi
  6598. done
  6599. done
  6600. IFS=$as_save_IFS
  6601. fi
  6602. fi
  6603. OTOOL=$ac_cv_prog_OTOOL
  6604. if test -n "$OTOOL"; then
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6606. $as_echo "$OTOOL" >&6; }
  6607. else
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6609. $as_echo "no" >&6; }
  6610. fi
  6611. fi
  6612. if test -z "$ac_cv_prog_OTOOL"; then
  6613. ac_ct_OTOOL=$OTOOL
  6614. # Extract the first word of "otool", so it can be a program name with args.
  6615. set dummy otool; ac_word=$2
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6617. $as_echo_n "checking for $ac_word... " >&6; }
  6618. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. if test -n "$ac_ct_OTOOL"; then
  6622. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6623. else
  6624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6625. for as_dir in $PATH
  6626. do
  6627. IFS=$as_save_IFS
  6628. test -z "$as_dir" && as_dir=.
  6629. for ac_exec_ext in '' $ac_executable_extensions; do
  6630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6631. ac_cv_prog_ac_ct_OTOOL="otool"
  6632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6633. break 2
  6634. fi
  6635. done
  6636. done
  6637. IFS=$as_save_IFS
  6638. fi
  6639. fi
  6640. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6641. if test -n "$ac_ct_OTOOL"; then
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6643. $as_echo "$ac_ct_OTOOL" >&6; }
  6644. else
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6646. $as_echo "no" >&6; }
  6647. fi
  6648. if test "x$ac_ct_OTOOL" = x; then
  6649. OTOOL=":"
  6650. else
  6651. case $cross_compiling:$ac_tool_warned in
  6652. yes:)
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6654. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6655. ac_tool_warned=yes ;;
  6656. esac
  6657. OTOOL=$ac_ct_OTOOL
  6658. fi
  6659. else
  6660. OTOOL="$ac_cv_prog_OTOOL"
  6661. fi
  6662. if test -n "$ac_tool_prefix"; then
  6663. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6664. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6666. $as_echo_n "checking for $ac_word... " >&6; }
  6667. if ${ac_cv_prog_OTOOL64+:} false; then :
  6668. $as_echo_n "(cached) " >&6
  6669. else
  6670. if test -n "$OTOOL64"; then
  6671. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6672. else
  6673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6674. for as_dir in $PATH
  6675. do
  6676. IFS=$as_save_IFS
  6677. test -z "$as_dir" && as_dir=.
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. OTOOL64=$ac_cv_prog_OTOOL64
  6690. if test -n "$OTOOL64"; then
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6692. $as_echo "$OTOOL64" >&6; }
  6693. else
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. $as_echo "no" >&6; }
  6696. fi
  6697. fi
  6698. if test -z "$ac_cv_prog_OTOOL64"; then
  6699. ac_ct_OTOOL64=$OTOOL64
  6700. # Extract the first word of "otool64", so it can be a program name with args.
  6701. set dummy otool64; ac_word=$2
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6703. $as_echo_n "checking for $ac_word... " >&6; }
  6704. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. if test -n "$ac_ct_OTOOL64"; then
  6708. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6709. else
  6710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6711. for as_dir in $PATH
  6712. do
  6713. IFS=$as_save_IFS
  6714. test -z "$as_dir" && as_dir=.
  6715. for ac_exec_ext in '' $ac_executable_extensions; do
  6716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6717. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6719. break 2
  6720. fi
  6721. done
  6722. done
  6723. IFS=$as_save_IFS
  6724. fi
  6725. fi
  6726. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6727. if test -n "$ac_ct_OTOOL64"; then
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6729. $as_echo "$ac_ct_OTOOL64" >&6; }
  6730. else
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6732. $as_echo "no" >&6; }
  6733. fi
  6734. if test "x$ac_ct_OTOOL64" = x; then
  6735. OTOOL64=":"
  6736. else
  6737. case $cross_compiling:$ac_tool_warned in
  6738. yes:)
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6740. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6741. ac_tool_warned=yes ;;
  6742. esac
  6743. OTOOL64=$ac_ct_OTOOL64
  6744. fi
  6745. else
  6746. OTOOL64="$ac_cv_prog_OTOOL64"
  6747. fi
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6749. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6750. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. lt_cv_apple_cc_single_mod=no
  6754. if test -z "$LT_MULTI_MODULE"; then
  6755. # By default we will add the -single_module flag. You can override
  6756. # by either setting the environment variable LT_MULTI_MODULE
  6757. # non-empty at configure time, or by adding -multi_module to the
  6758. # link flags.
  6759. rm -rf libconftest.dylib*
  6760. echo "int foo(void){return 1;}" > conftest.c
  6761. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6762. -dynamiclib -Wl,-single_module conftest.c" >&5
  6763. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6764. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6765. _lt_result=$?
  6766. # If there is a non-empty error log, and "single_module"
  6767. # appears in it, assume the flag caused a linker warning
  6768. if test -s conftest.err && $GREP single_module conftest.err; then
  6769. cat conftest.err >&5
  6770. # Otherwise, if the output was created with a 0 exit code from
  6771. # the compiler, it worked.
  6772. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6773. lt_cv_apple_cc_single_mod=yes
  6774. else
  6775. cat conftest.err >&5
  6776. fi
  6777. rm -rf libconftest.dylib*
  6778. rm -f conftest.*
  6779. fi
  6780. fi
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6782. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6784. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6785. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. lt_cv_ld_exported_symbols_list=no
  6789. save_LDFLAGS=$LDFLAGS
  6790. echo "_main" > conftest.sym
  6791. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. int
  6795. main ()
  6796. {
  6797. ;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. if ac_fn_c_try_link "$LINENO"; then :
  6802. lt_cv_ld_exported_symbols_list=yes
  6803. else
  6804. lt_cv_ld_exported_symbols_list=no
  6805. fi
  6806. rm -f core conftest.err conftest.$ac_objext \
  6807. conftest$ac_exeext conftest.$ac_ext
  6808. LDFLAGS=$save_LDFLAGS
  6809. fi
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6811. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6813. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6814. if ${lt_cv_ld_force_load+:} false; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. lt_cv_ld_force_load=no
  6818. cat > conftest.c << _LT_EOF
  6819. int forced_loaded() { return 2;}
  6820. _LT_EOF
  6821. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6822. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6823. echo "$AR cru libconftest.a conftest.o" >&5
  6824. $AR cru libconftest.a conftest.o 2>&5
  6825. echo "$RANLIB libconftest.a" >&5
  6826. $RANLIB libconftest.a 2>&5
  6827. cat > conftest.c << _LT_EOF
  6828. int main() { return 0;}
  6829. _LT_EOF
  6830. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6831. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6832. _lt_result=$?
  6833. if test -s conftest.err && $GREP force_load conftest.err; then
  6834. cat conftest.err >&5
  6835. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6836. lt_cv_ld_force_load=yes
  6837. else
  6838. cat conftest.err >&5
  6839. fi
  6840. rm -f conftest.err libconftest.a conftest conftest.c
  6841. rm -rf conftest.dSYM
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6844. $as_echo "$lt_cv_ld_force_load" >&6; }
  6845. case $host_os in
  6846. rhapsody* | darwin1.[012])
  6847. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6848. darwin1.*)
  6849. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6850. darwin*) # darwin 5.x on
  6851. # if running on 10.5 or later, the deployment target defaults
  6852. # to the OS version, if on x86, and 10.4, the deployment
  6853. # target defaults to 10.4. Don't you love it?
  6854. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6855. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6856. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6857. 10.[012][,.]*)
  6858. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6859. 10.*)
  6860. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6861. esac
  6862. ;;
  6863. esac
  6864. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6865. _lt_dar_single_mod='$single_module'
  6866. fi
  6867. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6868. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6869. else
  6870. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6871. fi
  6872. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6873. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6874. else
  6875. _lt_dsymutil=
  6876. fi
  6877. ;;
  6878. esac
  6879. # func_munge_path_list VARIABLE PATH
  6880. # -----------------------------------
  6881. # VARIABLE is name of variable containing _space_ separated list of
  6882. # directories to be munged by the contents of PATH, which is string
  6883. # having a format:
  6884. # "DIR[:DIR]:"
  6885. # string "DIR[ DIR]" will be prepended to VARIABLE
  6886. # ":DIR[:DIR]"
  6887. # string "DIR[ DIR]" will be appended to VARIABLE
  6888. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6889. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6890. # "DIRA[ DIRA]" will be appended to VARIABLE
  6891. # "DIR[:DIR]"
  6892. # VARIABLE will be replaced by "DIR[ DIR]"
  6893. func_munge_path_list ()
  6894. {
  6895. case x$2 in
  6896. x)
  6897. ;;
  6898. *:)
  6899. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6900. ;;
  6901. x:*)
  6902. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6903. ;;
  6904. *::*)
  6905. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6906. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6907. ;;
  6908. *)
  6909. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6910. ;;
  6911. esac
  6912. }
  6913. ac_ext=c
  6914. ac_cpp='$CPP $CPPFLAGS'
  6915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6919. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6920. # On Suns, sometimes $CPP names a directory.
  6921. if test -n "$CPP" && test -d "$CPP"; then
  6922. CPP=
  6923. fi
  6924. if test -z "$CPP"; then
  6925. if ${ac_cv_prog_CPP+:} false; then :
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. # Double quotes because CPP needs to be expanded
  6929. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6930. do
  6931. ac_preproc_ok=false
  6932. for ac_c_preproc_warn_flag in '' yes
  6933. do
  6934. # Use a header file that comes with gcc, so configuring glibc
  6935. # with a fresh cross-compiler works.
  6936. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6937. # <limits.h> exists even on freestanding compilers.
  6938. # On the NeXT, cc -E runs the code through the compiler's parser,
  6939. # not just through cpp. "Syntax error" is here to catch this case.
  6940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6941. /* end confdefs.h. */
  6942. #ifdef __STDC__
  6943. # include <limits.h>
  6944. #else
  6945. # include <assert.h>
  6946. #endif
  6947. Syntax error
  6948. _ACEOF
  6949. if ac_fn_c_try_cpp "$LINENO"; then :
  6950. else
  6951. # Broken: fails on valid input.
  6952. continue
  6953. fi
  6954. rm -f conftest.err conftest.i conftest.$ac_ext
  6955. # OK, works on sane cases. Now check whether nonexistent headers
  6956. # can be detected and how.
  6957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6958. /* end confdefs.h. */
  6959. #include <ac_nonexistent.h>
  6960. _ACEOF
  6961. if ac_fn_c_try_cpp "$LINENO"; then :
  6962. # Broken: success on invalid input.
  6963. continue
  6964. else
  6965. # Passes both tests.
  6966. ac_preproc_ok=:
  6967. break
  6968. fi
  6969. rm -f conftest.err conftest.i conftest.$ac_ext
  6970. done
  6971. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6972. rm -f conftest.i conftest.err conftest.$ac_ext
  6973. if $ac_preproc_ok; then :
  6974. break
  6975. fi
  6976. done
  6977. ac_cv_prog_CPP=$CPP
  6978. fi
  6979. CPP=$ac_cv_prog_CPP
  6980. else
  6981. ac_cv_prog_CPP=$CPP
  6982. fi
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6984. $as_echo "$CPP" >&6; }
  6985. ac_preproc_ok=false
  6986. for ac_c_preproc_warn_flag in '' yes
  6987. do
  6988. # Use a header file that comes with gcc, so configuring glibc
  6989. # with a fresh cross-compiler works.
  6990. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6991. # <limits.h> exists even on freestanding compilers.
  6992. # On the NeXT, cc -E runs the code through the compiler's parser,
  6993. # not just through cpp. "Syntax error" is here to catch this case.
  6994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6995. /* end confdefs.h. */
  6996. #ifdef __STDC__
  6997. # include <limits.h>
  6998. #else
  6999. # include <assert.h>
  7000. #endif
  7001. Syntax error
  7002. _ACEOF
  7003. if ac_fn_c_try_cpp "$LINENO"; then :
  7004. else
  7005. # Broken: fails on valid input.
  7006. continue
  7007. fi
  7008. rm -f conftest.err conftest.i conftest.$ac_ext
  7009. # OK, works on sane cases. Now check whether nonexistent headers
  7010. # can be detected and how.
  7011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7012. /* end confdefs.h. */
  7013. #include <ac_nonexistent.h>
  7014. _ACEOF
  7015. if ac_fn_c_try_cpp "$LINENO"; then :
  7016. # Broken: success on invalid input.
  7017. continue
  7018. else
  7019. # Passes both tests.
  7020. ac_preproc_ok=:
  7021. break
  7022. fi
  7023. rm -f conftest.err conftest.i conftest.$ac_ext
  7024. done
  7025. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7026. rm -f conftest.i conftest.err conftest.$ac_ext
  7027. if $ac_preproc_ok; then :
  7028. else
  7029. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7031. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7032. See \`config.log' for more details" "$LINENO" 5; }
  7033. fi
  7034. ac_ext=c
  7035. ac_cpp='$CPP $CPPFLAGS'
  7036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7040. $as_echo_n "checking for ANSI C header files... " >&6; }
  7041. if ${ac_cv_header_stdc+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7045. /* end confdefs.h. */
  7046. #include <stdlib.h>
  7047. #include <stdarg.h>
  7048. #include <string.h>
  7049. #include <float.h>
  7050. int
  7051. main ()
  7052. {
  7053. ;
  7054. return 0;
  7055. }
  7056. _ACEOF
  7057. if ac_fn_c_try_compile "$LINENO"; then :
  7058. ac_cv_header_stdc=yes
  7059. else
  7060. ac_cv_header_stdc=no
  7061. fi
  7062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7063. if test $ac_cv_header_stdc = yes; then
  7064. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7066. /* end confdefs.h. */
  7067. #include <string.h>
  7068. _ACEOF
  7069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7070. $EGREP "memchr" >/dev/null 2>&1; then :
  7071. else
  7072. ac_cv_header_stdc=no
  7073. fi
  7074. rm -f conftest*
  7075. fi
  7076. if test $ac_cv_header_stdc = yes; then
  7077. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7079. /* end confdefs.h. */
  7080. #include <stdlib.h>
  7081. _ACEOF
  7082. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7083. $EGREP "free" >/dev/null 2>&1; then :
  7084. else
  7085. ac_cv_header_stdc=no
  7086. fi
  7087. rm -f conftest*
  7088. fi
  7089. if test $ac_cv_header_stdc = yes; then
  7090. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7091. if test "$cross_compiling" = yes; then :
  7092. :
  7093. else
  7094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7095. /* end confdefs.h. */
  7096. #include <ctype.h>
  7097. #include <stdlib.h>
  7098. #if ((' ' & 0x0FF) == 0x020)
  7099. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7100. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7101. #else
  7102. # define ISLOWER(c) \
  7103. (('a' <= (c) && (c) <= 'i') \
  7104. || ('j' <= (c) && (c) <= 'r') \
  7105. || ('s' <= (c) && (c) <= 'z'))
  7106. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7107. #endif
  7108. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7109. int
  7110. main ()
  7111. {
  7112. int i;
  7113. for (i = 0; i < 256; i++)
  7114. if (XOR (islower (i), ISLOWER (i))
  7115. || toupper (i) != TOUPPER (i))
  7116. return 2;
  7117. return 0;
  7118. }
  7119. _ACEOF
  7120. if ac_fn_c_try_run "$LINENO"; then :
  7121. else
  7122. ac_cv_header_stdc=no
  7123. fi
  7124. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7125. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7126. fi
  7127. fi
  7128. fi
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7130. $as_echo "$ac_cv_header_stdc" >&6; }
  7131. if test $ac_cv_header_stdc = yes; then
  7132. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7133. fi
  7134. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7135. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7136. inttypes.h stdint.h unistd.h
  7137. do :
  7138. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7139. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7140. "
  7141. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7142. cat >>confdefs.h <<_ACEOF
  7143. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7144. _ACEOF
  7145. fi
  7146. done
  7147. for ac_header in dlfcn.h
  7148. do :
  7149. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7150. "
  7151. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7152. cat >>confdefs.h <<_ACEOF
  7153. #define HAVE_DLFCN_H 1
  7154. _ACEOF
  7155. fi
  7156. done
  7157. # Set options
  7158. enable_win32_dll=yes
  7159. case $host in
  7160. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7161. if test -n "$ac_tool_prefix"; then
  7162. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7163. set dummy ${ac_tool_prefix}as; ac_word=$2
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7165. $as_echo_n "checking for $ac_word... " >&6; }
  7166. if ${ac_cv_prog_AS+:} false; then :
  7167. $as_echo_n "(cached) " >&6
  7168. else
  7169. if test -n "$AS"; then
  7170. ac_cv_prog_AS="$AS" # Let the user override the test.
  7171. else
  7172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7173. for as_dir in $PATH
  7174. do
  7175. IFS=$as_save_IFS
  7176. test -z "$as_dir" && as_dir=.
  7177. for ac_exec_ext in '' $ac_executable_extensions; do
  7178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7179. ac_cv_prog_AS="${ac_tool_prefix}as"
  7180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7181. break 2
  7182. fi
  7183. done
  7184. done
  7185. IFS=$as_save_IFS
  7186. fi
  7187. fi
  7188. AS=$ac_cv_prog_AS
  7189. if test -n "$AS"; then
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7191. $as_echo "$AS" >&6; }
  7192. else
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7194. $as_echo "no" >&6; }
  7195. fi
  7196. fi
  7197. if test -z "$ac_cv_prog_AS"; then
  7198. ac_ct_AS=$AS
  7199. # Extract the first word of "as", so it can be a program name with args.
  7200. set dummy as; ac_word=$2
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7202. $as_echo_n "checking for $ac_word... " >&6; }
  7203. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7204. $as_echo_n "(cached) " >&6
  7205. else
  7206. if test -n "$ac_ct_AS"; then
  7207. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7208. else
  7209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7210. for as_dir in $PATH
  7211. do
  7212. IFS=$as_save_IFS
  7213. test -z "$as_dir" && as_dir=.
  7214. for ac_exec_ext in '' $ac_executable_extensions; do
  7215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7216. ac_cv_prog_ac_ct_AS="as"
  7217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7218. break 2
  7219. fi
  7220. done
  7221. done
  7222. IFS=$as_save_IFS
  7223. fi
  7224. fi
  7225. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7226. if test -n "$ac_ct_AS"; then
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7228. $as_echo "$ac_ct_AS" >&6; }
  7229. else
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7231. $as_echo "no" >&6; }
  7232. fi
  7233. if test "x$ac_ct_AS" = x; then
  7234. AS="false"
  7235. else
  7236. case $cross_compiling:$ac_tool_warned in
  7237. yes:)
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7239. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7240. ac_tool_warned=yes ;;
  7241. esac
  7242. AS=$ac_ct_AS
  7243. fi
  7244. else
  7245. AS="$ac_cv_prog_AS"
  7246. fi
  7247. if test -n "$ac_tool_prefix"; then
  7248. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7249. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7251. $as_echo_n "checking for $ac_word... " >&6; }
  7252. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. if test -n "$DLLTOOL"; then
  7256. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7257. else
  7258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7259. for as_dir in $PATH
  7260. do
  7261. IFS=$as_save_IFS
  7262. test -z "$as_dir" && as_dir=.
  7263. for ac_exec_ext in '' $ac_executable_extensions; do
  7264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7265. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7267. break 2
  7268. fi
  7269. done
  7270. done
  7271. IFS=$as_save_IFS
  7272. fi
  7273. fi
  7274. DLLTOOL=$ac_cv_prog_DLLTOOL
  7275. if test -n "$DLLTOOL"; then
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7277. $as_echo "$DLLTOOL" >&6; }
  7278. else
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7280. $as_echo "no" >&6; }
  7281. fi
  7282. fi
  7283. if test -z "$ac_cv_prog_DLLTOOL"; then
  7284. ac_ct_DLLTOOL=$DLLTOOL
  7285. # Extract the first word of "dlltool", so it can be a program name with args.
  7286. set dummy dlltool; ac_word=$2
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7288. $as_echo_n "checking for $ac_word... " >&6; }
  7289. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7290. $as_echo_n "(cached) " >&6
  7291. else
  7292. if test -n "$ac_ct_DLLTOOL"; then
  7293. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7294. else
  7295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7296. for as_dir in $PATH
  7297. do
  7298. IFS=$as_save_IFS
  7299. test -z "$as_dir" && as_dir=.
  7300. for ac_exec_ext in '' $ac_executable_extensions; do
  7301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7302. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7304. break 2
  7305. fi
  7306. done
  7307. done
  7308. IFS=$as_save_IFS
  7309. fi
  7310. fi
  7311. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7312. if test -n "$ac_ct_DLLTOOL"; then
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7314. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7315. else
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7317. $as_echo "no" >&6; }
  7318. fi
  7319. if test "x$ac_ct_DLLTOOL" = x; then
  7320. DLLTOOL="false"
  7321. else
  7322. case $cross_compiling:$ac_tool_warned in
  7323. yes:)
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7326. ac_tool_warned=yes ;;
  7327. esac
  7328. DLLTOOL=$ac_ct_DLLTOOL
  7329. fi
  7330. else
  7331. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7332. fi
  7333. if test -n "$ac_tool_prefix"; then
  7334. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7335. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7337. $as_echo_n "checking for $ac_word... " >&6; }
  7338. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. if test -n "$OBJDUMP"; then
  7342. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7343. else
  7344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7345. for as_dir in $PATH
  7346. do
  7347. IFS=$as_save_IFS
  7348. test -z "$as_dir" && as_dir=.
  7349. for ac_exec_ext in '' $ac_executable_extensions; do
  7350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7351. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7353. break 2
  7354. fi
  7355. done
  7356. done
  7357. IFS=$as_save_IFS
  7358. fi
  7359. fi
  7360. OBJDUMP=$ac_cv_prog_OBJDUMP
  7361. if test -n "$OBJDUMP"; then
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7363. $as_echo "$OBJDUMP" >&6; }
  7364. else
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7366. $as_echo "no" >&6; }
  7367. fi
  7368. fi
  7369. if test -z "$ac_cv_prog_OBJDUMP"; then
  7370. ac_ct_OBJDUMP=$OBJDUMP
  7371. # Extract the first word of "objdump", so it can be a program name with args.
  7372. set dummy objdump; ac_word=$2
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7374. $as_echo_n "checking for $ac_word... " >&6; }
  7375. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7376. $as_echo_n "(cached) " >&6
  7377. else
  7378. if test -n "$ac_ct_OBJDUMP"; then
  7379. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7380. else
  7381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7382. for as_dir in $PATH
  7383. do
  7384. IFS=$as_save_IFS
  7385. test -z "$as_dir" && as_dir=.
  7386. for ac_exec_ext in '' $ac_executable_extensions; do
  7387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7388. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7390. break 2
  7391. fi
  7392. done
  7393. done
  7394. IFS=$as_save_IFS
  7395. fi
  7396. fi
  7397. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7398. if test -n "$ac_ct_OBJDUMP"; then
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7400. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7401. else
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7403. $as_echo "no" >&6; }
  7404. fi
  7405. if test "x$ac_ct_OBJDUMP" = x; then
  7406. OBJDUMP="false"
  7407. else
  7408. case $cross_compiling:$ac_tool_warned in
  7409. yes:)
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7412. ac_tool_warned=yes ;;
  7413. esac
  7414. OBJDUMP=$ac_ct_OBJDUMP
  7415. fi
  7416. else
  7417. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7418. fi
  7419. ;;
  7420. esac
  7421. test -z "$AS" && AS=as
  7422. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7423. test -z "$OBJDUMP" && OBJDUMP=objdump
  7424. enable_dlopen=no
  7425. # Check whether --enable-shared was given.
  7426. if test "${enable_shared+set}" = set; then :
  7427. enableval=$enable_shared; p=${PACKAGE-default}
  7428. case $enableval in
  7429. yes) enable_shared=yes ;;
  7430. no) enable_shared=no ;;
  7431. *)
  7432. enable_shared=no
  7433. # Look at the argument we got. We use all the common list separators.
  7434. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7435. for pkg in $enableval; do
  7436. IFS=$lt_save_ifs
  7437. if test "X$pkg" = "X$p"; then
  7438. enable_shared=yes
  7439. fi
  7440. done
  7441. IFS=$lt_save_ifs
  7442. ;;
  7443. esac
  7444. else
  7445. enable_shared=yes
  7446. fi
  7447. # Check whether --enable-static was given.
  7448. if test "${enable_static+set}" = set; then :
  7449. enableval=$enable_static; p=${PACKAGE-default}
  7450. case $enableval in
  7451. yes) enable_static=yes ;;
  7452. no) enable_static=no ;;
  7453. *)
  7454. enable_static=no
  7455. # Look at the argument we got. We use all the common list separators.
  7456. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7457. for pkg in $enableval; do
  7458. IFS=$lt_save_ifs
  7459. if test "X$pkg" = "X$p"; then
  7460. enable_static=yes
  7461. fi
  7462. done
  7463. IFS=$lt_save_ifs
  7464. ;;
  7465. esac
  7466. else
  7467. enable_static=yes
  7468. fi
  7469. # Check whether --with-pic was given.
  7470. if test "${with_pic+set}" = set; then :
  7471. withval=$with_pic; lt_p=${PACKAGE-default}
  7472. case $withval in
  7473. yes|no) pic_mode=$withval ;;
  7474. *)
  7475. pic_mode=default
  7476. # Look at the argument we got. We use all the common list separators.
  7477. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7478. for lt_pkg in $withval; do
  7479. IFS=$lt_save_ifs
  7480. if test "X$lt_pkg" = "X$lt_p"; then
  7481. pic_mode=yes
  7482. fi
  7483. done
  7484. IFS=$lt_save_ifs
  7485. ;;
  7486. esac
  7487. else
  7488. pic_mode=default
  7489. fi
  7490. # Check whether --enable-fast-install was given.
  7491. if test "${enable_fast_install+set}" = set; then :
  7492. enableval=$enable_fast_install; p=${PACKAGE-default}
  7493. case $enableval in
  7494. yes) enable_fast_install=yes ;;
  7495. no) enable_fast_install=no ;;
  7496. *)
  7497. enable_fast_install=no
  7498. # Look at the argument we got. We use all the common list separators.
  7499. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7500. for pkg in $enableval; do
  7501. IFS=$lt_save_ifs
  7502. if test "X$pkg" = "X$p"; then
  7503. enable_fast_install=yes
  7504. fi
  7505. done
  7506. IFS=$lt_save_ifs
  7507. ;;
  7508. esac
  7509. else
  7510. enable_fast_install=yes
  7511. fi
  7512. shared_archive_member_spec=
  7513. case $host,$enable_shared in
  7514. power*-*-aix[5-9]*,yes)
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7516. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7517. # Check whether --with-aix-soname was given.
  7518. if test "${with_aix_soname+set}" = set; then :
  7519. withval=$with_aix_soname; case $withval in
  7520. aix|svr4|both)
  7521. ;;
  7522. *)
  7523. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7524. ;;
  7525. esac
  7526. lt_cv_with_aix_soname=$with_aix_soname
  7527. else
  7528. if ${lt_cv_with_aix_soname+:} false; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. lt_cv_with_aix_soname=aix
  7532. fi
  7533. with_aix_soname=$lt_cv_with_aix_soname
  7534. fi
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7536. $as_echo "$with_aix_soname" >&6; }
  7537. if test aix != "$with_aix_soname"; then
  7538. # For the AIX way of multilib, we name the shared archive member
  7539. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7540. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7541. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7542. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7543. if test 64 = "${OBJECT_MODE-32}"; then
  7544. shared_archive_member_spec=shr_64
  7545. else
  7546. shared_archive_member_spec=shr
  7547. fi
  7548. fi
  7549. ;;
  7550. *)
  7551. with_aix_soname=aix
  7552. ;;
  7553. esac
  7554. # This can be used to rebuild libtool when needed
  7555. LIBTOOL_DEPS=$ltmain
  7556. # Always use our own libtool.
  7557. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7558. test -z "$LN_S" && LN_S="ln -s"
  7559. if test -n "${ZSH_VERSION+set}"; then
  7560. setopt NO_GLOB_SUBST
  7561. fi
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7563. $as_echo_n "checking for objdir... " >&6; }
  7564. if ${lt_cv_objdir+:} false; then :
  7565. $as_echo_n "(cached) " >&6
  7566. else
  7567. rm -f .libs 2>/dev/null
  7568. mkdir .libs 2>/dev/null
  7569. if test -d .libs; then
  7570. lt_cv_objdir=.libs
  7571. else
  7572. # MS-DOS does not allow filenames that begin with a dot.
  7573. lt_cv_objdir=_libs
  7574. fi
  7575. rmdir .libs 2>/dev/null
  7576. fi
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7578. $as_echo "$lt_cv_objdir" >&6; }
  7579. objdir=$lt_cv_objdir
  7580. cat >>confdefs.h <<_ACEOF
  7581. #define LT_OBJDIR "$lt_cv_objdir/"
  7582. _ACEOF
  7583. case $host_os in
  7584. aix3*)
  7585. # AIX sometimes has problems with the GCC collect2 program. For some
  7586. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7587. # vanish in a puff of smoke.
  7588. if test set != "${COLLECT_NAMES+set}"; then
  7589. COLLECT_NAMES=
  7590. export COLLECT_NAMES
  7591. fi
  7592. ;;
  7593. esac
  7594. # Global variables:
  7595. ofile=libtool
  7596. can_build_shared=yes
  7597. # All known linkers require a '.a' archive for static linking (except MSVC,
  7598. # which needs '.lib').
  7599. libext=a
  7600. with_gnu_ld=$lt_cv_prog_gnu_ld
  7601. old_CC=$CC
  7602. old_CFLAGS=$CFLAGS
  7603. # Set sane defaults for various variables
  7604. test -z "$CC" && CC=cc
  7605. test -z "$LTCC" && LTCC=$CC
  7606. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7607. test -z "$LD" && LD=ld
  7608. test -z "$ac_objext" && ac_objext=o
  7609. func_cc_basename $compiler
  7610. cc_basename=$func_cc_basename_result
  7611. # Only perform the check for file, if the check method requires it
  7612. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7613. case $deplibs_check_method in
  7614. file_magic*)
  7615. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7617. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7618. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. case $MAGIC_CMD in
  7622. [\\/*] | ?:[\\/]*)
  7623. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7624. ;;
  7625. *)
  7626. lt_save_MAGIC_CMD=$MAGIC_CMD
  7627. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7628. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7629. for ac_dir in $ac_dummy; do
  7630. IFS=$lt_save_ifs
  7631. test -z "$ac_dir" && ac_dir=.
  7632. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7633. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7634. if test -n "$file_magic_test_file"; then
  7635. case $deplibs_check_method in
  7636. "file_magic "*)
  7637. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7638. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7639. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7640. $EGREP "$file_magic_regex" > /dev/null; then
  7641. :
  7642. else
  7643. cat <<_LT_EOF 1>&2
  7644. *** Warning: the command libtool uses to detect shared libraries,
  7645. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7646. *** The result is that libtool may fail to recognize shared libraries
  7647. *** as such. This will affect the creation of libtool libraries that
  7648. *** depend on shared libraries, but programs linked with such libtool
  7649. *** libraries will work regardless of this problem. Nevertheless, you
  7650. *** may want to report the problem to your system manager and/or to
  7651. *** [email protected]
  7652. _LT_EOF
  7653. fi ;;
  7654. esac
  7655. fi
  7656. break
  7657. fi
  7658. done
  7659. IFS=$lt_save_ifs
  7660. MAGIC_CMD=$lt_save_MAGIC_CMD
  7661. ;;
  7662. esac
  7663. fi
  7664. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7665. if test -n "$MAGIC_CMD"; then
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7667. $as_echo "$MAGIC_CMD" >&6; }
  7668. else
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7670. $as_echo "no" >&6; }
  7671. fi
  7672. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7673. if test -n "$ac_tool_prefix"; then
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7675. $as_echo_n "checking for file... " >&6; }
  7676. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7677. $as_echo_n "(cached) " >&6
  7678. else
  7679. case $MAGIC_CMD in
  7680. [\\/*] | ?:[\\/]*)
  7681. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7682. ;;
  7683. *)
  7684. lt_save_MAGIC_CMD=$MAGIC_CMD
  7685. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7686. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7687. for ac_dir in $ac_dummy; do
  7688. IFS=$lt_save_ifs
  7689. test -z "$ac_dir" && ac_dir=.
  7690. if test -f "$ac_dir/file"; then
  7691. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7692. if test -n "$file_magic_test_file"; then
  7693. case $deplibs_check_method in
  7694. "file_magic "*)
  7695. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7696. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7697. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7698. $EGREP "$file_magic_regex" > /dev/null; then
  7699. :
  7700. else
  7701. cat <<_LT_EOF 1>&2
  7702. *** Warning: the command libtool uses to detect shared libraries,
  7703. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7704. *** The result is that libtool may fail to recognize shared libraries
  7705. *** as such. This will affect the creation of libtool libraries that
  7706. *** depend on shared libraries, but programs linked with such libtool
  7707. *** libraries will work regardless of this problem. Nevertheless, you
  7708. *** may want to report the problem to your system manager and/or to
  7709. *** [email protected]
  7710. _LT_EOF
  7711. fi ;;
  7712. esac
  7713. fi
  7714. break
  7715. fi
  7716. done
  7717. IFS=$lt_save_ifs
  7718. MAGIC_CMD=$lt_save_MAGIC_CMD
  7719. ;;
  7720. esac
  7721. fi
  7722. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7723. if test -n "$MAGIC_CMD"; then
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7725. $as_echo "$MAGIC_CMD" >&6; }
  7726. else
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7728. $as_echo "no" >&6; }
  7729. fi
  7730. else
  7731. MAGIC_CMD=:
  7732. fi
  7733. fi
  7734. fi
  7735. ;;
  7736. esac
  7737. # Use C for the default configuration in the libtool script
  7738. lt_save_CC=$CC
  7739. ac_ext=c
  7740. ac_cpp='$CPP $CPPFLAGS'
  7741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7744. # Source file extension for C test sources.
  7745. ac_ext=c
  7746. # Object file extension for compiled C test sources.
  7747. objext=o
  7748. objext=$objext
  7749. # Code to be used in simple compile tests
  7750. lt_simple_compile_test_code="int some_variable = 0;"
  7751. # Code to be used in simple link tests
  7752. lt_simple_link_test_code='int main(){return(0);}'
  7753. # If no C compiler was specified, use CC.
  7754. LTCC=${LTCC-"$CC"}
  7755. # If no C compiler flags were specified, use CFLAGS.
  7756. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7757. # Allow CC to be a program name with arguments.
  7758. compiler=$CC
  7759. # Save the default compiler, since it gets overwritten when the other
  7760. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7761. compiler_DEFAULT=$CC
  7762. # save warnings/boilerplate of simple test code
  7763. ac_outfile=conftest.$ac_objext
  7764. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7765. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7766. _lt_compiler_boilerplate=`cat conftest.err`
  7767. $RM conftest*
  7768. ac_outfile=conftest.$ac_objext
  7769. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7770. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7771. _lt_linker_boilerplate=`cat conftest.err`
  7772. $RM -r conftest*
  7773. ## CAVEAT EMPTOR:
  7774. ## There is no encapsulation within the following macros, do not change
  7775. ## the running order or otherwise move them around unless you know exactly
  7776. ## what you are doing...
  7777. if test -n "$compiler"; then
  7778. lt_prog_compiler_no_builtin_flag=
  7779. if test yes = "$GCC"; then
  7780. case $cc_basename in
  7781. nvcc*)
  7782. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7783. *)
  7784. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7785. esac
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7787. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7788. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. lt_cv_prog_compiler_rtti_exceptions=no
  7792. ac_outfile=conftest.$ac_objext
  7793. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7794. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7795. # Insert the option either (1) after the last *FLAGS variable, or
  7796. # (2) before a word containing "conftest.", or (3) at the end.
  7797. # Note that $ac_compile itself does not contain backslashes and begins
  7798. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7799. # The option is referenced via a variable to avoid confusing sed.
  7800. lt_compile=`echo "$ac_compile" | $SED \
  7801. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7802. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7803. -e 's:$: $lt_compiler_flag:'`
  7804. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7805. (eval "$lt_compile" 2>conftest.err)
  7806. ac_status=$?
  7807. cat conftest.err >&5
  7808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7809. if (exit $ac_status) && test -s "$ac_outfile"; then
  7810. # The compiler can only warn and ignore the option if not recognized
  7811. # So say no if there are warnings other than the usual output.
  7812. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7813. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7814. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7815. lt_cv_prog_compiler_rtti_exceptions=yes
  7816. fi
  7817. fi
  7818. $RM conftest*
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7821. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7822. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7823. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7824. else
  7825. :
  7826. fi
  7827. fi
  7828. lt_prog_compiler_wl=
  7829. lt_prog_compiler_pic=
  7830. lt_prog_compiler_static=
  7831. if test yes = "$GCC"; then
  7832. lt_prog_compiler_wl='-Wl,'
  7833. lt_prog_compiler_static='-static'
  7834. case $host_os in
  7835. aix*)
  7836. # All AIX code is PIC.
  7837. if test ia64 = "$host_cpu"; then
  7838. # AIX 5 now supports IA64 processor
  7839. lt_prog_compiler_static='-Bstatic'
  7840. fi
  7841. lt_prog_compiler_pic='-fPIC'
  7842. ;;
  7843. amigaos*)
  7844. case $host_cpu in
  7845. powerpc)
  7846. # see comment about AmigaOS4 .so support
  7847. lt_prog_compiler_pic='-fPIC'
  7848. ;;
  7849. m68k)
  7850. # FIXME: we need at least 68020 code to build shared libraries, but
  7851. # adding the '-m68020' flag to GCC prevents building anything better,
  7852. # like '-m68040'.
  7853. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7854. ;;
  7855. esac
  7856. ;;
  7857. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7858. # PIC is the default for these OSes.
  7859. ;;
  7860. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7861. # This hack is so that the source file can tell whether it is being
  7862. # built for inclusion in a dll (and should export symbols for example).
  7863. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7864. # (--disable-auto-import) libraries
  7865. lt_prog_compiler_pic='-DDLL_EXPORT'
  7866. case $host_os in
  7867. os2*)
  7868. lt_prog_compiler_static='$wl-static'
  7869. ;;
  7870. esac
  7871. ;;
  7872. darwin* | rhapsody*)
  7873. # PIC is the default on this platform
  7874. # Common symbols not allowed in MH_DYLIB files
  7875. lt_prog_compiler_pic='-fno-common'
  7876. ;;
  7877. haiku*)
  7878. # PIC is the default for Haiku.
  7879. # The "-static" flag exists, but is broken.
  7880. lt_prog_compiler_static=
  7881. ;;
  7882. hpux*)
  7883. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7884. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7885. # sets the default TLS model and affects inlining.
  7886. case $host_cpu in
  7887. hppa*64*)
  7888. # +Z the default
  7889. ;;
  7890. *)
  7891. lt_prog_compiler_pic='-fPIC'
  7892. ;;
  7893. esac
  7894. ;;
  7895. interix[3-9]*)
  7896. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7897. # Instead, we relocate shared libraries at runtime.
  7898. ;;
  7899. msdosdjgpp*)
  7900. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7901. # on systems that don't support them.
  7902. lt_prog_compiler_can_build_shared=no
  7903. enable_shared=no
  7904. ;;
  7905. *nto* | *qnx*)
  7906. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7907. # it will coredump.
  7908. lt_prog_compiler_pic='-fPIC -shared'
  7909. ;;
  7910. sysv4*MP*)
  7911. if test -d /usr/nec; then
  7912. lt_prog_compiler_pic=-Kconform_pic
  7913. fi
  7914. ;;
  7915. *)
  7916. lt_prog_compiler_pic='-fPIC'
  7917. ;;
  7918. esac
  7919. case $cc_basename in
  7920. nvcc*) # Cuda Compiler Driver 2.2
  7921. lt_prog_compiler_wl='-Xlinker '
  7922. if test -n "$lt_prog_compiler_pic"; then
  7923. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7924. fi
  7925. ;;
  7926. esac
  7927. else
  7928. # PORTME Check for flag to pass linker flags through the system compiler.
  7929. case $host_os in
  7930. aix*)
  7931. lt_prog_compiler_wl='-Wl,'
  7932. if test ia64 = "$host_cpu"; then
  7933. # AIX 5 now supports IA64 processor
  7934. lt_prog_compiler_static='-Bstatic'
  7935. else
  7936. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7937. fi
  7938. ;;
  7939. darwin* | rhapsody*)
  7940. # PIC is the default on this platform
  7941. # Common symbols not allowed in MH_DYLIB files
  7942. lt_prog_compiler_pic='-fno-common'
  7943. case $cc_basename in
  7944. nagfor*)
  7945. # NAG Fortran compiler
  7946. lt_prog_compiler_wl='-Wl,-Wl,,'
  7947. lt_prog_compiler_pic='-PIC'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. ;;
  7950. esac
  7951. ;;
  7952. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7953. # This hack is so that the source file can tell whether it is being
  7954. # built for inclusion in a dll (and should export symbols for example).
  7955. lt_prog_compiler_pic='-DDLL_EXPORT'
  7956. case $host_os in
  7957. os2*)
  7958. lt_prog_compiler_static='$wl-static'
  7959. ;;
  7960. esac
  7961. ;;
  7962. hpux9* | hpux10* | hpux11*)
  7963. lt_prog_compiler_wl='-Wl,'
  7964. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7965. # not for PA HP-UX.
  7966. case $host_cpu in
  7967. hppa*64*|ia64*)
  7968. # +Z the default
  7969. ;;
  7970. *)
  7971. lt_prog_compiler_pic='+Z'
  7972. ;;
  7973. esac
  7974. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7975. lt_prog_compiler_static='$wl-a ${wl}archive'
  7976. ;;
  7977. irix5* | irix6* | nonstopux*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. # PIC (with -KPIC) is the default.
  7980. lt_prog_compiler_static='-non_shared'
  7981. ;;
  7982. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7983. case $cc_basename in
  7984. # old Intel for x86_64, which still supported -KPIC.
  7985. ecc*)
  7986. lt_prog_compiler_wl='-Wl,'
  7987. lt_prog_compiler_pic='-KPIC'
  7988. lt_prog_compiler_static='-static'
  7989. ;;
  7990. # icc used to be incompatible with GCC.
  7991. # ICC 10 doesn't accept -KPIC any more.
  7992. icc* | ifort*)
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_pic='-fPIC'
  7995. lt_prog_compiler_static='-static'
  7996. ;;
  7997. # Lahey Fortran 8.1.
  7998. lf95*)
  7999. lt_prog_compiler_wl='-Wl,'
  8000. lt_prog_compiler_pic='--shared'
  8001. lt_prog_compiler_static='--static'
  8002. ;;
  8003. nagfor*)
  8004. # NAG Fortran compiler
  8005. lt_prog_compiler_wl='-Wl,-Wl,,'
  8006. lt_prog_compiler_pic='-PIC'
  8007. lt_prog_compiler_static='-Bstatic'
  8008. ;;
  8009. tcc*)
  8010. # Fabrice Bellard et al's Tiny C Compiler
  8011. lt_prog_compiler_wl='-Wl,'
  8012. lt_prog_compiler_pic='-fPIC'
  8013. lt_prog_compiler_static='-static'
  8014. ;;
  8015. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8016. # Portland Group compilers (*not* the Pentium gcc compiler,
  8017. # which looks to be a dead project)
  8018. lt_prog_compiler_wl='-Wl,'
  8019. lt_prog_compiler_pic='-fpic'
  8020. lt_prog_compiler_static='-Bstatic'
  8021. ;;
  8022. ccc*)
  8023. lt_prog_compiler_wl='-Wl,'
  8024. # All Alpha code is PIC.
  8025. lt_prog_compiler_static='-non_shared'
  8026. ;;
  8027. xl* | bgxl* | bgf* | mpixl*)
  8028. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8029. lt_prog_compiler_wl='-Wl,'
  8030. lt_prog_compiler_pic='-qpic'
  8031. lt_prog_compiler_static='-qstaticlink'
  8032. ;;
  8033. *)
  8034. case `$CC -V 2>&1 | sed 5q` in
  8035. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8036. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8037. lt_prog_compiler_pic='-KPIC'
  8038. lt_prog_compiler_static='-Bstatic'
  8039. lt_prog_compiler_wl=''
  8040. ;;
  8041. *Sun\ F* | *Sun*Fortran*)
  8042. lt_prog_compiler_pic='-KPIC'
  8043. lt_prog_compiler_static='-Bstatic'
  8044. lt_prog_compiler_wl='-Qoption ld '
  8045. ;;
  8046. *Sun\ C*)
  8047. # Sun C 5.9
  8048. lt_prog_compiler_pic='-KPIC'
  8049. lt_prog_compiler_static='-Bstatic'
  8050. lt_prog_compiler_wl='-Wl,'
  8051. ;;
  8052. *Intel*\ [CF]*Compiler*)
  8053. lt_prog_compiler_wl='-Wl,'
  8054. lt_prog_compiler_pic='-fPIC'
  8055. lt_prog_compiler_static='-static'
  8056. ;;
  8057. *Portland\ Group*)
  8058. lt_prog_compiler_wl='-Wl,'
  8059. lt_prog_compiler_pic='-fpic'
  8060. lt_prog_compiler_static='-Bstatic'
  8061. ;;
  8062. esac
  8063. ;;
  8064. esac
  8065. ;;
  8066. newsos6)
  8067. lt_prog_compiler_pic='-KPIC'
  8068. lt_prog_compiler_static='-Bstatic'
  8069. ;;
  8070. *nto* | *qnx*)
  8071. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8072. # it will coredump.
  8073. lt_prog_compiler_pic='-fPIC -shared'
  8074. ;;
  8075. osf3* | osf4* | osf5*)
  8076. lt_prog_compiler_wl='-Wl,'
  8077. # All OSF/1 code is PIC.
  8078. lt_prog_compiler_static='-non_shared'
  8079. ;;
  8080. rdos*)
  8081. lt_prog_compiler_static='-non_shared'
  8082. ;;
  8083. solaris*)
  8084. lt_prog_compiler_pic='-KPIC'
  8085. lt_prog_compiler_static='-Bstatic'
  8086. case $cc_basename in
  8087. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8088. lt_prog_compiler_wl='-Qoption ld ';;
  8089. *)
  8090. lt_prog_compiler_wl='-Wl,';;
  8091. esac
  8092. ;;
  8093. sunos4*)
  8094. lt_prog_compiler_wl='-Qoption ld '
  8095. lt_prog_compiler_pic='-PIC'
  8096. lt_prog_compiler_static='-Bstatic'
  8097. ;;
  8098. sysv4 | sysv4.2uw2* | sysv4.3*)
  8099. lt_prog_compiler_wl='-Wl,'
  8100. lt_prog_compiler_pic='-KPIC'
  8101. lt_prog_compiler_static='-Bstatic'
  8102. ;;
  8103. sysv4*MP*)
  8104. if test -d /usr/nec; then
  8105. lt_prog_compiler_pic='-Kconform_pic'
  8106. lt_prog_compiler_static='-Bstatic'
  8107. fi
  8108. ;;
  8109. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='-KPIC'
  8112. lt_prog_compiler_static='-Bstatic'
  8113. ;;
  8114. unicos*)
  8115. lt_prog_compiler_wl='-Wl,'
  8116. lt_prog_compiler_can_build_shared=no
  8117. ;;
  8118. uts4*)
  8119. lt_prog_compiler_pic='-pic'
  8120. lt_prog_compiler_static='-Bstatic'
  8121. ;;
  8122. *)
  8123. lt_prog_compiler_can_build_shared=no
  8124. ;;
  8125. esac
  8126. fi
  8127. case $host_os in
  8128. # For platforms that do not support PIC, -DPIC is meaningless:
  8129. *djgpp*)
  8130. lt_prog_compiler_pic=
  8131. ;;
  8132. *)
  8133. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8134. ;;
  8135. esac
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8137. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8138. if ${lt_cv_prog_compiler_pic+:} false; then :
  8139. $as_echo_n "(cached) " >&6
  8140. else
  8141. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8144. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8145. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8146. #
  8147. # Check to make sure the PIC flag actually works.
  8148. #
  8149. if test -n "$lt_prog_compiler_pic"; then
  8150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8151. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8152. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8153. $as_echo_n "(cached) " >&6
  8154. else
  8155. lt_cv_prog_compiler_pic_works=no
  8156. ac_outfile=conftest.$ac_objext
  8157. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8158. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8159. # Insert the option either (1) after the last *FLAGS variable, or
  8160. # (2) before a word containing "conftest.", or (3) at the end.
  8161. # Note that $ac_compile itself does not contain backslashes and begins
  8162. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8163. # The option is referenced via a variable to avoid confusing sed.
  8164. lt_compile=`echo "$ac_compile" | $SED \
  8165. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8166. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8167. -e 's:$: $lt_compiler_flag:'`
  8168. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8169. (eval "$lt_compile" 2>conftest.err)
  8170. ac_status=$?
  8171. cat conftest.err >&5
  8172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8173. if (exit $ac_status) && test -s "$ac_outfile"; then
  8174. # The compiler can only warn and ignore the option if not recognized
  8175. # So say no if there are warnings other than the usual output.
  8176. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8178. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8179. lt_cv_prog_compiler_pic_works=yes
  8180. fi
  8181. fi
  8182. $RM conftest*
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8185. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8186. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8187. case $lt_prog_compiler_pic in
  8188. "" | " "*) ;;
  8189. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8190. esac
  8191. else
  8192. lt_prog_compiler_pic=
  8193. lt_prog_compiler_can_build_shared=no
  8194. fi
  8195. fi
  8196. #
  8197. # Check to make sure the static flag actually works.
  8198. #
  8199. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8201. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8202. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8203. $as_echo_n "(cached) " >&6
  8204. else
  8205. lt_cv_prog_compiler_static_works=no
  8206. save_LDFLAGS=$LDFLAGS
  8207. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8208. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8209. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8210. # The linker can only warn and ignore the option if not recognized
  8211. # So say no if there are warnings
  8212. if test -s conftest.err; then
  8213. # Append any errors to the config.log.
  8214. cat conftest.err 1>&5
  8215. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8216. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8217. if diff conftest.exp conftest.er2 >/dev/null; then
  8218. lt_cv_prog_compiler_static_works=yes
  8219. fi
  8220. else
  8221. lt_cv_prog_compiler_static_works=yes
  8222. fi
  8223. fi
  8224. $RM -r conftest*
  8225. LDFLAGS=$save_LDFLAGS
  8226. fi
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8228. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8229. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8230. :
  8231. else
  8232. lt_prog_compiler_static=
  8233. fi
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8235. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8236. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8237. $as_echo_n "(cached) " >&6
  8238. else
  8239. lt_cv_prog_compiler_c_o=no
  8240. $RM -r conftest 2>/dev/null
  8241. mkdir conftest
  8242. cd conftest
  8243. mkdir out
  8244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8245. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8246. # Insert the option either (1) after the last *FLAGS variable, or
  8247. # (2) before a word containing "conftest.", or (3) at the end.
  8248. # Note that $ac_compile itself does not contain backslashes and begins
  8249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8250. lt_compile=`echo "$ac_compile" | $SED \
  8251. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8252. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8253. -e 's:$: $lt_compiler_flag:'`
  8254. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8255. (eval "$lt_compile" 2>out/conftest.err)
  8256. ac_status=$?
  8257. cat out/conftest.err >&5
  8258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8259. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8260. then
  8261. # The compiler can only warn and ignore the option if not recognized
  8262. # So say no if there are warnings
  8263. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8264. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8265. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8266. lt_cv_prog_compiler_c_o=yes
  8267. fi
  8268. fi
  8269. chmod u+w . 2>&5
  8270. $RM conftest*
  8271. # SGI C++ compiler will create directory out/ii_files/ for
  8272. # template instantiation
  8273. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8274. $RM out/* && rmdir out
  8275. cd ..
  8276. $RM -r conftest
  8277. $RM conftest*
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8280. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8282. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8283. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8284. $as_echo_n "(cached) " >&6
  8285. else
  8286. lt_cv_prog_compiler_c_o=no
  8287. $RM -r conftest 2>/dev/null
  8288. mkdir conftest
  8289. cd conftest
  8290. mkdir out
  8291. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8292. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8293. # Insert the option either (1) after the last *FLAGS variable, or
  8294. # (2) before a word containing "conftest.", or (3) at the end.
  8295. # Note that $ac_compile itself does not contain backslashes and begins
  8296. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8297. lt_compile=`echo "$ac_compile" | $SED \
  8298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8300. -e 's:$: $lt_compiler_flag:'`
  8301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8302. (eval "$lt_compile" 2>out/conftest.err)
  8303. ac_status=$?
  8304. cat out/conftest.err >&5
  8305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8306. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8307. then
  8308. # The compiler can only warn and ignore the option if not recognized
  8309. # So say no if there are warnings
  8310. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8311. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8312. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8313. lt_cv_prog_compiler_c_o=yes
  8314. fi
  8315. fi
  8316. chmod u+w . 2>&5
  8317. $RM conftest*
  8318. # SGI C++ compiler will create directory out/ii_files/ for
  8319. # template instantiation
  8320. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8321. $RM out/* && rmdir out
  8322. cd ..
  8323. $RM -r conftest
  8324. $RM conftest*
  8325. fi
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8327. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8328. hard_links=nottested
  8329. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8330. # do not overwrite the value of need_locks provided by the user
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8332. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8333. hard_links=yes
  8334. $RM conftest*
  8335. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8336. touch conftest.a
  8337. ln conftest.a conftest.b 2>&5 || hard_links=no
  8338. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8340. $as_echo "$hard_links" >&6; }
  8341. if test no = "$hard_links"; then
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8343. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8344. need_locks=warn
  8345. fi
  8346. else
  8347. need_locks=no
  8348. fi
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8350. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8351. runpath_var=
  8352. allow_undefined_flag=
  8353. always_export_symbols=no
  8354. archive_cmds=
  8355. archive_expsym_cmds=
  8356. compiler_needs_object=no
  8357. enable_shared_with_static_runtimes=no
  8358. export_dynamic_flag_spec=
  8359. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8360. hardcode_automatic=no
  8361. hardcode_direct=no
  8362. hardcode_direct_absolute=no
  8363. hardcode_libdir_flag_spec=
  8364. hardcode_libdir_separator=
  8365. hardcode_minus_L=no
  8366. hardcode_shlibpath_var=unsupported
  8367. inherit_rpath=no
  8368. link_all_deplibs=unknown
  8369. module_cmds=
  8370. module_expsym_cmds=
  8371. old_archive_from_new_cmds=
  8372. old_archive_from_expsyms_cmds=
  8373. thread_safe_flag_spec=
  8374. whole_archive_flag_spec=
  8375. # include_expsyms should be a list of space-separated symbols to be *always*
  8376. # included in the symbol list
  8377. include_expsyms=
  8378. # exclude_expsyms can be an extended regexp of symbols to exclude
  8379. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8380. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8381. # as well as any symbol that contains 'd'.
  8382. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8383. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8384. # platforms (ab)use it in PIC code, but their linkers get confused if
  8385. # the symbol is explicitly referenced. Since portable code cannot
  8386. # rely on this symbol name, it's probably fine to never include it in
  8387. # preloaded symbol tables.
  8388. # Exclude shared library initialization/finalization symbols.
  8389. extract_expsyms_cmds=
  8390. case $host_os in
  8391. cygwin* | mingw* | pw32* | cegcc*)
  8392. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8393. # When not using gcc, we currently assume that we are using
  8394. # Microsoft Visual C++.
  8395. if test yes != "$GCC"; then
  8396. with_gnu_ld=no
  8397. fi
  8398. ;;
  8399. interix*)
  8400. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8401. with_gnu_ld=yes
  8402. ;;
  8403. openbsd* | bitrig*)
  8404. with_gnu_ld=no
  8405. ;;
  8406. esac
  8407. ld_shlibs=yes
  8408. # On some targets, GNU ld is compatible enough with the native linker
  8409. # that we're better off using the native interface for both.
  8410. lt_use_gnu_ld_interface=no
  8411. if test yes = "$with_gnu_ld"; then
  8412. case $host_os in
  8413. aix*)
  8414. # The AIX port of GNU ld has always aspired to compatibility
  8415. # with the native linker. However, as the warning in the GNU ld
  8416. # block says, versions before 2.19.5* couldn't really create working
  8417. # shared libraries, regardless of the interface used.
  8418. case `$LD -v 2>&1` in
  8419. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8420. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8421. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8422. *)
  8423. lt_use_gnu_ld_interface=yes
  8424. ;;
  8425. esac
  8426. ;;
  8427. *)
  8428. lt_use_gnu_ld_interface=yes
  8429. ;;
  8430. esac
  8431. fi
  8432. if test yes = "$lt_use_gnu_ld_interface"; then
  8433. # If archive_cmds runs LD, not CC, wlarc should be empty
  8434. wlarc='$wl'
  8435. # Set some defaults for GNU ld with shared library support. These
  8436. # are reset later if shared libraries are not supported. Putting them
  8437. # here allows them to be overridden if necessary.
  8438. runpath_var=LD_RUN_PATH
  8439. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8440. export_dynamic_flag_spec='$wl--export-dynamic'
  8441. # ancient GNU ld didn't support --whole-archive et. al.
  8442. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8443. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8444. else
  8445. whole_archive_flag_spec=
  8446. fi
  8447. supports_anon_versioning=no
  8448. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8449. *GNU\ gold*) supports_anon_versioning=yes ;;
  8450. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8451. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8452. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8453. *\ 2.11.*) ;; # other 2.11 versions
  8454. *) supports_anon_versioning=yes ;;
  8455. esac
  8456. # See if GNU ld supports shared libraries.
  8457. case $host_os in
  8458. aix[3-9]*)
  8459. # On AIX/PPC, the GNU linker is very broken
  8460. if test ia64 != "$host_cpu"; then
  8461. ld_shlibs=no
  8462. cat <<_LT_EOF 1>&2
  8463. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8464. *** to be unable to reliably create shared libraries on AIX.
  8465. *** Therefore, libtool is disabling shared libraries support. If you
  8466. *** really care for shared libraries, you may want to install binutils
  8467. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8468. *** You will then need to restart the configuration process.
  8469. _LT_EOF
  8470. fi
  8471. ;;
  8472. amigaos*)
  8473. case $host_cpu in
  8474. powerpc)
  8475. # see comment about AmigaOS4 .so support
  8476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8477. archive_expsym_cmds=''
  8478. ;;
  8479. m68k)
  8480. 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)'
  8481. hardcode_libdir_flag_spec='-L$libdir'
  8482. hardcode_minus_L=yes
  8483. ;;
  8484. esac
  8485. ;;
  8486. beos*)
  8487. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8488. allow_undefined_flag=unsupported
  8489. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8490. # support --undefined. This deserves some investigation. FIXME
  8491. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8492. else
  8493. ld_shlibs=no
  8494. fi
  8495. ;;
  8496. cygwin* | mingw* | pw32* | cegcc*)
  8497. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8498. # as there is no search path for DLLs.
  8499. hardcode_libdir_flag_spec='-L$libdir'
  8500. export_dynamic_flag_spec='$wl--export-all-symbols'
  8501. allow_undefined_flag=unsupported
  8502. always_export_symbols=no
  8503. enable_shared_with_static_runtimes=yes
  8504. 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'
  8505. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8506. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8507. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8508. # If the export-symbols file already is a .def file, use it as
  8509. # is; otherwise, prepend EXPORTS...
  8510. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8511. cp $export_symbols $output_objdir/$soname.def;
  8512. else
  8513. echo EXPORTS > $output_objdir/$soname.def;
  8514. cat $export_symbols >> $output_objdir/$soname.def;
  8515. fi~
  8516. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8517. else
  8518. ld_shlibs=no
  8519. fi
  8520. ;;
  8521. haiku*)
  8522. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8523. link_all_deplibs=yes
  8524. ;;
  8525. os2*)
  8526. hardcode_libdir_flag_spec='-L$libdir'
  8527. hardcode_minus_L=yes
  8528. allow_undefined_flag=unsupported
  8529. shrext_cmds=.dll
  8530. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8531. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8532. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8533. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8534. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8535. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8536. emximp -o $lib $output_objdir/$libname.def'
  8537. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8538. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8539. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8540. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8541. prefix_cmds="$SED"~
  8542. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8543. prefix_cmds="$prefix_cmds -e 1d";
  8544. fi~
  8545. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8546. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8547. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8548. emximp -o $lib $output_objdir/$libname.def'
  8549. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8550. enable_shared_with_static_runtimes=yes
  8551. ;;
  8552. interix[3-9]*)
  8553. hardcode_direct=no
  8554. hardcode_shlibpath_var=no
  8555. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8556. export_dynamic_flag_spec='$wl-E'
  8557. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8558. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8559. # default) and relocated if they conflict, which is a slow very memory
  8560. # consuming and fragmenting process. To avoid this, we pick a random,
  8561. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8562. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8563. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8564. 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'
  8565. ;;
  8566. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8567. tmp_diet=no
  8568. if test linux-dietlibc = "$host_os"; then
  8569. case $cc_basename in
  8570. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8571. esac
  8572. fi
  8573. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8574. && test no = "$tmp_diet"
  8575. then
  8576. tmp_addflag=' $pic_flag'
  8577. tmp_sharedflag='-shared'
  8578. case $cc_basename,$host_cpu in
  8579. pgcc*) # Portland Group C compiler
  8580. 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'
  8581. tmp_addflag=' $pic_flag'
  8582. ;;
  8583. pgf77* | pgf90* | pgf95* | pgfortran*)
  8584. # Portland Group f77 and f90 compilers
  8585. 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'
  8586. tmp_addflag=' $pic_flag -Mnomain' ;;
  8587. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8588. tmp_addflag=' -i_dynamic' ;;
  8589. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8590. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8591. ifc* | ifort*) # Intel Fortran compiler
  8592. tmp_addflag=' -nofor_main' ;;
  8593. lf95*) # Lahey Fortran 8.1
  8594. whole_archive_flag_spec=
  8595. tmp_sharedflag='--shared' ;;
  8596. nagfor*) # NAGFOR 5.3
  8597. tmp_sharedflag='-Wl,-shared' ;;
  8598. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8599. tmp_sharedflag='-qmkshrobj'
  8600. tmp_addflag= ;;
  8601. nvcc*) # Cuda Compiler Driver 2.2
  8602. 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'
  8603. compiler_needs_object=yes
  8604. ;;
  8605. esac
  8606. case `$CC -V 2>&1 | sed 5q` in
  8607. *Sun\ C*) # Sun C 5.9
  8608. 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'
  8609. compiler_needs_object=yes
  8610. tmp_sharedflag='-G' ;;
  8611. *Sun\ F*) # Sun Fortran 8.3
  8612. tmp_sharedflag='-G' ;;
  8613. esac
  8614. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8615. if test yes = "$supports_anon_versioning"; then
  8616. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8617. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8618. echo "local: *; };" >> $output_objdir/$libname.ver~
  8619. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8620. fi
  8621. case $cc_basename in
  8622. tcc*)
  8623. export_dynamic_flag_spec='-rdynamic'
  8624. ;;
  8625. xlf* | bgf* | bgxlf* | mpixlf*)
  8626. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8627. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8628. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8629. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8630. if test yes = "$supports_anon_versioning"; then
  8631. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8632. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8633. echo "local: *; };" >> $output_objdir/$libname.ver~
  8634. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8635. fi
  8636. ;;
  8637. esac
  8638. else
  8639. ld_shlibs=no
  8640. fi
  8641. ;;
  8642. netbsd*)
  8643. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8644. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8645. wlarc=
  8646. else
  8647. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8648. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8649. fi
  8650. ;;
  8651. solaris*)
  8652. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8653. ld_shlibs=no
  8654. cat <<_LT_EOF 1>&2
  8655. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8656. *** create shared libraries on Solaris systems. Therefore, libtool
  8657. *** is disabling shared libraries support. We urge you to upgrade GNU
  8658. *** binutils to release 2.9.1 or newer. Another option is to modify
  8659. *** your PATH or compiler configuration so that the native linker is
  8660. *** used, and then restart.
  8661. _LT_EOF
  8662. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8663. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8664. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8665. else
  8666. ld_shlibs=no
  8667. fi
  8668. ;;
  8669. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8670. case `$LD -v 2>&1` in
  8671. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8672. ld_shlibs=no
  8673. cat <<_LT_EOF 1>&2
  8674. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8675. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8676. *** is disabling shared libraries support. We urge you to upgrade GNU
  8677. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8678. *** your PATH or compiler configuration so that the native linker is
  8679. *** used, and then restart.
  8680. _LT_EOF
  8681. ;;
  8682. *)
  8683. # For security reasons, it is highly recommended that you always
  8684. # use absolute paths for naming shared libraries, and exclude the
  8685. # DT_RUNPATH tag from executables and libraries. But doing so
  8686. # requires that you compile everything twice, which is a pain.
  8687. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8688. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8689. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8690. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8691. else
  8692. ld_shlibs=no
  8693. fi
  8694. ;;
  8695. esac
  8696. ;;
  8697. sunos4*)
  8698. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8699. wlarc=
  8700. hardcode_direct=yes
  8701. hardcode_shlibpath_var=no
  8702. ;;
  8703. *)
  8704. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8705. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8706. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8707. else
  8708. ld_shlibs=no
  8709. fi
  8710. ;;
  8711. esac
  8712. if test no = "$ld_shlibs"; then
  8713. runpath_var=
  8714. hardcode_libdir_flag_spec=
  8715. export_dynamic_flag_spec=
  8716. whole_archive_flag_spec=
  8717. fi
  8718. else
  8719. # PORTME fill in a description of your system's linker (not GNU ld)
  8720. case $host_os in
  8721. aix3*)
  8722. allow_undefined_flag=unsupported
  8723. always_export_symbols=yes
  8724. 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'
  8725. # Note: this linker hardcodes the directories in LIBPATH if there
  8726. # are no directories specified by -L.
  8727. hardcode_minus_L=yes
  8728. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8729. # Neither direct hardcoding nor static linking is supported with a
  8730. # broken collect2.
  8731. hardcode_direct=unsupported
  8732. fi
  8733. ;;
  8734. aix[4-9]*)
  8735. if test ia64 = "$host_cpu"; then
  8736. # On IA64, the linker does run time linking by default, so we don't
  8737. # have to do anything special.
  8738. aix_use_runtimelinking=no
  8739. exp_sym_flag='-Bexport'
  8740. no_entry_flag=
  8741. else
  8742. # If we're using GNU nm, then we don't want the "-C" option.
  8743. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8744. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8745. # weak defined symbols like other global defined symbols, whereas
  8746. # GNU nm marks them as "W".
  8747. # While the 'weak' keyword is ignored in the Export File, we need
  8748. # it in the Import File for the 'aix-soname' feature, so we have
  8749. # to replace the "-B" option with "-P" for AIX nm.
  8750. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8751. 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'
  8752. else
  8753. 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'
  8754. fi
  8755. aix_use_runtimelinking=no
  8756. # Test if we are trying to use run time linking or normal
  8757. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8758. # have runtime linking enabled, and use it for executables.
  8759. # For shared libraries, we enable/disable runtime linking
  8760. # depending on the kind of the shared library created -
  8761. # when "with_aix_soname,aix_use_runtimelinking" is:
  8762. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8763. # "aix,yes" lib.so shared, rtl:yes, for executables
  8764. # lib.a static archive
  8765. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8766. # lib.a(lib.so.V) shared, rtl:no, for executables
  8767. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8768. # lib.a(lib.so.V) shared, rtl:no
  8769. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8770. # lib.a static archive
  8771. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8772. for ld_flag in $LDFLAGS; do
  8773. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8774. aix_use_runtimelinking=yes
  8775. break
  8776. fi
  8777. done
  8778. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8779. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8780. # so we don't have lib.a shared libs to link our executables.
  8781. # We have to force runtime linking in this case.
  8782. aix_use_runtimelinking=yes
  8783. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8784. fi
  8785. ;;
  8786. esac
  8787. exp_sym_flag='-bexport'
  8788. no_entry_flag='-bnoentry'
  8789. fi
  8790. # When large executables or shared objects are built, AIX ld can
  8791. # have problems creating the table of contents. If linking a library
  8792. # or program results in "error TOC overflow" add -mminimal-toc to
  8793. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8794. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8795. archive_cmds=''
  8796. hardcode_direct=yes
  8797. hardcode_direct_absolute=yes
  8798. hardcode_libdir_separator=':'
  8799. link_all_deplibs=yes
  8800. file_list_spec='$wl-f,'
  8801. case $with_aix_soname,$aix_use_runtimelinking in
  8802. aix,*) ;; # traditional, no import file
  8803. svr4,* | *,yes) # use import file
  8804. # The Import File defines what to hardcode.
  8805. hardcode_direct=no
  8806. hardcode_direct_absolute=no
  8807. ;;
  8808. esac
  8809. if test yes = "$GCC"; then
  8810. case $host_os in aix4.[012]|aix4.[012].*)
  8811. # We only want to do this on AIX 4.2 and lower, the check
  8812. # below for broken collect2 doesn't work under 4.3+
  8813. collect2name=`$CC -print-prog-name=collect2`
  8814. if test -f "$collect2name" &&
  8815. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8816. then
  8817. # We have reworked collect2
  8818. :
  8819. else
  8820. # We have old collect2
  8821. hardcode_direct=unsupported
  8822. # It fails to find uninstalled libraries when the uninstalled
  8823. # path is not listed in the libpath. Setting hardcode_minus_L
  8824. # to unsupported forces relinking
  8825. hardcode_minus_L=yes
  8826. hardcode_libdir_flag_spec='-L$libdir'
  8827. hardcode_libdir_separator=
  8828. fi
  8829. ;;
  8830. esac
  8831. shared_flag='-shared'
  8832. if test yes = "$aix_use_runtimelinking"; then
  8833. shared_flag="$shared_flag "'$wl-G'
  8834. fi
  8835. # Need to ensure runtime linking is disabled for the traditional
  8836. # shared library, or the linker may eventually find shared libraries
  8837. # /with/ Import File - we do not want to mix them.
  8838. shared_flag_aix='-shared'
  8839. shared_flag_svr4='-shared $wl-G'
  8840. else
  8841. # not using gcc
  8842. if test ia64 = "$host_cpu"; then
  8843. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8844. # chokes on -Wl,-G. The following line is correct:
  8845. shared_flag='-G'
  8846. else
  8847. if test yes = "$aix_use_runtimelinking"; then
  8848. shared_flag='$wl-G'
  8849. else
  8850. shared_flag='$wl-bM:SRE'
  8851. fi
  8852. shared_flag_aix='$wl-bM:SRE'
  8853. shared_flag_svr4='$wl-G'
  8854. fi
  8855. fi
  8856. export_dynamic_flag_spec='$wl-bexpall'
  8857. # It seems that -bexpall does not export symbols beginning with
  8858. # underscore (_), so it is better to generate a list of symbols to export.
  8859. always_export_symbols=yes
  8860. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8861. # Warning - without using the other runtime loading flags (-brtl),
  8862. # -berok will link without error, but may produce a broken library.
  8863. allow_undefined_flag='-berok'
  8864. # Determine the default libpath from the value encoded in an
  8865. # empty executable.
  8866. if test set = "${lt_cv_aix_libpath+set}"; then
  8867. aix_libpath=$lt_cv_aix_libpath
  8868. else
  8869. if ${lt_cv_aix_libpath_+:} false; then :
  8870. $as_echo_n "(cached) " >&6
  8871. else
  8872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8873. /* end confdefs.h. */
  8874. int
  8875. main ()
  8876. {
  8877. ;
  8878. return 0;
  8879. }
  8880. _ACEOF
  8881. if ac_fn_c_try_link "$LINENO"; then :
  8882. lt_aix_libpath_sed='
  8883. /Import File Strings/,/^$/ {
  8884. /^0/ {
  8885. s/^0 *\([^ ]*\) *$/\1/
  8886. p
  8887. }
  8888. }'
  8889. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8890. # Check for a 64-bit object if we didn't find anything.
  8891. if test -z "$lt_cv_aix_libpath_"; then
  8892. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8893. fi
  8894. fi
  8895. rm -f core conftest.err conftest.$ac_objext \
  8896. conftest$ac_exeext conftest.$ac_ext
  8897. if test -z "$lt_cv_aix_libpath_"; then
  8898. lt_cv_aix_libpath_=/usr/lib:/lib
  8899. fi
  8900. fi
  8901. aix_libpath=$lt_cv_aix_libpath_
  8902. fi
  8903. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8904. 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
  8905. else
  8906. if test ia64 = "$host_cpu"; then
  8907. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8908. allow_undefined_flag="-z nodefs"
  8909. 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"
  8910. else
  8911. # Determine the default libpath from the value encoded in an
  8912. # empty executable.
  8913. if test set = "${lt_cv_aix_libpath+set}"; then
  8914. aix_libpath=$lt_cv_aix_libpath
  8915. else
  8916. if ${lt_cv_aix_libpath_+:} false; then :
  8917. $as_echo_n "(cached) " >&6
  8918. else
  8919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8920. /* end confdefs.h. */
  8921. int
  8922. main ()
  8923. {
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. if ac_fn_c_try_link "$LINENO"; then :
  8929. lt_aix_libpath_sed='
  8930. /Import File Strings/,/^$/ {
  8931. /^0/ {
  8932. s/^0 *\([^ ]*\) *$/\1/
  8933. p
  8934. }
  8935. }'
  8936. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8937. # Check for a 64-bit object if we didn't find anything.
  8938. if test -z "$lt_cv_aix_libpath_"; then
  8939. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8940. fi
  8941. fi
  8942. rm -f core conftest.err conftest.$ac_objext \
  8943. conftest$ac_exeext conftest.$ac_ext
  8944. if test -z "$lt_cv_aix_libpath_"; then
  8945. lt_cv_aix_libpath_=/usr/lib:/lib
  8946. fi
  8947. fi
  8948. aix_libpath=$lt_cv_aix_libpath_
  8949. fi
  8950. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8951. # Warning - without using the other run time loading flags,
  8952. # -berok will link without error, but may produce a broken library.
  8953. no_undefined_flag=' $wl-bernotok'
  8954. allow_undefined_flag=' $wl-berok'
  8955. if test yes = "$with_gnu_ld"; then
  8956. # We only use this code for GNU lds that support --whole-archive.
  8957. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8958. else
  8959. # Exported symbols can be pulled into shared objects from archives
  8960. whole_archive_flag_spec='$convenience'
  8961. fi
  8962. archive_cmds_need_lc=yes
  8963. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8964. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8965. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8966. if test svr4 != "$with_aix_soname"; then
  8967. # This is similar to how AIX traditionally builds its shared libraries.
  8968. 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'
  8969. fi
  8970. if test aix != "$with_aix_soname"; then
  8971. 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'
  8972. else
  8973. # used by -dlpreopen to get the symbols
  8974. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8975. fi
  8976. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8977. fi
  8978. fi
  8979. ;;
  8980. amigaos*)
  8981. case $host_cpu in
  8982. powerpc)
  8983. # see comment about AmigaOS4 .so support
  8984. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8985. archive_expsym_cmds=''
  8986. ;;
  8987. m68k)
  8988. 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)'
  8989. hardcode_libdir_flag_spec='-L$libdir'
  8990. hardcode_minus_L=yes
  8991. ;;
  8992. esac
  8993. ;;
  8994. bsdi[45]*)
  8995. export_dynamic_flag_spec=-rdynamic
  8996. ;;
  8997. cygwin* | mingw* | pw32* | cegcc*)
  8998. # When not using gcc, we currently assume that we are using
  8999. # Microsoft Visual C++.
  9000. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9001. # no search path for DLLs.
  9002. case $cc_basename in
  9003. cl*)
  9004. # Native MSVC
  9005. hardcode_libdir_flag_spec=' '
  9006. allow_undefined_flag=unsupported
  9007. always_export_symbols=yes
  9008. file_list_spec='@'
  9009. # Tell ltmain to make .lib files, not .a files.
  9010. libext=lib
  9011. # Tell ltmain to make .dll files, not .so files.
  9012. shrext_cmds=.dll
  9013. # FIXME: Setting linknames here is a bad hack.
  9014. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9015. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9016. cp "$export_symbols" "$output_objdir/$soname.def";
  9017. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9018. else
  9019. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9020. fi~
  9021. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9022. linknames='
  9023. # The linker will not automatically build a static lib if we build a DLL.
  9024. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9025. enable_shared_with_static_runtimes=yes
  9026. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9027. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9028. # Don't use ranlib
  9029. old_postinstall_cmds='chmod 644 $oldlib'
  9030. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9031. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9032. case $lt_outputfile in
  9033. *.exe|*.EXE) ;;
  9034. *)
  9035. lt_outputfile=$lt_outputfile.exe
  9036. lt_tool_outputfile=$lt_tool_outputfile.exe
  9037. ;;
  9038. esac~
  9039. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9040. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9041. $RM "$lt_outputfile.manifest";
  9042. fi'
  9043. ;;
  9044. *)
  9045. # Assume MSVC wrapper
  9046. hardcode_libdir_flag_spec=' '
  9047. allow_undefined_flag=unsupported
  9048. # Tell ltmain to make .lib files, not .a files.
  9049. libext=lib
  9050. # Tell ltmain to make .dll files, not .so files.
  9051. shrext_cmds=.dll
  9052. # FIXME: Setting linknames here is a bad hack.
  9053. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9054. # The linker will automatically build a .lib file if we build a DLL.
  9055. old_archive_from_new_cmds='true'
  9056. # FIXME: Should let the user specify the lib program.
  9057. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9058. enable_shared_with_static_runtimes=yes
  9059. ;;
  9060. esac
  9061. ;;
  9062. darwin* | rhapsody*)
  9063. archive_cmds_need_lc=no
  9064. hardcode_direct=no
  9065. hardcode_automatic=yes
  9066. hardcode_shlibpath_var=unsupported
  9067. if test yes = "$lt_cv_ld_force_load"; then
  9068. 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\"`'
  9069. else
  9070. whole_archive_flag_spec=''
  9071. fi
  9072. link_all_deplibs=yes
  9073. allow_undefined_flag=$_lt_dar_allow_undefined
  9074. case $cc_basename in
  9075. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9076. *) _lt_dar_can_shared=$GCC ;;
  9077. esac
  9078. if test yes = "$_lt_dar_can_shared"; then
  9079. output_verbose_link_cmd=func_echo_all
  9080. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9081. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9082. 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"
  9083. 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"
  9084. else
  9085. ld_shlibs=no
  9086. fi
  9087. ;;
  9088. dgux*)
  9089. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9090. hardcode_libdir_flag_spec='-L$libdir'
  9091. hardcode_shlibpath_var=no
  9092. ;;
  9093. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9094. # support. Future versions do this automatically, but an explicit c++rt0.o
  9095. # does not break anything, and helps significantly (at the cost of a little
  9096. # extra space).
  9097. freebsd2.2*)
  9098. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9099. hardcode_libdir_flag_spec='-R$libdir'
  9100. hardcode_direct=yes
  9101. hardcode_shlibpath_var=no
  9102. ;;
  9103. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9104. freebsd2.*)
  9105. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9106. hardcode_direct=yes
  9107. hardcode_minus_L=yes
  9108. hardcode_shlibpath_var=no
  9109. ;;
  9110. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9111. freebsd* | dragonfly*)
  9112. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9113. hardcode_libdir_flag_spec='-R$libdir'
  9114. hardcode_direct=yes
  9115. hardcode_shlibpath_var=no
  9116. ;;
  9117. hpux9*)
  9118. if test yes = "$GCC"; then
  9119. 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'
  9120. else
  9121. 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'
  9122. fi
  9123. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9124. hardcode_libdir_separator=:
  9125. hardcode_direct=yes
  9126. # hardcode_minus_L: Not really in the search PATH,
  9127. # but as the default location of the library.
  9128. hardcode_minus_L=yes
  9129. export_dynamic_flag_spec='$wl-E'
  9130. ;;
  9131. hpux10*)
  9132. if test yes,no = "$GCC,$with_gnu_ld"; then
  9133. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9134. else
  9135. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9136. fi
  9137. if test no = "$with_gnu_ld"; then
  9138. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9139. hardcode_libdir_separator=:
  9140. hardcode_direct=yes
  9141. hardcode_direct_absolute=yes
  9142. export_dynamic_flag_spec='$wl-E'
  9143. # hardcode_minus_L: Not really in the search PATH,
  9144. # but as the default location of the library.
  9145. hardcode_minus_L=yes
  9146. fi
  9147. ;;
  9148. hpux11*)
  9149. if test yes,no = "$GCC,$with_gnu_ld"; then
  9150. case $host_cpu in
  9151. hppa*64*)
  9152. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9153. ;;
  9154. ia64*)
  9155. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9156. ;;
  9157. *)
  9158. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9159. ;;
  9160. esac
  9161. else
  9162. case $host_cpu in
  9163. hppa*64*)
  9164. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9165. ;;
  9166. ia64*)
  9167. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9168. ;;
  9169. *)
  9170. # Older versions of the 11.00 compiler do not understand -b yet
  9171. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9173. $as_echo_n "checking if $CC understands -b... " >&6; }
  9174. if ${lt_cv_prog_compiler__b+:} false; then :
  9175. $as_echo_n "(cached) " >&6
  9176. else
  9177. lt_cv_prog_compiler__b=no
  9178. save_LDFLAGS=$LDFLAGS
  9179. LDFLAGS="$LDFLAGS -b"
  9180. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9181. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9182. # The linker can only warn and ignore the option if not recognized
  9183. # So say no if there are warnings
  9184. if test -s conftest.err; then
  9185. # Append any errors to the config.log.
  9186. cat conftest.err 1>&5
  9187. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9189. if diff conftest.exp conftest.er2 >/dev/null; then
  9190. lt_cv_prog_compiler__b=yes
  9191. fi
  9192. else
  9193. lt_cv_prog_compiler__b=yes
  9194. fi
  9195. fi
  9196. $RM -r conftest*
  9197. LDFLAGS=$save_LDFLAGS
  9198. fi
  9199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9200. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9201. if test yes = "$lt_cv_prog_compiler__b"; then
  9202. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9203. else
  9204. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9205. fi
  9206. ;;
  9207. esac
  9208. fi
  9209. if test no = "$with_gnu_ld"; then
  9210. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9211. hardcode_libdir_separator=:
  9212. case $host_cpu in
  9213. hppa*64*|ia64*)
  9214. hardcode_direct=no
  9215. hardcode_shlibpath_var=no
  9216. ;;
  9217. *)
  9218. hardcode_direct=yes
  9219. hardcode_direct_absolute=yes
  9220. export_dynamic_flag_spec='$wl-E'
  9221. # hardcode_minus_L: Not really in the search PATH,
  9222. # but as the default location of the library.
  9223. hardcode_minus_L=yes
  9224. ;;
  9225. esac
  9226. fi
  9227. ;;
  9228. irix5* | irix6* | nonstopux*)
  9229. if test yes = "$GCC"; then
  9230. 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'
  9231. # Try to use the -exported_symbol ld option, if it does not
  9232. # work, assume that -exports_file does not work either and
  9233. # implicitly export all symbols.
  9234. # This should be the same for all languages, so no per-tag cache variable.
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9236. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9237. if ${lt_cv_irix_exported_symbol+:} false; then :
  9238. $as_echo_n "(cached) " >&6
  9239. else
  9240. save_LDFLAGS=$LDFLAGS
  9241. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9243. /* end confdefs.h. */
  9244. int foo (void) { return 0; }
  9245. _ACEOF
  9246. if ac_fn_c_try_link "$LINENO"; then :
  9247. lt_cv_irix_exported_symbol=yes
  9248. else
  9249. lt_cv_irix_exported_symbol=no
  9250. fi
  9251. rm -f core conftest.err conftest.$ac_objext \
  9252. conftest$ac_exeext conftest.$ac_ext
  9253. LDFLAGS=$save_LDFLAGS
  9254. fi
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9256. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9257. if test yes = "$lt_cv_irix_exported_symbol"; then
  9258. 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'
  9259. fi
  9260. else
  9261. 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'
  9262. 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'
  9263. fi
  9264. archive_cmds_need_lc='no'
  9265. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9266. hardcode_libdir_separator=:
  9267. inherit_rpath=yes
  9268. link_all_deplibs=yes
  9269. ;;
  9270. linux*)
  9271. case $cc_basename in
  9272. tcc*)
  9273. # Fabrice Bellard et al's Tiny C Compiler
  9274. ld_shlibs=yes
  9275. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9276. ;;
  9277. esac
  9278. ;;
  9279. netbsd*)
  9280. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9281. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9282. else
  9283. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9284. fi
  9285. hardcode_libdir_flag_spec='-R$libdir'
  9286. hardcode_direct=yes
  9287. hardcode_shlibpath_var=no
  9288. ;;
  9289. newsos6)
  9290. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9291. hardcode_direct=yes
  9292. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9293. hardcode_libdir_separator=:
  9294. hardcode_shlibpath_var=no
  9295. ;;
  9296. *nto* | *qnx*)
  9297. ;;
  9298. openbsd* | bitrig*)
  9299. if test -f /usr/libexec/ld.so; then
  9300. hardcode_direct=yes
  9301. hardcode_shlibpath_var=no
  9302. hardcode_direct_absolute=yes
  9303. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9304. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9305. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9306. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9307. export_dynamic_flag_spec='$wl-E'
  9308. else
  9309. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9310. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9311. fi
  9312. else
  9313. ld_shlibs=no
  9314. fi
  9315. ;;
  9316. os2*)
  9317. hardcode_libdir_flag_spec='-L$libdir'
  9318. hardcode_minus_L=yes
  9319. allow_undefined_flag=unsupported
  9320. shrext_cmds=.dll
  9321. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9322. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9323. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9324. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9325. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9326. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9327. emximp -o $lib $output_objdir/$libname.def'
  9328. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9329. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9330. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9331. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9332. prefix_cmds="$SED"~
  9333. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9334. prefix_cmds="$prefix_cmds -e 1d";
  9335. fi~
  9336. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9337. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9338. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9339. emximp -o $lib $output_objdir/$libname.def'
  9340. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9341. enable_shared_with_static_runtimes=yes
  9342. ;;
  9343. osf3*)
  9344. if test yes = "$GCC"; then
  9345. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9346. 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'
  9347. else
  9348. allow_undefined_flag=' -expect_unresolved \*'
  9349. 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'
  9350. fi
  9351. archive_cmds_need_lc='no'
  9352. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9353. hardcode_libdir_separator=:
  9354. ;;
  9355. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9356. if test yes = "$GCC"; then
  9357. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9358. 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'
  9359. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9360. else
  9361. allow_undefined_flag=' -expect_unresolved \*'
  9362. 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'
  9363. 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~
  9364. $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'
  9365. # Both c and cxx compiler support -rpath directly
  9366. hardcode_libdir_flag_spec='-rpath $libdir'
  9367. fi
  9368. archive_cmds_need_lc='no'
  9369. hardcode_libdir_separator=:
  9370. ;;
  9371. solaris*)
  9372. no_undefined_flag=' -z defs'
  9373. if test yes = "$GCC"; then
  9374. wlarc='$wl'
  9375. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9376. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9377. $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'
  9378. else
  9379. case `$CC -V 2>&1` in
  9380. *"Compilers 5.0"*)
  9381. wlarc=''
  9382. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9383. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9384. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9385. ;;
  9386. *)
  9387. wlarc='$wl'
  9388. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9390. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9391. ;;
  9392. esac
  9393. fi
  9394. hardcode_libdir_flag_spec='-R$libdir'
  9395. hardcode_shlibpath_var=no
  9396. case $host_os in
  9397. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9398. *)
  9399. # The compiler driver will combine and reorder linker options,
  9400. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9401. # but is careful enough not to reorder.
  9402. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9403. if test yes = "$GCC"; then
  9404. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9405. else
  9406. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9407. fi
  9408. ;;
  9409. esac
  9410. link_all_deplibs=yes
  9411. ;;
  9412. sunos4*)
  9413. if test sequent = "$host_vendor"; then
  9414. # Use $CC to link under sequent, because it throws in some extra .o
  9415. # files that make .init and .fini sections work.
  9416. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9417. else
  9418. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9419. fi
  9420. hardcode_libdir_flag_spec='-L$libdir'
  9421. hardcode_direct=yes
  9422. hardcode_minus_L=yes
  9423. hardcode_shlibpath_var=no
  9424. ;;
  9425. sysv4)
  9426. case $host_vendor in
  9427. sni)
  9428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9429. hardcode_direct=yes # is this really true???
  9430. ;;
  9431. siemens)
  9432. ## LD is ld it makes a PLAMLIB
  9433. ## CC just makes a GrossModule.
  9434. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9435. reload_cmds='$CC -r -o $output$reload_objs'
  9436. hardcode_direct=no
  9437. ;;
  9438. motorola)
  9439. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9440. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9441. ;;
  9442. esac
  9443. runpath_var='LD_RUN_PATH'
  9444. hardcode_shlibpath_var=no
  9445. ;;
  9446. sysv4.3*)
  9447. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9448. hardcode_shlibpath_var=no
  9449. export_dynamic_flag_spec='-Bexport'
  9450. ;;
  9451. sysv4*MP*)
  9452. if test -d /usr/nec; then
  9453. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9454. hardcode_shlibpath_var=no
  9455. runpath_var=LD_RUN_PATH
  9456. hardcode_runpath_var=yes
  9457. ld_shlibs=yes
  9458. fi
  9459. ;;
  9460. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9461. no_undefined_flag='$wl-z,text'
  9462. archive_cmds_need_lc=no
  9463. hardcode_shlibpath_var=no
  9464. runpath_var='LD_RUN_PATH'
  9465. if test yes = "$GCC"; then
  9466. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9467. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9468. else
  9469. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9470. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9471. fi
  9472. ;;
  9473. sysv5* | sco3.2v5* | sco5v6*)
  9474. # Note: We CANNOT use -z defs as we might desire, because we do not
  9475. # link with -lc, and that would cause any symbols used from libc to
  9476. # always be unresolved, which means just about no library would
  9477. # ever link correctly. If we're not using GNU ld we use -z text
  9478. # though, which does catch some bad symbols but isn't as heavy-handed
  9479. # as -z defs.
  9480. no_undefined_flag='$wl-z,text'
  9481. allow_undefined_flag='$wl-z,nodefs'
  9482. archive_cmds_need_lc=no
  9483. hardcode_shlibpath_var=no
  9484. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9485. hardcode_libdir_separator=':'
  9486. link_all_deplibs=yes
  9487. export_dynamic_flag_spec='$wl-Bexport'
  9488. runpath_var='LD_RUN_PATH'
  9489. if test yes = "$GCC"; then
  9490. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9491. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9492. else
  9493. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9494. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9495. fi
  9496. ;;
  9497. uts4*)
  9498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9499. hardcode_libdir_flag_spec='-L$libdir'
  9500. hardcode_shlibpath_var=no
  9501. ;;
  9502. *)
  9503. ld_shlibs=no
  9504. ;;
  9505. esac
  9506. if test sni = "$host_vendor"; then
  9507. case $host in
  9508. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9509. export_dynamic_flag_spec='$wl-Blargedynsym'
  9510. ;;
  9511. esac
  9512. fi
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9515. $as_echo "$ld_shlibs" >&6; }
  9516. test no = "$ld_shlibs" && can_build_shared=no
  9517. with_gnu_ld=$with_gnu_ld
  9518. #
  9519. # Do we need to explicitly link libc?
  9520. #
  9521. case "x$archive_cmds_need_lc" in
  9522. x|xyes)
  9523. # Assume -lc should be added
  9524. archive_cmds_need_lc=yes
  9525. if test yes,yes = "$GCC,$enable_shared"; then
  9526. case $archive_cmds in
  9527. *'~'*)
  9528. # FIXME: we may have to deal with multi-command sequences.
  9529. ;;
  9530. '$CC '*)
  9531. # Test whether the compiler implicitly links with -lc since on some
  9532. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9533. # to ld, don't add -lc before -lgcc.
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9535. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9536. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9537. $as_echo_n "(cached) " >&6
  9538. else
  9539. $RM conftest*
  9540. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9542. (eval $ac_compile) 2>&5
  9543. ac_status=$?
  9544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9545. test $ac_status = 0; } 2>conftest.err; then
  9546. soname=conftest
  9547. lib=conftest
  9548. libobjs=conftest.$ac_objext
  9549. deplibs=
  9550. wl=$lt_prog_compiler_wl
  9551. pic_flag=$lt_prog_compiler_pic
  9552. compiler_flags=-v
  9553. linker_flags=-v
  9554. verstring=
  9555. output_objdir=.
  9556. libname=conftest
  9557. lt_save_allow_undefined_flag=$allow_undefined_flag
  9558. allow_undefined_flag=
  9559. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9560. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9561. ac_status=$?
  9562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9563. test $ac_status = 0; }
  9564. then
  9565. lt_cv_archive_cmds_need_lc=no
  9566. else
  9567. lt_cv_archive_cmds_need_lc=yes
  9568. fi
  9569. allow_undefined_flag=$lt_save_allow_undefined_flag
  9570. else
  9571. cat conftest.err 1>&5
  9572. fi
  9573. $RM conftest*
  9574. fi
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9576. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9577. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9578. ;;
  9579. esac
  9580. fi
  9581. ;;
  9582. esac
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9584. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9585. if test yes = "$GCC"; then
  9586. case $host_os in
  9587. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9588. *) lt_awk_arg='/^libraries:/' ;;
  9589. esac
  9590. case $host_os in
  9591. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9592. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9593. esac
  9594. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9595. case $lt_search_path_spec in
  9596. *\;*)
  9597. # if the path contains ";" then we assume it to be the separator
  9598. # otherwise default to the standard path separator (i.e. ":") - it is
  9599. # assumed that no part of a normal pathname contains ";" but that should
  9600. # okay in the real world where ";" in dirpaths is itself problematic.
  9601. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9602. ;;
  9603. *)
  9604. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9605. ;;
  9606. esac
  9607. # Ok, now we have the path, separated by spaces, we can step through it
  9608. # and add multilib dir if necessary...
  9609. lt_tmp_lt_search_path_spec=
  9610. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9611. # ...but if some path component already ends with the multilib dir we assume
  9612. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9613. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9614. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9615. lt_multi_os_dir=
  9616. ;;
  9617. esac
  9618. for lt_sys_path in $lt_search_path_spec; do
  9619. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9620. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9621. elif test -n "$lt_multi_os_dir"; then
  9622. test -d "$lt_sys_path" && \
  9623. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9624. fi
  9625. done
  9626. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9627. BEGIN {RS = " "; FS = "/|\n";} {
  9628. lt_foo = "";
  9629. lt_count = 0;
  9630. for (lt_i = NF; lt_i > 0; lt_i--) {
  9631. if ($lt_i != "" && $lt_i != ".") {
  9632. if ($lt_i == "..") {
  9633. lt_count++;
  9634. } else {
  9635. if (lt_count == 0) {
  9636. lt_foo = "/" $lt_i lt_foo;
  9637. } else {
  9638. lt_count--;
  9639. }
  9640. }
  9641. }
  9642. }
  9643. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9644. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9645. }'`
  9646. # AWK program above erroneously prepends '/' to C:/dos/paths
  9647. # for these hosts.
  9648. case $host_os in
  9649. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9650. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9651. esac
  9652. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9653. else
  9654. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9655. fi
  9656. library_names_spec=
  9657. libname_spec='lib$name'
  9658. soname_spec=
  9659. shrext_cmds=.so
  9660. postinstall_cmds=
  9661. postuninstall_cmds=
  9662. finish_cmds=
  9663. finish_eval=
  9664. shlibpath_var=
  9665. shlibpath_overrides_runpath=unknown
  9666. version_type=none
  9667. dynamic_linker="$host_os ld.so"
  9668. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9669. need_lib_prefix=unknown
  9670. hardcode_into_libs=no
  9671. # when you set need_version to no, make sure it does not cause -set_version
  9672. # flags to be left without arguments
  9673. need_version=unknown
  9674. case $host_os in
  9675. aix3*)
  9676. version_type=linux # correct to gnu/linux during the next big refactor
  9677. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9678. shlibpath_var=LIBPATH
  9679. # AIX 3 has no versioning support, so we append a major version to the name.
  9680. soname_spec='$libname$release$shared_ext$major'
  9681. ;;
  9682. aix[4-9]*)
  9683. version_type=linux # correct to gnu/linux during the next big refactor
  9684. need_lib_prefix=no
  9685. need_version=no
  9686. hardcode_into_libs=yes
  9687. if test ia64 = "$host_cpu"; then
  9688. # AIX 5 supports IA64
  9689. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. else
  9692. # With GCC up to 2.95.x, collect2 would create an import file
  9693. # for dependence libraries. The import file would start with
  9694. # the line '#! .'. This would cause the generated library to
  9695. # depend on '.', always an invalid library. This was fixed in
  9696. # development snapshots of GCC prior to 3.0.
  9697. case $host_os in
  9698. aix4 | aix4.[01] | aix4.[01].*)
  9699. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9700. echo ' yes '
  9701. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9702. :
  9703. else
  9704. can_build_shared=no
  9705. fi
  9706. ;;
  9707. esac
  9708. # Using Import Files as archive members, it is possible to support
  9709. # filename-based versioning of shared library archives on AIX. While
  9710. # this would work for both with and without runtime linking, it will
  9711. # prevent static linking of such archives. So we do filename-based
  9712. # shared library versioning with .so extension only, which is used
  9713. # when both runtime linking and shared linking is enabled.
  9714. # Unfortunately, runtime linking may impact performance, so we do
  9715. # not want this to be the default eventually. Also, we use the
  9716. # versioned .so libs for executables only if there is the -brtl
  9717. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9718. # To allow for filename-based versioning support, we need to create
  9719. # libNAME.so.V as an archive file, containing:
  9720. # *) an Import File, referring to the versioned filename of the
  9721. # archive as well as the shared archive member, telling the
  9722. # bitwidth (32 or 64) of that shared object, and providing the
  9723. # list of exported symbols of that shared object, eventually
  9724. # decorated with the 'weak' keyword
  9725. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9726. # it being seen by the linker.
  9727. # At run time we better use the real file rather than another symlink,
  9728. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9729. case $with_aix_soname,$aix_use_runtimelinking in
  9730. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9731. # soname into executable. Probably we can add versioning support to
  9732. # collect2, so additional links can be useful in future.
  9733. aix,yes) # traditional libtool
  9734. dynamic_linker='AIX unversionable lib.so'
  9735. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9736. # instead of lib<name>.a to let people know that these are not
  9737. # typical AIX shared libraries.
  9738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9739. ;;
  9740. aix,no) # traditional AIX only
  9741. dynamic_linker='AIX lib.a(lib.so.V)'
  9742. # We preserve .a as extension for shared libraries through AIX4.2
  9743. # and later when we are not doing run time linking.
  9744. library_names_spec='$libname$release.a $libname.a'
  9745. soname_spec='$libname$release$shared_ext$major'
  9746. ;;
  9747. svr4,*) # full svr4 only
  9748. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9749. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9750. # We do not specify a path in Import Files, so LIBPATH fires.
  9751. shlibpath_overrides_runpath=yes
  9752. ;;
  9753. *,yes) # both, prefer svr4
  9754. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9755. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9756. # unpreferred sharedlib libNAME.a needs extra handling
  9757. 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"'
  9758. 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"'
  9759. # We do not specify a path in Import Files, so LIBPATH fires.
  9760. shlibpath_overrides_runpath=yes
  9761. ;;
  9762. *,no) # both, prefer aix
  9763. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9764. library_names_spec='$libname$release.a $libname.a'
  9765. soname_spec='$libname$release$shared_ext$major'
  9766. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9767. 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)'
  9768. 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"'
  9769. ;;
  9770. esac
  9771. shlibpath_var=LIBPATH
  9772. fi
  9773. ;;
  9774. amigaos*)
  9775. case $host_cpu in
  9776. powerpc)
  9777. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9778. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9779. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9780. ;;
  9781. m68k)
  9782. library_names_spec='$libname.ixlibrary $libname.a'
  9783. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9784. 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'
  9785. ;;
  9786. esac
  9787. ;;
  9788. beos*)
  9789. library_names_spec='$libname$shared_ext'
  9790. dynamic_linker="$host_os ld.so"
  9791. shlibpath_var=LIBRARY_PATH
  9792. ;;
  9793. bsdi[45]*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. need_version=no
  9796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9797. soname_spec='$libname$release$shared_ext$major'
  9798. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9801. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9802. # the default ld.so.conf also contains /usr/contrib/lib and
  9803. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9804. # libtool to hard-code these into programs
  9805. ;;
  9806. cygwin* | mingw* | pw32* | cegcc*)
  9807. version_type=windows
  9808. shrext_cmds=.dll
  9809. need_version=no
  9810. need_lib_prefix=no
  9811. case $GCC,$cc_basename in
  9812. yes,*)
  9813. # gcc
  9814. library_names_spec='$libname.dll.a'
  9815. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9816. postinstall_cmds='base_file=`basename \$file`~
  9817. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9818. dldir=$destdir/`dirname \$dlpath`~
  9819. test -d \$dldir || mkdir -p \$dldir~
  9820. $install_prog $dir/$dlname \$dldir/$dlname~
  9821. chmod a+x \$dldir/$dlname~
  9822. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9823. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9824. fi'
  9825. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9826. dlpath=$dir/\$dldll~
  9827. $RM \$dlpath'
  9828. shlibpath_overrides_runpath=yes
  9829. case $host_os in
  9830. cygwin*)
  9831. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9832. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9833. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9834. ;;
  9835. mingw* | cegcc*)
  9836. # MinGW DLLs use traditional 'lib' prefix
  9837. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9838. ;;
  9839. pw32*)
  9840. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9841. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9842. ;;
  9843. esac
  9844. dynamic_linker='Win32 ld.exe'
  9845. ;;
  9846. *,cl*)
  9847. # Native MSVC
  9848. libname_spec='$name'
  9849. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9850. library_names_spec='$libname.dll.lib'
  9851. case $build_os in
  9852. mingw*)
  9853. sys_lib_search_path_spec=
  9854. lt_save_ifs=$IFS
  9855. IFS=';'
  9856. for lt_path in $LIB
  9857. do
  9858. IFS=$lt_save_ifs
  9859. # Let DOS variable expansion print the short 8.3 style file name.
  9860. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9861. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9862. done
  9863. IFS=$lt_save_ifs
  9864. # Convert to MSYS style.
  9865. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9866. ;;
  9867. cygwin*)
  9868. # Convert to unix form, then to dos form, then back to unix form
  9869. # but this time dos style (no spaces!) so that the unix form looks
  9870. # like /cygdrive/c/PROGRA~1:/cygdr...
  9871. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9872. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9873. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9874. ;;
  9875. *)
  9876. sys_lib_search_path_spec=$LIB
  9877. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9878. # It is most probably a Windows format PATH.
  9879. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9880. else
  9881. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9882. fi
  9883. # FIXME: find the short name or the path components, as spaces are
  9884. # common. (e.g. "Program Files" -> "PROGRA~1")
  9885. ;;
  9886. esac
  9887. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9888. postinstall_cmds='base_file=`basename \$file`~
  9889. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9890. dldir=$destdir/`dirname \$dlpath`~
  9891. test -d \$dldir || mkdir -p \$dldir~
  9892. $install_prog $dir/$dlname \$dldir/$dlname'
  9893. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9894. dlpath=$dir/\$dldll~
  9895. $RM \$dlpath'
  9896. shlibpath_overrides_runpath=yes
  9897. dynamic_linker='Win32 link.exe'
  9898. ;;
  9899. *)
  9900. # Assume MSVC wrapper
  9901. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9902. dynamic_linker='Win32 ld.exe'
  9903. ;;
  9904. esac
  9905. # FIXME: first we should search . and the directory the executable is in
  9906. shlibpath_var=PATH
  9907. ;;
  9908. darwin* | rhapsody*)
  9909. dynamic_linker="$host_os dyld"
  9910. version_type=darwin
  9911. need_lib_prefix=no
  9912. need_version=no
  9913. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  9914. soname_spec='$libname$release$major$shared_ext'
  9915. shlibpath_overrides_runpath=yes
  9916. shlibpath_var=DYLD_LIBRARY_PATH
  9917. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  9918. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9919. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9920. ;;
  9921. dgux*)
  9922. version_type=linux # correct to gnu/linux during the next big refactor
  9923. need_lib_prefix=no
  9924. need_version=no
  9925. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9926. soname_spec='$libname$release$shared_ext$major'
  9927. shlibpath_var=LD_LIBRARY_PATH
  9928. ;;
  9929. freebsd* | dragonfly*)
  9930. # DragonFly does not have aout. When/if they implement a new
  9931. # versioning mechanism, adjust this.
  9932. if test -x /usr/bin/objformat; then
  9933. objformat=`/usr/bin/objformat`
  9934. else
  9935. case $host_os in
  9936. freebsd[23].*) objformat=aout ;;
  9937. *) objformat=elf ;;
  9938. esac
  9939. fi
  9940. # Handle Gentoo/FreeBSD as it was Linux
  9941. case $host_vendor in
  9942. gentoo)
  9943. version_type=linux ;;
  9944. *)
  9945. version_type=freebsd-$objformat ;;
  9946. esac
  9947. case $version_type in
  9948. freebsd-elf*)
  9949. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9950. soname_spec='$libname$release$shared_ext$major'
  9951. need_version=no
  9952. need_lib_prefix=no
  9953. ;;
  9954. freebsd-*)
  9955. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9956. need_version=yes
  9957. ;;
  9958. linux)
  9959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9960. soname_spec='${libname}${release}${shared_ext}$major'
  9961. need_lib_prefix=no
  9962. need_version=no
  9963. ;;
  9964. esac
  9965. shlibpath_var=LD_LIBRARY_PATH
  9966. case $host_os in
  9967. freebsd2.*)
  9968. shlibpath_overrides_runpath=yes
  9969. ;;
  9970. freebsd3.[01]* | freebsdelf3.[01]*)
  9971. shlibpath_overrides_runpath=yes
  9972. hardcode_into_libs=yes
  9973. ;;
  9974. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9975. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9976. shlibpath_overrides_runpath=no
  9977. hardcode_into_libs=yes
  9978. ;;
  9979. *) # from 4.6 on, and DragonFly
  9980. shlibpath_overrides_runpath=yes
  9981. hardcode_into_libs=yes
  9982. ;;
  9983. esac
  9984. ;;
  9985. haiku*)
  9986. version_type=linux # correct to gnu/linux during the next big refactor
  9987. need_lib_prefix=no
  9988. need_version=no
  9989. dynamic_linker="$host_os runtime_loader"
  9990. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9991. soname_spec='$libname$release$shared_ext$major'
  9992. shlibpath_var=LIBRARY_PATH
  9993. shlibpath_overrides_runpath=no
  9994. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9995. hardcode_into_libs=yes
  9996. ;;
  9997. hpux9* | hpux10* | hpux11*)
  9998. # Give a soname corresponding to the major version so that dld.sl refuses to
  9999. # link against other versions.
  10000. version_type=sunos
  10001. need_lib_prefix=no
  10002. need_version=no
  10003. case $host_cpu in
  10004. ia64*)
  10005. shrext_cmds='.so'
  10006. hardcode_into_libs=yes
  10007. dynamic_linker="$host_os dld.so"
  10008. shlibpath_var=LD_LIBRARY_PATH
  10009. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10010. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10011. soname_spec='$libname$release$shared_ext$major'
  10012. if test 32 = "$HPUX_IA64_MODE"; then
  10013. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10014. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10015. else
  10016. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10017. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10018. fi
  10019. ;;
  10020. hppa*64*)
  10021. shrext_cmds='.sl'
  10022. hardcode_into_libs=yes
  10023. dynamic_linker="$host_os dld.sl"
  10024. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10025. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10026. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10027. soname_spec='$libname$release$shared_ext$major'
  10028. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10029. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10030. ;;
  10031. *)
  10032. shrext_cmds='.sl'
  10033. dynamic_linker="$host_os dld.sl"
  10034. shlibpath_var=SHLIB_PATH
  10035. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10036. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10037. soname_spec='$libname$release$shared_ext$major'
  10038. ;;
  10039. esac
  10040. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10041. postinstall_cmds='chmod 555 $lib'
  10042. # or fails outright, so override atomically:
  10043. install_override_mode=555
  10044. ;;
  10045. interix[3-9]*)
  10046. version_type=linux # correct to gnu/linux during the next big refactor
  10047. need_lib_prefix=no
  10048. need_version=no
  10049. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10050. soname_spec='$libname$release$shared_ext$major'
  10051. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10052. shlibpath_var=LD_LIBRARY_PATH
  10053. shlibpath_overrides_runpath=no
  10054. hardcode_into_libs=yes
  10055. ;;
  10056. irix5* | irix6* | nonstopux*)
  10057. case $host_os in
  10058. nonstopux*) version_type=nonstopux ;;
  10059. *)
  10060. if test yes = "$lt_cv_prog_gnu_ld"; then
  10061. version_type=linux # correct to gnu/linux during the next big refactor
  10062. else
  10063. version_type=irix
  10064. fi ;;
  10065. esac
  10066. need_lib_prefix=no
  10067. need_version=no
  10068. soname_spec='$libname$release$shared_ext$major'
  10069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10070. case $host_os in
  10071. irix5* | nonstopux*)
  10072. libsuff= shlibsuff=
  10073. ;;
  10074. *)
  10075. case $LD in # libtool.m4 will add one of these switches to LD
  10076. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10077. libsuff= shlibsuff= libmagic=32-bit;;
  10078. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10079. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10080. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10081. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10082. *) libsuff= shlibsuff= libmagic=never-match;;
  10083. esac
  10084. ;;
  10085. esac
  10086. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10087. shlibpath_overrides_runpath=no
  10088. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10089. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10090. hardcode_into_libs=yes
  10091. ;;
  10092. # No shared lib support for Linux oldld, aout, or coff.
  10093. linux*oldld* | linux*aout* | linux*coff*)
  10094. dynamic_linker=no
  10095. ;;
  10096. linux*android*)
  10097. version_type=none # Android doesn't support versioned libraries.
  10098. need_lib_prefix=no
  10099. need_version=no
  10100. library_names_spec='$libname$release$shared_ext'
  10101. soname_spec='$libname$release$shared_ext'
  10102. finish_cmds=
  10103. shlibpath_var=LD_LIBRARY_PATH
  10104. shlibpath_overrides_runpath=yes
  10105. # This implies no fast_install, which is unacceptable.
  10106. # Some rework will be needed to allow for fast_install
  10107. # before this can be enabled.
  10108. hardcode_into_libs=yes
  10109. dynamic_linker='Android linker'
  10110. # Don't embed -rpath directories since the linker doesn't support them.
  10111. hardcode_libdir_flag_spec='-L$libdir'
  10112. ;;
  10113. # This must be glibc/ELF.
  10114. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10115. version_type=linux # correct to gnu/linux during the next big refactor
  10116. need_lib_prefix=no
  10117. need_version=no
  10118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10119. soname_spec='$libname$release$shared_ext$major'
  10120. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. shlibpath_overrides_runpath=no
  10123. # Some binutils ld are patched to set DT_RUNPATH
  10124. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. lt_cv_shlibpath_overrides_runpath=no
  10128. save_LDFLAGS=$LDFLAGS
  10129. save_libdir=$libdir
  10130. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10131. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10133. /* end confdefs.h. */
  10134. int
  10135. main ()
  10136. {
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_c_try_link "$LINENO"; then :
  10142. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10143. lt_cv_shlibpath_overrides_runpath=yes
  10144. fi
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. LDFLAGS=$save_LDFLAGS
  10149. libdir=$save_libdir
  10150. fi
  10151. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10152. # This implies no fast_install, which is unacceptable.
  10153. # Some rework will be needed to allow for fast_install
  10154. # before this can be enabled.
  10155. hardcode_into_libs=yes
  10156. # Ideally, we could use ldconfig to report *all* directores which are
  10157. # searched for libraries, however this is still not possible. Aside from not
  10158. # being certain /sbin/ldconfig is available, command
  10159. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10160. # even though it is searched at run-time. Try to do the best guess by
  10161. # appending ld.so.conf contents (and includes) to the search path.
  10162. if test -f /etc/ld.so.conf; then
  10163. 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' ' '`
  10164. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10165. fi
  10166. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10167. # powerpc, because MkLinux only supported shared libraries with the
  10168. # GNU dynamic linker. Since this was broken with cross compilers,
  10169. # most powerpc-linux boxes support dynamic linking these days and
  10170. # people can always --disable-shared, the test was removed, and we
  10171. # assume the GNU/Linux dynamic linker is in use.
  10172. dynamic_linker='GNU/Linux ld.so'
  10173. ;;
  10174. netbsd*)
  10175. version_type=sunos
  10176. need_lib_prefix=no
  10177. need_version=no
  10178. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10179. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10180. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10181. dynamic_linker='NetBSD (a.out) ld.so'
  10182. else
  10183. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10184. soname_spec='$libname$release$shared_ext$major'
  10185. dynamic_linker='NetBSD ld.elf_so'
  10186. fi
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. shlibpath_overrides_runpath=yes
  10189. hardcode_into_libs=yes
  10190. ;;
  10191. newsos6)
  10192. version_type=linux # correct to gnu/linux during the next big refactor
  10193. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10194. shlibpath_var=LD_LIBRARY_PATH
  10195. shlibpath_overrides_runpath=yes
  10196. ;;
  10197. *nto* | *qnx*)
  10198. version_type=qnx
  10199. need_lib_prefix=no
  10200. need_version=no
  10201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10202. soname_spec='$libname$release$shared_ext$major'
  10203. shlibpath_var=LD_LIBRARY_PATH
  10204. shlibpath_overrides_runpath=no
  10205. hardcode_into_libs=yes
  10206. dynamic_linker='ldqnx.so'
  10207. ;;
  10208. openbsd* | bitrig*)
  10209. version_type=sunos
  10210. sys_lib_dlsearch_path_spec=/usr/lib
  10211. need_lib_prefix=no
  10212. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10213. need_version=no
  10214. else
  10215. need_version=yes
  10216. fi
  10217. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10218. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10219. shlibpath_var=LD_LIBRARY_PATH
  10220. shlibpath_overrides_runpath=yes
  10221. ;;
  10222. os2*)
  10223. libname_spec='$name'
  10224. version_type=windows
  10225. shrext_cmds=.dll
  10226. need_version=no
  10227. need_lib_prefix=no
  10228. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10229. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10230. v=$($ECHO $release$versuffix | tr -d .-);
  10231. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10232. $ECHO $n$v`$shared_ext'
  10233. library_names_spec='${libname}_dll.$libext'
  10234. dynamic_linker='OS/2 ld.exe'
  10235. shlibpath_var=BEGINLIBPATH
  10236. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10237. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10238. postinstall_cmds='base_file=`basename \$file`~
  10239. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10240. dldir=$destdir/`dirname \$dlpath`~
  10241. test -d \$dldir || mkdir -p \$dldir~
  10242. $install_prog $dir/$dlname \$dldir/$dlname~
  10243. chmod a+x \$dldir/$dlname~
  10244. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10245. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10246. fi'
  10247. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10248. dlpath=$dir/\$dldll~
  10249. $RM \$dlpath'
  10250. ;;
  10251. osf3* | osf4* | osf5*)
  10252. version_type=osf
  10253. need_lib_prefix=no
  10254. need_version=no
  10255. soname_spec='$libname$release$shared_ext$major'
  10256. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10257. shlibpath_var=LD_LIBRARY_PATH
  10258. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10259. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10260. ;;
  10261. rdos*)
  10262. dynamic_linker=no
  10263. ;;
  10264. solaris*)
  10265. version_type=linux # correct to gnu/linux during the next big refactor
  10266. need_lib_prefix=no
  10267. need_version=no
  10268. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10269. soname_spec='$libname$release$shared_ext$major'
  10270. shlibpath_var=LD_LIBRARY_PATH
  10271. shlibpath_overrides_runpath=yes
  10272. hardcode_into_libs=yes
  10273. # ldd complains unless libraries are executable
  10274. postinstall_cmds='chmod +x $lib'
  10275. ;;
  10276. sunos4*)
  10277. version_type=sunos
  10278. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10279. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10280. shlibpath_var=LD_LIBRARY_PATH
  10281. shlibpath_overrides_runpath=yes
  10282. if test yes = "$with_gnu_ld"; then
  10283. need_lib_prefix=no
  10284. fi
  10285. need_version=yes
  10286. ;;
  10287. sysv4 | sysv4.3*)
  10288. version_type=linux # correct to gnu/linux during the next big refactor
  10289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10290. soname_spec='$libname$release$shared_ext$major'
  10291. shlibpath_var=LD_LIBRARY_PATH
  10292. case $host_vendor in
  10293. sni)
  10294. shlibpath_overrides_runpath=no
  10295. need_lib_prefix=no
  10296. runpath_var=LD_RUN_PATH
  10297. ;;
  10298. siemens)
  10299. need_lib_prefix=no
  10300. ;;
  10301. motorola)
  10302. need_lib_prefix=no
  10303. need_version=no
  10304. shlibpath_overrides_runpath=no
  10305. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10306. ;;
  10307. esac
  10308. ;;
  10309. sysv4*MP*)
  10310. if test -d /usr/nec; then
  10311. version_type=linux # correct to gnu/linux during the next big refactor
  10312. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10313. soname_spec='$libname$shared_ext.$major'
  10314. shlibpath_var=LD_LIBRARY_PATH
  10315. fi
  10316. ;;
  10317. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10318. version_type=sco
  10319. need_lib_prefix=no
  10320. need_version=no
  10321. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10322. soname_spec='$libname$release$shared_ext$major'
  10323. shlibpath_var=LD_LIBRARY_PATH
  10324. shlibpath_overrides_runpath=yes
  10325. hardcode_into_libs=yes
  10326. if test yes = "$with_gnu_ld"; then
  10327. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10328. else
  10329. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10330. case $host_os in
  10331. sco3.2v5*)
  10332. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10333. ;;
  10334. esac
  10335. fi
  10336. sys_lib_dlsearch_path_spec='/usr/lib'
  10337. ;;
  10338. tpf*)
  10339. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10340. version_type=linux # correct to gnu/linux during the next big refactor
  10341. need_lib_prefix=no
  10342. need_version=no
  10343. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10344. shlibpath_var=LD_LIBRARY_PATH
  10345. shlibpath_overrides_runpath=no
  10346. hardcode_into_libs=yes
  10347. ;;
  10348. uts4*)
  10349. version_type=linux # correct to gnu/linux during the next big refactor
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10351. soname_spec='$libname$release$shared_ext$major'
  10352. shlibpath_var=LD_LIBRARY_PATH
  10353. ;;
  10354. *)
  10355. dynamic_linker=no
  10356. ;;
  10357. esac
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10359. $as_echo "$dynamic_linker" >&6; }
  10360. test no = "$dynamic_linker" && can_build_shared=no
  10361. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10362. if test yes = "$GCC"; then
  10363. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10364. fi
  10365. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10366. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10367. fi
  10368. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10369. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10370. fi
  10371. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10372. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10373. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10374. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10375. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10376. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10378. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10379. hardcode_action=
  10380. if test -n "$hardcode_libdir_flag_spec" ||
  10381. test -n "$runpath_var" ||
  10382. test yes = "$hardcode_automatic"; then
  10383. # We can hardcode non-existent directories.
  10384. if test no != "$hardcode_direct" &&
  10385. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10386. # have to relink, otherwise we might link with an installed library
  10387. # when we should be linking with a yet-to-be-installed one
  10388. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10389. test no != "$hardcode_minus_L"; then
  10390. # Linking always hardcodes the temporary library directory.
  10391. hardcode_action=relink
  10392. else
  10393. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10394. hardcode_action=immediate
  10395. fi
  10396. else
  10397. # We cannot hardcode anything, or else we can only hardcode existing
  10398. # directories.
  10399. hardcode_action=unsupported
  10400. fi
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10402. $as_echo "$hardcode_action" >&6; }
  10403. if test relink = "$hardcode_action" ||
  10404. test yes = "$inherit_rpath"; then
  10405. # Fast installation is not supported
  10406. enable_fast_install=no
  10407. elif test yes = "$shlibpath_overrides_runpath" ||
  10408. test no = "$enable_shared"; then
  10409. # Fast installation is not necessary
  10410. enable_fast_install=needless
  10411. fi
  10412. if test yes != "$enable_dlopen"; then
  10413. enable_dlopen=unknown
  10414. enable_dlopen_self=unknown
  10415. enable_dlopen_self_static=unknown
  10416. else
  10417. lt_cv_dlopen=no
  10418. lt_cv_dlopen_libs=
  10419. case $host_os in
  10420. beos*)
  10421. lt_cv_dlopen=load_add_on
  10422. lt_cv_dlopen_libs=
  10423. lt_cv_dlopen_self=yes
  10424. ;;
  10425. mingw* | pw32* | cegcc*)
  10426. lt_cv_dlopen=LoadLibrary
  10427. lt_cv_dlopen_libs=
  10428. ;;
  10429. cygwin*)
  10430. lt_cv_dlopen=dlopen
  10431. lt_cv_dlopen_libs=
  10432. ;;
  10433. darwin*)
  10434. # if libdl is installed we need to link against it
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10436. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10437. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. ac_check_lib_save_LIBS=$LIBS
  10441. LIBS="-ldl $LIBS"
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. /* Override any GCC internal prototype to avoid an error.
  10445. Use char because int might match the return type of a GCC
  10446. builtin and then its argument prototype would still apply. */
  10447. #ifdef __cplusplus
  10448. extern "C"
  10449. #endif
  10450. char dlopen ();
  10451. int
  10452. main ()
  10453. {
  10454. return dlopen ();
  10455. ;
  10456. return 0;
  10457. }
  10458. _ACEOF
  10459. if ac_fn_c_try_link "$LINENO"; then :
  10460. ac_cv_lib_dl_dlopen=yes
  10461. else
  10462. ac_cv_lib_dl_dlopen=no
  10463. fi
  10464. rm -f core conftest.err conftest.$ac_objext \
  10465. conftest$ac_exeext conftest.$ac_ext
  10466. LIBS=$ac_check_lib_save_LIBS
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10469. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10470. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10471. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10472. else
  10473. lt_cv_dlopen=dyld
  10474. lt_cv_dlopen_libs=
  10475. lt_cv_dlopen_self=yes
  10476. fi
  10477. ;;
  10478. tpf*)
  10479. # Don't try to run any link tests for TPF. We know it's impossible
  10480. # because TPF is a cross-compiler, and we know how we open DSOs.
  10481. lt_cv_dlopen=dlopen
  10482. lt_cv_dlopen_libs=
  10483. lt_cv_dlopen_self=no
  10484. ;;
  10485. *)
  10486. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10487. if test "x$ac_cv_func_shl_load" = xyes; then :
  10488. lt_cv_dlopen=shl_load
  10489. else
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10491. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10492. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10493. $as_echo_n "(cached) " >&6
  10494. else
  10495. ac_check_lib_save_LIBS=$LIBS
  10496. LIBS="-ldld $LIBS"
  10497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10498. /* end confdefs.h. */
  10499. /* Override any GCC internal prototype to avoid an error.
  10500. Use char because int might match the return type of a GCC
  10501. builtin and then its argument prototype would still apply. */
  10502. #ifdef __cplusplus
  10503. extern "C"
  10504. #endif
  10505. char shl_load ();
  10506. int
  10507. main ()
  10508. {
  10509. return shl_load ();
  10510. ;
  10511. return 0;
  10512. }
  10513. _ACEOF
  10514. if ac_fn_c_try_link "$LINENO"; then :
  10515. ac_cv_lib_dld_shl_load=yes
  10516. else
  10517. ac_cv_lib_dld_shl_load=no
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext \
  10520. conftest$ac_exeext conftest.$ac_ext
  10521. LIBS=$ac_check_lib_save_LIBS
  10522. fi
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10524. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10525. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10526. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10527. else
  10528. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10529. if test "x$ac_cv_func_dlopen" = xyes; then :
  10530. lt_cv_dlopen=dlopen
  10531. else
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10533. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10534. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. ac_check_lib_save_LIBS=$LIBS
  10538. LIBS="-ldl $LIBS"
  10539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10540. /* end confdefs.h. */
  10541. /* Override any GCC internal prototype to avoid an error.
  10542. Use char because int might match the return type of a GCC
  10543. builtin and then its argument prototype would still apply. */
  10544. #ifdef __cplusplus
  10545. extern "C"
  10546. #endif
  10547. char dlopen ();
  10548. int
  10549. main ()
  10550. {
  10551. return dlopen ();
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. if ac_fn_c_try_link "$LINENO"; then :
  10557. ac_cv_lib_dl_dlopen=yes
  10558. else
  10559. ac_cv_lib_dl_dlopen=no
  10560. fi
  10561. rm -f core conftest.err conftest.$ac_objext \
  10562. conftest$ac_exeext conftest.$ac_ext
  10563. LIBS=$ac_check_lib_save_LIBS
  10564. fi
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10566. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10567. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10568. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10569. else
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10571. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10572. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10573. $as_echo_n "(cached) " >&6
  10574. else
  10575. ac_check_lib_save_LIBS=$LIBS
  10576. LIBS="-lsvld $LIBS"
  10577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10578. /* end confdefs.h. */
  10579. /* Override any GCC internal prototype to avoid an error.
  10580. Use char because int might match the return type of a GCC
  10581. builtin and then its argument prototype would still apply. */
  10582. #ifdef __cplusplus
  10583. extern "C"
  10584. #endif
  10585. char dlopen ();
  10586. int
  10587. main ()
  10588. {
  10589. return dlopen ();
  10590. ;
  10591. return 0;
  10592. }
  10593. _ACEOF
  10594. if ac_fn_c_try_link "$LINENO"; then :
  10595. ac_cv_lib_svld_dlopen=yes
  10596. else
  10597. ac_cv_lib_svld_dlopen=no
  10598. fi
  10599. rm -f core conftest.err conftest.$ac_objext \
  10600. conftest$ac_exeext conftest.$ac_ext
  10601. LIBS=$ac_check_lib_save_LIBS
  10602. fi
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10604. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10605. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10606. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10607. else
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10609. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10610. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10611. $as_echo_n "(cached) " >&6
  10612. else
  10613. ac_check_lib_save_LIBS=$LIBS
  10614. LIBS="-ldld $LIBS"
  10615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10616. /* end confdefs.h. */
  10617. /* Override any GCC internal prototype to avoid an error.
  10618. Use char because int might match the return type of a GCC
  10619. builtin and then its argument prototype would still apply. */
  10620. #ifdef __cplusplus
  10621. extern "C"
  10622. #endif
  10623. char dld_link ();
  10624. int
  10625. main ()
  10626. {
  10627. return dld_link ();
  10628. ;
  10629. return 0;
  10630. }
  10631. _ACEOF
  10632. if ac_fn_c_try_link "$LINENO"; then :
  10633. ac_cv_lib_dld_dld_link=yes
  10634. else
  10635. ac_cv_lib_dld_dld_link=no
  10636. fi
  10637. rm -f core conftest.err conftest.$ac_objext \
  10638. conftest$ac_exeext conftest.$ac_ext
  10639. LIBS=$ac_check_lib_save_LIBS
  10640. fi
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10642. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10643. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10644. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10645. fi
  10646. fi
  10647. fi
  10648. fi
  10649. fi
  10650. fi
  10651. ;;
  10652. esac
  10653. if test no = "$lt_cv_dlopen"; then
  10654. enable_dlopen=no
  10655. else
  10656. enable_dlopen=yes
  10657. fi
  10658. case $lt_cv_dlopen in
  10659. dlopen)
  10660. save_CPPFLAGS=$CPPFLAGS
  10661. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10662. save_LDFLAGS=$LDFLAGS
  10663. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10664. save_LIBS=$LIBS
  10665. LIBS="$lt_cv_dlopen_libs $LIBS"
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10667. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10668. if ${lt_cv_dlopen_self+:} false; then :
  10669. $as_echo_n "(cached) " >&6
  10670. else
  10671. if test yes = "$cross_compiling"; then :
  10672. lt_cv_dlopen_self=cross
  10673. else
  10674. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10675. lt_status=$lt_dlunknown
  10676. cat > conftest.$ac_ext <<_LT_EOF
  10677. #line $LINENO "configure"
  10678. #include "confdefs.h"
  10679. #if HAVE_DLFCN_H
  10680. #include <dlfcn.h>
  10681. #endif
  10682. #include <stdio.h>
  10683. #ifdef RTLD_GLOBAL
  10684. # define LT_DLGLOBAL RTLD_GLOBAL
  10685. #else
  10686. # ifdef DL_GLOBAL
  10687. # define LT_DLGLOBAL DL_GLOBAL
  10688. # else
  10689. # define LT_DLGLOBAL 0
  10690. # endif
  10691. #endif
  10692. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10693. find out it does not work in some platform. */
  10694. #ifndef LT_DLLAZY_OR_NOW
  10695. # ifdef RTLD_LAZY
  10696. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10697. # else
  10698. # ifdef DL_LAZY
  10699. # define LT_DLLAZY_OR_NOW DL_LAZY
  10700. # else
  10701. # ifdef RTLD_NOW
  10702. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10703. # else
  10704. # ifdef DL_NOW
  10705. # define LT_DLLAZY_OR_NOW DL_NOW
  10706. # else
  10707. # define LT_DLLAZY_OR_NOW 0
  10708. # endif
  10709. # endif
  10710. # endif
  10711. # endif
  10712. #endif
  10713. /* When -fvisibility=hidden is used, assume the code has been annotated
  10714. correspondingly for the symbols needed. */
  10715. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10716. int fnord () __attribute__((visibility("default")));
  10717. #endif
  10718. int fnord () { return 42; }
  10719. int main ()
  10720. {
  10721. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10722. int status = $lt_dlunknown;
  10723. if (self)
  10724. {
  10725. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10726. else
  10727. {
  10728. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10729. else puts (dlerror ());
  10730. }
  10731. /* dlclose (self); */
  10732. }
  10733. else
  10734. puts (dlerror ());
  10735. return status;
  10736. }
  10737. _LT_EOF
  10738. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10739. (eval $ac_link) 2>&5
  10740. ac_status=$?
  10741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10742. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10743. (./conftest; exit; ) >&5 2>/dev/null
  10744. lt_status=$?
  10745. case x$lt_status in
  10746. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10747. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10748. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10749. esac
  10750. else :
  10751. # compilation failed
  10752. lt_cv_dlopen_self=no
  10753. fi
  10754. fi
  10755. rm -fr conftest*
  10756. fi
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10758. $as_echo "$lt_cv_dlopen_self" >&6; }
  10759. if test yes = "$lt_cv_dlopen_self"; then
  10760. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10762. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10763. if ${lt_cv_dlopen_self_static+:} false; then :
  10764. $as_echo_n "(cached) " >&6
  10765. else
  10766. if test yes = "$cross_compiling"; then :
  10767. lt_cv_dlopen_self_static=cross
  10768. else
  10769. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10770. lt_status=$lt_dlunknown
  10771. cat > conftest.$ac_ext <<_LT_EOF
  10772. #line $LINENO "configure"
  10773. #include "confdefs.h"
  10774. #if HAVE_DLFCN_H
  10775. #include <dlfcn.h>
  10776. #endif
  10777. #include <stdio.h>
  10778. #ifdef RTLD_GLOBAL
  10779. # define LT_DLGLOBAL RTLD_GLOBAL
  10780. #else
  10781. # ifdef DL_GLOBAL
  10782. # define LT_DLGLOBAL DL_GLOBAL
  10783. # else
  10784. # define LT_DLGLOBAL 0
  10785. # endif
  10786. #endif
  10787. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10788. find out it does not work in some platform. */
  10789. #ifndef LT_DLLAZY_OR_NOW
  10790. # ifdef RTLD_LAZY
  10791. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10792. # else
  10793. # ifdef DL_LAZY
  10794. # define LT_DLLAZY_OR_NOW DL_LAZY
  10795. # else
  10796. # ifdef RTLD_NOW
  10797. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10798. # else
  10799. # ifdef DL_NOW
  10800. # define LT_DLLAZY_OR_NOW DL_NOW
  10801. # else
  10802. # define LT_DLLAZY_OR_NOW 0
  10803. # endif
  10804. # endif
  10805. # endif
  10806. # endif
  10807. #endif
  10808. /* When -fvisibility=hidden is used, assume the code has been annotated
  10809. correspondingly for the symbols needed. */
  10810. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10811. int fnord () __attribute__((visibility("default")));
  10812. #endif
  10813. int fnord () { return 42; }
  10814. int main ()
  10815. {
  10816. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10817. int status = $lt_dlunknown;
  10818. if (self)
  10819. {
  10820. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10821. else
  10822. {
  10823. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10824. else puts (dlerror ());
  10825. }
  10826. /* dlclose (self); */
  10827. }
  10828. else
  10829. puts (dlerror ());
  10830. return status;
  10831. }
  10832. _LT_EOF
  10833. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10834. (eval $ac_link) 2>&5
  10835. ac_status=$?
  10836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10837. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10838. (./conftest; exit; ) >&5 2>/dev/null
  10839. lt_status=$?
  10840. case x$lt_status in
  10841. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10842. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10843. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10844. esac
  10845. else :
  10846. # compilation failed
  10847. lt_cv_dlopen_self_static=no
  10848. fi
  10849. fi
  10850. rm -fr conftest*
  10851. fi
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10853. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10854. fi
  10855. CPPFLAGS=$save_CPPFLAGS
  10856. LDFLAGS=$save_LDFLAGS
  10857. LIBS=$save_LIBS
  10858. ;;
  10859. esac
  10860. case $lt_cv_dlopen_self in
  10861. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10862. *) enable_dlopen_self=unknown ;;
  10863. esac
  10864. case $lt_cv_dlopen_self_static in
  10865. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10866. *) enable_dlopen_self_static=unknown ;;
  10867. esac
  10868. fi
  10869. striplib=
  10870. old_striplib=
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10872. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10873. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10874. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10875. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10877. $as_echo "yes" >&6; }
  10878. else
  10879. # FIXME - insert some real tests, host_os isn't really good enough
  10880. case $host_os in
  10881. darwin*)
  10882. if test -n "$STRIP"; then
  10883. striplib="$STRIP -x"
  10884. old_striplib="$STRIP -S"
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10886. $as_echo "yes" >&6; }
  10887. else
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10889. $as_echo "no" >&6; }
  10890. fi
  10891. ;;
  10892. *)
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10894. $as_echo "no" >&6; }
  10895. ;;
  10896. esac
  10897. fi
  10898. # Report what library types will actually be built
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10900. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10902. $as_echo "$can_build_shared" >&6; }
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10904. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10905. test no = "$can_build_shared" && enable_shared=no
  10906. # On AIX, shared libraries and static libraries use the same namespace, and
  10907. # are all built from PIC.
  10908. case $host_os in
  10909. aix3*)
  10910. test yes = "$enable_shared" && enable_static=no
  10911. if test -n "$RANLIB"; then
  10912. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10913. postinstall_cmds='$RANLIB $lib'
  10914. fi
  10915. ;;
  10916. aix[4-9]*)
  10917. if test ia64 != "$host_cpu"; then
  10918. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10919. yes,aix,yes) ;; # shared object as lib.so file only
  10920. yes,svr4,*) ;; # shared object as lib.so archive member only
  10921. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10922. esac
  10923. fi
  10924. ;;
  10925. esac
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10927. $as_echo "$enable_shared" >&6; }
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10929. $as_echo_n "checking whether to build static libraries... " >&6; }
  10930. # Make sure either enable_shared or enable_static is yes.
  10931. test yes = "$enable_shared" || enable_static=yes
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10933. $as_echo "$enable_static" >&6; }
  10934. fi
  10935. ac_ext=c
  10936. ac_cpp='$CPP $CPPFLAGS'
  10937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10940. CC=$lt_save_CC
  10941. ac_config_commands="$ac_config_commands libtool"
  10942. # Only expand once:
  10943. ac_ext=c
  10944. ac_cpp='$CPP $CPPFLAGS'
  10945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  10949. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  10950. if ${ac_cv_prog_cc_c99+:} false; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. ac_cv_prog_cc_c99=no
  10954. ac_save_CC=$CC
  10955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10956. /* end confdefs.h. */
  10957. #include <stdarg.h>
  10958. #include <stdbool.h>
  10959. #include <stdlib.h>
  10960. #include <wchar.h>
  10961. #include <stdio.h>
  10962. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  10963. #define debug(...) fprintf (stderr, __VA_ARGS__)
  10964. #define showlist(...) puts (#__VA_ARGS__)
  10965. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  10966. static void
  10967. test_varargs_macros (void)
  10968. {
  10969. int x = 1234;
  10970. int y = 5678;
  10971. debug ("Flag");
  10972. debug ("X = %d\n", x);
  10973. showlist (The first, second, and third items.);
  10974. report (x>y, "x is %d but y is %d", x, y);
  10975. }
  10976. // Check long long types.
  10977. #define BIG64 18446744073709551615ull
  10978. #define BIG32 4294967295ul
  10979. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  10980. #if !BIG_OK
  10981. your preprocessor is broken;
  10982. #endif
  10983. #if BIG_OK
  10984. #else
  10985. your preprocessor is broken;
  10986. #endif
  10987. static long long int bignum = -9223372036854775807LL;
  10988. static unsigned long long int ubignum = BIG64;
  10989. struct incomplete_array
  10990. {
  10991. int datasize;
  10992. double data[];
  10993. };
  10994. struct named_init {
  10995. int number;
  10996. const wchar_t *name;
  10997. double average;
  10998. };
  10999. typedef const char *ccp;
  11000. static inline int
  11001. test_restrict (ccp restrict text)
  11002. {
  11003. // See if C++-style comments work.
  11004. // Iterate through items via the restricted pointer.
  11005. // Also check for declarations in for loops.
  11006. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  11007. continue;
  11008. return 0;
  11009. }
  11010. // Check varargs and va_copy.
  11011. static void
  11012. test_varargs (const char *format, ...)
  11013. {
  11014. va_list args;
  11015. va_start (args, format);
  11016. va_list args_copy;
  11017. va_copy (args_copy, args);
  11018. const char *str;
  11019. int number;
  11020. float fnumber;
  11021. while (*format)
  11022. {
  11023. switch (*format++)
  11024. {
  11025. case 's': // string
  11026. str = va_arg (args_copy, const char *);
  11027. break;
  11028. case 'd': // int
  11029. number = va_arg (args_copy, int);
  11030. break;
  11031. case 'f': // float
  11032. fnumber = va_arg (args_copy, double);
  11033. break;
  11034. default:
  11035. break;
  11036. }
  11037. }
  11038. va_end (args_copy);
  11039. va_end (args);
  11040. }
  11041. int
  11042. main ()
  11043. {
  11044. // Check bool.
  11045. _Bool success = false;
  11046. // Check restrict.
  11047. if (test_restrict ("String literal") == 0)
  11048. success = true;
  11049. char *restrict newvar = "Another string";
  11050. // Check varargs.
  11051. test_varargs ("s, d' f .", "string", 65, 34.234);
  11052. test_varargs_macros ();
  11053. // Check flexible array members.
  11054. struct incomplete_array *ia =
  11055. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  11056. ia->datasize = 10;
  11057. for (int i = 0; i < ia->datasize; ++i)
  11058. ia->data[i] = i * 1.234;
  11059. // Check named initializers.
  11060. struct named_init ni = {
  11061. .number = 34,
  11062. .name = L"Test wide string",
  11063. .average = 543.34343,
  11064. };
  11065. ni.number = 58;
  11066. int dynamic_array[ni.number];
  11067. dynamic_array[ni.number - 1] = 543;
  11068. // work around unused variable warnings
  11069. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  11070. || dynamic_array[ni.number - 1] != 543);
  11071. ;
  11072. return 0;
  11073. }
  11074. _ACEOF
  11075. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  11076. do
  11077. CC="$ac_save_CC $ac_arg"
  11078. if ac_fn_c_try_compile "$LINENO"; then :
  11079. ac_cv_prog_cc_c99=$ac_arg
  11080. fi
  11081. rm -f core conftest.err conftest.$ac_objext
  11082. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11083. done
  11084. rm -f conftest.$ac_ext
  11085. CC=$ac_save_CC
  11086. fi
  11087. # AC_CACHE_VAL
  11088. case "x$ac_cv_prog_cc_c99" in
  11089. x)
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11091. $as_echo "none needed" >&6; } ;;
  11092. xno)
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11094. $as_echo "unsupported" >&6; } ;;
  11095. *)
  11096. CC="$CC $ac_cv_prog_cc_c99"
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11098. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  11099. esac
  11100. if test "x$ac_cv_prog_cc_c99" != xno; then :
  11101. fi
  11102. if test "$GCC" = yes; then :
  11103. for flag in -Wall -Wextra; do
  11104. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11106. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11107. if eval \${$as_CACHEVAR+:} false; then :
  11108. $as_echo_n "(cached) " >&6
  11109. else
  11110. ax_check_save_flags=$CFLAGS
  11111. CFLAGS="$CFLAGS $flag"
  11112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11113. /* end confdefs.h. */
  11114. int
  11115. main ()
  11116. {
  11117. ;
  11118. return 0;
  11119. }
  11120. _ACEOF
  11121. if ac_fn_c_try_compile "$LINENO"; then :
  11122. eval "$as_CACHEVAR=yes"
  11123. else
  11124. eval "$as_CACHEVAR=no"
  11125. fi
  11126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11127. CFLAGS=$ax_check_save_flags
  11128. fi
  11129. eval ac_res=\$$as_CACHEVAR
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11131. $as_echo "$ac_res" >&6; }
  11132. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11133. if ${CFLAGS+:} false; then :
  11134. case " $CFLAGS " in #(
  11135. *" $flag "*) :
  11136. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11137. (: CFLAGS already contains $flag) 2>&5
  11138. ac_status=$?
  11139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11140. test $ac_status = 0; } ;; #(
  11141. *) :
  11142. as_fn_append CFLAGS " $flag"
  11143. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11144. (: CFLAGS="$CFLAGS") 2>&5
  11145. ac_status=$?
  11146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11147. test $ac_status = 0; }
  11148. ;;
  11149. esac
  11150. else
  11151. CFLAGS=$flag
  11152. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11153. (: CFLAGS="$CFLAGS") 2>&5
  11154. ac_status=$?
  11155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11156. test $ac_status = 0; }
  11157. fi
  11158. else
  11159. :
  11160. fi
  11161. done
  11162. for flag in -fexceptions; do
  11163. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11165. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11166. if eval \${$as_CACHEVAR+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. ax_check_save_flags=$CFLAGS
  11170. CFLAGS="$CFLAGS $flag"
  11171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11172. /* end confdefs.h. */
  11173. int
  11174. main ()
  11175. {
  11176. ;
  11177. return 0;
  11178. }
  11179. _ACEOF
  11180. if ac_fn_c_try_compile "$LINENO"; then :
  11181. eval "$as_CACHEVAR=yes"
  11182. else
  11183. eval "$as_CACHEVAR=no"
  11184. fi
  11185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11186. CFLAGS=$ax_check_save_flags
  11187. fi
  11188. eval ac_res=\$$as_CACHEVAR
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11190. $as_echo "$ac_res" >&6; }
  11191. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11192. if ${CFLAGS+:} false; then :
  11193. case " $CFLAGS " in #(
  11194. *" $flag "*) :
  11195. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11196. (: CFLAGS already contains $flag) 2>&5
  11197. ac_status=$?
  11198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11199. test $ac_status = 0; } ;; #(
  11200. *) :
  11201. as_fn_append CFLAGS " $flag"
  11202. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11203. (: CFLAGS="$CFLAGS") 2>&5
  11204. ac_status=$?
  11205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11206. test $ac_status = 0; }
  11207. ;;
  11208. esac
  11209. else
  11210. CFLAGS=$flag
  11211. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11212. (: CFLAGS="$CFLAGS") 2>&5
  11213. ac_status=$?
  11214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11215. test $ac_status = 0; }
  11216. fi
  11217. else
  11218. :
  11219. fi
  11220. done
  11221. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  11222. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11224. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11225. if eval \${$as_CACHEVAR+:} false; then :
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. ax_check_save_flags=$CFLAGS
  11229. CFLAGS="$CFLAGS $flag"
  11230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11231. /* end confdefs.h. */
  11232. int
  11233. main ()
  11234. {
  11235. ;
  11236. return 0;
  11237. }
  11238. _ACEOF
  11239. if ac_fn_c_try_compile "$LINENO"; then :
  11240. eval "$as_CACHEVAR=yes"
  11241. else
  11242. eval "$as_CACHEVAR=no"
  11243. fi
  11244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11245. CFLAGS=$ax_check_save_flags
  11246. fi
  11247. eval ac_res=\$$as_CACHEVAR
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11249. $as_echo "$ac_res" >&6; }
  11250. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11251. if ${CFLAGS+:} false; then :
  11252. case " $CFLAGS " in #(
  11253. *" $flag "*) :
  11254. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11255. (: CFLAGS already contains $flag) 2>&5
  11256. ac_status=$?
  11257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11258. test $ac_status = 0; } ;; #(
  11259. *) :
  11260. as_fn_append CFLAGS " $flag"
  11261. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11262. (: CFLAGS="$CFLAGS") 2>&5
  11263. ac_status=$?
  11264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11265. test $ac_status = 0; }
  11266. ;;
  11267. esac
  11268. else
  11269. CFLAGS=$flag
  11270. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11271. (: CFLAGS="$CFLAGS") 2>&5
  11272. ac_status=$?
  11273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11274. test $ac_status = 0; }
  11275. fi
  11276. else
  11277. :
  11278. fi
  11279. done
  11280. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  11281. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11283. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11284. if eval \${$as_CACHEVAR+:} false; then :
  11285. $as_echo_n "(cached) " >&6
  11286. else
  11287. ax_check_save_flags=$CFLAGS
  11288. CFLAGS="$CFLAGS $flag"
  11289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11290. /* end confdefs.h. */
  11291. int
  11292. main ()
  11293. {
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. if ac_fn_c_try_compile "$LINENO"; then :
  11299. eval "$as_CACHEVAR=yes"
  11300. else
  11301. eval "$as_CACHEVAR=no"
  11302. fi
  11303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11304. CFLAGS=$ax_check_save_flags
  11305. fi
  11306. eval ac_res=\$$as_CACHEVAR
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11308. $as_echo "$ac_res" >&6; }
  11309. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11310. if ${CFLAGS+:} false; then :
  11311. case " $CFLAGS " in #(
  11312. *" $flag "*) :
  11313. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11314. (: CFLAGS already contains $flag) 2>&5
  11315. ac_status=$?
  11316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11317. test $ac_status = 0; } ;; #(
  11318. *) :
  11319. as_fn_append CFLAGS " $flag"
  11320. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11321. (: CFLAGS="$CFLAGS") 2>&5
  11322. ac_status=$?
  11323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11324. test $ac_status = 0; }
  11325. ;;
  11326. esac
  11327. else
  11328. CFLAGS=$flag
  11329. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11330. (: CFLAGS="$CFLAGS") 2>&5
  11331. ac_status=$?
  11332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11333. test $ac_status = 0; }
  11334. fi
  11335. else
  11336. :
  11337. fi
  11338. done
  11339. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  11340. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11342. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11343. if eval \${$as_CACHEVAR+:} false; then :
  11344. $as_echo_n "(cached) " >&6
  11345. else
  11346. ax_check_save_flags=$CFLAGS
  11347. CFLAGS="$CFLAGS $flag"
  11348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11349. /* end confdefs.h. */
  11350. int
  11351. main ()
  11352. {
  11353. ;
  11354. return 0;
  11355. }
  11356. _ACEOF
  11357. if ac_fn_c_try_compile "$LINENO"; then :
  11358. eval "$as_CACHEVAR=yes"
  11359. else
  11360. eval "$as_CACHEVAR=no"
  11361. fi
  11362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11363. CFLAGS=$ax_check_save_flags
  11364. fi
  11365. eval ac_res=\$$as_CACHEVAR
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11367. $as_echo "$ac_res" >&6; }
  11368. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11369. if ${CFLAGS+:} false; then :
  11370. case " $CFLAGS " in #(
  11371. *" $flag "*) :
  11372. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11373. (: CFLAGS already contains $flag) 2>&5
  11374. ac_status=$?
  11375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11376. test $ac_status = 0; } ;; #(
  11377. *) :
  11378. as_fn_append CFLAGS " $flag"
  11379. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11380. (: CFLAGS="$CFLAGS") 2>&5
  11381. ac_status=$?
  11382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11383. test $ac_status = 0; }
  11384. ;;
  11385. esac
  11386. else
  11387. CFLAGS=$flag
  11388. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11389. (: CFLAGS="$CFLAGS") 2>&5
  11390. ac_status=$?
  11391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11392. test $ac_status = 0; }
  11393. fi
  11394. else
  11395. :
  11396. fi
  11397. done
  11398. for flag in -Wshadow -Wformat=2 -Wmisleading-indentation; do
  11399. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11401. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11402. if eval \${$as_CACHEVAR+:} false; then :
  11403. $as_echo_n "(cached) " >&6
  11404. else
  11405. ax_check_save_flags=$CFLAGS
  11406. CFLAGS="$CFLAGS $flag"
  11407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11408. /* end confdefs.h. */
  11409. int
  11410. main ()
  11411. {
  11412. ;
  11413. return 0;
  11414. }
  11415. _ACEOF
  11416. if ac_fn_c_try_compile "$LINENO"; then :
  11417. eval "$as_CACHEVAR=yes"
  11418. else
  11419. eval "$as_CACHEVAR=no"
  11420. fi
  11421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11422. CFLAGS=$ax_check_save_flags
  11423. fi
  11424. eval ac_res=\$$as_CACHEVAR
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11426. $as_echo "$ac_res" >&6; }
  11427. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11428. if ${CFLAGS+:} false; then :
  11429. case " $CFLAGS " in #(
  11430. *" $flag "*) :
  11431. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11432. (: CFLAGS already contains $flag) 2>&5
  11433. ac_status=$?
  11434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11435. test $ac_status = 0; } ;; #(
  11436. *) :
  11437. as_fn_append CFLAGS " $flag"
  11438. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11439. (: CFLAGS="$CFLAGS") 2>&5
  11440. ac_status=$?
  11441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11442. test $ac_status = 0; }
  11443. ;;
  11444. esac
  11445. else
  11446. CFLAGS=$flag
  11447. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  11448. (: CFLAGS="$CFLAGS") 2>&5
  11449. ac_status=$?
  11450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11451. test $ac_status = 0; }
  11452. fi
  11453. else
  11454. :
  11455. fi
  11456. done
  11457. fi
  11458. ac_ext=cpp
  11459. ac_cpp='$CXXCPP $CPPFLAGS'
  11460. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11461. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11462. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11463. ac_ext=cpp
  11464. ac_cpp='$CXXCPP $CPPFLAGS'
  11465. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11466. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11467. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11468. if test -z "$CXX"; then
  11469. if test -n "$CCC"; then
  11470. CXX=$CCC
  11471. else
  11472. if test -n "$ac_tool_prefix"; then
  11473. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11474. do
  11475. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11476. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11478. $as_echo_n "checking for $ac_word... " >&6; }
  11479. if ${ac_cv_prog_CXX+:} false; then :
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. if test -n "$CXX"; then
  11483. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11484. else
  11485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11486. for as_dir in $PATH
  11487. do
  11488. IFS=$as_save_IFS
  11489. test -z "$as_dir" && as_dir=.
  11490. for ac_exec_ext in '' $ac_executable_extensions; do
  11491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11492. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11494. break 2
  11495. fi
  11496. done
  11497. done
  11498. IFS=$as_save_IFS
  11499. fi
  11500. fi
  11501. CXX=$ac_cv_prog_CXX
  11502. if test -n "$CXX"; then
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11504. $as_echo "$CXX" >&6; }
  11505. else
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11507. $as_echo "no" >&6; }
  11508. fi
  11509. test -n "$CXX" && break
  11510. done
  11511. fi
  11512. if test -z "$CXX"; then
  11513. ac_ct_CXX=$CXX
  11514. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11515. do
  11516. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11517. set dummy $ac_prog; ac_word=$2
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11519. $as_echo_n "checking for $ac_word... " >&6; }
  11520. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11521. $as_echo_n "(cached) " >&6
  11522. else
  11523. if test -n "$ac_ct_CXX"; then
  11524. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11525. else
  11526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11527. for as_dir in $PATH
  11528. do
  11529. IFS=$as_save_IFS
  11530. test -z "$as_dir" && as_dir=.
  11531. for ac_exec_ext in '' $ac_executable_extensions; do
  11532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11533. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11535. break 2
  11536. fi
  11537. done
  11538. done
  11539. IFS=$as_save_IFS
  11540. fi
  11541. fi
  11542. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11543. if test -n "$ac_ct_CXX"; then
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11545. $as_echo "$ac_ct_CXX" >&6; }
  11546. else
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11548. $as_echo "no" >&6; }
  11549. fi
  11550. test -n "$ac_ct_CXX" && break
  11551. done
  11552. if test "x$ac_ct_CXX" = x; then
  11553. CXX="g++"
  11554. else
  11555. case $cross_compiling:$ac_tool_warned in
  11556. yes:)
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11558. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11559. ac_tool_warned=yes ;;
  11560. esac
  11561. CXX=$ac_ct_CXX
  11562. fi
  11563. fi
  11564. fi
  11565. fi
  11566. # Provide some information about the compiler.
  11567. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11568. set X $ac_compile
  11569. ac_compiler=$2
  11570. for ac_option in --version -v -V -qversion; do
  11571. { { ac_try="$ac_compiler $ac_option >&5"
  11572. case "(($ac_try" in
  11573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11574. *) ac_try_echo=$ac_try;;
  11575. esac
  11576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11577. $as_echo "$ac_try_echo"; } >&5
  11578. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11579. ac_status=$?
  11580. if test -s conftest.err; then
  11581. sed '10a\
  11582. ... rest of stderr output deleted ...
  11583. 10q' conftest.err >conftest.er1
  11584. cat conftest.er1 >&5
  11585. fi
  11586. rm -f conftest.er1 conftest.err
  11587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11588. test $ac_status = 0; }
  11589. done
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11591. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11592. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11593. $as_echo_n "(cached) " >&6
  11594. else
  11595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11596. /* end confdefs.h. */
  11597. int
  11598. main ()
  11599. {
  11600. #ifndef __GNUC__
  11601. choke me
  11602. #endif
  11603. ;
  11604. return 0;
  11605. }
  11606. _ACEOF
  11607. if ac_fn_cxx_try_compile "$LINENO"; then :
  11608. ac_compiler_gnu=yes
  11609. else
  11610. ac_compiler_gnu=no
  11611. fi
  11612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11613. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11614. fi
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11616. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11617. if test $ac_compiler_gnu = yes; then
  11618. GXX=yes
  11619. else
  11620. GXX=
  11621. fi
  11622. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11623. ac_save_CXXFLAGS=$CXXFLAGS
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11625. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11626. if ${ac_cv_prog_cxx_g+:} false; then :
  11627. $as_echo_n "(cached) " >&6
  11628. else
  11629. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11630. ac_cxx_werror_flag=yes
  11631. ac_cv_prog_cxx_g=no
  11632. CXXFLAGS="-g"
  11633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11634. /* end confdefs.h. */
  11635. int
  11636. main ()
  11637. {
  11638. ;
  11639. return 0;
  11640. }
  11641. _ACEOF
  11642. if ac_fn_cxx_try_compile "$LINENO"; then :
  11643. ac_cv_prog_cxx_g=yes
  11644. else
  11645. CXXFLAGS=""
  11646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11647. /* end confdefs.h. */
  11648. int
  11649. main ()
  11650. {
  11651. ;
  11652. return 0;
  11653. }
  11654. _ACEOF
  11655. if ac_fn_cxx_try_compile "$LINENO"; then :
  11656. else
  11657. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11658. CXXFLAGS="-g"
  11659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11660. /* end confdefs.h. */
  11661. int
  11662. main ()
  11663. {
  11664. ;
  11665. return 0;
  11666. }
  11667. _ACEOF
  11668. if ac_fn_cxx_try_compile "$LINENO"; then :
  11669. ac_cv_prog_cxx_g=yes
  11670. fi
  11671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11672. fi
  11673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11674. fi
  11675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11676. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11677. fi
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11679. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11680. if test "$ac_test_CXXFLAGS" = set; then
  11681. CXXFLAGS=$ac_save_CXXFLAGS
  11682. elif test $ac_cv_prog_cxx_g = yes; then
  11683. if test "$GXX" = yes; then
  11684. CXXFLAGS="-g -O2"
  11685. else
  11686. CXXFLAGS="-g"
  11687. fi
  11688. else
  11689. if test "$GXX" = yes; then
  11690. CXXFLAGS="-O2"
  11691. else
  11692. CXXFLAGS=
  11693. fi
  11694. fi
  11695. ac_ext=cpp
  11696. ac_cpp='$CXXCPP $CPPFLAGS'
  11697. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11698. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11699. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11700. depcc="$CXX" am_compiler_list=
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11702. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11703. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  11704. $as_echo_n "(cached) " >&6
  11705. else
  11706. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11707. # We make a subdir and do the tests there. Otherwise we can end up
  11708. # making bogus files that we don't know about and never remove. For
  11709. # instance it was reported that on HP-UX the gcc test will end up
  11710. # making a dummy file named 'D' -- because '-MD' means "put the output
  11711. # in D".
  11712. rm -rf conftest.dir
  11713. mkdir conftest.dir
  11714. # Copy depcomp to subdir because otherwise we won't find it if we're
  11715. # using a relative directory.
  11716. cp "$am_depcomp" conftest.dir
  11717. cd conftest.dir
  11718. # We will build objects and dependencies in a subdirectory because
  11719. # it helps to detect inapplicable dependency modes. For instance
  11720. # both Tru64's cc and ICC support -MD to output dependencies as a
  11721. # side effect of compilation, but ICC will put the dependencies in
  11722. # the current directory while Tru64 will put them in the object
  11723. # directory.
  11724. mkdir sub
  11725. am_cv_CXX_dependencies_compiler_type=none
  11726. if test "$am_compiler_list" = ""; then
  11727. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11728. fi
  11729. am__universal=false
  11730. case " $depcc " in #(
  11731. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11732. esac
  11733. for depmode in $am_compiler_list; do
  11734. # Setup a source with many dependencies, because some compilers
  11735. # like to wrap large dependency lists on column 80 (with \), and
  11736. # we should not choose a depcomp mode which is confused by this.
  11737. #
  11738. # We need to recreate these files for each test, as the compiler may
  11739. # overwrite some of them when testing with obscure command lines.
  11740. # This happens at least with the AIX C compiler.
  11741. : > sub/conftest.c
  11742. for i in 1 2 3 4 5 6; do
  11743. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11744. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11745. # Solaris 10 /bin/sh.
  11746. echo '/* dummy */' > sub/conftst$i.h
  11747. done
  11748. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11749. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11750. # mode. It turns out that the SunPro C++ compiler does not properly
  11751. # handle '-M -o', and we need to detect this. Also, some Intel
  11752. # versions had trouble with output in subdirs.
  11753. am__obj=sub/conftest.${OBJEXT-o}
  11754. am__minus_obj="-o $am__obj"
  11755. case $depmode in
  11756. gcc)
  11757. # This depmode causes a compiler race in universal mode.
  11758. test "$am__universal" = false || continue
  11759. ;;
  11760. nosideeffect)
  11761. # After this tag, mechanisms are not by side-effect, so they'll
  11762. # only be used when explicitly requested.
  11763. if test "x$enable_dependency_tracking" = xyes; then
  11764. continue
  11765. else
  11766. break
  11767. fi
  11768. ;;
  11769. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11770. # This compiler won't grok '-c -o', but also, the minuso test has
  11771. # not run yet. These depmodes are late enough in the game, and
  11772. # so weak that their functioning should not be impacted.
  11773. am__obj=conftest.${OBJEXT-o}
  11774. am__minus_obj=
  11775. ;;
  11776. none) break ;;
  11777. esac
  11778. if depmode=$depmode \
  11779. source=sub/conftest.c object=$am__obj \
  11780. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11781. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11782. >/dev/null 2>conftest.err &&
  11783. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11784. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11785. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11786. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11787. # icc doesn't choke on unknown options, it will just issue warnings
  11788. # or remarks (even with -Werror). So we grep stderr for any message
  11789. # that says an option was ignored or not supported.
  11790. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11791. # icc: Command line warning: ignoring option '-M'; no argument required
  11792. # The diagnosis changed in icc 8.0:
  11793. # icc: Command line remark: option '-MP' not supported
  11794. if (grep 'ignoring option' conftest.err ||
  11795. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11796. am_cv_CXX_dependencies_compiler_type=$depmode
  11797. break
  11798. fi
  11799. fi
  11800. done
  11801. cd ..
  11802. rm -rf conftest.dir
  11803. else
  11804. am_cv_CXX_dependencies_compiler_type=none
  11805. fi
  11806. fi
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11808. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11809. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11810. if
  11811. test "x$enable_dependency_tracking" != xno \
  11812. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11813. am__fastdepCXX_TRUE=
  11814. am__fastdepCXX_FALSE='#'
  11815. else
  11816. am__fastdepCXX_TRUE='#'
  11817. am__fastdepCXX_FALSE=
  11818. fi
  11819. func_stripname_cnf ()
  11820. {
  11821. case $2 in
  11822. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11823. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11824. esac
  11825. } # func_stripname_cnf
  11826. if test -n "$CXX" && ( test no != "$CXX" &&
  11827. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11828. (test g++ != "$CXX"))); then
  11829. ac_ext=cpp
  11830. ac_cpp='$CXXCPP $CPPFLAGS'
  11831. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11832. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11833. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11835. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11836. if test -z "$CXXCPP"; then
  11837. if ${ac_cv_prog_CXXCPP+:} false; then :
  11838. $as_echo_n "(cached) " >&6
  11839. else
  11840. # Double quotes because CXXCPP needs to be expanded
  11841. for CXXCPP in "$CXX -E" "/lib/cpp"
  11842. do
  11843. ac_preproc_ok=false
  11844. for ac_cxx_preproc_warn_flag in '' yes
  11845. do
  11846. # Use a header file that comes with gcc, so configuring glibc
  11847. # with a fresh cross-compiler works.
  11848. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11849. # <limits.h> exists even on freestanding compilers.
  11850. # On the NeXT, cc -E runs the code through the compiler's parser,
  11851. # not just through cpp. "Syntax error" is here to catch this case.
  11852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11853. /* end confdefs.h. */
  11854. #ifdef __STDC__
  11855. # include <limits.h>
  11856. #else
  11857. # include <assert.h>
  11858. #endif
  11859. Syntax error
  11860. _ACEOF
  11861. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11862. else
  11863. # Broken: fails on valid input.
  11864. continue
  11865. fi
  11866. rm -f conftest.err conftest.i conftest.$ac_ext
  11867. # OK, works on sane cases. Now check whether nonexistent headers
  11868. # can be detected and how.
  11869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11870. /* end confdefs.h. */
  11871. #include <ac_nonexistent.h>
  11872. _ACEOF
  11873. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11874. # Broken: success on invalid input.
  11875. continue
  11876. else
  11877. # Passes both tests.
  11878. ac_preproc_ok=:
  11879. break
  11880. fi
  11881. rm -f conftest.err conftest.i conftest.$ac_ext
  11882. done
  11883. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11884. rm -f conftest.i conftest.err conftest.$ac_ext
  11885. if $ac_preproc_ok; then :
  11886. break
  11887. fi
  11888. done
  11889. ac_cv_prog_CXXCPP=$CXXCPP
  11890. fi
  11891. CXXCPP=$ac_cv_prog_CXXCPP
  11892. else
  11893. ac_cv_prog_CXXCPP=$CXXCPP
  11894. fi
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11896. $as_echo "$CXXCPP" >&6; }
  11897. ac_preproc_ok=false
  11898. for ac_cxx_preproc_warn_flag in '' yes
  11899. do
  11900. # Use a header file that comes with gcc, so configuring glibc
  11901. # with a fresh cross-compiler works.
  11902. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11903. # <limits.h> exists even on freestanding compilers.
  11904. # On the NeXT, cc -E runs the code through the compiler's parser,
  11905. # not just through cpp. "Syntax error" is here to catch this case.
  11906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11907. /* end confdefs.h. */
  11908. #ifdef __STDC__
  11909. # include <limits.h>
  11910. #else
  11911. # include <assert.h>
  11912. #endif
  11913. Syntax error
  11914. _ACEOF
  11915. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11916. else
  11917. # Broken: fails on valid input.
  11918. continue
  11919. fi
  11920. rm -f conftest.err conftest.i conftest.$ac_ext
  11921. # OK, works on sane cases. Now check whether nonexistent headers
  11922. # can be detected and how.
  11923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11924. /* end confdefs.h. */
  11925. #include <ac_nonexistent.h>
  11926. _ACEOF
  11927. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11928. # Broken: success on invalid input.
  11929. continue
  11930. else
  11931. # Passes both tests.
  11932. ac_preproc_ok=:
  11933. break
  11934. fi
  11935. rm -f conftest.err conftest.i conftest.$ac_ext
  11936. done
  11937. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11938. rm -f conftest.i conftest.err conftest.$ac_ext
  11939. if $ac_preproc_ok; then :
  11940. else
  11941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11943. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11944. See \`config.log' for more details" "$LINENO" 5; }
  11945. fi
  11946. ac_ext=cpp
  11947. ac_cpp='$CXXCPP $CPPFLAGS'
  11948. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11949. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11950. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11951. else
  11952. _lt_caught_CXX_error=yes
  11953. fi
  11954. ac_ext=cpp
  11955. ac_cpp='$CXXCPP $CPPFLAGS'
  11956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11959. archive_cmds_need_lc_CXX=no
  11960. allow_undefined_flag_CXX=
  11961. always_export_symbols_CXX=no
  11962. archive_expsym_cmds_CXX=
  11963. compiler_needs_object_CXX=no
  11964. export_dynamic_flag_spec_CXX=
  11965. hardcode_direct_CXX=no
  11966. hardcode_direct_absolute_CXX=no
  11967. hardcode_libdir_flag_spec_CXX=
  11968. hardcode_libdir_separator_CXX=
  11969. hardcode_minus_L_CXX=no
  11970. hardcode_shlibpath_var_CXX=unsupported
  11971. hardcode_automatic_CXX=no
  11972. inherit_rpath_CXX=no
  11973. module_cmds_CXX=
  11974. module_expsym_cmds_CXX=
  11975. link_all_deplibs_CXX=unknown
  11976. old_archive_cmds_CXX=$old_archive_cmds
  11977. reload_flag_CXX=$reload_flag
  11978. reload_cmds_CXX=$reload_cmds
  11979. no_undefined_flag_CXX=
  11980. whole_archive_flag_spec_CXX=
  11981. enable_shared_with_static_runtimes_CXX=no
  11982. # Source file extension for C++ test sources.
  11983. ac_ext=cpp
  11984. # Object file extension for compiled C++ test sources.
  11985. objext=o
  11986. objext_CXX=$objext
  11987. # No sense in running all these tests if we already determined that
  11988. # the CXX compiler isn't working. Some variables (like enable_shared)
  11989. # are currently assumed to apply to all compilers on this platform,
  11990. # and will be corrupted by setting them based on a non-working compiler.
  11991. if test yes != "$_lt_caught_CXX_error"; then
  11992. # Code to be used in simple compile tests
  11993. lt_simple_compile_test_code="int some_variable = 0;"
  11994. # Code to be used in simple link tests
  11995. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11996. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11997. # If no C compiler was specified, use CC.
  11998. LTCC=${LTCC-"$CC"}
  11999. # If no C compiler flags were specified, use CFLAGS.
  12000. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12001. # Allow CC to be a program name with arguments.
  12002. compiler=$CC
  12003. # save warnings/boilerplate of simple test code
  12004. ac_outfile=conftest.$ac_objext
  12005. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12006. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12007. _lt_compiler_boilerplate=`cat conftest.err`
  12008. $RM conftest*
  12009. ac_outfile=conftest.$ac_objext
  12010. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12011. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12012. _lt_linker_boilerplate=`cat conftest.err`
  12013. $RM -r conftest*
  12014. # Allow CC to be a program name with arguments.
  12015. lt_save_CC=$CC
  12016. lt_save_CFLAGS=$CFLAGS
  12017. lt_save_LD=$LD
  12018. lt_save_GCC=$GCC
  12019. GCC=$GXX
  12020. lt_save_with_gnu_ld=$with_gnu_ld
  12021. lt_save_path_LD=$lt_cv_path_LD
  12022. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12023. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12024. else
  12025. $as_unset lt_cv_prog_gnu_ld
  12026. fi
  12027. if test -n "${lt_cv_path_LDCXX+set}"; then
  12028. lt_cv_path_LD=$lt_cv_path_LDCXX
  12029. else
  12030. $as_unset lt_cv_path_LD
  12031. fi
  12032. test -z "${LDCXX+set}" || LD=$LDCXX
  12033. CC=${CXX-"c++"}
  12034. CFLAGS=$CXXFLAGS
  12035. compiler=$CC
  12036. compiler_CXX=$CC
  12037. func_cc_basename $compiler
  12038. cc_basename=$func_cc_basename_result
  12039. if test -n "$compiler"; then
  12040. # We don't want -fno-exception when compiling C++ code, so set the
  12041. # no_builtin_flag separately
  12042. if test yes = "$GXX"; then
  12043. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12044. else
  12045. lt_prog_compiler_no_builtin_flag_CXX=
  12046. fi
  12047. if test yes = "$GXX"; then
  12048. # Set up default GNU C++ configuration
  12049. # Check whether --with-gnu-ld was given.
  12050. if test "${with_gnu_ld+set}" = set; then :
  12051. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12052. else
  12053. with_gnu_ld=no
  12054. fi
  12055. ac_prog=ld
  12056. if test yes = "$GCC"; then
  12057. # Check if gcc -print-prog-name=ld gives a path.
  12058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12059. $as_echo_n "checking for ld used by $CC... " >&6; }
  12060. case $host in
  12061. *-*-mingw*)
  12062. # gcc leaves a trailing carriage return, which upsets mingw
  12063. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12064. *)
  12065. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12066. esac
  12067. case $ac_prog in
  12068. # Accept absolute paths.
  12069. [\\/]* | ?:[\\/]*)
  12070. re_direlt='/[^/][^/]*/\.\./'
  12071. # Canonicalize the pathname of ld
  12072. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12073. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12074. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12075. done
  12076. test -z "$LD" && LD=$ac_prog
  12077. ;;
  12078. "")
  12079. # If it fails, then pretend we aren't using GCC.
  12080. ac_prog=ld
  12081. ;;
  12082. *)
  12083. # If it is relative, then search for the first ld in PATH.
  12084. with_gnu_ld=unknown
  12085. ;;
  12086. esac
  12087. elif test yes = "$with_gnu_ld"; then
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12089. $as_echo_n "checking for GNU ld... " >&6; }
  12090. else
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12092. $as_echo_n "checking for non-GNU ld... " >&6; }
  12093. fi
  12094. if ${lt_cv_path_LD+:} false; then :
  12095. $as_echo_n "(cached) " >&6
  12096. else
  12097. if test -z "$LD"; then
  12098. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12099. for ac_dir in $PATH; do
  12100. IFS=$lt_save_ifs
  12101. test -z "$ac_dir" && ac_dir=.
  12102. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12103. lt_cv_path_LD=$ac_dir/$ac_prog
  12104. # Check to see if the program is GNU ld. I'd rather use --version,
  12105. # but apparently some variants of GNU ld only accept -v.
  12106. # Break only if it was the GNU/non-GNU ld that we prefer.
  12107. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12108. *GNU* | *'with BFD'*)
  12109. test no != "$with_gnu_ld" && break
  12110. ;;
  12111. *)
  12112. test yes != "$with_gnu_ld" && break
  12113. ;;
  12114. esac
  12115. fi
  12116. done
  12117. IFS=$lt_save_ifs
  12118. else
  12119. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12120. fi
  12121. fi
  12122. LD=$lt_cv_path_LD
  12123. if test -n "$LD"; then
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12125. $as_echo "$LD" >&6; }
  12126. else
  12127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12128. $as_echo "no" >&6; }
  12129. fi
  12130. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12132. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12133. if ${lt_cv_prog_gnu_ld+:} false; then :
  12134. $as_echo_n "(cached) " >&6
  12135. else
  12136. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12137. case `$LD -v 2>&1 </dev/null` in
  12138. *GNU* | *'with BFD'*)
  12139. lt_cv_prog_gnu_ld=yes
  12140. ;;
  12141. *)
  12142. lt_cv_prog_gnu_ld=no
  12143. ;;
  12144. esac
  12145. fi
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12147. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12148. with_gnu_ld=$lt_cv_prog_gnu_ld
  12149. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12150. # archiving commands below assume that GNU ld is being used.
  12151. if test yes = "$with_gnu_ld"; then
  12152. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12153. 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'
  12154. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12155. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12156. # If archive_cmds runs LD, not CC, wlarc should be empty
  12157. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12158. # investigate it a little bit more. (MM)
  12159. wlarc='$wl'
  12160. # ancient GNU ld didn't support --whole-archive et. al.
  12161. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12162. $GREP 'no-whole-archive' > /dev/null; then
  12163. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12164. else
  12165. whole_archive_flag_spec_CXX=
  12166. fi
  12167. else
  12168. with_gnu_ld=no
  12169. wlarc=
  12170. # A generic and very simple default shared library creation
  12171. # command for GNU C++ for the case where it uses the native
  12172. # linker, instead of GNU ld. If possible, this setting should
  12173. # overridden to take advantage of the native linker features on
  12174. # the platform it is being used on.
  12175. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12176. fi
  12177. # Commands to make compiler produce verbose output that lists
  12178. # what "hidden" libraries, object files and flags are used when
  12179. # linking a shared library.
  12180. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12181. else
  12182. GXX=no
  12183. with_gnu_ld=no
  12184. wlarc=
  12185. fi
  12186. # PORTME: fill in a description of your system's C++ link characteristics
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12188. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12189. ld_shlibs_CXX=yes
  12190. case $host_os in
  12191. aix3*)
  12192. # FIXME: insert proper C++ library support
  12193. ld_shlibs_CXX=no
  12194. ;;
  12195. aix[4-9]*)
  12196. if test ia64 = "$host_cpu"; then
  12197. # On IA64, the linker does run time linking by default, so we don't
  12198. # have to do anything special.
  12199. aix_use_runtimelinking=no
  12200. exp_sym_flag='-Bexport'
  12201. no_entry_flag=
  12202. else
  12203. aix_use_runtimelinking=no
  12204. # Test if we are trying to use run time linking or normal
  12205. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12206. # have runtime linking enabled, and use it for executables.
  12207. # For shared libraries, we enable/disable runtime linking
  12208. # depending on the kind of the shared library created -
  12209. # when "with_aix_soname,aix_use_runtimelinking" is:
  12210. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12211. # "aix,yes" lib.so shared, rtl:yes, for executables
  12212. # lib.a static archive
  12213. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12214. # lib.a(lib.so.V) shared, rtl:no, for executables
  12215. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12216. # lib.a(lib.so.V) shared, rtl:no
  12217. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12218. # lib.a static archive
  12219. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12220. for ld_flag in $LDFLAGS; do
  12221. case $ld_flag in
  12222. *-brtl*)
  12223. aix_use_runtimelinking=yes
  12224. break
  12225. ;;
  12226. esac
  12227. done
  12228. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12229. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12230. # so we don't have lib.a shared libs to link our executables.
  12231. # We have to force runtime linking in this case.
  12232. aix_use_runtimelinking=yes
  12233. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12234. fi
  12235. ;;
  12236. esac
  12237. exp_sym_flag='-bexport'
  12238. no_entry_flag='-bnoentry'
  12239. fi
  12240. # When large executables or shared objects are built, AIX ld can
  12241. # have problems creating the table of contents. If linking a library
  12242. # or program results in "error TOC overflow" add -mminimal-toc to
  12243. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12244. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12245. archive_cmds_CXX=''
  12246. hardcode_direct_CXX=yes
  12247. hardcode_direct_absolute_CXX=yes
  12248. hardcode_libdir_separator_CXX=':'
  12249. link_all_deplibs_CXX=yes
  12250. file_list_spec_CXX='$wl-f,'
  12251. case $with_aix_soname,$aix_use_runtimelinking in
  12252. aix,*) ;; # no import file
  12253. svr4,* | *,yes) # use import file
  12254. # The Import File defines what to hardcode.
  12255. hardcode_direct_CXX=no
  12256. hardcode_direct_absolute_CXX=no
  12257. ;;
  12258. esac
  12259. if test yes = "$GXX"; then
  12260. case $host_os in aix4.[012]|aix4.[012].*)
  12261. # We only want to do this on AIX 4.2 and lower, the check
  12262. # below for broken collect2 doesn't work under 4.3+
  12263. collect2name=`$CC -print-prog-name=collect2`
  12264. if test -f "$collect2name" &&
  12265. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12266. then
  12267. # We have reworked collect2
  12268. :
  12269. else
  12270. # We have old collect2
  12271. hardcode_direct_CXX=unsupported
  12272. # It fails to find uninstalled libraries when the uninstalled
  12273. # path is not listed in the libpath. Setting hardcode_minus_L
  12274. # to unsupported forces relinking
  12275. hardcode_minus_L_CXX=yes
  12276. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12277. hardcode_libdir_separator_CXX=
  12278. fi
  12279. esac
  12280. shared_flag='-shared'
  12281. if test yes = "$aix_use_runtimelinking"; then
  12282. shared_flag=$shared_flag' $wl-G'
  12283. fi
  12284. # Need to ensure runtime linking is disabled for the traditional
  12285. # shared library, or the linker may eventually find shared libraries
  12286. # /with/ Import File - we do not want to mix them.
  12287. shared_flag_aix='-shared'
  12288. shared_flag_svr4='-shared $wl-G'
  12289. else
  12290. # not using gcc
  12291. if test ia64 = "$host_cpu"; then
  12292. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12293. # chokes on -Wl,-G. The following line is correct:
  12294. shared_flag='-G'
  12295. else
  12296. if test yes = "$aix_use_runtimelinking"; then
  12297. shared_flag='$wl-G'
  12298. else
  12299. shared_flag='$wl-bM:SRE'
  12300. fi
  12301. shared_flag_aix='$wl-bM:SRE'
  12302. shared_flag_svr4='$wl-G'
  12303. fi
  12304. fi
  12305. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12306. # It seems that -bexpall does not export symbols beginning with
  12307. # underscore (_), so it is better to generate a list of symbols to
  12308. # export.
  12309. always_export_symbols_CXX=yes
  12310. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12311. # Warning - without using the other runtime loading flags (-brtl),
  12312. # -berok will link without error, but may produce a broken library.
  12313. # The "-G" linker flag allows undefined symbols.
  12314. no_undefined_flag_CXX='-bernotok'
  12315. # Determine the default libpath from the value encoded in an empty
  12316. # executable.
  12317. if test set = "${lt_cv_aix_libpath+set}"; then
  12318. aix_libpath=$lt_cv_aix_libpath
  12319. else
  12320. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12321. $as_echo_n "(cached) " >&6
  12322. else
  12323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12324. /* end confdefs.h. */
  12325. int
  12326. main ()
  12327. {
  12328. ;
  12329. return 0;
  12330. }
  12331. _ACEOF
  12332. if ac_fn_cxx_try_link "$LINENO"; then :
  12333. lt_aix_libpath_sed='
  12334. /Import File Strings/,/^$/ {
  12335. /^0/ {
  12336. s/^0 *\([^ ]*\) *$/\1/
  12337. p
  12338. }
  12339. }'
  12340. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12341. # Check for a 64-bit object if we didn't find anything.
  12342. if test -z "$lt_cv_aix_libpath__CXX"; then
  12343. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12344. fi
  12345. fi
  12346. rm -f core conftest.err conftest.$ac_objext \
  12347. conftest$ac_exeext conftest.$ac_ext
  12348. if test -z "$lt_cv_aix_libpath__CXX"; then
  12349. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12350. fi
  12351. fi
  12352. aix_libpath=$lt_cv_aix_libpath__CXX
  12353. fi
  12354. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12355. 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
  12356. else
  12357. if test ia64 = "$host_cpu"; then
  12358. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12359. allow_undefined_flag_CXX="-z nodefs"
  12360. 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"
  12361. else
  12362. # Determine the default libpath from the value encoded in an
  12363. # empty executable.
  12364. if test set = "${lt_cv_aix_libpath+set}"; then
  12365. aix_libpath=$lt_cv_aix_libpath
  12366. else
  12367. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12368. $as_echo_n "(cached) " >&6
  12369. else
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. int
  12373. main ()
  12374. {
  12375. ;
  12376. return 0;
  12377. }
  12378. _ACEOF
  12379. if ac_fn_cxx_try_link "$LINENO"; then :
  12380. lt_aix_libpath_sed='
  12381. /Import File Strings/,/^$/ {
  12382. /^0/ {
  12383. s/^0 *\([^ ]*\) *$/\1/
  12384. p
  12385. }
  12386. }'
  12387. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12388. # Check for a 64-bit object if we didn't find anything.
  12389. if test -z "$lt_cv_aix_libpath__CXX"; then
  12390. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12391. fi
  12392. fi
  12393. rm -f core conftest.err conftest.$ac_objext \
  12394. conftest$ac_exeext conftest.$ac_ext
  12395. if test -z "$lt_cv_aix_libpath__CXX"; then
  12396. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12397. fi
  12398. fi
  12399. aix_libpath=$lt_cv_aix_libpath__CXX
  12400. fi
  12401. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12402. # Warning - without using the other run time loading flags,
  12403. # -berok will link without error, but may produce a broken library.
  12404. no_undefined_flag_CXX=' $wl-bernotok'
  12405. allow_undefined_flag_CXX=' $wl-berok'
  12406. if test yes = "$with_gnu_ld"; then
  12407. # We only use this code for GNU lds that support --whole-archive.
  12408. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12409. else
  12410. # Exported symbols can be pulled into shared objects from archives
  12411. whole_archive_flag_spec_CXX='$convenience'
  12412. fi
  12413. archive_cmds_need_lc_CXX=yes
  12414. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12415. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12416. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12417. if test svr4 != "$with_aix_soname"; then
  12418. # This is similar to how AIX traditionally builds its shared
  12419. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12420. 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'
  12421. fi
  12422. if test aix != "$with_aix_soname"; then
  12423. 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'
  12424. else
  12425. # used by -dlpreopen to get the symbols
  12426. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12427. fi
  12428. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12429. fi
  12430. fi
  12431. ;;
  12432. beos*)
  12433. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12434. allow_undefined_flag_CXX=unsupported
  12435. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12436. # support --undefined. This deserves some investigation. FIXME
  12437. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12438. else
  12439. ld_shlibs_CXX=no
  12440. fi
  12441. ;;
  12442. chorus*)
  12443. case $cc_basename in
  12444. *)
  12445. # FIXME: insert proper C++ library support
  12446. ld_shlibs_CXX=no
  12447. ;;
  12448. esac
  12449. ;;
  12450. cygwin* | mingw* | pw32* | cegcc*)
  12451. case $GXX,$cc_basename in
  12452. ,cl* | no,cl*)
  12453. # Native MSVC
  12454. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12455. # no search path for DLLs.
  12456. hardcode_libdir_flag_spec_CXX=' '
  12457. allow_undefined_flag_CXX=unsupported
  12458. always_export_symbols_CXX=yes
  12459. file_list_spec_CXX='@'
  12460. # Tell ltmain to make .lib files, not .a files.
  12461. libext=lib
  12462. # Tell ltmain to make .dll files, not .so files.
  12463. shrext_cmds=.dll
  12464. # FIXME: Setting linknames here is a bad hack.
  12465. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12466. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12467. cp "$export_symbols" "$output_objdir/$soname.def";
  12468. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12469. else
  12470. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12471. fi~
  12472. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12473. linknames='
  12474. # The linker will not automatically build a static lib if we build a DLL.
  12475. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12476. enable_shared_with_static_runtimes_CXX=yes
  12477. # Don't use ranlib
  12478. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12479. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12480. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12481. case $lt_outputfile in
  12482. *.exe|*.EXE) ;;
  12483. *)
  12484. lt_outputfile=$lt_outputfile.exe
  12485. lt_tool_outputfile=$lt_tool_outputfile.exe
  12486. ;;
  12487. esac~
  12488. func_to_tool_file "$lt_outputfile"~
  12489. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12490. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12491. $RM "$lt_outputfile.manifest";
  12492. fi'
  12493. ;;
  12494. *)
  12495. # g++
  12496. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12497. # as there is no search path for DLLs.
  12498. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12499. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12500. allow_undefined_flag_CXX=unsupported
  12501. always_export_symbols_CXX=no
  12502. enable_shared_with_static_runtimes_CXX=yes
  12503. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12504. 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'
  12505. # If the export-symbols file already is a .def file, use it as
  12506. # is; otherwise, prepend EXPORTS...
  12507. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12508. cp $export_symbols $output_objdir/$soname.def;
  12509. else
  12510. echo EXPORTS > $output_objdir/$soname.def;
  12511. cat $export_symbols >> $output_objdir/$soname.def;
  12512. fi~
  12513. $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'
  12514. else
  12515. ld_shlibs_CXX=no
  12516. fi
  12517. ;;
  12518. esac
  12519. ;;
  12520. darwin* | rhapsody*)
  12521. archive_cmds_need_lc_CXX=no
  12522. hardcode_direct_CXX=no
  12523. hardcode_automatic_CXX=yes
  12524. hardcode_shlibpath_var_CXX=unsupported
  12525. if test yes = "$lt_cv_ld_force_load"; then
  12526. 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\"`'
  12527. else
  12528. whole_archive_flag_spec_CXX=''
  12529. fi
  12530. link_all_deplibs_CXX=yes
  12531. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12532. case $cc_basename in
  12533. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12534. *) _lt_dar_can_shared=$GCC ;;
  12535. esac
  12536. if test yes = "$_lt_dar_can_shared"; then
  12537. output_verbose_link_cmd=func_echo_all
  12538. 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"
  12539. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12540. 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"
  12541. 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"
  12542. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12543. 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"
  12544. 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"
  12545. fi
  12546. else
  12547. ld_shlibs_CXX=no
  12548. fi
  12549. ;;
  12550. os2*)
  12551. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12552. hardcode_minus_L_CXX=yes
  12553. allow_undefined_flag_CXX=unsupported
  12554. shrext_cmds=.dll
  12555. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12556. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12557. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12558. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12559. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12560. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12561. emximp -o $lib $output_objdir/$libname.def'
  12562. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12563. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12564. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12565. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12566. prefix_cmds="$SED"~
  12567. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12568. prefix_cmds="$prefix_cmds -e 1d";
  12569. fi~
  12570. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12571. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12572. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12573. emximp -o $lib $output_objdir/$libname.def'
  12574. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12575. enable_shared_with_static_runtimes_CXX=yes
  12576. ;;
  12577. dgux*)
  12578. case $cc_basename in
  12579. ec++*)
  12580. # FIXME: insert proper C++ library support
  12581. ld_shlibs_CXX=no
  12582. ;;
  12583. ghcx*)
  12584. # Green Hills C++ Compiler
  12585. # FIXME: insert proper C++ library support
  12586. ld_shlibs_CXX=no
  12587. ;;
  12588. *)
  12589. # FIXME: insert proper C++ library support
  12590. ld_shlibs_CXX=no
  12591. ;;
  12592. esac
  12593. ;;
  12594. freebsd2.*)
  12595. # C++ shared libraries reported to be fairly broken before
  12596. # switch to ELF
  12597. ld_shlibs_CXX=no
  12598. ;;
  12599. freebsd-elf*)
  12600. archive_cmds_need_lc_CXX=no
  12601. ;;
  12602. freebsd* | dragonfly*)
  12603. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12604. # conventions
  12605. ld_shlibs_CXX=yes
  12606. ;;
  12607. haiku*)
  12608. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12609. link_all_deplibs_CXX=yes
  12610. ;;
  12611. hpux9*)
  12612. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12613. hardcode_libdir_separator_CXX=:
  12614. export_dynamic_flag_spec_CXX='$wl-E'
  12615. hardcode_direct_CXX=yes
  12616. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12617. # but as the default
  12618. # location of the library.
  12619. case $cc_basename in
  12620. CC*)
  12621. # FIXME: insert proper C++ library support
  12622. ld_shlibs_CXX=no
  12623. ;;
  12624. aCC*)
  12625. 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'
  12626. # Commands to make compiler produce verbose output that lists
  12627. # what "hidden" libraries, object files and flags are used when
  12628. # linking a shared library.
  12629. #
  12630. # There doesn't appear to be a way to prevent this compiler from
  12631. # explicitly linking system object files so we need to strip them
  12632. # from the output so that they don't get included in the library
  12633. # dependencies.
  12634. 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"'
  12635. ;;
  12636. *)
  12637. if test yes = "$GXX"; then
  12638. 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'
  12639. else
  12640. # FIXME: insert proper C++ library support
  12641. ld_shlibs_CXX=no
  12642. fi
  12643. ;;
  12644. esac
  12645. ;;
  12646. hpux10*|hpux11*)
  12647. if test no = "$with_gnu_ld"; then
  12648. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12649. hardcode_libdir_separator_CXX=:
  12650. case $host_cpu in
  12651. hppa*64*|ia64*)
  12652. ;;
  12653. *)
  12654. export_dynamic_flag_spec_CXX='$wl-E'
  12655. ;;
  12656. esac
  12657. fi
  12658. case $host_cpu in
  12659. hppa*64*|ia64*)
  12660. hardcode_direct_CXX=no
  12661. hardcode_shlibpath_var_CXX=no
  12662. ;;
  12663. *)
  12664. hardcode_direct_CXX=yes
  12665. hardcode_direct_absolute_CXX=yes
  12666. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12667. # but as the default
  12668. # location of the library.
  12669. ;;
  12670. esac
  12671. case $cc_basename in
  12672. CC*)
  12673. # FIXME: insert proper C++ library support
  12674. ld_shlibs_CXX=no
  12675. ;;
  12676. aCC*)
  12677. case $host_cpu in
  12678. hppa*64*)
  12679. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12680. ;;
  12681. ia64*)
  12682. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12683. ;;
  12684. *)
  12685. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12686. ;;
  12687. esac
  12688. # Commands to make compiler produce verbose output that lists
  12689. # what "hidden" libraries, object files and flags are used when
  12690. # linking a shared library.
  12691. #
  12692. # There doesn't appear to be a way to prevent this compiler from
  12693. # explicitly linking system object files so we need to strip them
  12694. # from the output so that they don't get included in the library
  12695. # dependencies.
  12696. 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"'
  12697. ;;
  12698. *)
  12699. if test yes = "$GXX"; then
  12700. if test no = "$with_gnu_ld"; then
  12701. case $host_cpu in
  12702. hppa*64*)
  12703. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12704. ;;
  12705. ia64*)
  12706. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12707. ;;
  12708. *)
  12709. 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'
  12710. ;;
  12711. esac
  12712. fi
  12713. else
  12714. # FIXME: insert proper C++ library support
  12715. ld_shlibs_CXX=no
  12716. fi
  12717. ;;
  12718. esac
  12719. ;;
  12720. interix[3-9]*)
  12721. hardcode_direct_CXX=no
  12722. hardcode_shlibpath_var_CXX=no
  12723. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12724. export_dynamic_flag_spec_CXX='$wl-E'
  12725. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12726. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12727. # default) and relocated if they conflict, which is a slow very memory
  12728. # consuming and fragmenting process. To avoid this, we pick a random,
  12729. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12730. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12731. 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'
  12732. 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'
  12733. ;;
  12734. irix5* | irix6*)
  12735. case $cc_basename in
  12736. CC*)
  12737. # SGI C++
  12738. 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'
  12739. # Archives containing C++ object files must be created using
  12740. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12741. # necessary to make sure instantiated templates are included
  12742. # in the archive.
  12743. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12744. ;;
  12745. *)
  12746. if test yes = "$GXX"; then
  12747. if test no = "$with_gnu_ld"; then
  12748. 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'
  12749. else
  12750. 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'
  12751. fi
  12752. fi
  12753. link_all_deplibs_CXX=yes
  12754. ;;
  12755. esac
  12756. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12757. hardcode_libdir_separator_CXX=:
  12758. inherit_rpath_CXX=yes
  12759. ;;
  12760. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12761. case $cc_basename in
  12762. KCC*)
  12763. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12764. # KCC will only create a shared library if the output file
  12765. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12766. # to its proper name (with version) after linking.
  12767. 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'
  12768. 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'
  12769. # Commands to make compiler produce verbose output that lists
  12770. # what "hidden" libraries, object files and flags are used when
  12771. # linking a shared library.
  12772. #
  12773. # There doesn't appear to be a way to prevent this compiler from
  12774. # explicitly linking system object files so we need to strip them
  12775. # from the output so that they don't get included in the library
  12776. # dependencies.
  12777. 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"'
  12778. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12779. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12780. # Archives containing C++ object files must be created using
  12781. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12782. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12783. ;;
  12784. icpc* | ecpc* )
  12785. # Intel C++
  12786. with_gnu_ld=yes
  12787. # version 8.0 and above of icpc choke on multiply defined symbols
  12788. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12789. # earlier do not add the objects themselves.
  12790. case `$CC -V 2>&1` in
  12791. *"Version 7."*)
  12792. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12793. 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'
  12794. ;;
  12795. *) # Version 8.0 or newer
  12796. tmp_idyn=
  12797. case $host_cpu in
  12798. ia64*) tmp_idyn=' -i_dynamic';;
  12799. esac
  12800. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12801. 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'
  12802. ;;
  12803. esac
  12804. archive_cmds_need_lc_CXX=no
  12805. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12806. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12807. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12808. ;;
  12809. pgCC* | pgcpp*)
  12810. # Portland Group C++ compiler
  12811. case `$CC -V` in
  12812. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12813. prelink_cmds_CXX='tpldir=Template.dir~
  12814. rm -rf $tpldir~
  12815. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12816. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12817. old_archive_cmds_CXX='tpldir=Template.dir~
  12818. rm -rf $tpldir~
  12819. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12820. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12821. $RANLIB $oldlib'
  12822. archive_cmds_CXX='tpldir=Template.dir~
  12823. rm -rf $tpldir~
  12824. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12825. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12826. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12827. rm -rf $tpldir~
  12828. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12829. $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'
  12830. ;;
  12831. *) # Version 6 and above use weak symbols
  12832. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12833. 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'
  12834. ;;
  12835. esac
  12836. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12837. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12838. 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'
  12839. ;;
  12840. cxx*)
  12841. # Compaq C++
  12842. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12843. 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'
  12844. runpath_var=LD_RUN_PATH
  12845. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12846. hardcode_libdir_separator_CXX=:
  12847. # Commands to make compiler produce verbose output that lists
  12848. # what "hidden" libraries, object files and flags are used when
  12849. # linking a shared library.
  12850. #
  12851. # There doesn't appear to be a way to prevent this compiler from
  12852. # explicitly linking system object files so we need to strip them
  12853. # from the output so that they don't get included in the library
  12854. # dependencies.
  12855. 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'
  12856. ;;
  12857. xl* | mpixl* | bgxl*)
  12858. # IBM XL 8.0 on PPC, with GNU ld
  12859. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12860. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12861. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12862. if test yes = "$supports_anon_versioning"; then
  12863. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12864. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12865. echo "local: *; };" >> $output_objdir/$libname.ver~
  12866. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12867. fi
  12868. ;;
  12869. *)
  12870. case `$CC -V 2>&1 | sed 5q` in
  12871. *Sun\ C*)
  12872. # Sun C++ 5.9
  12873. no_undefined_flag_CXX=' -zdefs'
  12874. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12875. 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'
  12876. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12877. 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'
  12878. compiler_needs_object_CXX=yes
  12879. # Not sure whether something based on
  12880. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12881. # would be better.
  12882. output_verbose_link_cmd='func_echo_all'
  12883. # Archives containing C++ object files must be created using
  12884. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12885. # necessary to make sure instantiated templates are included
  12886. # in the archive.
  12887. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12888. ;;
  12889. esac
  12890. ;;
  12891. esac
  12892. ;;
  12893. lynxos*)
  12894. # FIXME: insert proper C++ library support
  12895. ld_shlibs_CXX=no
  12896. ;;
  12897. m88k*)
  12898. # FIXME: insert proper C++ library support
  12899. ld_shlibs_CXX=no
  12900. ;;
  12901. mvs*)
  12902. case $cc_basename in
  12903. cxx*)
  12904. # FIXME: insert proper C++ library support
  12905. ld_shlibs_CXX=no
  12906. ;;
  12907. *)
  12908. # FIXME: insert proper C++ library support
  12909. ld_shlibs_CXX=no
  12910. ;;
  12911. esac
  12912. ;;
  12913. netbsd*)
  12914. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12915. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12916. wlarc=
  12917. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12918. hardcode_direct_CXX=yes
  12919. hardcode_shlibpath_var_CXX=no
  12920. fi
  12921. # Workaround some broken pre-1.5 toolchains
  12922. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12923. ;;
  12924. *nto* | *qnx*)
  12925. ld_shlibs_CXX=yes
  12926. ;;
  12927. openbsd* | bitrig*)
  12928. if test -f /usr/libexec/ld.so; then
  12929. hardcode_direct_CXX=yes
  12930. hardcode_shlibpath_var_CXX=no
  12931. hardcode_direct_absolute_CXX=yes
  12932. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12933. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12934. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12935. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12936. export_dynamic_flag_spec_CXX='$wl-E'
  12937. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12938. fi
  12939. output_verbose_link_cmd=func_echo_all
  12940. else
  12941. ld_shlibs_CXX=no
  12942. fi
  12943. ;;
  12944. osf3* | osf4* | osf5*)
  12945. case $cc_basename in
  12946. KCC*)
  12947. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12948. # KCC will only create a shared library if the output file
  12949. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12950. # to its proper name (with version) after linking.
  12951. 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'
  12952. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12953. hardcode_libdir_separator_CXX=:
  12954. # Archives containing C++ object files must be created using
  12955. # the KAI C++ compiler.
  12956. case $host in
  12957. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12958. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12959. esac
  12960. ;;
  12961. RCC*)
  12962. # Rational C++ 2.4.1
  12963. # FIXME: insert proper C++ library support
  12964. ld_shlibs_CXX=no
  12965. ;;
  12966. cxx*)
  12967. case $host in
  12968. osf3*)
  12969. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12970. 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'
  12971. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12972. ;;
  12973. *)
  12974. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12975. 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'
  12976. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12977. echo "-hidden">> $lib.exp~
  12978. $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~
  12979. $RM $lib.exp'
  12980. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12981. ;;
  12982. esac
  12983. hardcode_libdir_separator_CXX=:
  12984. # Commands to make compiler produce verbose output that lists
  12985. # what "hidden" libraries, object files and flags are used when
  12986. # linking a shared library.
  12987. #
  12988. # There doesn't appear to be a way to prevent this compiler from
  12989. # explicitly linking system object files so we need to strip them
  12990. # from the output so that they don't get included in the library
  12991. # dependencies.
  12992. 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"'
  12993. ;;
  12994. *)
  12995. if test yes,no = "$GXX,$with_gnu_ld"; then
  12996. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12997. case $host in
  12998. osf3*)
  12999. 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'
  13000. ;;
  13001. *)
  13002. 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'
  13003. ;;
  13004. esac
  13005. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13006. hardcode_libdir_separator_CXX=:
  13007. # Commands to make compiler produce verbose output that lists
  13008. # what "hidden" libraries, object files and flags are used when
  13009. # linking a shared library.
  13010. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13011. else
  13012. # FIXME: insert proper C++ library support
  13013. ld_shlibs_CXX=no
  13014. fi
  13015. ;;
  13016. esac
  13017. ;;
  13018. psos*)
  13019. # FIXME: insert proper C++ library support
  13020. ld_shlibs_CXX=no
  13021. ;;
  13022. sunos4*)
  13023. case $cc_basename in
  13024. CC*)
  13025. # Sun C++ 4.x
  13026. # FIXME: insert proper C++ library support
  13027. ld_shlibs_CXX=no
  13028. ;;
  13029. lcc*)
  13030. # Lucid
  13031. # FIXME: insert proper C++ library support
  13032. ld_shlibs_CXX=no
  13033. ;;
  13034. *)
  13035. # FIXME: insert proper C++ library support
  13036. ld_shlibs_CXX=no
  13037. ;;
  13038. esac
  13039. ;;
  13040. solaris*)
  13041. case $cc_basename in
  13042. CC* | sunCC*)
  13043. # Sun C++ 4.2, 5.x and Centerline C++
  13044. archive_cmds_need_lc_CXX=yes
  13045. no_undefined_flag_CXX=' -zdefs'
  13046. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13047. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13048. $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'
  13049. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13050. hardcode_shlibpath_var_CXX=no
  13051. case $host_os in
  13052. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13053. *)
  13054. # The compiler driver will combine and reorder linker options,
  13055. # but understands '-z linker_flag'.
  13056. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13057. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13058. ;;
  13059. esac
  13060. link_all_deplibs_CXX=yes
  13061. output_verbose_link_cmd='func_echo_all'
  13062. # Archives containing C++ object files must be created using
  13063. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13064. # necessary to make sure instantiated templates are included
  13065. # in the archive.
  13066. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13067. ;;
  13068. gcx*)
  13069. # Green Hills C++ Compiler
  13070. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13071. # The C++ compiler must be used to create the archive.
  13072. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13073. ;;
  13074. *)
  13075. # GNU C++ compiler with Solaris linker
  13076. if test yes,no = "$GXX,$with_gnu_ld"; then
  13077. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13078. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13079. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13080. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13081. $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'
  13082. # Commands to make compiler produce verbose output that lists
  13083. # what "hidden" libraries, object files and flags are used when
  13084. # linking a shared library.
  13085. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13086. else
  13087. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13088. # platform.
  13089. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13090. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13091. $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'
  13092. # Commands to make compiler produce verbose output that lists
  13093. # what "hidden" libraries, object files and flags are used when
  13094. # linking a shared library.
  13095. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13096. fi
  13097. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13098. case $host_os in
  13099. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13100. *)
  13101. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13102. ;;
  13103. esac
  13104. fi
  13105. ;;
  13106. esac
  13107. ;;
  13108. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13109. no_undefined_flag_CXX='$wl-z,text'
  13110. archive_cmds_need_lc_CXX=no
  13111. hardcode_shlibpath_var_CXX=no
  13112. runpath_var='LD_RUN_PATH'
  13113. case $cc_basename in
  13114. CC*)
  13115. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13116. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13117. ;;
  13118. *)
  13119. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13120. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13121. ;;
  13122. esac
  13123. ;;
  13124. sysv5* | sco3.2v5* | sco5v6*)
  13125. # Note: We CANNOT use -z defs as we might desire, because we do not
  13126. # link with -lc, and that would cause any symbols used from libc to
  13127. # always be unresolved, which means just about no library would
  13128. # ever link correctly. If we're not using GNU ld we use -z text
  13129. # though, which does catch some bad symbols but isn't as heavy-handed
  13130. # as -z defs.
  13131. no_undefined_flag_CXX='$wl-z,text'
  13132. allow_undefined_flag_CXX='$wl-z,nodefs'
  13133. archive_cmds_need_lc_CXX=no
  13134. hardcode_shlibpath_var_CXX=no
  13135. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13136. hardcode_libdir_separator_CXX=':'
  13137. link_all_deplibs_CXX=yes
  13138. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13139. runpath_var='LD_RUN_PATH'
  13140. case $cc_basename in
  13141. CC*)
  13142. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13143. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13144. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13145. '"$old_archive_cmds_CXX"
  13146. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13147. '"$reload_cmds_CXX"
  13148. ;;
  13149. *)
  13150. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13151. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13152. ;;
  13153. esac
  13154. ;;
  13155. tandem*)
  13156. case $cc_basename in
  13157. NCC*)
  13158. # NonStop-UX NCC 3.20
  13159. # FIXME: insert proper C++ library support
  13160. ld_shlibs_CXX=no
  13161. ;;
  13162. *)
  13163. # FIXME: insert proper C++ library support
  13164. ld_shlibs_CXX=no
  13165. ;;
  13166. esac
  13167. ;;
  13168. vxworks*)
  13169. # FIXME: insert proper C++ library support
  13170. ld_shlibs_CXX=no
  13171. ;;
  13172. *)
  13173. # FIXME: insert proper C++ library support
  13174. ld_shlibs_CXX=no
  13175. ;;
  13176. esac
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13178. $as_echo "$ld_shlibs_CXX" >&6; }
  13179. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13180. GCC_CXX=$GXX
  13181. LD_CXX=$LD
  13182. ## CAVEAT EMPTOR:
  13183. ## There is no encapsulation within the following macros, do not change
  13184. ## the running order or otherwise move them around unless you know exactly
  13185. ## what you are doing...
  13186. # Dependencies to place before and after the object being linked:
  13187. predep_objects_CXX=
  13188. postdep_objects_CXX=
  13189. predeps_CXX=
  13190. postdeps_CXX=
  13191. compiler_lib_search_path_CXX=
  13192. cat > conftest.$ac_ext <<_LT_EOF
  13193. class Foo
  13194. {
  13195. public:
  13196. Foo (void) { a = 0; }
  13197. private:
  13198. int a;
  13199. };
  13200. _LT_EOF
  13201. _lt_libdeps_save_CFLAGS=$CFLAGS
  13202. case "$CC $CFLAGS " in #(
  13203. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13204. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13205. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13206. esac
  13207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13208. (eval $ac_compile) 2>&5
  13209. ac_status=$?
  13210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13211. test $ac_status = 0; }; then
  13212. # Parse the compiler output and extract the necessary
  13213. # objects, libraries and library flags.
  13214. # Sentinel used to keep track of whether or not we are before
  13215. # the conftest object file.
  13216. pre_test_object_deps_done=no
  13217. for p in `eval "$output_verbose_link_cmd"`; do
  13218. case $prev$p in
  13219. -L* | -R* | -l*)
  13220. # Some compilers place space between "-{L,R}" and the path.
  13221. # Remove the space.
  13222. if test x-L = "$p" ||
  13223. test x-R = "$p"; then
  13224. prev=$p
  13225. continue
  13226. fi
  13227. # Expand the sysroot to ease extracting the directories later.
  13228. if test -z "$prev"; then
  13229. case $p in
  13230. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13231. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13232. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13233. esac
  13234. fi
  13235. case $p in
  13236. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13237. esac
  13238. if test no = "$pre_test_object_deps_done"; then
  13239. case $prev in
  13240. -L | -R)
  13241. # Internal compiler library paths should come after those
  13242. # provided the user. The postdeps already come after the
  13243. # user supplied libs so there is no need to process them.
  13244. if test -z "$compiler_lib_search_path_CXX"; then
  13245. compiler_lib_search_path_CXX=$prev$p
  13246. else
  13247. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13248. fi
  13249. ;;
  13250. # The "-l" case would never come before the object being
  13251. # linked, so don't bother handling this case.
  13252. esac
  13253. else
  13254. if test -z "$postdeps_CXX"; then
  13255. postdeps_CXX=$prev$p
  13256. else
  13257. postdeps_CXX="${postdeps_CXX} $prev$p"
  13258. fi
  13259. fi
  13260. prev=
  13261. ;;
  13262. *.lto.$objext) ;; # Ignore GCC LTO objects
  13263. *.$objext)
  13264. # This assumes that the test object file only shows up
  13265. # once in the compiler output.
  13266. if test "$p" = "conftest.$objext"; then
  13267. pre_test_object_deps_done=yes
  13268. continue
  13269. fi
  13270. if test no = "$pre_test_object_deps_done"; then
  13271. if test -z "$predep_objects_CXX"; then
  13272. predep_objects_CXX=$p
  13273. else
  13274. predep_objects_CXX="$predep_objects_CXX $p"
  13275. fi
  13276. else
  13277. if test -z "$postdep_objects_CXX"; then
  13278. postdep_objects_CXX=$p
  13279. else
  13280. postdep_objects_CXX="$postdep_objects_CXX $p"
  13281. fi
  13282. fi
  13283. ;;
  13284. *) ;; # Ignore the rest.
  13285. esac
  13286. done
  13287. # Clean up.
  13288. rm -f a.out a.exe
  13289. else
  13290. echo "libtool.m4: error: problem compiling CXX test program"
  13291. fi
  13292. $RM -f confest.$objext
  13293. CFLAGS=$_lt_libdeps_save_CFLAGS
  13294. # PORTME: override above test on systems where it is broken
  13295. case $host_os in
  13296. interix[3-9]*)
  13297. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13298. # hack all around it, let's just trust "g++" to DTRT.
  13299. predep_objects_CXX=
  13300. postdep_objects_CXX=
  13301. postdeps_CXX=
  13302. ;;
  13303. esac
  13304. case " $postdeps_CXX " in
  13305. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13306. esac
  13307. compiler_lib_search_dirs_CXX=
  13308. if test -n "${compiler_lib_search_path_CXX}"; then
  13309. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13310. fi
  13311. lt_prog_compiler_wl_CXX=
  13312. lt_prog_compiler_pic_CXX=
  13313. lt_prog_compiler_static_CXX=
  13314. # C++ specific cases for pic, static, wl, etc.
  13315. if test yes = "$GXX"; then
  13316. lt_prog_compiler_wl_CXX='-Wl,'
  13317. lt_prog_compiler_static_CXX='-static'
  13318. case $host_os in
  13319. aix*)
  13320. # All AIX code is PIC.
  13321. if test ia64 = "$host_cpu"; then
  13322. # AIX 5 now supports IA64 processor
  13323. lt_prog_compiler_static_CXX='-Bstatic'
  13324. fi
  13325. lt_prog_compiler_pic_CXX='-fPIC'
  13326. ;;
  13327. amigaos*)
  13328. case $host_cpu in
  13329. powerpc)
  13330. # see comment about AmigaOS4 .so support
  13331. lt_prog_compiler_pic_CXX='-fPIC'
  13332. ;;
  13333. m68k)
  13334. # FIXME: we need at least 68020 code to build shared libraries, but
  13335. # adding the '-m68020' flag to GCC prevents building anything better,
  13336. # like '-m68040'.
  13337. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13338. ;;
  13339. esac
  13340. ;;
  13341. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13342. # PIC is the default for these OSes.
  13343. ;;
  13344. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13345. # This hack is so that the source file can tell whether it is being
  13346. # built for inclusion in a dll (and should export symbols for example).
  13347. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13348. # (--disable-auto-import) libraries
  13349. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13350. case $host_os in
  13351. os2*)
  13352. lt_prog_compiler_static_CXX='$wl-static'
  13353. ;;
  13354. esac
  13355. ;;
  13356. darwin* | rhapsody*)
  13357. # PIC is the default on this platform
  13358. # Common symbols not allowed in MH_DYLIB files
  13359. lt_prog_compiler_pic_CXX='-fno-common'
  13360. ;;
  13361. *djgpp*)
  13362. # DJGPP does not support shared libraries at all
  13363. lt_prog_compiler_pic_CXX=
  13364. ;;
  13365. haiku*)
  13366. # PIC is the default for Haiku.
  13367. # The "-static" flag exists, but is broken.
  13368. lt_prog_compiler_static_CXX=
  13369. ;;
  13370. interix[3-9]*)
  13371. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13372. # Instead, we relocate shared libraries at runtime.
  13373. ;;
  13374. sysv4*MP*)
  13375. if test -d /usr/nec; then
  13376. lt_prog_compiler_pic_CXX=-Kconform_pic
  13377. fi
  13378. ;;
  13379. hpux*)
  13380. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13381. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13382. # sets the default TLS model and affects inlining.
  13383. case $host_cpu in
  13384. hppa*64*)
  13385. ;;
  13386. *)
  13387. lt_prog_compiler_pic_CXX='-fPIC'
  13388. ;;
  13389. esac
  13390. ;;
  13391. *qnx* | *nto*)
  13392. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13393. # it will coredump.
  13394. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13395. ;;
  13396. *)
  13397. lt_prog_compiler_pic_CXX='-fPIC'
  13398. ;;
  13399. esac
  13400. else
  13401. case $host_os in
  13402. aix[4-9]*)
  13403. # All AIX code is PIC.
  13404. if test ia64 = "$host_cpu"; then
  13405. # AIX 5 now supports IA64 processor
  13406. lt_prog_compiler_static_CXX='-Bstatic'
  13407. else
  13408. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13409. fi
  13410. ;;
  13411. chorus*)
  13412. case $cc_basename in
  13413. cxch68*)
  13414. # Green Hills C++ Compiler
  13415. # _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"
  13416. ;;
  13417. esac
  13418. ;;
  13419. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13420. # This hack is so that the source file can tell whether it is being
  13421. # built for inclusion in a dll (and should export symbols for example).
  13422. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13423. ;;
  13424. dgux*)
  13425. case $cc_basename in
  13426. ec++*)
  13427. lt_prog_compiler_pic_CXX='-KPIC'
  13428. ;;
  13429. ghcx*)
  13430. # Green Hills C++ Compiler
  13431. lt_prog_compiler_pic_CXX='-pic'
  13432. ;;
  13433. *)
  13434. ;;
  13435. esac
  13436. ;;
  13437. freebsd* | dragonfly*)
  13438. # FreeBSD uses GNU C++
  13439. ;;
  13440. hpux9* | hpux10* | hpux11*)
  13441. case $cc_basename in
  13442. CC*)
  13443. lt_prog_compiler_wl_CXX='-Wl,'
  13444. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13445. if test ia64 != "$host_cpu"; then
  13446. lt_prog_compiler_pic_CXX='+Z'
  13447. fi
  13448. ;;
  13449. aCC*)
  13450. lt_prog_compiler_wl_CXX='-Wl,'
  13451. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13452. case $host_cpu in
  13453. hppa*64*|ia64*)
  13454. # +Z the default
  13455. ;;
  13456. *)
  13457. lt_prog_compiler_pic_CXX='+Z'
  13458. ;;
  13459. esac
  13460. ;;
  13461. *)
  13462. ;;
  13463. esac
  13464. ;;
  13465. interix*)
  13466. # This is c89, which is MS Visual C++ (no shared libs)
  13467. # Anyone wants to do a port?
  13468. ;;
  13469. irix5* | irix6* | nonstopux*)
  13470. case $cc_basename in
  13471. CC*)
  13472. lt_prog_compiler_wl_CXX='-Wl,'
  13473. lt_prog_compiler_static_CXX='-non_shared'
  13474. # CC pic flag -KPIC is the default.
  13475. ;;
  13476. *)
  13477. ;;
  13478. esac
  13479. ;;
  13480. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13481. case $cc_basename in
  13482. KCC*)
  13483. # KAI C++ Compiler
  13484. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13485. lt_prog_compiler_pic_CXX='-fPIC'
  13486. ;;
  13487. ecpc* )
  13488. # old Intel C++ for x86_64, which still supported -KPIC.
  13489. lt_prog_compiler_wl_CXX='-Wl,'
  13490. lt_prog_compiler_pic_CXX='-KPIC'
  13491. lt_prog_compiler_static_CXX='-static'
  13492. ;;
  13493. icpc* )
  13494. # Intel C++, used to be incompatible with GCC.
  13495. # ICC 10 doesn't accept -KPIC any more.
  13496. lt_prog_compiler_wl_CXX='-Wl,'
  13497. lt_prog_compiler_pic_CXX='-fPIC'
  13498. lt_prog_compiler_static_CXX='-static'
  13499. ;;
  13500. pgCC* | pgcpp*)
  13501. # Portland Group C++ compiler
  13502. lt_prog_compiler_wl_CXX='-Wl,'
  13503. lt_prog_compiler_pic_CXX='-fpic'
  13504. lt_prog_compiler_static_CXX='-Bstatic'
  13505. ;;
  13506. cxx*)
  13507. # Compaq C++
  13508. # Make sure the PIC flag is empty. It appears that all Alpha
  13509. # Linux and Compaq Tru64 Unix objects are PIC.
  13510. lt_prog_compiler_pic_CXX=
  13511. lt_prog_compiler_static_CXX='-non_shared'
  13512. ;;
  13513. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13514. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13515. lt_prog_compiler_wl_CXX='-Wl,'
  13516. lt_prog_compiler_pic_CXX='-qpic'
  13517. lt_prog_compiler_static_CXX='-qstaticlink'
  13518. ;;
  13519. *)
  13520. case `$CC -V 2>&1 | sed 5q` in
  13521. *Sun\ C*)
  13522. # Sun C++ 5.9
  13523. lt_prog_compiler_pic_CXX='-KPIC'
  13524. lt_prog_compiler_static_CXX='-Bstatic'
  13525. lt_prog_compiler_wl_CXX='-Qoption ld '
  13526. ;;
  13527. esac
  13528. ;;
  13529. esac
  13530. ;;
  13531. lynxos*)
  13532. ;;
  13533. m88k*)
  13534. ;;
  13535. mvs*)
  13536. case $cc_basename in
  13537. cxx*)
  13538. lt_prog_compiler_pic_CXX='-W c,exportall'
  13539. ;;
  13540. *)
  13541. ;;
  13542. esac
  13543. ;;
  13544. netbsd*)
  13545. ;;
  13546. *qnx* | *nto*)
  13547. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13548. # it will coredump.
  13549. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13550. ;;
  13551. osf3* | osf4* | osf5*)
  13552. case $cc_basename in
  13553. KCC*)
  13554. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13555. ;;
  13556. RCC*)
  13557. # Rational C++ 2.4.1
  13558. lt_prog_compiler_pic_CXX='-pic'
  13559. ;;
  13560. cxx*)
  13561. # Digital/Compaq C++
  13562. lt_prog_compiler_wl_CXX='-Wl,'
  13563. # Make sure the PIC flag is empty. It appears that all Alpha
  13564. # Linux and Compaq Tru64 Unix objects are PIC.
  13565. lt_prog_compiler_pic_CXX=
  13566. lt_prog_compiler_static_CXX='-non_shared'
  13567. ;;
  13568. *)
  13569. ;;
  13570. esac
  13571. ;;
  13572. psos*)
  13573. ;;
  13574. solaris*)
  13575. case $cc_basename in
  13576. CC* | sunCC*)
  13577. # Sun C++ 4.2, 5.x and Centerline C++
  13578. lt_prog_compiler_pic_CXX='-KPIC'
  13579. lt_prog_compiler_static_CXX='-Bstatic'
  13580. lt_prog_compiler_wl_CXX='-Qoption ld '
  13581. ;;
  13582. gcx*)
  13583. # Green Hills C++ Compiler
  13584. lt_prog_compiler_pic_CXX='-PIC'
  13585. ;;
  13586. *)
  13587. ;;
  13588. esac
  13589. ;;
  13590. sunos4*)
  13591. case $cc_basename in
  13592. CC*)
  13593. # Sun C++ 4.x
  13594. lt_prog_compiler_pic_CXX='-pic'
  13595. lt_prog_compiler_static_CXX='-Bstatic'
  13596. ;;
  13597. lcc*)
  13598. # Lucid
  13599. lt_prog_compiler_pic_CXX='-pic'
  13600. ;;
  13601. *)
  13602. ;;
  13603. esac
  13604. ;;
  13605. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13606. case $cc_basename in
  13607. CC*)
  13608. lt_prog_compiler_wl_CXX='-Wl,'
  13609. lt_prog_compiler_pic_CXX='-KPIC'
  13610. lt_prog_compiler_static_CXX='-Bstatic'
  13611. ;;
  13612. esac
  13613. ;;
  13614. tandem*)
  13615. case $cc_basename in
  13616. NCC*)
  13617. # NonStop-UX NCC 3.20
  13618. lt_prog_compiler_pic_CXX='-KPIC'
  13619. ;;
  13620. *)
  13621. ;;
  13622. esac
  13623. ;;
  13624. vxworks*)
  13625. ;;
  13626. *)
  13627. lt_prog_compiler_can_build_shared_CXX=no
  13628. ;;
  13629. esac
  13630. fi
  13631. case $host_os in
  13632. # For platforms that do not support PIC, -DPIC is meaningless:
  13633. *djgpp*)
  13634. lt_prog_compiler_pic_CXX=
  13635. ;;
  13636. *)
  13637. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13638. ;;
  13639. esac
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13641. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13642. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13643. $as_echo_n "(cached) " >&6
  13644. else
  13645. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13646. fi
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13648. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13649. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13650. #
  13651. # Check to make sure the PIC flag actually works.
  13652. #
  13653. if test -n "$lt_prog_compiler_pic_CXX"; then
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13655. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13656. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. lt_cv_prog_compiler_pic_works_CXX=no
  13660. ac_outfile=conftest.$ac_objext
  13661. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13662. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13663. # Insert the option either (1) after the last *FLAGS variable, or
  13664. # (2) before a word containing "conftest.", or (3) at the end.
  13665. # Note that $ac_compile itself does not contain backslashes and begins
  13666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13667. # The option is referenced via a variable to avoid confusing sed.
  13668. lt_compile=`echo "$ac_compile" | $SED \
  13669. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13670. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13671. -e 's:$: $lt_compiler_flag:'`
  13672. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13673. (eval "$lt_compile" 2>conftest.err)
  13674. ac_status=$?
  13675. cat conftest.err >&5
  13676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13677. if (exit $ac_status) && test -s "$ac_outfile"; then
  13678. # The compiler can only warn and ignore the option if not recognized
  13679. # So say no if there are warnings other than the usual output.
  13680. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13681. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13682. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13683. lt_cv_prog_compiler_pic_works_CXX=yes
  13684. fi
  13685. fi
  13686. $RM conftest*
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13689. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13690. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13691. case $lt_prog_compiler_pic_CXX in
  13692. "" | " "*) ;;
  13693. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13694. esac
  13695. else
  13696. lt_prog_compiler_pic_CXX=
  13697. lt_prog_compiler_can_build_shared_CXX=no
  13698. fi
  13699. fi
  13700. #
  13701. # Check to make sure the static flag actually works.
  13702. #
  13703. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13705. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13706. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13707. $as_echo_n "(cached) " >&6
  13708. else
  13709. lt_cv_prog_compiler_static_works_CXX=no
  13710. save_LDFLAGS=$LDFLAGS
  13711. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13712. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13713. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13714. # The linker can only warn and ignore the option if not recognized
  13715. # So say no if there are warnings
  13716. if test -s conftest.err; then
  13717. # Append any errors to the config.log.
  13718. cat conftest.err 1>&5
  13719. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13720. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13721. if diff conftest.exp conftest.er2 >/dev/null; then
  13722. lt_cv_prog_compiler_static_works_CXX=yes
  13723. fi
  13724. else
  13725. lt_cv_prog_compiler_static_works_CXX=yes
  13726. fi
  13727. fi
  13728. $RM -r conftest*
  13729. LDFLAGS=$save_LDFLAGS
  13730. fi
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13732. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13733. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13734. :
  13735. else
  13736. lt_prog_compiler_static_CXX=
  13737. fi
  13738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13739. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13740. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13741. $as_echo_n "(cached) " >&6
  13742. else
  13743. lt_cv_prog_compiler_c_o_CXX=no
  13744. $RM -r conftest 2>/dev/null
  13745. mkdir conftest
  13746. cd conftest
  13747. mkdir out
  13748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13750. # Insert the option either (1) after the last *FLAGS variable, or
  13751. # (2) before a word containing "conftest.", or (3) at the end.
  13752. # Note that $ac_compile itself does not contain backslashes and begins
  13753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13754. lt_compile=`echo "$ac_compile" | $SED \
  13755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13756. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13757. -e 's:$: $lt_compiler_flag:'`
  13758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13759. (eval "$lt_compile" 2>out/conftest.err)
  13760. ac_status=$?
  13761. cat out/conftest.err >&5
  13762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13764. then
  13765. # The compiler can only warn and ignore the option if not recognized
  13766. # So say no if there are warnings
  13767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13770. lt_cv_prog_compiler_c_o_CXX=yes
  13771. fi
  13772. fi
  13773. chmod u+w . 2>&5
  13774. $RM conftest*
  13775. # SGI C++ compiler will create directory out/ii_files/ for
  13776. # template instantiation
  13777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13778. $RM out/* && rmdir out
  13779. cd ..
  13780. $RM -r conftest
  13781. $RM conftest*
  13782. fi
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13784. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13786. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13787. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13788. $as_echo_n "(cached) " >&6
  13789. else
  13790. lt_cv_prog_compiler_c_o_CXX=no
  13791. $RM -r conftest 2>/dev/null
  13792. mkdir conftest
  13793. cd conftest
  13794. mkdir out
  13795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13796. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13797. # Insert the option either (1) after the last *FLAGS variable, or
  13798. # (2) before a word containing "conftest.", or (3) at the end.
  13799. # Note that $ac_compile itself does not contain backslashes and begins
  13800. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13801. lt_compile=`echo "$ac_compile" | $SED \
  13802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13804. -e 's:$: $lt_compiler_flag:'`
  13805. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13806. (eval "$lt_compile" 2>out/conftest.err)
  13807. ac_status=$?
  13808. cat out/conftest.err >&5
  13809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13810. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13811. then
  13812. # The compiler can only warn and ignore the option if not recognized
  13813. # So say no if there are warnings
  13814. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13815. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13816. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13817. lt_cv_prog_compiler_c_o_CXX=yes
  13818. fi
  13819. fi
  13820. chmod u+w . 2>&5
  13821. $RM conftest*
  13822. # SGI C++ compiler will create directory out/ii_files/ for
  13823. # template instantiation
  13824. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13825. $RM out/* && rmdir out
  13826. cd ..
  13827. $RM -r conftest
  13828. $RM conftest*
  13829. fi
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13831. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13832. hard_links=nottested
  13833. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13834. # do not overwrite the value of need_locks provided by the user
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13836. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13837. hard_links=yes
  13838. $RM conftest*
  13839. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13840. touch conftest.a
  13841. ln conftest.a conftest.b 2>&5 || hard_links=no
  13842. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13844. $as_echo "$hard_links" >&6; }
  13845. if test no = "$hard_links"; then
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13847. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13848. need_locks=warn
  13849. fi
  13850. else
  13851. need_locks=no
  13852. fi
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13854. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13855. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13856. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13857. case $host_os in
  13858. aix[4-9]*)
  13859. # If we're using GNU nm, then we don't want the "-C" option.
  13860. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13861. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13862. # weak defined symbols like other global defined symbols, whereas
  13863. # GNU nm marks them as "W".
  13864. # While the 'weak' keyword is ignored in the Export File, we need
  13865. # it in the Import File for the 'aix-soname' feature, so we have
  13866. # to replace the "-B" option with "-P" for AIX nm.
  13867. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13868. 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'
  13869. else
  13870. 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'
  13871. fi
  13872. ;;
  13873. pw32*)
  13874. export_symbols_cmds_CXX=$ltdll_cmds
  13875. ;;
  13876. cygwin* | mingw* | cegcc*)
  13877. case $cc_basename in
  13878. cl*)
  13879. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13880. ;;
  13881. *)
  13882. 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'
  13883. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13884. ;;
  13885. esac
  13886. ;;
  13887. *)
  13888. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13889. ;;
  13890. esac
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13892. $as_echo "$ld_shlibs_CXX" >&6; }
  13893. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13894. with_gnu_ld_CXX=$with_gnu_ld
  13895. #
  13896. # Do we need to explicitly link libc?
  13897. #
  13898. case "x$archive_cmds_need_lc_CXX" in
  13899. x|xyes)
  13900. # Assume -lc should be added
  13901. archive_cmds_need_lc_CXX=yes
  13902. if test yes,yes = "$GCC,$enable_shared"; then
  13903. case $archive_cmds_CXX in
  13904. *'~'*)
  13905. # FIXME: we may have to deal with multi-command sequences.
  13906. ;;
  13907. '$CC '*)
  13908. # Test whether the compiler implicitly links with -lc since on some
  13909. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13910. # to ld, don't add -lc before -lgcc.
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13912. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13913. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13914. $as_echo_n "(cached) " >&6
  13915. else
  13916. $RM conftest*
  13917. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13919. (eval $ac_compile) 2>&5
  13920. ac_status=$?
  13921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13922. test $ac_status = 0; } 2>conftest.err; then
  13923. soname=conftest
  13924. lib=conftest
  13925. libobjs=conftest.$ac_objext
  13926. deplibs=
  13927. wl=$lt_prog_compiler_wl_CXX
  13928. pic_flag=$lt_prog_compiler_pic_CXX
  13929. compiler_flags=-v
  13930. linker_flags=-v
  13931. verstring=
  13932. output_objdir=.
  13933. libname=conftest
  13934. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13935. allow_undefined_flag_CXX=
  13936. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13937. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13938. ac_status=$?
  13939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13940. test $ac_status = 0; }
  13941. then
  13942. lt_cv_archive_cmds_need_lc_CXX=no
  13943. else
  13944. lt_cv_archive_cmds_need_lc_CXX=yes
  13945. fi
  13946. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13947. else
  13948. cat conftest.err 1>&5
  13949. fi
  13950. $RM conftest*
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13953. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13954. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13955. ;;
  13956. esac
  13957. fi
  13958. ;;
  13959. esac
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13961. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13962. library_names_spec=
  13963. libname_spec='lib$name'
  13964. soname_spec=
  13965. shrext_cmds=.so
  13966. postinstall_cmds=
  13967. postuninstall_cmds=
  13968. finish_cmds=
  13969. finish_eval=
  13970. shlibpath_var=
  13971. shlibpath_overrides_runpath=unknown
  13972. version_type=none
  13973. dynamic_linker="$host_os ld.so"
  13974. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13975. need_lib_prefix=unknown
  13976. hardcode_into_libs=no
  13977. # when you set need_version to no, make sure it does not cause -set_version
  13978. # flags to be left without arguments
  13979. need_version=unknown
  13980. case $host_os in
  13981. aix3*)
  13982. version_type=linux # correct to gnu/linux during the next big refactor
  13983. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13984. shlibpath_var=LIBPATH
  13985. # AIX 3 has no versioning support, so we append a major version to the name.
  13986. soname_spec='$libname$release$shared_ext$major'
  13987. ;;
  13988. aix[4-9]*)
  13989. version_type=linux # correct to gnu/linux during the next big refactor
  13990. need_lib_prefix=no
  13991. need_version=no
  13992. hardcode_into_libs=yes
  13993. if test ia64 = "$host_cpu"; then
  13994. # AIX 5 supports IA64
  13995. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13996. shlibpath_var=LD_LIBRARY_PATH
  13997. else
  13998. # With GCC up to 2.95.x, collect2 would create an import file
  13999. # for dependence libraries. The import file would start with
  14000. # the line '#! .'. This would cause the generated library to
  14001. # depend on '.', always an invalid library. This was fixed in
  14002. # development snapshots of GCC prior to 3.0.
  14003. case $host_os in
  14004. aix4 | aix4.[01] | aix4.[01].*)
  14005. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14006. echo ' yes '
  14007. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14008. :
  14009. else
  14010. can_build_shared=no
  14011. fi
  14012. ;;
  14013. esac
  14014. # Using Import Files as archive members, it is possible to support
  14015. # filename-based versioning of shared library archives on AIX. While
  14016. # this would work for both with and without runtime linking, it will
  14017. # prevent static linking of such archives. So we do filename-based
  14018. # shared library versioning with .so extension only, which is used
  14019. # when both runtime linking and shared linking is enabled.
  14020. # Unfortunately, runtime linking may impact performance, so we do
  14021. # not want this to be the default eventually. Also, we use the
  14022. # versioned .so libs for executables only if there is the -brtl
  14023. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14024. # To allow for filename-based versioning support, we need to create
  14025. # libNAME.so.V as an archive file, containing:
  14026. # *) an Import File, referring to the versioned filename of the
  14027. # archive as well as the shared archive member, telling the
  14028. # bitwidth (32 or 64) of that shared object, and providing the
  14029. # list of exported symbols of that shared object, eventually
  14030. # decorated with the 'weak' keyword
  14031. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14032. # it being seen by the linker.
  14033. # At run time we better use the real file rather than another symlink,
  14034. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14035. case $with_aix_soname,$aix_use_runtimelinking in
  14036. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14037. # soname into executable. Probably we can add versioning support to
  14038. # collect2, so additional links can be useful in future.
  14039. aix,yes) # traditional libtool
  14040. dynamic_linker='AIX unversionable lib.so'
  14041. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14042. # instead of lib<name>.a to let people know that these are not
  14043. # typical AIX shared libraries.
  14044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14045. ;;
  14046. aix,no) # traditional AIX only
  14047. dynamic_linker='AIX lib.a(lib.so.V)'
  14048. # We preserve .a as extension for shared libraries through AIX4.2
  14049. # and later when we are not doing run time linking.
  14050. library_names_spec='$libname$release.a $libname.a'
  14051. soname_spec='$libname$release$shared_ext$major'
  14052. ;;
  14053. svr4,*) # full svr4 only
  14054. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14055. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14056. # We do not specify a path in Import Files, so LIBPATH fires.
  14057. shlibpath_overrides_runpath=yes
  14058. ;;
  14059. *,yes) # both, prefer svr4
  14060. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14061. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14062. # unpreferred sharedlib libNAME.a needs extra handling
  14063. 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"'
  14064. 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"'
  14065. # We do not specify a path in Import Files, so LIBPATH fires.
  14066. shlibpath_overrides_runpath=yes
  14067. ;;
  14068. *,no) # both, prefer aix
  14069. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14070. library_names_spec='$libname$release.a $libname.a'
  14071. soname_spec='$libname$release$shared_ext$major'
  14072. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14073. 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)'
  14074. 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"'
  14075. ;;
  14076. esac
  14077. shlibpath_var=LIBPATH
  14078. fi
  14079. ;;
  14080. amigaos*)
  14081. case $host_cpu in
  14082. powerpc)
  14083. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14084. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14086. ;;
  14087. m68k)
  14088. library_names_spec='$libname.ixlibrary $libname.a'
  14089. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14090. 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'
  14091. ;;
  14092. esac
  14093. ;;
  14094. beos*)
  14095. library_names_spec='$libname$shared_ext'
  14096. dynamic_linker="$host_os ld.so"
  14097. shlibpath_var=LIBRARY_PATH
  14098. ;;
  14099. bsdi[45]*)
  14100. version_type=linux # correct to gnu/linux during the next big refactor
  14101. need_version=no
  14102. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14103. soname_spec='$libname$release$shared_ext$major'
  14104. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14105. shlibpath_var=LD_LIBRARY_PATH
  14106. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14107. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14108. # the default ld.so.conf also contains /usr/contrib/lib and
  14109. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14110. # libtool to hard-code these into programs
  14111. ;;
  14112. cygwin* | mingw* | pw32* | cegcc*)
  14113. version_type=windows
  14114. shrext_cmds=.dll
  14115. need_version=no
  14116. need_lib_prefix=no
  14117. case $GCC,$cc_basename in
  14118. yes,*)
  14119. # gcc
  14120. library_names_spec='$libname.dll.a'
  14121. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14122. postinstall_cmds='base_file=`basename \$file`~
  14123. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14124. dldir=$destdir/`dirname \$dlpath`~
  14125. test -d \$dldir || mkdir -p \$dldir~
  14126. $install_prog $dir/$dlname \$dldir/$dlname~
  14127. chmod a+x \$dldir/$dlname~
  14128. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14129. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14130. fi'
  14131. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14132. dlpath=$dir/\$dldll~
  14133. $RM \$dlpath'
  14134. shlibpath_overrides_runpath=yes
  14135. case $host_os in
  14136. cygwin*)
  14137. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14138. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14139. ;;
  14140. mingw* | cegcc*)
  14141. # MinGW DLLs use traditional 'lib' prefix
  14142. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14143. ;;
  14144. pw32*)
  14145. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14146. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14147. ;;
  14148. esac
  14149. dynamic_linker='Win32 ld.exe'
  14150. ;;
  14151. *,cl*)
  14152. # Native MSVC
  14153. libname_spec='$name'
  14154. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14155. library_names_spec='$libname.dll.lib'
  14156. case $build_os in
  14157. mingw*)
  14158. sys_lib_search_path_spec=
  14159. lt_save_ifs=$IFS
  14160. IFS=';'
  14161. for lt_path in $LIB
  14162. do
  14163. IFS=$lt_save_ifs
  14164. # Let DOS variable expansion print the short 8.3 style file name.
  14165. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14166. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14167. done
  14168. IFS=$lt_save_ifs
  14169. # Convert to MSYS style.
  14170. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14171. ;;
  14172. cygwin*)
  14173. # Convert to unix form, then to dos form, then back to unix form
  14174. # but this time dos style (no spaces!) so that the unix form looks
  14175. # like /cygdrive/c/PROGRA~1:/cygdr...
  14176. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14177. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14178. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14179. ;;
  14180. *)
  14181. sys_lib_search_path_spec=$LIB
  14182. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14183. # It is most probably a Windows format PATH.
  14184. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14185. else
  14186. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14187. fi
  14188. # FIXME: find the short name or the path components, as spaces are
  14189. # common. (e.g. "Program Files" -> "PROGRA~1")
  14190. ;;
  14191. esac
  14192. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14193. postinstall_cmds='base_file=`basename \$file`~
  14194. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14195. dldir=$destdir/`dirname \$dlpath`~
  14196. test -d \$dldir || mkdir -p \$dldir~
  14197. $install_prog $dir/$dlname \$dldir/$dlname'
  14198. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14199. dlpath=$dir/\$dldll~
  14200. $RM \$dlpath'
  14201. shlibpath_overrides_runpath=yes
  14202. dynamic_linker='Win32 link.exe'
  14203. ;;
  14204. *)
  14205. # Assume MSVC wrapper
  14206. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14207. dynamic_linker='Win32 ld.exe'
  14208. ;;
  14209. esac
  14210. # FIXME: first we should search . and the directory the executable is in
  14211. shlibpath_var=PATH
  14212. ;;
  14213. darwin* | rhapsody*)
  14214. dynamic_linker="$host_os dyld"
  14215. version_type=darwin
  14216. need_lib_prefix=no
  14217. need_version=no
  14218. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  14219. soname_spec='$libname$release$major$shared_ext'
  14220. shlibpath_overrides_runpath=yes
  14221. shlibpath_var=DYLD_LIBRARY_PATH
  14222. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  14223. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14224. ;;
  14225. dgux*)
  14226. version_type=linux # correct to gnu/linux during the next big refactor
  14227. need_lib_prefix=no
  14228. need_version=no
  14229. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14230. soname_spec='$libname$release$shared_ext$major'
  14231. shlibpath_var=LD_LIBRARY_PATH
  14232. ;;
  14233. freebsd* | dragonfly*)
  14234. # DragonFly does not have aout. When/if they implement a new
  14235. # versioning mechanism, adjust this.
  14236. if test -x /usr/bin/objformat; then
  14237. objformat=`/usr/bin/objformat`
  14238. else
  14239. case $host_os in
  14240. freebsd[23].*) objformat=aout ;;
  14241. *) objformat=elf ;;
  14242. esac
  14243. fi
  14244. # Handle Gentoo/FreeBSD as it was Linux
  14245. case $host_vendor in
  14246. gentoo)
  14247. version_type=linux ;;
  14248. *)
  14249. version_type=freebsd-$objformat ;;
  14250. esac
  14251. case $version_type in
  14252. freebsd-elf*)
  14253. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14254. soname_spec='$libname$release$shared_ext$major'
  14255. need_version=no
  14256. need_lib_prefix=no
  14257. ;;
  14258. freebsd-*)
  14259. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14260. need_version=yes
  14261. ;;
  14262. linux)
  14263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14264. soname_spec='${libname}${release}${shared_ext}$major'
  14265. need_lib_prefix=no
  14266. need_version=no
  14267. ;;
  14268. esac
  14269. shlibpath_var=LD_LIBRARY_PATH
  14270. case $host_os in
  14271. freebsd2.*)
  14272. shlibpath_overrides_runpath=yes
  14273. ;;
  14274. freebsd3.[01]* | freebsdelf3.[01]*)
  14275. shlibpath_overrides_runpath=yes
  14276. hardcode_into_libs=yes
  14277. ;;
  14278. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14279. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14280. shlibpath_overrides_runpath=no
  14281. hardcode_into_libs=yes
  14282. ;;
  14283. *) # from 4.6 on, and DragonFly
  14284. shlibpath_overrides_runpath=yes
  14285. hardcode_into_libs=yes
  14286. ;;
  14287. esac
  14288. ;;
  14289. haiku*)
  14290. version_type=linux # correct to gnu/linux during the next big refactor
  14291. need_lib_prefix=no
  14292. need_version=no
  14293. dynamic_linker="$host_os runtime_loader"
  14294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14295. soname_spec='$libname$release$shared_ext$major'
  14296. shlibpath_var=LIBRARY_PATH
  14297. shlibpath_overrides_runpath=no
  14298. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14299. hardcode_into_libs=yes
  14300. ;;
  14301. hpux9* | hpux10* | hpux11*)
  14302. # Give a soname corresponding to the major version so that dld.sl refuses to
  14303. # link against other versions.
  14304. version_type=sunos
  14305. need_lib_prefix=no
  14306. need_version=no
  14307. case $host_cpu in
  14308. ia64*)
  14309. shrext_cmds='.so'
  14310. hardcode_into_libs=yes
  14311. dynamic_linker="$host_os dld.so"
  14312. shlibpath_var=LD_LIBRARY_PATH
  14313. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14315. soname_spec='$libname$release$shared_ext$major'
  14316. if test 32 = "$HPUX_IA64_MODE"; then
  14317. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14318. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14319. else
  14320. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14321. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14322. fi
  14323. ;;
  14324. hppa*64*)
  14325. shrext_cmds='.sl'
  14326. hardcode_into_libs=yes
  14327. dynamic_linker="$host_os dld.sl"
  14328. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14329. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14330. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14331. soname_spec='$libname$release$shared_ext$major'
  14332. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14333. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14334. ;;
  14335. *)
  14336. shrext_cmds='.sl'
  14337. dynamic_linker="$host_os dld.sl"
  14338. shlibpath_var=SHLIB_PATH
  14339. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14341. soname_spec='$libname$release$shared_ext$major'
  14342. ;;
  14343. esac
  14344. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14345. postinstall_cmds='chmod 555 $lib'
  14346. # or fails outright, so override atomically:
  14347. install_override_mode=555
  14348. ;;
  14349. interix[3-9]*)
  14350. version_type=linux # correct to gnu/linux during the next big refactor
  14351. need_lib_prefix=no
  14352. need_version=no
  14353. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14354. soname_spec='$libname$release$shared_ext$major'
  14355. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14356. shlibpath_var=LD_LIBRARY_PATH
  14357. shlibpath_overrides_runpath=no
  14358. hardcode_into_libs=yes
  14359. ;;
  14360. irix5* | irix6* | nonstopux*)
  14361. case $host_os in
  14362. nonstopux*) version_type=nonstopux ;;
  14363. *)
  14364. if test yes = "$lt_cv_prog_gnu_ld"; then
  14365. version_type=linux # correct to gnu/linux during the next big refactor
  14366. else
  14367. version_type=irix
  14368. fi ;;
  14369. esac
  14370. need_lib_prefix=no
  14371. need_version=no
  14372. soname_spec='$libname$release$shared_ext$major'
  14373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14374. case $host_os in
  14375. irix5* | nonstopux*)
  14376. libsuff= shlibsuff=
  14377. ;;
  14378. *)
  14379. case $LD in # libtool.m4 will add one of these switches to LD
  14380. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14381. libsuff= shlibsuff= libmagic=32-bit;;
  14382. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14383. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14384. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14385. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14386. *) libsuff= shlibsuff= libmagic=never-match;;
  14387. esac
  14388. ;;
  14389. esac
  14390. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14391. shlibpath_overrides_runpath=no
  14392. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14393. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14394. hardcode_into_libs=yes
  14395. ;;
  14396. # No shared lib support for Linux oldld, aout, or coff.
  14397. linux*oldld* | linux*aout* | linux*coff*)
  14398. dynamic_linker=no
  14399. ;;
  14400. linux*android*)
  14401. version_type=none # Android doesn't support versioned libraries.
  14402. need_lib_prefix=no
  14403. need_version=no
  14404. library_names_spec='$libname$release$shared_ext'
  14405. soname_spec='$libname$release$shared_ext'
  14406. finish_cmds=
  14407. shlibpath_var=LD_LIBRARY_PATH
  14408. shlibpath_overrides_runpath=yes
  14409. # This implies no fast_install, which is unacceptable.
  14410. # Some rework will be needed to allow for fast_install
  14411. # before this can be enabled.
  14412. hardcode_into_libs=yes
  14413. dynamic_linker='Android linker'
  14414. # Don't embed -rpath directories since the linker doesn't support them.
  14415. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14416. ;;
  14417. # This must be glibc/ELF.
  14418. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14419. version_type=linux # correct to gnu/linux during the next big refactor
  14420. need_lib_prefix=no
  14421. need_version=no
  14422. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14423. soname_spec='$libname$release$shared_ext$major'
  14424. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14425. shlibpath_var=LD_LIBRARY_PATH
  14426. shlibpath_overrides_runpath=no
  14427. # Some binutils ld are patched to set DT_RUNPATH
  14428. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. lt_cv_shlibpath_overrides_runpath=no
  14432. save_LDFLAGS=$LDFLAGS
  14433. save_libdir=$libdir
  14434. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14435. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14437. /* end confdefs.h. */
  14438. int
  14439. main ()
  14440. {
  14441. ;
  14442. return 0;
  14443. }
  14444. _ACEOF
  14445. if ac_fn_cxx_try_link "$LINENO"; then :
  14446. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14447. lt_cv_shlibpath_overrides_runpath=yes
  14448. fi
  14449. fi
  14450. rm -f core conftest.err conftest.$ac_objext \
  14451. conftest$ac_exeext conftest.$ac_ext
  14452. LDFLAGS=$save_LDFLAGS
  14453. libdir=$save_libdir
  14454. fi
  14455. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14456. # This implies no fast_install, which is unacceptable.
  14457. # Some rework will be needed to allow for fast_install
  14458. # before this can be enabled.
  14459. hardcode_into_libs=yes
  14460. # Ideally, we could use ldconfig to report *all* directores which are
  14461. # searched for libraries, however this is still not possible. Aside from not
  14462. # being certain /sbin/ldconfig is available, command
  14463. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14464. # even though it is searched at run-time. Try to do the best guess by
  14465. # appending ld.so.conf contents (and includes) to the search path.
  14466. if test -f /etc/ld.so.conf; then
  14467. 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' ' '`
  14468. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14469. fi
  14470. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14471. # powerpc, because MkLinux only supported shared libraries with the
  14472. # GNU dynamic linker. Since this was broken with cross compilers,
  14473. # most powerpc-linux boxes support dynamic linking these days and
  14474. # people can always --disable-shared, the test was removed, and we
  14475. # assume the GNU/Linux dynamic linker is in use.
  14476. dynamic_linker='GNU/Linux ld.so'
  14477. ;;
  14478. netbsd*)
  14479. version_type=sunos
  14480. need_lib_prefix=no
  14481. need_version=no
  14482. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14483. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14484. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14485. dynamic_linker='NetBSD (a.out) ld.so'
  14486. else
  14487. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14488. soname_spec='$libname$release$shared_ext$major'
  14489. dynamic_linker='NetBSD ld.elf_so'
  14490. fi
  14491. shlibpath_var=LD_LIBRARY_PATH
  14492. shlibpath_overrides_runpath=yes
  14493. hardcode_into_libs=yes
  14494. ;;
  14495. newsos6)
  14496. version_type=linux # correct to gnu/linux during the next big refactor
  14497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14498. shlibpath_var=LD_LIBRARY_PATH
  14499. shlibpath_overrides_runpath=yes
  14500. ;;
  14501. *nto* | *qnx*)
  14502. version_type=qnx
  14503. need_lib_prefix=no
  14504. need_version=no
  14505. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14506. soname_spec='$libname$release$shared_ext$major'
  14507. shlibpath_var=LD_LIBRARY_PATH
  14508. shlibpath_overrides_runpath=no
  14509. hardcode_into_libs=yes
  14510. dynamic_linker='ldqnx.so'
  14511. ;;
  14512. openbsd* | bitrig*)
  14513. version_type=sunos
  14514. sys_lib_dlsearch_path_spec=/usr/lib
  14515. need_lib_prefix=no
  14516. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14517. need_version=no
  14518. else
  14519. need_version=yes
  14520. fi
  14521. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14522. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14523. shlibpath_var=LD_LIBRARY_PATH
  14524. shlibpath_overrides_runpath=yes
  14525. ;;
  14526. os2*)
  14527. libname_spec='$name'
  14528. version_type=windows
  14529. shrext_cmds=.dll
  14530. need_version=no
  14531. need_lib_prefix=no
  14532. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14533. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14534. v=$($ECHO $release$versuffix | tr -d .-);
  14535. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14536. $ECHO $n$v`$shared_ext'
  14537. library_names_spec='${libname}_dll.$libext'
  14538. dynamic_linker='OS/2 ld.exe'
  14539. shlibpath_var=BEGINLIBPATH
  14540. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14541. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14542. postinstall_cmds='base_file=`basename \$file`~
  14543. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14544. dldir=$destdir/`dirname \$dlpath`~
  14545. test -d \$dldir || mkdir -p \$dldir~
  14546. $install_prog $dir/$dlname \$dldir/$dlname~
  14547. chmod a+x \$dldir/$dlname~
  14548. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14549. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14550. fi'
  14551. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14552. dlpath=$dir/\$dldll~
  14553. $RM \$dlpath'
  14554. ;;
  14555. osf3* | osf4* | osf5*)
  14556. version_type=osf
  14557. need_lib_prefix=no
  14558. need_version=no
  14559. soname_spec='$libname$release$shared_ext$major'
  14560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14561. shlibpath_var=LD_LIBRARY_PATH
  14562. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14563. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14564. ;;
  14565. rdos*)
  14566. dynamic_linker=no
  14567. ;;
  14568. solaris*)
  14569. version_type=linux # correct to gnu/linux during the next big refactor
  14570. need_lib_prefix=no
  14571. need_version=no
  14572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14573. soname_spec='$libname$release$shared_ext$major'
  14574. shlibpath_var=LD_LIBRARY_PATH
  14575. shlibpath_overrides_runpath=yes
  14576. hardcode_into_libs=yes
  14577. # ldd complains unless libraries are executable
  14578. postinstall_cmds='chmod +x $lib'
  14579. ;;
  14580. sunos4*)
  14581. version_type=sunos
  14582. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14583. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14584. shlibpath_var=LD_LIBRARY_PATH
  14585. shlibpath_overrides_runpath=yes
  14586. if test yes = "$with_gnu_ld"; then
  14587. need_lib_prefix=no
  14588. fi
  14589. need_version=yes
  14590. ;;
  14591. sysv4 | sysv4.3*)
  14592. version_type=linux # correct to gnu/linux during the next big refactor
  14593. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14594. soname_spec='$libname$release$shared_ext$major'
  14595. shlibpath_var=LD_LIBRARY_PATH
  14596. case $host_vendor in
  14597. sni)
  14598. shlibpath_overrides_runpath=no
  14599. need_lib_prefix=no
  14600. runpath_var=LD_RUN_PATH
  14601. ;;
  14602. siemens)
  14603. need_lib_prefix=no
  14604. ;;
  14605. motorola)
  14606. need_lib_prefix=no
  14607. need_version=no
  14608. shlibpath_overrides_runpath=no
  14609. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14610. ;;
  14611. esac
  14612. ;;
  14613. sysv4*MP*)
  14614. if test -d /usr/nec; then
  14615. version_type=linux # correct to gnu/linux during the next big refactor
  14616. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14617. soname_spec='$libname$shared_ext.$major'
  14618. shlibpath_var=LD_LIBRARY_PATH
  14619. fi
  14620. ;;
  14621. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14622. version_type=sco
  14623. need_lib_prefix=no
  14624. need_version=no
  14625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14626. soname_spec='$libname$release$shared_ext$major'
  14627. shlibpath_var=LD_LIBRARY_PATH
  14628. shlibpath_overrides_runpath=yes
  14629. hardcode_into_libs=yes
  14630. if test yes = "$with_gnu_ld"; then
  14631. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14632. else
  14633. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14634. case $host_os in
  14635. sco3.2v5*)
  14636. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14637. ;;
  14638. esac
  14639. fi
  14640. sys_lib_dlsearch_path_spec='/usr/lib'
  14641. ;;
  14642. tpf*)
  14643. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14644. version_type=linux # correct to gnu/linux during the next big refactor
  14645. need_lib_prefix=no
  14646. need_version=no
  14647. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14648. shlibpath_var=LD_LIBRARY_PATH
  14649. shlibpath_overrides_runpath=no
  14650. hardcode_into_libs=yes
  14651. ;;
  14652. uts4*)
  14653. version_type=linux # correct to gnu/linux during the next big refactor
  14654. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14655. soname_spec='$libname$release$shared_ext$major'
  14656. shlibpath_var=LD_LIBRARY_PATH
  14657. ;;
  14658. *)
  14659. dynamic_linker=no
  14660. ;;
  14661. esac
  14662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14663. $as_echo "$dynamic_linker" >&6; }
  14664. test no = "$dynamic_linker" && can_build_shared=no
  14665. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14666. if test yes = "$GCC"; then
  14667. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14668. fi
  14669. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14670. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14671. fi
  14672. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14673. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14674. fi
  14675. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14676. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14677. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14678. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14679. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14680. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14682. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14683. hardcode_action_CXX=
  14684. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14685. test -n "$runpath_var_CXX" ||
  14686. test yes = "$hardcode_automatic_CXX"; then
  14687. # We can hardcode non-existent directories.
  14688. if test no != "$hardcode_direct_CXX" &&
  14689. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14690. # have to relink, otherwise we might link with an installed library
  14691. # when we should be linking with a yet-to-be-installed one
  14692. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14693. test no != "$hardcode_minus_L_CXX"; then
  14694. # Linking always hardcodes the temporary library directory.
  14695. hardcode_action_CXX=relink
  14696. else
  14697. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14698. hardcode_action_CXX=immediate
  14699. fi
  14700. else
  14701. # We cannot hardcode anything, or else we can only hardcode existing
  14702. # directories.
  14703. hardcode_action_CXX=unsupported
  14704. fi
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14706. $as_echo "$hardcode_action_CXX" >&6; }
  14707. if test relink = "$hardcode_action_CXX" ||
  14708. test yes = "$inherit_rpath_CXX"; then
  14709. # Fast installation is not supported
  14710. enable_fast_install=no
  14711. elif test yes = "$shlibpath_overrides_runpath" ||
  14712. test no = "$enable_shared"; then
  14713. # Fast installation is not necessary
  14714. enable_fast_install=needless
  14715. fi
  14716. fi # test -n "$compiler"
  14717. CC=$lt_save_CC
  14718. CFLAGS=$lt_save_CFLAGS
  14719. LDCXX=$LD
  14720. LD=$lt_save_LD
  14721. GCC=$lt_save_GCC
  14722. with_gnu_ld=$lt_save_with_gnu_ld
  14723. lt_cv_path_LDCXX=$lt_cv_path_LD
  14724. lt_cv_path_LD=$lt_save_path_LD
  14725. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14726. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14727. fi # test yes != "$_lt_caught_CXX_error"
  14728. ac_ext=cpp
  14729. ac_cpp='$CXXCPP $CPPFLAGS'
  14730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14733. if test "$GCC" = yes; then :
  14734. for flag in -Wall -Wextra; do
  14735. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14737. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14738. if eval \${$as_CACHEVAR+:} false; then :
  14739. $as_echo_n "(cached) " >&6
  14740. else
  14741. ax_check_save_flags=$CXXFLAGS
  14742. CXXFLAGS="$CXXFLAGS $flag"
  14743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14744. /* end confdefs.h. */
  14745. int
  14746. main ()
  14747. {
  14748. ;
  14749. return 0;
  14750. }
  14751. _ACEOF
  14752. if ac_fn_cxx_try_compile "$LINENO"; then :
  14753. eval "$as_CACHEVAR=yes"
  14754. else
  14755. eval "$as_CACHEVAR=no"
  14756. fi
  14757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14758. CXXFLAGS=$ax_check_save_flags
  14759. fi
  14760. eval ac_res=\$$as_CACHEVAR
  14761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14762. $as_echo "$ac_res" >&6; }
  14763. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14764. if ${CXXFLAGS+:} false; then :
  14765. case " $CXXFLAGS " in #(
  14766. *" $flag "*) :
  14767. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
  14768. (: CXXFLAGS already contains $flag) 2>&5
  14769. ac_status=$?
  14770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14771. test $ac_status = 0; } ;; #(
  14772. *) :
  14773. as_fn_append CXXFLAGS " $flag"
  14774. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14775. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14776. ac_status=$?
  14777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14778. test $ac_status = 0; }
  14779. ;;
  14780. esac
  14781. else
  14782. CXXFLAGS=$flag
  14783. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14784. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14785. ac_status=$?
  14786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14787. test $ac_status = 0; }
  14788. fi
  14789. else
  14790. :
  14791. fi
  14792. done
  14793. for flag in -fexceptions; do
  14794. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14796. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14797. if eval \${$as_CACHEVAR+:} false; then :
  14798. $as_echo_n "(cached) " >&6
  14799. else
  14800. ax_check_save_flags=$CXXFLAGS
  14801. CXXFLAGS="$CXXFLAGS $flag"
  14802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14803. /* end confdefs.h. */
  14804. int
  14805. main ()
  14806. {
  14807. ;
  14808. return 0;
  14809. }
  14810. _ACEOF
  14811. if ac_fn_cxx_try_compile "$LINENO"; then :
  14812. eval "$as_CACHEVAR=yes"
  14813. else
  14814. eval "$as_CACHEVAR=no"
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14817. CXXFLAGS=$ax_check_save_flags
  14818. fi
  14819. eval ac_res=\$$as_CACHEVAR
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14821. $as_echo "$ac_res" >&6; }
  14822. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14823. if ${CXXFLAGS+:} false; then :
  14824. case " $CXXFLAGS " in #(
  14825. *" $flag "*) :
  14826. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
  14827. (: CXXFLAGS already contains $flag) 2>&5
  14828. ac_status=$?
  14829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14830. test $ac_status = 0; } ;; #(
  14831. *) :
  14832. as_fn_append CXXFLAGS " $flag"
  14833. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14834. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14835. ac_status=$?
  14836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14837. test $ac_status = 0; }
  14838. ;;
  14839. esac
  14840. else
  14841. CXXFLAGS=$flag
  14842. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14843. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14844. ac_status=$?
  14845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14846. test $ac_status = 0; }
  14847. fi
  14848. else
  14849. :
  14850. fi
  14851. done
  14852. for flag in -fno-strict-aliasing; do
  14853. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14855. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14856. if eval \${$as_CACHEVAR+:} false; then :
  14857. $as_echo_n "(cached) " >&6
  14858. else
  14859. ax_check_save_flags=$CXXFLAGS
  14860. CXXFLAGS="$CXXFLAGS $flag"
  14861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14862. /* end confdefs.h. */
  14863. int
  14864. main ()
  14865. {
  14866. ;
  14867. return 0;
  14868. }
  14869. _ACEOF
  14870. if ac_fn_cxx_try_compile "$LINENO"; then :
  14871. eval "$as_CACHEVAR=yes"
  14872. else
  14873. eval "$as_CACHEVAR=no"
  14874. fi
  14875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14876. CXXFLAGS=$ax_check_save_flags
  14877. fi
  14878. eval ac_res=\$$as_CACHEVAR
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14880. $as_echo "$ac_res" >&6; }
  14881. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14882. if ${CXXFLAGS+:} false; then :
  14883. case " $CXXFLAGS " in #(
  14884. *" $flag "*) :
  14885. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
  14886. (: CXXFLAGS already contains $flag) 2>&5
  14887. ac_status=$?
  14888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14889. test $ac_status = 0; } ;; #(
  14890. *) :
  14891. as_fn_append CXXFLAGS " $flag"
  14892. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14893. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14894. ac_status=$?
  14895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14896. test $ac_status = 0; }
  14897. ;;
  14898. esac
  14899. else
  14900. CXXFLAGS=$flag
  14901. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
  14902. (: CXXFLAGS="$CXXFLAGS") 2>&5
  14903. ac_status=$?
  14904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14905. test $ac_status = 0; }
  14906. fi
  14907. else
  14908. :
  14909. fi
  14910. done
  14911. fi
  14912. ac_ext=c
  14913. ac_cpp='$CPP $CPPFLAGS'
  14914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14917. if test "$GCC" = yes; then :
  14918. for flag in -fno-strict-aliasing; do
  14919. as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  14920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  14921. $as_echo_n "checking whether the linker accepts $flag... " >&6; }
  14922. if eval \${$as_CACHEVAR+:} false; then :
  14923. $as_echo_n "(cached) " >&6
  14924. else
  14925. ax_check_save_flags=$LDFLAGS
  14926. LDFLAGS="$LDFLAGS $flag"
  14927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14928. /* end confdefs.h. */
  14929. int
  14930. main ()
  14931. {
  14932. ;
  14933. return 0;
  14934. }
  14935. _ACEOF
  14936. if ac_fn_c_try_link "$LINENO"; then :
  14937. eval "$as_CACHEVAR=yes"
  14938. else
  14939. eval "$as_CACHEVAR=no"
  14940. fi
  14941. rm -f core conftest.err conftest.$ac_objext \
  14942. conftest$ac_exeext conftest.$ac_ext
  14943. LDFLAGS=$ax_check_save_flags
  14944. fi
  14945. eval ac_res=\$$as_CACHEVAR
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14947. $as_echo "$ac_res" >&6; }
  14948. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14949. if ${LDFLAGS+:} false; then :
  14950. case " $LDFLAGS " in #(
  14951. *" $flag "*) :
  14952. { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
  14953. (: LDFLAGS already contains $flag) 2>&5
  14954. ac_status=$?
  14955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14956. test $ac_status = 0; } ;; #(
  14957. *) :
  14958. as_fn_append LDFLAGS " $flag"
  14959. { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
  14960. (: LDFLAGS="$LDFLAGS") 2>&5
  14961. ac_status=$?
  14962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14963. test $ac_status = 0; }
  14964. ;;
  14965. esac
  14966. else
  14967. LDFLAGS=$flag
  14968. { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
  14969. (: LDFLAGS="$LDFLAGS") 2>&5
  14970. ac_status=$?
  14971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14972. test $ac_status = 0; }
  14973. fi
  14974. else
  14975. :
  14976. fi
  14977. done
  14978. fi
  14979. case "$LD" in #(
  14980. *clang*) :
  14981. case "${host_os}" in #(
  14982. *linux*) :
  14983. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  14984. *) :
  14985. ;;
  14986. esac ;; #(
  14987. *) :
  14988. ;;
  14989. esac
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  14991. $as_echo_n "checking whether compiler supports visibility... " >&6; }
  14992. if ${expatcfg_cv_compiler_supports_visibility+:} false; then :
  14993. $as_echo_n "(cached) " >&6
  14994. else
  14995. expatcfg_cv_compiler_supports_visibility=no
  14996. OLDFLAGS=$CFLAGS
  14997. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  14998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14999. /* end confdefs.h. */
  15000. void __attribute__((visibility("default"))) foo(void);
  15001. void foo(void) {}
  15002. _ACEOF
  15003. if ac_fn_c_try_compile "$LINENO"; then :
  15004. expatcfg_cv_compiler_supports_visibility=yes
  15005. fi
  15006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15007. CFLAGS=$OLDFLAGS
  15008. fi
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  15010. $as_echo "$expatcfg_cv_compiler_supports_visibility" >&6; }
  15011. if test "$expatcfg_cv_compiler_supports_visibility" = yes; then :
  15012. if ${CFLAGS+:} false; then :
  15013. case " $CFLAGS " in #(
  15014. *" -fvisibility=hidden "*) :
  15015. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fvisibility=hidden"; } >&5
  15016. (: CFLAGS already contains -fvisibility=hidden) 2>&5
  15017. ac_status=$?
  15018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15019. test $ac_status = 0; } ;; #(
  15020. *) :
  15021. as_fn_append CFLAGS " -fvisibility=hidden"
  15022. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15023. (: CFLAGS="$CFLAGS") 2>&5
  15024. ac_status=$?
  15025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15026. test $ac_status = 0; }
  15027. ;;
  15028. esac
  15029. else
  15030. CFLAGS=-fvisibility=hidden
  15031. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15032. (: CFLAGS="$CFLAGS") 2>&5
  15033. ac_status=$?
  15034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15035. test $ac_status = 0; }
  15036. fi
  15037. if ${CFLAGS+:} false; then :
  15038. case " $CFLAGS " in #(
  15039. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  15040. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  15041. (: CFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  15042. ac_status=$?
  15043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15044. test $ac_status = 0; } ;; #(
  15045. *) :
  15046. as_fn_append CFLAGS " -DXML_ENABLE_VISIBILITY=1"
  15047. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15048. (: CFLAGS="$CFLAGS") 2>&5
  15049. ac_status=$?
  15050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15051. test $ac_status = 0; }
  15052. ;;
  15053. esac
  15054. else
  15055. CFLAGS=-DXML_ENABLE_VISIBILITY=1
  15056. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15057. (: CFLAGS="$CFLAGS") 2>&5
  15058. ac_status=$?
  15059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15060. test $ac_status = 0; }
  15061. fi
  15062. fi
  15063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15064. $as_echo_n "checking for ANSI C header files... " >&6; }
  15065. if ${ac_cv_header_stdc+:} false; then :
  15066. $as_echo_n "(cached) " >&6
  15067. else
  15068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15069. /* end confdefs.h. */
  15070. #include <stdlib.h>
  15071. #include <stdarg.h>
  15072. #include <string.h>
  15073. #include <float.h>
  15074. int
  15075. main ()
  15076. {
  15077. ;
  15078. return 0;
  15079. }
  15080. _ACEOF
  15081. if ac_fn_c_try_compile "$LINENO"; then :
  15082. ac_cv_header_stdc=yes
  15083. else
  15084. ac_cv_header_stdc=no
  15085. fi
  15086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15087. if test $ac_cv_header_stdc = yes; then
  15088. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15090. /* end confdefs.h. */
  15091. #include <string.h>
  15092. _ACEOF
  15093. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15094. $EGREP "memchr" >/dev/null 2>&1; then :
  15095. else
  15096. ac_cv_header_stdc=no
  15097. fi
  15098. rm -f conftest*
  15099. fi
  15100. if test $ac_cv_header_stdc = yes; then
  15101. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15103. /* end confdefs.h. */
  15104. #include <stdlib.h>
  15105. _ACEOF
  15106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15107. $EGREP "free" >/dev/null 2>&1; then :
  15108. else
  15109. ac_cv_header_stdc=no
  15110. fi
  15111. rm -f conftest*
  15112. fi
  15113. if test $ac_cv_header_stdc = yes; then
  15114. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15115. if test "$cross_compiling" = yes; then :
  15116. :
  15117. else
  15118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15119. /* end confdefs.h. */
  15120. #include <ctype.h>
  15121. #include <stdlib.h>
  15122. #if ((' ' & 0x0FF) == 0x020)
  15123. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15124. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15125. #else
  15126. # define ISLOWER(c) \
  15127. (('a' <= (c) && (c) <= 'i') \
  15128. || ('j' <= (c) && (c) <= 'r') \
  15129. || ('s' <= (c) && (c) <= 'z'))
  15130. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15131. #endif
  15132. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15133. int
  15134. main ()
  15135. {
  15136. int i;
  15137. for (i = 0; i < 256; i++)
  15138. if (XOR (islower (i), ISLOWER (i))
  15139. || toupper (i) != TOUPPER (i))
  15140. return 2;
  15141. return 0;
  15142. }
  15143. _ACEOF
  15144. if ac_fn_c_try_run "$LINENO"; then :
  15145. else
  15146. ac_cv_header_stdc=no
  15147. fi
  15148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15149. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15150. fi
  15151. fi
  15152. fi
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15154. $as_echo "$ac_cv_header_stdc" >&6; }
  15155. if test $ac_cv_header_stdc = yes; then
  15156. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15157. fi
  15158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15159. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  15160. if ${ac_cv_c_bigendian+:} false; then :
  15161. $as_echo_n "(cached) " >&6
  15162. else
  15163. ac_cv_c_bigendian=unknown
  15164. # See if we're dealing with a universal compiler.
  15165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15166. /* end confdefs.h. */
  15167. #ifndef __APPLE_CC__
  15168. not a universal capable compiler
  15169. #endif
  15170. typedef int dummy;
  15171. _ACEOF
  15172. if ac_fn_c_try_compile "$LINENO"; then :
  15173. # Check for potential -arch flags. It is not universal unless
  15174. # there are at least two -arch flags with different values.
  15175. ac_arch=
  15176. ac_prev=
  15177. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15178. if test -n "$ac_prev"; then
  15179. case $ac_word in
  15180. i?86 | x86_64 | ppc | ppc64)
  15181. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15182. ac_arch=$ac_word
  15183. else
  15184. ac_cv_c_bigendian=universal
  15185. break
  15186. fi
  15187. ;;
  15188. esac
  15189. ac_prev=
  15190. elif test "x$ac_word" = "x-arch"; then
  15191. ac_prev=arch
  15192. fi
  15193. done
  15194. fi
  15195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15196. if test $ac_cv_c_bigendian = unknown; then
  15197. # See if sys/param.h defines the BYTE_ORDER macro.
  15198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15199. /* end confdefs.h. */
  15200. #include <sys/types.h>
  15201. #include <sys/param.h>
  15202. int
  15203. main ()
  15204. {
  15205. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15206. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15207. && LITTLE_ENDIAN)
  15208. bogus endian macros
  15209. #endif
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_compile "$LINENO"; then :
  15215. # It does; now see whether it defined to BIG_ENDIAN or not.
  15216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15217. /* end confdefs.h. */
  15218. #include <sys/types.h>
  15219. #include <sys/param.h>
  15220. int
  15221. main ()
  15222. {
  15223. #if BYTE_ORDER != BIG_ENDIAN
  15224. not big endian
  15225. #endif
  15226. ;
  15227. return 0;
  15228. }
  15229. _ACEOF
  15230. if ac_fn_c_try_compile "$LINENO"; then :
  15231. ac_cv_c_bigendian=yes
  15232. else
  15233. ac_cv_c_bigendian=no
  15234. fi
  15235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15236. fi
  15237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15238. fi
  15239. if test $ac_cv_c_bigendian = unknown; then
  15240. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15242. /* end confdefs.h. */
  15243. #include <limits.h>
  15244. int
  15245. main ()
  15246. {
  15247. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15248. bogus endian macros
  15249. #endif
  15250. ;
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. if ac_fn_c_try_compile "$LINENO"; then :
  15255. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15257. /* end confdefs.h. */
  15258. #include <limits.h>
  15259. int
  15260. main ()
  15261. {
  15262. #ifndef _BIG_ENDIAN
  15263. not big endian
  15264. #endif
  15265. ;
  15266. return 0;
  15267. }
  15268. _ACEOF
  15269. if ac_fn_c_try_compile "$LINENO"; then :
  15270. ac_cv_c_bigendian=yes
  15271. else
  15272. ac_cv_c_bigendian=no
  15273. fi
  15274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15275. fi
  15276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15277. fi
  15278. if test $ac_cv_c_bigendian = unknown; then
  15279. # Compile a test program.
  15280. if test "$cross_compiling" = yes; then :
  15281. # Try to guess by grepping values from an object file.
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. short int ascii_mm[] =
  15285. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15286. short int ascii_ii[] =
  15287. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15288. int use_ascii (int i) {
  15289. return ascii_mm[i] + ascii_ii[i];
  15290. }
  15291. short int ebcdic_ii[] =
  15292. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15293. short int ebcdic_mm[] =
  15294. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15295. int use_ebcdic (int i) {
  15296. return ebcdic_mm[i] + ebcdic_ii[i];
  15297. }
  15298. extern int foo;
  15299. int
  15300. main ()
  15301. {
  15302. return use_ascii (foo) == use_ebcdic (foo);
  15303. ;
  15304. return 0;
  15305. }
  15306. _ACEOF
  15307. if ac_fn_c_try_compile "$LINENO"; then :
  15308. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15309. ac_cv_c_bigendian=yes
  15310. fi
  15311. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15312. if test "$ac_cv_c_bigendian" = unknown; then
  15313. ac_cv_c_bigendian=no
  15314. else
  15315. # finding both strings is unlikely to happen, but who knows?
  15316. ac_cv_c_bigendian=unknown
  15317. fi
  15318. fi
  15319. fi
  15320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15321. else
  15322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15323. /* end confdefs.h. */
  15324. $ac_includes_default
  15325. int
  15326. main ()
  15327. {
  15328. /* Are we little or big endian? From Harbison&Steele. */
  15329. union
  15330. {
  15331. long int l;
  15332. char c[sizeof (long int)];
  15333. } u;
  15334. u.l = 1;
  15335. return u.c[sizeof (long int) - 1] == 1;
  15336. ;
  15337. return 0;
  15338. }
  15339. _ACEOF
  15340. if ac_fn_c_try_run "$LINENO"; then :
  15341. ac_cv_c_bigendian=no
  15342. else
  15343. ac_cv_c_bigendian=yes
  15344. fi
  15345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15346. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15347. fi
  15348. fi
  15349. fi
  15350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15351. $as_echo "$ac_cv_c_bigendian" >&6; }
  15352. case $ac_cv_c_bigendian in #(
  15353. yes)
  15354. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  15355. BYTEORDER=4321;; #(
  15356. no)
  15357. BYTEORDER=1234 ;; #(
  15358. universal)
  15359. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15360. ;; #(
  15361. *)
  15362. as_fn_error $? "unknown endianness
  15363. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  15364. esac
  15365. cat >>confdefs.h <<_ACEOF
  15366. #define BYTEORDER $BYTEORDER
  15367. _ACEOF
  15368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15369. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15370. if ${ac_cv_c_const+:} false; then :
  15371. $as_echo_n "(cached) " >&6
  15372. else
  15373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15374. /* end confdefs.h. */
  15375. int
  15376. main ()
  15377. {
  15378. #ifndef __cplusplus
  15379. /* Ultrix mips cc rejects this sort of thing. */
  15380. typedef int charset[2];
  15381. const charset cs = { 0, 0 };
  15382. /* SunOS 4.1.1 cc rejects this. */
  15383. char const *const *pcpcc;
  15384. char **ppc;
  15385. /* NEC SVR4.0.2 mips cc rejects this. */
  15386. struct point {int x, y;};
  15387. static struct point const zero = {0,0};
  15388. /* AIX XL C 1.02.0.0 rejects this.
  15389. It does not let you subtract one const X* pointer from another in
  15390. an arm of an if-expression whose if-part is not a constant
  15391. expression */
  15392. const char *g = "string";
  15393. pcpcc = &g + (g ? g-g : 0);
  15394. /* HPUX 7.0 cc rejects these. */
  15395. ++pcpcc;
  15396. ppc = (char**) pcpcc;
  15397. pcpcc = (char const *const *) ppc;
  15398. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15399. char tx;
  15400. char *t = &tx;
  15401. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15402. *t++ = 0;
  15403. if (s) return 0;
  15404. }
  15405. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15406. int x[] = {25, 17};
  15407. const int *foo = &x[0];
  15408. ++foo;
  15409. }
  15410. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15411. typedef const int *iptr;
  15412. iptr p = 0;
  15413. ++p;
  15414. }
  15415. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  15416. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15417. struct s { int j; const int *ap[3]; } bx;
  15418. struct s *b = &bx; b->j = 5;
  15419. }
  15420. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15421. const int foo = 10;
  15422. if (!foo) return 0;
  15423. }
  15424. return !cs[0] && !zero.x;
  15425. #endif
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_compile "$LINENO"; then :
  15431. ac_cv_c_const=yes
  15432. else
  15433. ac_cv_c_const=no
  15434. fi
  15435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15436. fi
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15438. $as_echo "$ac_cv_c_const" >&6; }
  15439. if test $ac_cv_c_const = no; then
  15440. $as_echo "#define const /**/" >>confdefs.h
  15441. fi
  15442. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15443. if test "x$ac_cv_type_size_t" = xyes; then :
  15444. else
  15445. cat >>confdefs.h <<_ACEOF
  15446. #define size_t unsigned int
  15447. _ACEOF
  15448. fi
  15449. # Check whether --with-xmlwf was given.
  15450. if test "${with_xmlwf+set}" = set; then :
  15451. withval=$with_xmlwf;
  15452. else
  15453. with_xmlwf=yes
  15454. fi
  15455. if test x${with_xmlwf} = xyes; then
  15456. WITH_XMLWF_TRUE=
  15457. WITH_XMLWF_FALSE='#'
  15458. else
  15459. WITH_XMLWF_TRUE='#'
  15460. WITH_XMLWF_FALSE=
  15461. fi
  15462. # Check whether --with-examples was given.
  15463. if test "${with_examples+set}" = set; then :
  15464. withval=$with_examples;
  15465. else
  15466. with_examples=yes
  15467. fi
  15468. if test x${with_examples} = xyes; then
  15469. WITH_EXAMPLES_TRUE=
  15470. WITH_EXAMPLES_FALSE='#'
  15471. else
  15472. WITH_EXAMPLES_TRUE='#'
  15473. WITH_EXAMPLES_FALSE=
  15474. fi
  15475. # Check whether --with-tests was given.
  15476. if test "${with_tests+set}" = set; then :
  15477. withval=$with_tests;
  15478. else
  15479. with_tests=yes
  15480. fi
  15481. if test x${with_tests} = xyes; then
  15482. WITH_TESTS_TRUE=
  15483. WITH_TESTS_FALSE='#'
  15484. else
  15485. WITH_TESTS_TRUE='#'
  15486. WITH_TESTS_FALSE=
  15487. fi
  15488. EXPATCFG_ON_MINGW=no
  15489. case "${host_os}" in #(
  15490. mingw*) :
  15491. EXPATCFG_ON_MINGW=yes
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  15493. $as_echo "$as_me: detected OS: MinGW" >&6;} ;; #(
  15494. *) :
  15495. ;;
  15496. esac
  15497. if test x${EXPATCFG_ON_MINGW} = xyes; then
  15498. MINGW_TRUE=
  15499. MINGW_FALSE='#'
  15500. else
  15501. MINGW_TRUE='#'
  15502. MINGW_FALSE=
  15503. fi
  15504. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  15505. UNICODE_TRUE=
  15506. UNICODE_FALSE='#'
  15507. else
  15508. UNICODE_TRUE='#'
  15509. UNICODE_FALSE=
  15510. fi
  15511. # Check whether --with-libbsd was given.
  15512. if test "${with_libbsd+set}" = set; then :
  15513. withval=$with_libbsd;
  15514. else
  15515. with_libbsd=no
  15516. fi
  15517. if test "x${with_libbsd}" != xno; then :
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  15519. $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
  15520. if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
  15521. $as_echo_n "(cached) " >&6
  15522. else
  15523. ac_check_lib_save_LIBS=$LIBS
  15524. LIBS="-lbsd $LIBS"
  15525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15526. /* end confdefs.h. */
  15527. /* Override any GCC internal prototype to avoid an error.
  15528. Use char because int might match the return type of a GCC
  15529. builtin and then its argument prototype would still apply. */
  15530. #ifdef __cplusplus
  15531. extern "C"
  15532. #endif
  15533. char arc4random_buf ();
  15534. int
  15535. main ()
  15536. {
  15537. return arc4random_buf ();
  15538. ;
  15539. return 0;
  15540. }
  15541. _ACEOF
  15542. if ac_fn_c_try_link "$LINENO"; then :
  15543. ac_cv_lib_bsd_arc4random_buf=yes
  15544. else
  15545. ac_cv_lib_bsd_arc4random_buf=no
  15546. fi
  15547. rm -f core conftest.err conftest.$ac_objext \
  15548. conftest$ac_exeext conftest.$ac_ext
  15549. LIBS=$ac_check_lib_save_LIBS
  15550. fi
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  15552. $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  15553. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
  15554. cat >>confdefs.h <<_ACEOF
  15555. #define HAVE_LIBBSD 1
  15556. _ACEOF
  15557. LIBS="-lbsd $LIBS"
  15558. else
  15559. if test "x${with_libbsd}" = xyes; then :
  15560. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  15561. fi
  15562. fi
  15563. fi
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
  15565. $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
  15566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15567. /* end confdefs.h. */
  15568. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  15569. #if defined(HAVE_LIBBSD)
  15570. # include <bsd/stdlib.h>
  15571. #endif
  15572. int main() {
  15573. arc4random_buf(NULL, 0U);
  15574. return 0;
  15575. }
  15576. _ACEOF
  15577. if ac_fn_c_try_link "$LINENO"; then :
  15578. $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  15579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15580. $as_echo "yes" >&6; }
  15581. else
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15583. $as_echo "no" >&6; }
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
  15585. $as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
  15586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15587. /* end confdefs.h. */
  15588. #if defined(HAVE_LIBBSD)
  15589. # include <bsd/stdlib.h>
  15590. #else
  15591. # include <stdlib.h>
  15592. #endif
  15593. int main() {
  15594. arc4random();
  15595. return 0;
  15596. }
  15597. _ACEOF
  15598. if ac_fn_c_try_link "$LINENO"; then :
  15599. $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15601. $as_echo "yes" >&6; }
  15602. else
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15604. $as_echo "no" >&6; }
  15605. fi
  15606. rm -f core conftest.err conftest.$ac_objext \
  15607. conftest$ac_exeext conftest.$ac_ext
  15608. fi
  15609. rm -f core conftest.err conftest.$ac_objext \
  15610. conftest$ac_exeext conftest.$ac_ext
  15611. # Check whether --with-getrandom was given.
  15612. if test "${with_getrandom+set}" = set; then :
  15613. withval=$with_getrandom;
  15614. else
  15615. with_getrandom=check
  15616. fi
  15617. if test "x$with_getrandom" != xno; then :
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  15619. $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  15620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15621. /* end confdefs.h. */
  15622. #include <stdlib.h> /* for NULL */
  15623. #include <sys/random.h>
  15624. int main() {
  15625. return getrandom(NULL, 0U, 0U);
  15626. }
  15627. _ACEOF
  15628. if ac_fn_c_try_link "$LINENO"; then :
  15629. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15631. $as_echo "yes" >&6; }
  15632. else
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15634. $as_echo "no" >&6; }
  15635. if test "x$with_getrandom" = xyes; then :
  15636. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  15637. fi
  15638. fi
  15639. rm -f core conftest.err conftest.$ac_objext \
  15640. conftest$ac_exeext conftest.$ac_ext
  15641. fi
  15642. # Check whether --with-sys_getrandom was given.
  15643. if test "${with_sys_getrandom+set}" = set; then :
  15644. withval=$with_sys_getrandom;
  15645. else
  15646. with_sys_getrandom=check
  15647. fi
  15648. if test "x$with_sys_getrandom" != xno; then :
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  15650. $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  15651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15652. /* end confdefs.h. */
  15653. #include <stdlib.h> /* for NULL */
  15654. #include <unistd.h> /* for syscall */
  15655. #include <sys/syscall.h> /* for SYS_getrandom */
  15656. int main() {
  15657. syscall(SYS_getrandom, NULL, 0, 0);
  15658. return 0;
  15659. }
  15660. _ACEOF
  15661. if ac_fn_c_try_link "$LINENO"; then :
  15662. $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15664. $as_echo "yes" >&6; }
  15665. else
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15667. $as_echo "no" >&6; }
  15668. if test "x$with_sys_getrandom" = xyes; then :
  15669. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  15670. fi
  15671. fi
  15672. rm -f core conftest.err conftest.$ac_objext \
  15673. conftest$ac_exeext conftest.$ac_ext
  15674. fi
  15675. for ac_header in fcntl.h unistd.h
  15676. do :
  15677. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15678. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15679. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15680. cat >>confdefs.h <<_ACEOF
  15681. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15682. _ACEOF
  15683. fi
  15684. done
  15685. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  15686. if test "x$ac_cv_type_off_t" = xyes; then :
  15687. else
  15688. cat >>confdefs.h <<_ACEOF
  15689. #define off_t long int
  15690. _ACEOF
  15691. fi
  15692. for ac_header in $ac_header_list
  15693. do :
  15694. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15695. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15696. "
  15697. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15698. cat >>confdefs.h <<_ACEOF
  15699. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15700. _ACEOF
  15701. fi
  15702. done
  15703. for ac_func in getpagesize
  15704. do :
  15705. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  15706. if test "x$ac_cv_func_getpagesize" = xyes; then :
  15707. cat >>confdefs.h <<_ACEOF
  15708. #define HAVE_GETPAGESIZE 1
  15709. _ACEOF
  15710. fi
  15711. done
  15712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15713. $as_echo_n "checking for working mmap... " >&6; }
  15714. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  15715. $as_echo_n "(cached) " >&6
  15716. else
  15717. if test "$cross_compiling" = yes; then :
  15718. ac_cv_func_mmap_fixed_mapped=no
  15719. else
  15720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15721. /* end confdefs.h. */
  15722. $ac_includes_default
  15723. /* malloc might have been renamed as rpl_malloc. */
  15724. #undef malloc
  15725. /* Thanks to Mike Haertel and Jim Avera for this test.
  15726. Here is a matrix of mmap possibilities:
  15727. mmap private not fixed
  15728. mmap private fixed at somewhere currently unmapped
  15729. mmap private fixed at somewhere already mapped
  15730. mmap shared not fixed
  15731. mmap shared fixed at somewhere currently unmapped
  15732. mmap shared fixed at somewhere already mapped
  15733. For private mappings, we should verify that changes cannot be read()
  15734. back from the file, nor mmap's back from the file at a different
  15735. address. (There have been systems where private was not correctly
  15736. implemented like the infamous i386 svr4.0, and systems where the
  15737. VM page cache was not coherent with the file system buffer cache
  15738. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15739. For shared mappings, we should conversely verify that changes get
  15740. propagated back to all the places they're supposed to be.
  15741. Grep wants private fixed already mapped.
  15742. The main things grep needs to know about mmap are:
  15743. * does it exist and is it safe to write into the mmap'd area
  15744. * how to use it (BSD variants) */
  15745. #include <fcntl.h>
  15746. #include <sys/mman.h>
  15747. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15748. char *malloc ();
  15749. #endif
  15750. /* This mess was copied from the GNU getpagesize.h. */
  15751. #ifndef HAVE_GETPAGESIZE
  15752. # ifdef _SC_PAGESIZE
  15753. # define getpagesize() sysconf(_SC_PAGESIZE)
  15754. # else /* no _SC_PAGESIZE */
  15755. # ifdef HAVE_SYS_PARAM_H
  15756. # include <sys/param.h>
  15757. # ifdef EXEC_PAGESIZE
  15758. # define getpagesize() EXEC_PAGESIZE
  15759. # else /* no EXEC_PAGESIZE */
  15760. # ifdef NBPG
  15761. # define getpagesize() NBPG * CLSIZE
  15762. # ifndef CLSIZE
  15763. # define CLSIZE 1
  15764. # endif /* no CLSIZE */
  15765. # else /* no NBPG */
  15766. # ifdef NBPC
  15767. # define getpagesize() NBPC
  15768. # else /* no NBPC */
  15769. # ifdef PAGESIZE
  15770. # define getpagesize() PAGESIZE
  15771. # endif /* PAGESIZE */
  15772. # endif /* no NBPC */
  15773. # endif /* no NBPG */
  15774. # endif /* no EXEC_PAGESIZE */
  15775. # else /* no HAVE_SYS_PARAM_H */
  15776. # define getpagesize() 8192 /* punt totally */
  15777. # endif /* no HAVE_SYS_PARAM_H */
  15778. # endif /* no _SC_PAGESIZE */
  15779. #endif /* no HAVE_GETPAGESIZE */
  15780. int
  15781. main ()
  15782. {
  15783. char *data, *data2, *data3;
  15784. const char *cdata2;
  15785. int i, pagesize;
  15786. int fd, fd2;
  15787. pagesize = getpagesize ();
  15788. /* First, make a file with some known garbage in it. */
  15789. data = (char *) malloc (pagesize);
  15790. if (!data)
  15791. return 1;
  15792. for (i = 0; i < pagesize; ++i)
  15793. *(data + i) = rand ();
  15794. umask (0);
  15795. fd = creat ("conftest.mmap", 0600);
  15796. if (fd < 0)
  15797. return 2;
  15798. if (write (fd, data, pagesize) != pagesize)
  15799. return 3;
  15800. close (fd);
  15801. /* Next, check that the tail of a page is zero-filled. File must have
  15802. non-zero length, otherwise we risk SIGBUS for entire page. */
  15803. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15804. if (fd2 < 0)
  15805. return 4;
  15806. cdata2 = "";
  15807. if (write (fd2, cdata2, 1) != 1)
  15808. return 5;
  15809. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15810. if (data2 == MAP_FAILED)
  15811. return 6;
  15812. for (i = 0; i < pagesize; ++i)
  15813. if (*(data2 + i))
  15814. return 7;
  15815. close (fd2);
  15816. if (munmap (data2, pagesize))
  15817. return 8;
  15818. /* Next, try to mmap the file at a fixed address which already has
  15819. something else allocated at it. If we can, also make sure that
  15820. we see the same garbage. */
  15821. fd = open ("conftest.mmap", O_RDWR);
  15822. if (fd < 0)
  15823. return 9;
  15824. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15825. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15826. return 10;
  15827. for (i = 0; i < pagesize; ++i)
  15828. if (*(data + i) != *(data2 + i))
  15829. return 11;
  15830. /* Finally, make sure that changes to the mapped area do not
  15831. percolate back to the file as seen by read(). (This is a bug on
  15832. some variants of i386 svr4.0.) */
  15833. for (i = 0; i < pagesize; ++i)
  15834. *(data2 + i) = *(data2 + i) + 1;
  15835. data3 = (char *) malloc (pagesize);
  15836. if (!data3)
  15837. return 12;
  15838. if (read (fd, data3, pagesize) != pagesize)
  15839. return 13;
  15840. for (i = 0; i < pagesize; ++i)
  15841. if (*(data + i) != *(data3 + i))
  15842. return 14;
  15843. close (fd);
  15844. return 0;
  15845. }
  15846. _ACEOF
  15847. if ac_fn_c_try_run "$LINENO"; then :
  15848. ac_cv_func_mmap_fixed_mapped=yes
  15849. else
  15850. ac_cv_func_mmap_fixed_mapped=no
  15851. fi
  15852. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15853. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15854. fi
  15855. fi
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15857. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15858. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15859. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15860. fi
  15861. rm -f conftest.mmap conftest.txt
  15862. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then :
  15863. FILEMAP=unixfilemap
  15864. else
  15865. FILEMAP=readfilemap
  15866. fi
  15867. $as_echo "#define XML_NS 1" >>confdefs.h
  15868. $as_echo "#define XML_DTD 1" >>confdefs.h
  15869. $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
  15870. # Check whether --enable-xml-attr-info was given.
  15871. if test "${enable_xml_attr_info+set}" = set; then :
  15872. enableval=$enable_xml_attr_info;
  15873. else
  15874. enable_xml_attr_info=no
  15875. fi
  15876. if test "x${enable_xml_attr_info}" = "xyes"; then :
  15877. $as_echo "#define XML_ATTR_INFO 1" >>confdefs.h
  15878. fi
  15879. # Check whether --enable-xml-context was given.
  15880. if test "${enable_xml_context+set}" = set; then :
  15881. enableval=$enable_xml_context; enable_xml_context=${enableval}
  15882. fi
  15883. if test "x${enable_xml_context}" != "xno"; then :
  15884. if test "x${enable_xml_context}" = "xyes" \
  15885. -o "x${enable_xml_context}" = "x"; then :
  15886. enable_xml_context=1024
  15887. fi
  15888. cat >>confdefs.h <<_ACEOF
  15889. #define XML_CONTEXT_BYTES ${enable_xml_context}
  15890. _ACEOF
  15891. fi
  15892. # Check whether --with-docbook was given.
  15893. if test "${with_docbook+set}" = set; then :
  15894. withval=$with_docbook;
  15895. else
  15896. with_docbook=check
  15897. fi
  15898. if test "x$with_docbook" != xno; then :
  15899. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  15900. do
  15901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15902. set dummy $ac_prog; ac_word=$2
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15904. $as_echo_n "checking for $ac_word... " >&6; }
  15905. if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
  15906. $as_echo_n "(cached) " >&6
  15907. else
  15908. if test -n "$DOCBOOK_TO_MAN"; then
  15909. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  15910. else
  15911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15912. for as_dir in $PATH
  15913. do
  15914. IFS=$as_save_IFS
  15915. test -z "$as_dir" && as_dir=.
  15916. for ac_exec_ext in '' $ac_executable_extensions; do
  15917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15918. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  15919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15920. break 2
  15921. fi
  15922. done
  15923. done
  15924. IFS=$as_save_IFS
  15925. fi
  15926. fi
  15927. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  15928. if test -n "$DOCBOOK_TO_MAN"; then
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  15930. $as_echo "$DOCBOOK_TO_MAN" >&6; }
  15931. else
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15933. $as_echo "no" >&6; }
  15934. fi
  15935. test -n "$DOCBOOK_TO_MAN" && break
  15936. done
  15937. fi
  15938. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes; then :
  15939. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  15940. fi
  15941. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno; then :
  15942. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase; then :
  15943. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  15944. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  15945. configure to command docbook2x-man of docbook2X.
  15946. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  15947. You can also configure using --without-docbook if you can do without a man
  15948. page for xmlwf." "$LINENO" 5
  15949. fi
  15950. fi
  15951. if test "x${DOCBOOK_TO_MAN}" != x; then
  15952. WITH_DOCBOOK_TRUE=
  15953. WITH_DOCBOOK_FALSE='#'
  15954. else
  15955. WITH_DOCBOOK_TRUE='#'
  15956. WITH_DOCBOOK_FALSE=
  15957. fi
  15958. ac_config_files="$ac_config_files Makefile expat.pc doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
  15959. ac_config_files="$ac_config_files run.sh"
  15960. cat >confcache <<\_ACEOF
  15961. # This file is a shell script that caches the results of configure
  15962. # tests run on this system so they can be shared between configure
  15963. # scripts and configure runs, see configure's option --config-cache.
  15964. # It is not useful on other systems. If it contains results you don't
  15965. # want to keep, you may remove or edit it.
  15966. #
  15967. # config.status only pays attention to the cache file if you give it
  15968. # the --recheck option to rerun configure.
  15969. #
  15970. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15971. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15972. # following values.
  15973. _ACEOF
  15974. # The following way of writing the cache mishandles newlines in values,
  15975. # but we know of no workaround that is simple, portable, and efficient.
  15976. # So, we kill variables containing newlines.
  15977. # Ultrix sh set writes to stderr and can't be redirected directly,
  15978. # and sets the high bit in the cache file unless we assign to the vars.
  15979. (
  15980. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15981. eval ac_val=\$$ac_var
  15982. case $ac_val in #(
  15983. *${as_nl}*)
  15984. case $ac_var in #(
  15985. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15986. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15987. esac
  15988. case $ac_var in #(
  15989. _ | IFS | as_nl) ;; #(
  15990. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15991. *) { eval $ac_var=; unset $ac_var;} ;;
  15992. esac ;;
  15993. esac
  15994. done
  15995. (set) 2>&1 |
  15996. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15997. *${as_nl}ac_space=\ *)
  15998. # `set' does not quote correctly, so add quotes: double-quote
  15999. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16000. sed -n \
  16001. "s/'/'\\\\''/g;
  16002. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16003. ;; #(
  16004. *)
  16005. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16006. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16007. ;;
  16008. esac |
  16009. sort
  16010. ) |
  16011. sed '
  16012. /^ac_cv_env_/b end
  16013. t clear
  16014. :clear
  16015. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16016. t end
  16017. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16018. :end' >>confcache
  16019. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16020. if test -w "$cache_file"; then
  16021. if test "x$cache_file" != "x/dev/null"; then
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16023. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16024. if test ! -f "$cache_file" || test -h "$cache_file"; then
  16025. cat confcache >"$cache_file"
  16026. else
  16027. case $cache_file in #(
  16028. */* | ?:*)
  16029. mv -f confcache "$cache_file"$$ &&
  16030. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16031. *)
  16032. mv -f confcache "$cache_file" ;;
  16033. esac
  16034. fi
  16035. fi
  16036. else
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16038. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16039. fi
  16040. fi
  16041. rm -f confcache
  16042. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16043. # Let make expand exec_prefix.
  16044. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16045. DEFS=-DHAVE_CONFIG_H
  16046. ac_libobjs=
  16047. ac_ltlibobjs=
  16048. U=
  16049. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16050. # 1. Remove the extension, and $U if already installed.
  16051. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16052. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16053. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16054. # will be set to the directory where LIBOBJS objects are built.
  16055. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16056. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16057. done
  16058. LIBOBJS=$ac_libobjs
  16059. LTLIBOBJS=$ac_ltlibobjs
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  16061. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  16062. if test -n "$am_sleep_pid"; then
  16063. # Hide warnings about reused PIDs.
  16064. wait $am_sleep_pid 2>/dev/null
  16065. fi
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  16067. $as_echo "done" >&6; }
  16068. if test -n "$EXEEXT"; then
  16069. am__EXEEXT_TRUE=
  16070. am__EXEEXT_FALSE='#'
  16071. else
  16072. am__EXEEXT_TRUE='#'
  16073. am__EXEEXT_FALSE=
  16074. fi
  16075. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16076. as_fn_error $? "conditional \"AMDEP\" was never defined.
  16077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16078. fi
  16079. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16080. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16081. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16082. fi
  16083. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16084. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  16085. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16086. fi
  16087. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  16088. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  16089. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16090. fi
  16091. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  16092. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  16093. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16094. fi
  16095. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  16096. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  16097. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16098. fi
  16099. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  16100. as_fn_error $? "conditional \"MINGW\" was never defined.
  16101. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16102. fi
  16103. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  16104. as_fn_error $? "conditional \"UNICODE\" was never defined.
  16105. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16106. fi
  16107. if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
  16108. as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
  16109. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16110. fi
  16111. : "${CONFIG_STATUS=./config.status}"
  16112. ac_write_fail=0
  16113. ac_clean_files_save=$ac_clean_files
  16114. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16116. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16117. as_write_fail=0
  16118. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16119. #! $SHELL
  16120. # Generated by $as_me.
  16121. # Run this file to recreate the current configuration.
  16122. # Compiler output produced by configure, useful for debugging
  16123. # configure, is in config.log if it exists.
  16124. debug=false
  16125. ac_cs_recheck=false
  16126. ac_cs_silent=false
  16127. SHELL=\${CONFIG_SHELL-$SHELL}
  16128. export SHELL
  16129. _ASEOF
  16130. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16131. ## -------------------- ##
  16132. ## M4sh Initialization. ##
  16133. ## -------------------- ##
  16134. # Be more Bourne compatible
  16135. DUALCASE=1; export DUALCASE # for MKS sh
  16136. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16137. emulate sh
  16138. NULLCMD=:
  16139. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16140. # is contrary to our usage. Disable this feature.
  16141. alias -g '${1+"$@"}'='"$@"'
  16142. setopt NO_GLOB_SUBST
  16143. else
  16144. case `(set -o) 2>/dev/null` in #(
  16145. *posix*) :
  16146. set -o posix ;; #(
  16147. *) :
  16148. ;;
  16149. esac
  16150. fi
  16151. as_nl='
  16152. '
  16153. export as_nl
  16154. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16155. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16156. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16157. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16158. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16159. # but without wasting forks for bash or zsh.
  16160. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16161. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16162. as_echo='print -r --'
  16163. as_echo_n='print -rn --'
  16164. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16165. as_echo='printf %s\n'
  16166. as_echo_n='printf %s'
  16167. else
  16168. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16169. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16170. as_echo_n='/usr/ucb/echo -n'
  16171. else
  16172. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16173. as_echo_n_body='eval
  16174. arg=$1;
  16175. case $arg in #(
  16176. *"$as_nl"*)
  16177. expr "X$arg" : "X\\(.*\\)$as_nl";
  16178. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16179. esac;
  16180. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16181. '
  16182. export as_echo_n_body
  16183. as_echo_n='sh -c $as_echo_n_body as_echo'
  16184. fi
  16185. export as_echo_body
  16186. as_echo='sh -c $as_echo_body as_echo'
  16187. fi
  16188. # The user is always right.
  16189. if test "${PATH_SEPARATOR+set}" != set; then
  16190. PATH_SEPARATOR=:
  16191. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16192. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16193. PATH_SEPARATOR=';'
  16194. }
  16195. fi
  16196. # IFS
  16197. # We need space, tab and new line, in precisely that order. Quoting is
  16198. # there to prevent editors from complaining about space-tab.
  16199. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16200. # splitting by setting IFS to empty value.)
  16201. IFS=" "" $as_nl"
  16202. # Find who we are. Look in the path if we contain no directory separator.
  16203. as_myself=
  16204. case $0 in #((
  16205. *[\\/]* ) as_myself=$0 ;;
  16206. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16207. for as_dir in $PATH
  16208. do
  16209. IFS=$as_save_IFS
  16210. test -z "$as_dir" && as_dir=.
  16211. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16212. done
  16213. IFS=$as_save_IFS
  16214. ;;
  16215. esac
  16216. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16217. # in which case we are not to be found in the path.
  16218. if test "x$as_myself" = x; then
  16219. as_myself=$0
  16220. fi
  16221. if test ! -f "$as_myself"; then
  16222. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16223. exit 1
  16224. fi
  16225. # Unset variables that we do not need and which cause bugs (e.g. in
  16226. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16227. # suppresses any "Segmentation fault" message there. '((' could
  16228. # trigger a bug in pdksh 5.2.14.
  16229. for as_var in BASH_ENV ENV MAIL MAILPATH
  16230. do eval test x\${$as_var+set} = xset \
  16231. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16232. done
  16233. PS1='$ '
  16234. PS2='> '
  16235. PS4='+ '
  16236. # NLS nuisances.
  16237. LC_ALL=C
  16238. export LC_ALL
  16239. LANGUAGE=C
  16240. export LANGUAGE
  16241. # CDPATH.
  16242. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16243. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16244. # ----------------------------------------
  16245. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16246. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16247. # script with STATUS, using 1 if that was 0.
  16248. as_fn_error ()
  16249. {
  16250. as_status=$1; test $as_status -eq 0 && as_status=1
  16251. if test "$4"; then
  16252. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16253. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16254. fi
  16255. $as_echo "$as_me: error: $2" >&2
  16256. as_fn_exit $as_status
  16257. } # as_fn_error
  16258. # as_fn_set_status STATUS
  16259. # -----------------------
  16260. # Set $? to STATUS, without forking.
  16261. as_fn_set_status ()
  16262. {
  16263. return $1
  16264. } # as_fn_set_status
  16265. # as_fn_exit STATUS
  16266. # -----------------
  16267. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16268. as_fn_exit ()
  16269. {
  16270. set +e
  16271. as_fn_set_status $1
  16272. exit $1
  16273. } # as_fn_exit
  16274. # as_fn_unset VAR
  16275. # ---------------
  16276. # Portably unset VAR.
  16277. as_fn_unset ()
  16278. {
  16279. { eval $1=; unset $1;}
  16280. }
  16281. as_unset=as_fn_unset
  16282. # as_fn_append VAR VALUE
  16283. # ----------------------
  16284. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16285. # advantage of any shell optimizations that allow amortized linear growth over
  16286. # repeated appends, instead of the typical quadratic growth present in naive
  16287. # implementations.
  16288. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16289. eval 'as_fn_append ()
  16290. {
  16291. eval $1+=\$2
  16292. }'
  16293. else
  16294. as_fn_append ()
  16295. {
  16296. eval $1=\$$1\$2
  16297. }
  16298. fi # as_fn_append
  16299. # as_fn_arith ARG...
  16300. # ------------------
  16301. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16302. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16303. # must be portable across $(()) and expr.
  16304. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16305. eval 'as_fn_arith ()
  16306. {
  16307. as_val=$(( $* ))
  16308. }'
  16309. else
  16310. as_fn_arith ()
  16311. {
  16312. as_val=`expr "$@" || test $? -eq 1`
  16313. }
  16314. fi # as_fn_arith
  16315. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16316. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16317. as_expr=expr
  16318. else
  16319. as_expr=false
  16320. fi
  16321. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16322. as_basename=basename
  16323. else
  16324. as_basename=false
  16325. fi
  16326. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16327. as_dirname=dirname
  16328. else
  16329. as_dirname=false
  16330. fi
  16331. as_me=`$as_basename -- "$0" ||
  16332. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16333. X"$0" : 'X\(//\)$' \| \
  16334. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16335. $as_echo X/"$0" |
  16336. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16337. s//\1/
  16338. q
  16339. }
  16340. /^X\/\(\/\/\)$/{
  16341. s//\1/
  16342. q
  16343. }
  16344. /^X\/\(\/\).*/{
  16345. s//\1/
  16346. q
  16347. }
  16348. s/.*/./; q'`
  16349. # Avoid depending upon Character Ranges.
  16350. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16351. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16352. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16353. as_cr_digits='0123456789'
  16354. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16355. ECHO_C= ECHO_N= ECHO_T=
  16356. case `echo -n x` in #(((((
  16357. -n*)
  16358. case `echo 'xy\c'` in
  16359. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16360. xy) ECHO_C='\c';;
  16361. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16362. ECHO_T=' ';;
  16363. esac;;
  16364. *)
  16365. ECHO_N='-n';;
  16366. esac
  16367. rm -f conf$$ conf$$.exe conf$$.file
  16368. if test -d conf$$.dir; then
  16369. rm -f conf$$.dir/conf$$.file
  16370. else
  16371. rm -f conf$$.dir
  16372. mkdir conf$$.dir 2>/dev/null
  16373. fi
  16374. if (echo >conf$$.file) 2>/dev/null; then
  16375. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16376. as_ln_s='ln -s'
  16377. # ... but there are two gotchas:
  16378. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16379. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16380. # In both cases, we have to default to `cp -pR'.
  16381. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16382. as_ln_s='cp -pR'
  16383. elif ln conf$$.file conf$$ 2>/dev/null; then
  16384. as_ln_s=ln
  16385. else
  16386. as_ln_s='cp -pR'
  16387. fi
  16388. else
  16389. as_ln_s='cp -pR'
  16390. fi
  16391. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16392. rmdir conf$$.dir 2>/dev/null
  16393. # as_fn_mkdir_p
  16394. # -------------
  16395. # Create "$as_dir" as a directory, including parents if necessary.
  16396. as_fn_mkdir_p ()
  16397. {
  16398. case $as_dir in #(
  16399. -*) as_dir=./$as_dir;;
  16400. esac
  16401. test -d "$as_dir" || eval $as_mkdir_p || {
  16402. as_dirs=
  16403. while :; do
  16404. case $as_dir in #(
  16405. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16406. *) as_qdir=$as_dir;;
  16407. esac
  16408. as_dirs="'$as_qdir' $as_dirs"
  16409. as_dir=`$as_dirname -- "$as_dir" ||
  16410. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16411. X"$as_dir" : 'X\(//\)[^/]' \| \
  16412. X"$as_dir" : 'X\(//\)$' \| \
  16413. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16414. $as_echo X"$as_dir" |
  16415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16416. s//\1/
  16417. q
  16418. }
  16419. /^X\(\/\/\)[^/].*/{
  16420. s//\1/
  16421. q
  16422. }
  16423. /^X\(\/\/\)$/{
  16424. s//\1/
  16425. q
  16426. }
  16427. /^X\(\/\).*/{
  16428. s//\1/
  16429. q
  16430. }
  16431. s/.*/./; q'`
  16432. test -d "$as_dir" && break
  16433. done
  16434. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16435. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16436. } # as_fn_mkdir_p
  16437. if mkdir -p . 2>/dev/null; then
  16438. as_mkdir_p='mkdir -p "$as_dir"'
  16439. else
  16440. test -d ./-p && rmdir ./-p
  16441. as_mkdir_p=false
  16442. fi
  16443. # as_fn_executable_p FILE
  16444. # -----------------------
  16445. # Test if FILE is an executable regular file.
  16446. as_fn_executable_p ()
  16447. {
  16448. test -f "$1" && test -x "$1"
  16449. } # as_fn_executable_p
  16450. as_test_x='test -x'
  16451. as_executable_p=as_fn_executable_p
  16452. # Sed expression to map a string onto a valid CPP name.
  16453. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16454. # Sed expression to map a string onto a valid variable name.
  16455. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16456. exec 6>&1
  16457. ## ----------------------------------- ##
  16458. ## Main body of $CONFIG_STATUS script. ##
  16459. ## ----------------------------------- ##
  16460. _ASEOF
  16461. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16462. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16463. # Save the log message, to keep $0 and so on meaningful, and to
  16464. # report actual input values of CONFIG_FILES etc. instead of their
  16465. # values after options handling.
  16466. ac_log="
  16467. This file was extended by expat $as_me 2.2.9, which was
  16468. generated by GNU Autoconf 2.69. Invocation command line was
  16469. CONFIG_FILES = $CONFIG_FILES
  16470. CONFIG_HEADERS = $CONFIG_HEADERS
  16471. CONFIG_LINKS = $CONFIG_LINKS
  16472. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16473. $ $0 $@
  16474. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16475. "
  16476. _ACEOF
  16477. case $ac_config_files in *"
  16478. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16479. esac
  16480. case $ac_config_headers in *"
  16481. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16482. esac
  16483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16484. # Files that config.status was made for.
  16485. config_files="$ac_config_files"
  16486. config_headers="$ac_config_headers"
  16487. config_commands="$ac_config_commands"
  16488. _ACEOF
  16489. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16490. ac_cs_usage="\
  16491. \`$as_me' instantiates files and other configuration actions
  16492. from templates according to the current configuration. Unless the files
  16493. and actions are specified as TAGs, all are instantiated by default.
  16494. Usage: $0 [OPTION]... [TAG]...
  16495. -h, --help print this help, then exit
  16496. -V, --version print version number and configuration settings, then exit
  16497. --config print configuration, then exit
  16498. -q, --quiet, --silent
  16499. do not print progress messages
  16500. -d, --debug don't remove temporary files
  16501. --recheck update $as_me by reconfiguring in the same conditions
  16502. --file=FILE[:TEMPLATE]
  16503. instantiate the configuration file FILE
  16504. --header=FILE[:TEMPLATE]
  16505. instantiate the configuration header FILE
  16506. Configuration files:
  16507. $config_files
  16508. Configuration headers:
  16509. $config_headers
  16510. Configuration commands:
  16511. $config_commands
  16512. Report bugs to <[email protected]>."
  16513. _ACEOF
  16514. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16515. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16516. ac_cs_version="\\
  16517. expat config.status 2.2.9
  16518. configured by $0, generated by GNU Autoconf 2.69,
  16519. with options \\"\$ac_cs_config\\"
  16520. Copyright (C) 2012 Free Software Foundation, Inc.
  16521. This config.status script is free software; the Free Software Foundation
  16522. gives unlimited permission to copy, distribute and modify it."
  16523. ac_pwd='$ac_pwd'
  16524. srcdir='$srcdir'
  16525. INSTALL='$INSTALL'
  16526. MKDIR_P='$MKDIR_P'
  16527. AWK='$AWK'
  16528. test -n "\$AWK" || AWK=awk
  16529. _ACEOF
  16530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16531. # The default lists apply if the user does not specify any file.
  16532. ac_need_defaults=:
  16533. while test $# != 0
  16534. do
  16535. case $1 in
  16536. --*=?*)
  16537. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16538. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16539. ac_shift=:
  16540. ;;
  16541. --*=)
  16542. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16543. ac_optarg=
  16544. ac_shift=:
  16545. ;;
  16546. *)
  16547. ac_option=$1
  16548. ac_optarg=$2
  16549. ac_shift=shift
  16550. ;;
  16551. esac
  16552. case $ac_option in
  16553. # Handling of the options.
  16554. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16555. ac_cs_recheck=: ;;
  16556. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16557. $as_echo "$ac_cs_version"; exit ;;
  16558. --config | --confi | --conf | --con | --co | --c )
  16559. $as_echo "$ac_cs_config"; exit ;;
  16560. --debug | --debu | --deb | --de | --d | -d )
  16561. debug=: ;;
  16562. --file | --fil | --fi | --f )
  16563. $ac_shift
  16564. case $ac_optarg in
  16565. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16566. '') as_fn_error $? "missing file argument" ;;
  16567. esac
  16568. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16569. ac_need_defaults=false;;
  16570. --header | --heade | --head | --hea )
  16571. $ac_shift
  16572. case $ac_optarg in
  16573. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16574. esac
  16575. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16576. ac_need_defaults=false;;
  16577. --he | --h)
  16578. # Conflict between --help and --header
  16579. as_fn_error $? "ambiguous option: \`$1'
  16580. Try \`$0 --help' for more information.";;
  16581. --help | --hel | -h )
  16582. $as_echo "$ac_cs_usage"; exit ;;
  16583. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16584. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16585. ac_cs_silent=: ;;
  16586. # This is an error.
  16587. -*) as_fn_error $? "unrecognized option: \`$1'
  16588. Try \`$0 --help' for more information." ;;
  16589. *) as_fn_append ac_config_targets " $1"
  16590. ac_need_defaults=false ;;
  16591. esac
  16592. shift
  16593. done
  16594. ac_configure_extra_args=
  16595. if $ac_cs_silent; then
  16596. exec 6>/dev/null
  16597. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16598. fi
  16599. _ACEOF
  16600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16601. if \$ac_cs_recheck; then
  16602. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16603. shift
  16604. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16605. CONFIG_SHELL='$SHELL'
  16606. export CONFIG_SHELL
  16607. exec "\$@"
  16608. fi
  16609. _ACEOF
  16610. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16611. exec 5>>config.log
  16612. {
  16613. echo
  16614. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16615. ## Running $as_me. ##
  16616. _ASBOX
  16617. $as_echo "$ac_log"
  16618. } >&5
  16619. _ACEOF
  16620. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16621. #
  16622. # INIT-COMMANDS
  16623. #
  16624. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  16625. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16626. # if CDPATH is set.
  16627. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16628. sed_quote_subst='$sed_quote_subst'
  16629. double_quote_subst='$double_quote_subst'
  16630. delay_variable_subst='$delay_variable_subst'
  16631. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16632. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16633. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16634. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16635. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16636. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16637. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16638. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16639. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16640. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16641. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16642. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16643. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16644. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16645. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16646. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16647. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16648. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16649. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16650. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16651. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16652. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16653. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16654. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16655. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16656. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16657. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16658. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16659. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16660. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16661. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16662. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16663. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16664. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16665. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16666. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16667. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16668. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16669. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16670. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16671. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16672. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16673. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16674. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16675. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16676. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16677. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16678. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16679. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16680. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16681. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16682. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16683. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16684. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16685. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16686. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16687. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16688. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16689. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16690. 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"`'
  16691. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16692. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16693. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16694. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16695. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16696. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16697. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16698. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16699. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16700. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16701. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16702. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16703. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16704. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16705. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16706. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16707. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16708. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16709. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16710. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16711. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16712. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16713. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16714. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16715. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16716. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16717. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16718. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16719. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16720. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16721. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16722. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16723. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16724. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16725. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16726. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16727. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16728. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16729. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16730. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16731. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16732. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16733. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16734. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16735. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16736. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16737. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16738. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16739. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16740. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16741. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16742. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16743. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16744. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16745. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16746. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16747. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16748. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16749. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16750. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16751. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16752. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16753. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16754. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16755. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16756. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16757. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16758. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16759. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16760. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16761. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16762. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16763. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16764. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16765. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16766. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16767. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16768. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16769. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16770. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16771. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16772. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16773. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16774. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16775. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16776. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16777. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16778. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16779. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16780. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16781. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16782. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16783. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16784. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16785. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16786. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16787. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16788. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16789. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16790. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16791. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16792. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16793. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16794. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16795. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16796. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16797. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16798. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16799. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16800. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16801. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16802. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16803. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16804. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16805. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16806. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16807. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16808. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16809. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16810. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16811. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16812. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16813. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16814. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16815. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16816. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16817. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16818. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16819. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16820. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16821. LTCC='$LTCC'
  16822. LTCFLAGS='$LTCFLAGS'
  16823. compiler='$compiler_DEFAULT'
  16824. # A function that is used when there is no print builtin or printf.
  16825. func_fallback_echo ()
  16826. {
  16827. eval 'cat <<_LTECHO_EOF
  16828. \$1
  16829. _LTECHO_EOF'
  16830. }
  16831. # Quote evaled strings.
  16832. for var in AS \
  16833. DLLTOOL \
  16834. OBJDUMP \
  16835. SHELL \
  16836. ECHO \
  16837. PATH_SEPARATOR \
  16838. SED \
  16839. GREP \
  16840. EGREP \
  16841. FGREP \
  16842. LD \
  16843. NM \
  16844. LN_S \
  16845. lt_SP2NL \
  16846. lt_NL2SP \
  16847. reload_flag \
  16848. deplibs_check_method \
  16849. file_magic_cmd \
  16850. file_magic_glob \
  16851. want_nocaseglob \
  16852. sharedlib_from_linklib_cmd \
  16853. AR \
  16854. AR_FLAGS \
  16855. archiver_list_spec \
  16856. STRIP \
  16857. RANLIB \
  16858. CC \
  16859. CFLAGS \
  16860. compiler \
  16861. lt_cv_sys_global_symbol_pipe \
  16862. lt_cv_sys_global_symbol_to_cdecl \
  16863. lt_cv_sys_global_symbol_to_import \
  16864. lt_cv_sys_global_symbol_to_c_name_address \
  16865. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16866. lt_cv_nm_interface \
  16867. nm_file_list_spec \
  16868. lt_cv_truncate_bin \
  16869. lt_prog_compiler_no_builtin_flag \
  16870. lt_prog_compiler_pic \
  16871. lt_prog_compiler_wl \
  16872. lt_prog_compiler_static \
  16873. lt_cv_prog_compiler_c_o \
  16874. need_locks \
  16875. MANIFEST_TOOL \
  16876. DSYMUTIL \
  16877. NMEDIT \
  16878. LIPO \
  16879. OTOOL \
  16880. OTOOL64 \
  16881. shrext_cmds \
  16882. export_dynamic_flag_spec \
  16883. whole_archive_flag_spec \
  16884. compiler_needs_object \
  16885. with_gnu_ld \
  16886. allow_undefined_flag \
  16887. no_undefined_flag \
  16888. hardcode_libdir_flag_spec \
  16889. hardcode_libdir_separator \
  16890. exclude_expsyms \
  16891. include_expsyms \
  16892. file_list_spec \
  16893. variables_saved_for_relink \
  16894. libname_spec \
  16895. library_names_spec \
  16896. soname_spec \
  16897. install_override_mode \
  16898. finish_eval \
  16899. old_striplib \
  16900. striplib \
  16901. compiler_lib_search_dirs \
  16902. predep_objects \
  16903. postdep_objects \
  16904. predeps \
  16905. postdeps \
  16906. compiler_lib_search_path \
  16907. LD_CXX \
  16908. reload_flag_CXX \
  16909. compiler_CXX \
  16910. lt_prog_compiler_no_builtin_flag_CXX \
  16911. lt_prog_compiler_pic_CXX \
  16912. lt_prog_compiler_wl_CXX \
  16913. lt_prog_compiler_static_CXX \
  16914. lt_cv_prog_compiler_c_o_CXX \
  16915. export_dynamic_flag_spec_CXX \
  16916. whole_archive_flag_spec_CXX \
  16917. compiler_needs_object_CXX \
  16918. with_gnu_ld_CXX \
  16919. allow_undefined_flag_CXX \
  16920. no_undefined_flag_CXX \
  16921. hardcode_libdir_flag_spec_CXX \
  16922. hardcode_libdir_separator_CXX \
  16923. exclude_expsyms_CXX \
  16924. include_expsyms_CXX \
  16925. file_list_spec_CXX \
  16926. compiler_lib_search_dirs_CXX \
  16927. predep_objects_CXX \
  16928. postdep_objects_CXX \
  16929. predeps_CXX \
  16930. postdeps_CXX \
  16931. compiler_lib_search_path_CXX; do
  16932. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16933. *[\\\\\\\`\\"\\\$]*)
  16934. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16935. ;;
  16936. *)
  16937. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16938. ;;
  16939. esac
  16940. done
  16941. # Double-quote double-evaled strings.
  16942. for var in reload_cmds \
  16943. old_postinstall_cmds \
  16944. old_postuninstall_cmds \
  16945. old_archive_cmds \
  16946. extract_expsyms_cmds \
  16947. old_archive_from_new_cmds \
  16948. old_archive_from_expsyms_cmds \
  16949. archive_cmds \
  16950. archive_expsym_cmds \
  16951. module_cmds \
  16952. module_expsym_cmds \
  16953. export_symbols_cmds \
  16954. prelink_cmds \
  16955. postlink_cmds \
  16956. postinstall_cmds \
  16957. postuninstall_cmds \
  16958. finish_cmds \
  16959. sys_lib_search_path_spec \
  16960. configure_time_dlsearch_path \
  16961. configure_time_lt_sys_library_path \
  16962. reload_cmds_CXX \
  16963. old_archive_cmds_CXX \
  16964. old_archive_from_new_cmds_CXX \
  16965. old_archive_from_expsyms_cmds_CXX \
  16966. archive_cmds_CXX \
  16967. archive_expsym_cmds_CXX \
  16968. module_cmds_CXX \
  16969. module_expsym_cmds_CXX \
  16970. export_symbols_cmds_CXX \
  16971. prelink_cmds_CXX \
  16972. postlink_cmds_CXX; do
  16973. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16974. *[\\\\\\\`\\"\\\$]*)
  16975. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16976. ;;
  16977. *)
  16978. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16979. ;;
  16980. esac
  16981. done
  16982. ac_aux_dir='$ac_aux_dir'
  16983. # See if we are running on zsh, and set the options that allow our
  16984. # commands through without removal of \ escapes INIT.
  16985. if test -n "\${ZSH_VERSION+set}"; then
  16986. setopt NO_GLOB_SUBST
  16987. fi
  16988. PACKAGE='$PACKAGE'
  16989. VERSION='$VERSION'
  16990. RM='$RM'
  16991. ofile='$ofile'
  16992. _ACEOF
  16993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16994. # Handling of arguments.
  16995. for ac_config_target in $ac_config_targets
  16996. do
  16997. case $ac_config_target in
  16998. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  16999. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17000. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  17001. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17002. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  17003. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17004. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  17005. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  17006. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  17007. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  17008. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  17009. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  17010. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17011. esac
  17012. done
  17013. # If the user did not use the arguments to specify the items to instantiate,
  17014. # then the envvar interface is used. Set only those that are not.
  17015. # We use the long form for the default assignment because of an extremely
  17016. # bizarre bug on SunOS 4.1.3.
  17017. if $ac_need_defaults; then
  17018. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17019. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17020. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17021. fi
  17022. # Have a temporary directory for convenience. Make it in the build tree
  17023. # simply because there is no reason against having it here, and in addition,
  17024. # creating and moving files from /tmp can sometimes cause problems.
  17025. # Hook for its removal unless debugging.
  17026. # Note that there is a small window in which the directory will not be cleaned:
  17027. # after its creation but before its name has been assigned to `$tmp'.
  17028. $debug ||
  17029. {
  17030. tmp= ac_tmp=
  17031. trap 'exit_status=$?
  17032. : "${ac_tmp:=$tmp}"
  17033. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17034. ' 0
  17035. trap 'as_fn_exit 1' 1 2 13 15
  17036. }
  17037. # Create a (secure) tmp directory for tmp files.
  17038. {
  17039. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17040. test -d "$tmp"
  17041. } ||
  17042. {
  17043. tmp=./conf$$-$RANDOM
  17044. (umask 077 && mkdir "$tmp")
  17045. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17046. ac_tmp=$tmp
  17047. # Set up the scripts for CONFIG_FILES section.
  17048. # No need to generate them if there are no CONFIG_FILES.
  17049. # This happens for instance with `./config.status config.h'.
  17050. if test -n "$CONFIG_FILES"; then
  17051. ac_cr=`echo X | tr X '\015'`
  17052. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17053. # But we know of no other shell where ac_cr would be empty at this
  17054. # point, so we can use a bashism as a fallback.
  17055. if test "x$ac_cr" = x; then
  17056. eval ac_cr=\$\'\\r\'
  17057. fi
  17058. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17059. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17060. ac_cs_awk_cr='\\r'
  17061. else
  17062. ac_cs_awk_cr=$ac_cr
  17063. fi
  17064. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17065. _ACEOF
  17066. {
  17067. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17068. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17069. echo "_ACEOF"
  17070. } >conf$$subs.sh ||
  17071. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17072. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17073. ac_delim='%!_!# '
  17074. for ac_last_try in false false false false false :; do
  17075. . ./conf$$subs.sh ||
  17076. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17077. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17078. if test $ac_delim_n = $ac_delim_num; then
  17079. break
  17080. elif $ac_last_try; then
  17081. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17082. else
  17083. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17084. fi
  17085. done
  17086. rm -f conf$$subs.sh
  17087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17088. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17089. _ACEOF
  17090. sed -n '
  17091. h
  17092. s/^/S["/; s/!.*/"]=/
  17093. p
  17094. g
  17095. s/^[^!]*!//
  17096. :repl
  17097. t repl
  17098. s/'"$ac_delim"'$//
  17099. t delim
  17100. :nl
  17101. h
  17102. s/\(.\{148\}\)..*/\1/
  17103. t more1
  17104. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17105. p
  17106. n
  17107. b repl
  17108. :more1
  17109. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17110. p
  17111. g
  17112. s/.\{148\}//
  17113. t nl
  17114. :delim
  17115. h
  17116. s/\(.\{148\}\)..*/\1/
  17117. t more2
  17118. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17119. p
  17120. b
  17121. :more2
  17122. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17123. p
  17124. g
  17125. s/.\{148\}//
  17126. t delim
  17127. ' <conf$$subs.awk | sed '
  17128. /^[^""]/{
  17129. N
  17130. s/\n//
  17131. }
  17132. ' >>$CONFIG_STATUS || ac_write_fail=1
  17133. rm -f conf$$subs.awk
  17134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17135. _ACAWK
  17136. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17137. for (key in S) S_is_set[key] = 1
  17138. FS = ""
  17139. }
  17140. {
  17141. line = $ 0
  17142. nfields = split(line, field, "@")
  17143. substed = 0
  17144. len = length(field[1])
  17145. for (i = 2; i < nfields; i++) {
  17146. key = field[i]
  17147. keylen = length(key)
  17148. if (S_is_set[key]) {
  17149. value = S[key]
  17150. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17151. len += length(value) + length(field[++i])
  17152. substed = 1
  17153. } else
  17154. len += 1 + keylen
  17155. }
  17156. print line
  17157. }
  17158. _ACAWK
  17159. _ACEOF
  17160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17161. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17162. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17163. else
  17164. cat
  17165. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17166. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17167. _ACEOF
  17168. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17169. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17170. # trailing colons and then remove the whole line if VPATH becomes empty
  17171. # (actually we leave an empty line to preserve line numbers).
  17172. if test "x$srcdir" = x.; then
  17173. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17174. h
  17175. s///
  17176. s/^/:/
  17177. s/[ ]*$/:/
  17178. s/:\$(srcdir):/:/g
  17179. s/:\${srcdir}:/:/g
  17180. s/:@srcdir@:/:/g
  17181. s/^:*//
  17182. s/:*$//
  17183. x
  17184. s/\(=[ ]*\).*/\1/
  17185. G
  17186. s/\n//
  17187. s/^[^=]*=[ ]*$//
  17188. }'
  17189. fi
  17190. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17191. fi # test -n "$CONFIG_FILES"
  17192. # Set up the scripts for CONFIG_HEADERS section.
  17193. # No need to generate them if there are no CONFIG_HEADERS.
  17194. # This happens for instance with `./config.status Makefile'.
  17195. if test -n "$CONFIG_HEADERS"; then
  17196. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  17197. BEGIN {
  17198. _ACEOF
  17199. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17200. # here-document in config.status, that substitutes the proper values into
  17201. # config.h.in to produce config.h.
  17202. # Create a delimiter string that does not exist in confdefs.h, to ease
  17203. # handling of long lines.
  17204. ac_delim='%!_!# '
  17205. for ac_last_try in false false :; do
  17206. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  17207. if test -z "$ac_tt"; then
  17208. break
  17209. elif $ac_last_try; then
  17210. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  17211. else
  17212. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17213. fi
  17214. done
  17215. # For the awk script, D is an array of macro values keyed by name,
  17216. # likewise P contains macro parameters if any. Preserve backslash
  17217. # newline sequences.
  17218. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17219. sed -n '
  17220. s/.\{148\}/&'"$ac_delim"'/g
  17221. t rset
  17222. :rset
  17223. s/^[ ]*#[ ]*define[ ][ ]*/ /
  17224. t def
  17225. d
  17226. :def
  17227. s/\\$//
  17228. t bsnl
  17229. s/["\\]/\\&/g
  17230. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17231. D["\1"]=" \3"/p
  17232. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  17233. d
  17234. :bsnl
  17235. s/["\\]/\\&/g
  17236. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17237. D["\1"]=" \3\\\\\\n"\\/p
  17238. t cont
  17239. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17240. t cont
  17241. d
  17242. :cont
  17243. n
  17244. s/.\{148\}/&'"$ac_delim"'/g
  17245. t clear
  17246. :clear
  17247. s/\\$//
  17248. t bsnlc
  17249. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17250. d
  17251. :bsnlc
  17252. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17253. b cont
  17254. ' <confdefs.h | sed '
  17255. s/'"$ac_delim"'/"\\\
  17256. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17257. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17258. for (key in D) D_is_set[key] = 1
  17259. FS = ""
  17260. }
  17261. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17262. line = \$ 0
  17263. split(line, arg, " ")
  17264. if (arg[1] == "#") {
  17265. defundef = arg[2]
  17266. mac1 = arg[3]
  17267. } else {
  17268. defundef = substr(arg[1], 2)
  17269. mac1 = arg[2]
  17270. }
  17271. split(mac1, mac2, "(") #)
  17272. macro = mac2[1]
  17273. prefix = substr(line, 1, index(line, defundef) - 1)
  17274. if (D_is_set[macro]) {
  17275. # Preserve the white space surrounding the "#".
  17276. print prefix "define", macro P[macro] D[macro]
  17277. next
  17278. } else {
  17279. # Replace #undef with comments. This is necessary, for example,
  17280. # in the case of _POSIX_SOURCE, which is predefined and required
  17281. # on some systems where configure will not decide to define it.
  17282. if (defundef == "undef") {
  17283. print "/*", prefix defundef, macro, "*/"
  17284. next
  17285. }
  17286. }
  17287. }
  17288. { print }
  17289. _ACAWK
  17290. _ACEOF
  17291. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17292. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  17293. fi # test -n "$CONFIG_HEADERS"
  17294. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  17295. shift
  17296. for ac_tag
  17297. do
  17298. case $ac_tag in
  17299. :[FHLC]) ac_mode=$ac_tag; continue;;
  17300. esac
  17301. case $ac_mode$ac_tag in
  17302. :[FHL]*:*);;
  17303. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17304. :[FH]-) ac_tag=-:-;;
  17305. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17306. esac
  17307. ac_save_IFS=$IFS
  17308. IFS=:
  17309. set x $ac_tag
  17310. IFS=$ac_save_IFS
  17311. shift
  17312. ac_file=$1
  17313. shift
  17314. case $ac_mode in
  17315. :L) ac_source=$1;;
  17316. :[FH])
  17317. ac_file_inputs=
  17318. for ac_f
  17319. do
  17320. case $ac_f in
  17321. -) ac_f="$ac_tmp/stdin";;
  17322. *) # Look for the file first in the build tree, then in the source tree
  17323. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17324. # because $ac_f cannot contain `:'.
  17325. test -f "$ac_f" ||
  17326. case $ac_f in
  17327. [\\/$]*) false;;
  17328. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17329. esac ||
  17330. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17331. esac
  17332. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17333. as_fn_append ac_file_inputs " '$ac_f'"
  17334. done
  17335. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17336. # use $as_me), people would be surprised to read:
  17337. # /* config.h. Generated by config.status. */
  17338. configure_input='Generated from '`
  17339. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17340. `' by configure.'
  17341. if test x"$ac_file" != x-; then
  17342. configure_input="$ac_file. $configure_input"
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17344. $as_echo "$as_me: creating $ac_file" >&6;}
  17345. fi
  17346. # Neutralize special characters interpreted by sed in replacement strings.
  17347. case $configure_input in #(
  17348. *\&* | *\|* | *\\* )
  17349. ac_sed_conf_input=`$as_echo "$configure_input" |
  17350. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17351. *) ac_sed_conf_input=$configure_input;;
  17352. esac
  17353. case $ac_tag in
  17354. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17355. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17356. esac
  17357. ;;
  17358. esac
  17359. ac_dir=`$as_dirname -- "$ac_file" ||
  17360. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17361. X"$ac_file" : 'X\(//\)[^/]' \| \
  17362. X"$ac_file" : 'X\(//\)$' \| \
  17363. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17364. $as_echo X"$ac_file" |
  17365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17366. s//\1/
  17367. q
  17368. }
  17369. /^X\(\/\/\)[^/].*/{
  17370. s//\1/
  17371. q
  17372. }
  17373. /^X\(\/\/\)$/{
  17374. s//\1/
  17375. q
  17376. }
  17377. /^X\(\/\).*/{
  17378. s//\1/
  17379. q
  17380. }
  17381. s/.*/./; q'`
  17382. as_dir="$ac_dir"; as_fn_mkdir_p
  17383. ac_builddir=.
  17384. case "$ac_dir" in
  17385. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17386. *)
  17387. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17388. # A ".." for each directory in $ac_dir_suffix.
  17389. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17390. case $ac_top_builddir_sub in
  17391. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17392. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17393. esac ;;
  17394. esac
  17395. ac_abs_top_builddir=$ac_pwd
  17396. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17397. # for backward compatibility:
  17398. ac_top_builddir=$ac_top_build_prefix
  17399. case $srcdir in
  17400. .) # We are building in place.
  17401. ac_srcdir=.
  17402. ac_top_srcdir=$ac_top_builddir_sub
  17403. ac_abs_top_srcdir=$ac_pwd ;;
  17404. [\\/]* | ?:[\\/]* ) # Absolute name.
  17405. ac_srcdir=$srcdir$ac_dir_suffix;
  17406. ac_top_srcdir=$srcdir
  17407. ac_abs_top_srcdir=$srcdir ;;
  17408. *) # Relative name.
  17409. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17410. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17411. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17412. esac
  17413. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17414. case $ac_mode in
  17415. :F)
  17416. #
  17417. # CONFIG_FILE
  17418. #
  17419. case $INSTALL in
  17420. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17421. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17422. esac
  17423. ac_MKDIR_P=$MKDIR_P
  17424. case $MKDIR_P in
  17425. [\\/$]* | ?:[\\/]* ) ;;
  17426. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17427. esac
  17428. _ACEOF
  17429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17430. # If the template does not know about datarootdir, expand it.
  17431. # FIXME: This hack should be removed a few years after 2.60.
  17432. ac_datarootdir_hack=; ac_datarootdir_seen=
  17433. ac_sed_dataroot='
  17434. /datarootdir/ {
  17435. p
  17436. q
  17437. }
  17438. /@datadir@/p
  17439. /@docdir@/p
  17440. /@infodir@/p
  17441. /@localedir@/p
  17442. /@mandir@/p'
  17443. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17444. *datarootdir*) ac_datarootdir_seen=yes;;
  17445. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17447. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17448. _ACEOF
  17449. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17450. ac_datarootdir_hack='
  17451. s&@datadir@&$datadir&g
  17452. s&@docdir@&$docdir&g
  17453. s&@infodir@&$infodir&g
  17454. s&@localedir@&$localedir&g
  17455. s&@mandir@&$mandir&g
  17456. s&\\\${datarootdir}&$datarootdir&g' ;;
  17457. esac
  17458. _ACEOF
  17459. # Neutralize VPATH when `$srcdir' = `.'.
  17460. # Shell code in configure.ac might set extrasub.
  17461. # FIXME: do we really want to maintain this feature?
  17462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17463. ac_sed_extra="$ac_vpsub
  17464. $extrasub
  17465. _ACEOF
  17466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17467. :t
  17468. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17469. s|@configure_input@|$ac_sed_conf_input|;t t
  17470. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17471. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17472. s&@srcdir@&$ac_srcdir&;t t
  17473. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17474. s&@top_srcdir@&$ac_top_srcdir&;t t
  17475. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17476. s&@builddir@&$ac_builddir&;t t
  17477. s&@abs_builddir@&$ac_abs_builddir&;t t
  17478. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17479. s&@INSTALL@&$ac_INSTALL&;t t
  17480. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17481. $ac_datarootdir_hack
  17482. "
  17483. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17484. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17485. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17486. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17487. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17488. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17490. which seems to be undefined. Please make sure it is defined" >&5
  17491. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17492. which seems to be undefined. Please make sure it is defined" >&2;}
  17493. rm -f "$ac_tmp/stdin"
  17494. case $ac_file in
  17495. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17496. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17497. esac \
  17498. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17499. ;;
  17500. :H)
  17501. #
  17502. # CONFIG_HEADER
  17503. #
  17504. if test x"$ac_file" != x-; then
  17505. {
  17506. $as_echo "/* $configure_input */" \
  17507. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17508. } >"$ac_tmp/config.h" \
  17509. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17510. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17512. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17513. else
  17514. rm -f "$ac_file"
  17515. mv "$ac_tmp/config.h" "$ac_file" \
  17516. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17517. fi
  17518. else
  17519. $as_echo "/* $configure_input */" \
  17520. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17521. || as_fn_error $? "could not create -" "$LINENO" 5
  17522. fi
  17523. # Compute "$ac_file"'s index in $config_headers.
  17524. _am_arg="$ac_file"
  17525. _am_stamp_count=1
  17526. for _am_header in $config_headers :; do
  17527. case $_am_header in
  17528. $_am_arg | $_am_arg:* )
  17529. break ;;
  17530. * )
  17531. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17532. esac
  17533. done
  17534. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17535. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17536. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17537. X"$_am_arg" : 'X\(//\)$' \| \
  17538. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17539. $as_echo X"$_am_arg" |
  17540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17541. s//\1/
  17542. q
  17543. }
  17544. /^X\(\/\/\)[^/].*/{
  17545. s//\1/
  17546. q
  17547. }
  17548. /^X\(\/\/\)$/{
  17549. s//\1/
  17550. q
  17551. }
  17552. /^X\(\/\).*/{
  17553. s//\1/
  17554. q
  17555. }
  17556. s/.*/./; q'`/stamp-h$_am_stamp_count
  17557. ;;
  17558. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17559. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17560. ;;
  17561. esac
  17562. case $ac_file$ac_mode in
  17563. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17564. # Older Autoconf quotes --file arguments for eval, but not when files
  17565. # are listed without --file. Let's play safe and only enable the eval
  17566. # if we detect the quoting.
  17567. # TODO: see whether this extra hack can be removed once we start
  17568. # requiring Autoconf 2.70 or later.
  17569. case $CONFIG_FILES in #(
  17570. *\'*) :
  17571. eval set x "$CONFIG_FILES" ;; #(
  17572. *) :
  17573. set x $CONFIG_FILES ;; #(
  17574. *) :
  17575. ;;
  17576. esac
  17577. shift
  17578. # Used to flag and report bootstrapping failures.
  17579. am_rc=0
  17580. for am_mf
  17581. do
  17582. # Strip MF so we end up with the name of the file.
  17583. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  17584. # Check whether this is an Automake generated Makefile which includes
  17585. # dependency-tracking related rules and includes.
  17586. # Grep'ing the whole file directly is not great: AIX grep has a line
  17587. # limit of 2048, but all sed's we know have understand at least 4000.
  17588. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  17589. || continue
  17590. am_dirpart=`$as_dirname -- "$am_mf" ||
  17591. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17592. X"$am_mf" : 'X\(//\)[^/]' \| \
  17593. X"$am_mf" : 'X\(//\)$' \| \
  17594. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17595. $as_echo X"$am_mf" |
  17596. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17597. s//\1/
  17598. q
  17599. }
  17600. /^X\(\/\/\)[^/].*/{
  17601. s//\1/
  17602. q
  17603. }
  17604. /^X\(\/\/\)$/{
  17605. s//\1/
  17606. q
  17607. }
  17608. /^X\(\/\).*/{
  17609. s//\1/
  17610. q
  17611. }
  17612. s/.*/./; q'`
  17613. am_filepart=`$as_basename -- "$am_mf" ||
  17614. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  17615. X"$am_mf" : 'X\(//\)$' \| \
  17616. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17617. $as_echo X/"$am_mf" |
  17618. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17619. s//\1/
  17620. q
  17621. }
  17622. /^X\/\(\/\/\)$/{
  17623. s//\1/
  17624. q
  17625. }
  17626. /^X\/\(\/\).*/{
  17627. s//\1/
  17628. q
  17629. }
  17630. s/.*/./; q'`
  17631. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  17632. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17633. | $MAKE -f - am--depfiles" >&5
  17634. (cd "$am_dirpart" \
  17635. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17636. | $MAKE -f - am--depfiles) >&5 2>&5
  17637. ac_status=$?
  17638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17639. (exit $ac_status); } || am_rc=$?
  17640. done
  17641. if test $am_rc -ne 0; then
  17642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17644. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  17645. for automatic dependency tracking. Try re-running configure with the
  17646. '--disable-dependency-tracking' option to at least be able to build
  17647. the package (albeit without support for automatic dependency tracking).
  17648. See \`config.log' for more details" "$LINENO" 5; }
  17649. fi
  17650. { am_dirpart=; unset am_dirpart;}
  17651. { am_filepart=; unset am_filepart;}
  17652. { am_mf=; unset am_mf;}
  17653. { am_rc=; unset am_rc;}
  17654. rm -f conftest-deps.mk
  17655. }
  17656. ;;
  17657. "libtool":C)
  17658. # See if we are running on zsh, and set the options that allow our
  17659. # commands through without removal of \ escapes.
  17660. if test -n "${ZSH_VERSION+set}"; then
  17661. setopt NO_GLOB_SUBST
  17662. fi
  17663. cfgfile=${ofile}T
  17664. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17665. $RM "$cfgfile"
  17666. cat <<_LT_EOF >> "$cfgfile"
  17667. #! $SHELL
  17668. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17669. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17670. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17671. # Provide generalized library-building support services.
  17672. # Written by Gordon Matzigkeit, 1996
  17673. # Copyright (C) 2014 Free Software Foundation, Inc.
  17674. # This is free software; see the source for copying conditions. There is NO
  17675. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17676. # GNU Libtool is free software; you can redistribute it and/or modify
  17677. # it under the terms of the GNU General Public License as published by
  17678. # the Free Software Foundation; either version 2 of of the License, or
  17679. # (at your option) any later version.
  17680. #
  17681. # As a special exception to the GNU General Public License, if you
  17682. # distribute this file as part of a program or library that is built
  17683. # using GNU Libtool, you may include this file under the same
  17684. # distribution terms that you use for the rest of that program.
  17685. #
  17686. # GNU Libtool is distributed in the hope that it will be useful, but
  17687. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17688. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17689. # GNU General Public License for more details.
  17690. #
  17691. # You should have received a copy of the GNU General Public License
  17692. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17693. # The names of the tagged configurations supported by this script.
  17694. available_tags='CXX '
  17695. # Configured defaults for sys_lib_dlsearch_path munging.
  17696. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17697. # ### BEGIN LIBTOOL CONFIG
  17698. # Which release of libtool.m4 was used?
  17699. macro_version=$macro_version
  17700. macro_revision=$macro_revision
  17701. # Assembler program.
  17702. AS=$lt_AS
  17703. # DLL creation program.
  17704. DLLTOOL=$lt_DLLTOOL
  17705. # Object dumper program.
  17706. OBJDUMP=$lt_OBJDUMP
  17707. # Whether or not to build shared libraries.
  17708. build_libtool_libs=$enable_shared
  17709. # Whether or not to build static libraries.
  17710. build_old_libs=$enable_static
  17711. # What type of objects to build.
  17712. pic_mode=$pic_mode
  17713. # Whether or not to optimize for fast installation.
  17714. fast_install=$enable_fast_install
  17715. # Shared archive member basename,for filename based shared library versioning on AIX.
  17716. shared_archive_member_spec=$shared_archive_member_spec
  17717. # Shell to use when invoking shell scripts.
  17718. SHELL=$lt_SHELL
  17719. # An echo program that protects backslashes.
  17720. ECHO=$lt_ECHO
  17721. # The PATH separator for the build system.
  17722. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17723. # The host system.
  17724. host_alias=$host_alias
  17725. host=$host
  17726. host_os=$host_os
  17727. # The build system.
  17728. build_alias=$build_alias
  17729. build=$build
  17730. build_os=$build_os
  17731. # A sed program that does not truncate output.
  17732. SED=$lt_SED
  17733. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17734. Xsed="\$SED -e 1s/^X//"
  17735. # A grep program that handles long lines.
  17736. GREP=$lt_GREP
  17737. # An ERE matcher.
  17738. EGREP=$lt_EGREP
  17739. # A literal string matcher.
  17740. FGREP=$lt_FGREP
  17741. # A BSD- or MS-compatible name lister.
  17742. NM=$lt_NM
  17743. # Whether we need soft or hard links.
  17744. LN_S=$lt_LN_S
  17745. # What is the maximum length of a command?
  17746. max_cmd_len=$max_cmd_len
  17747. # Object file suffix (normally "o").
  17748. objext=$ac_objext
  17749. # Executable file suffix (normally "").
  17750. exeext=$exeext
  17751. # whether the shell understands "unset".
  17752. lt_unset=$lt_unset
  17753. # turn spaces into newlines.
  17754. SP2NL=$lt_lt_SP2NL
  17755. # turn newlines into spaces.
  17756. NL2SP=$lt_lt_NL2SP
  17757. # convert \$build file names to \$host format.
  17758. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17759. # convert \$build files to toolchain format.
  17760. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17761. # Method to check whether dependent libraries are shared objects.
  17762. deplibs_check_method=$lt_deplibs_check_method
  17763. # Command to use when deplibs_check_method = "file_magic".
  17764. file_magic_cmd=$lt_file_magic_cmd
  17765. # How to find potential files when deplibs_check_method = "file_magic".
  17766. file_magic_glob=$lt_file_magic_glob
  17767. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17768. want_nocaseglob=$lt_want_nocaseglob
  17769. # Command to associate shared and link libraries.
  17770. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17771. # The archiver.
  17772. AR=$lt_AR
  17773. # Flags to create an archive.
  17774. AR_FLAGS=$lt_AR_FLAGS
  17775. # How to feed a file listing to the archiver.
  17776. archiver_list_spec=$lt_archiver_list_spec
  17777. # A symbol stripping program.
  17778. STRIP=$lt_STRIP
  17779. # Commands used to install an old-style archive.
  17780. RANLIB=$lt_RANLIB
  17781. old_postinstall_cmds=$lt_old_postinstall_cmds
  17782. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17783. # Whether to use a lock for old archive extraction.
  17784. lock_old_archive_extraction=$lock_old_archive_extraction
  17785. # A C compiler.
  17786. LTCC=$lt_CC
  17787. # LTCC compiler flags.
  17788. LTCFLAGS=$lt_CFLAGS
  17789. # Take the output of nm and produce a listing of raw symbols and C names.
  17790. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17791. # Transform the output of nm in a proper C declaration.
  17792. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17793. # Transform the output of nm into a list of symbols to manually relocate.
  17794. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17795. # Transform the output of nm in a C name address pair.
  17796. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17797. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17798. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17799. # The name lister interface.
  17800. nm_interface=$lt_lt_cv_nm_interface
  17801. # Specify filename containing input files for \$NM.
  17802. nm_file_list_spec=$lt_nm_file_list_spec
  17803. # The root where to search for dependent libraries,and where our libraries should be installed.
  17804. lt_sysroot=$lt_sysroot
  17805. # Command to truncate a binary pipe.
  17806. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17807. # The name of the directory that contains temporary libtool files.
  17808. objdir=$objdir
  17809. # Used to examine libraries when file_magic_cmd begins with "file".
  17810. MAGIC_CMD=$MAGIC_CMD
  17811. # Must we lock files when doing compilation?
  17812. need_locks=$lt_need_locks
  17813. # Manifest tool.
  17814. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17815. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17816. DSYMUTIL=$lt_DSYMUTIL
  17817. # Tool to change global to local symbols on Mac OS X.
  17818. NMEDIT=$lt_NMEDIT
  17819. # Tool to manipulate fat objects and archives on Mac OS X.
  17820. LIPO=$lt_LIPO
  17821. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17822. OTOOL=$lt_OTOOL
  17823. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17824. OTOOL64=$lt_OTOOL64
  17825. # Old archive suffix (normally "a").
  17826. libext=$libext
  17827. # Shared library suffix (normally ".so").
  17828. shrext_cmds=$lt_shrext_cmds
  17829. # The commands to extract the exported symbol list from a shared archive.
  17830. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17831. # Variables whose values should be saved in libtool wrapper scripts and
  17832. # restored at link time.
  17833. variables_saved_for_relink=$lt_variables_saved_for_relink
  17834. # Do we need the "lib" prefix for modules?
  17835. need_lib_prefix=$need_lib_prefix
  17836. # Do we need a version for libraries?
  17837. need_version=$need_version
  17838. # Library versioning type.
  17839. version_type=$version_type
  17840. # Shared library runtime path variable.
  17841. runpath_var=$runpath_var
  17842. # Shared library path variable.
  17843. shlibpath_var=$shlibpath_var
  17844. # Is shlibpath searched before the hard-coded library search path?
  17845. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17846. # Format of library name prefix.
  17847. libname_spec=$lt_libname_spec
  17848. # List of archive names. First name is the real one, the rest are links.
  17849. # The last name is the one that the linker finds with -lNAME
  17850. library_names_spec=$lt_library_names_spec
  17851. # The coded name of the library, if different from the real name.
  17852. soname_spec=$lt_soname_spec
  17853. # Permission mode override for installation of shared libraries.
  17854. install_override_mode=$lt_install_override_mode
  17855. # Command to use after installation of a shared archive.
  17856. postinstall_cmds=$lt_postinstall_cmds
  17857. # Command to use after uninstallation of a shared archive.
  17858. postuninstall_cmds=$lt_postuninstall_cmds
  17859. # Commands used to finish a libtool library installation in a directory.
  17860. finish_cmds=$lt_finish_cmds
  17861. # As "finish_cmds", except a single script fragment to be evaled but
  17862. # not shown.
  17863. finish_eval=$lt_finish_eval
  17864. # Whether we should hardcode library paths into libraries.
  17865. hardcode_into_libs=$hardcode_into_libs
  17866. # Compile-time system search path for libraries.
  17867. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17868. # Detected run-time system search path for libraries.
  17869. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17870. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17871. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17872. # Whether dlopen is supported.
  17873. dlopen_support=$enable_dlopen
  17874. # Whether dlopen of programs is supported.
  17875. dlopen_self=$enable_dlopen_self
  17876. # Whether dlopen of statically linked programs is supported.
  17877. dlopen_self_static=$enable_dlopen_self_static
  17878. # Commands to strip libraries.
  17879. old_striplib=$lt_old_striplib
  17880. striplib=$lt_striplib
  17881. # The linker used to build libraries.
  17882. LD=$lt_LD
  17883. # How to create reloadable object files.
  17884. reload_flag=$lt_reload_flag
  17885. reload_cmds=$lt_reload_cmds
  17886. # Commands used to build an old-style archive.
  17887. old_archive_cmds=$lt_old_archive_cmds
  17888. # A language specific compiler.
  17889. CC=$lt_compiler
  17890. # Is the compiler the GNU compiler?
  17891. with_gcc=$GCC
  17892. # Compiler flag to turn off builtin functions.
  17893. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17894. # Additional compiler flags for building library objects.
  17895. pic_flag=$lt_lt_prog_compiler_pic
  17896. # How to pass a linker flag through the compiler.
  17897. wl=$lt_lt_prog_compiler_wl
  17898. # Compiler flag to prevent dynamic linking.
  17899. link_static_flag=$lt_lt_prog_compiler_static
  17900. # Does compiler simultaneously support -c and -o options?
  17901. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17902. # Whether or not to add -lc for building shared libraries.
  17903. build_libtool_need_lc=$archive_cmds_need_lc
  17904. # Whether or not to disallow shared libs when runtime libs are static.
  17905. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17906. # Compiler flag to allow reflexive dlopens.
  17907. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17908. # Compiler flag to generate shared objects directly from archives.
  17909. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17910. # Whether the compiler copes with passing no objects directly.
  17911. compiler_needs_object=$lt_compiler_needs_object
  17912. # Create an old-style archive from a shared archive.
  17913. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17914. # Create a temporary old-style archive to link instead of a shared archive.
  17915. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17916. # Commands used to build a shared archive.
  17917. archive_cmds=$lt_archive_cmds
  17918. archive_expsym_cmds=$lt_archive_expsym_cmds
  17919. # Commands used to build a loadable module if different from building
  17920. # a shared archive.
  17921. module_cmds=$lt_module_cmds
  17922. module_expsym_cmds=$lt_module_expsym_cmds
  17923. # Whether we are building with GNU ld or not.
  17924. with_gnu_ld=$lt_with_gnu_ld
  17925. # Flag that allows shared libraries with undefined symbols to be built.
  17926. allow_undefined_flag=$lt_allow_undefined_flag
  17927. # Flag that enforces no undefined symbols.
  17928. no_undefined_flag=$lt_no_undefined_flag
  17929. # Flag to hardcode \$libdir into a binary during linking.
  17930. # This must work even if \$libdir does not exist
  17931. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17932. # Whether we need a single "-rpath" flag with a separated argument.
  17933. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17934. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17935. # DIR into the resulting binary.
  17936. hardcode_direct=$hardcode_direct
  17937. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17938. # DIR into the resulting binary and the resulting library dependency is
  17939. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17940. # library is relocated.
  17941. hardcode_direct_absolute=$hardcode_direct_absolute
  17942. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17943. # into the resulting binary.
  17944. hardcode_minus_L=$hardcode_minus_L
  17945. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17946. # into the resulting binary.
  17947. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17948. # Set to "yes" if building a shared library automatically hardcodes DIR
  17949. # into the library and all subsequent libraries and executables linked
  17950. # against it.
  17951. hardcode_automatic=$hardcode_automatic
  17952. # Set to yes if linker adds runtime paths of dependent libraries
  17953. # to runtime path list.
  17954. inherit_rpath=$inherit_rpath
  17955. # Whether libtool must link a program against all its dependency libraries.
  17956. link_all_deplibs=$link_all_deplibs
  17957. # Set to "yes" if exported symbols are required.
  17958. always_export_symbols=$always_export_symbols
  17959. # The commands to list exported symbols.
  17960. export_symbols_cmds=$lt_export_symbols_cmds
  17961. # Symbols that should not be listed in the preloaded symbols.
  17962. exclude_expsyms=$lt_exclude_expsyms
  17963. # Symbols that must always be exported.
  17964. include_expsyms=$lt_include_expsyms
  17965. # Commands necessary for linking programs (against libraries) with templates.
  17966. prelink_cmds=$lt_prelink_cmds
  17967. # Commands necessary for finishing linking programs.
  17968. postlink_cmds=$lt_postlink_cmds
  17969. # Specify filename containing input files.
  17970. file_list_spec=$lt_file_list_spec
  17971. # How to hardcode a shared library path into an executable.
  17972. hardcode_action=$hardcode_action
  17973. # The directories searched by this compiler when creating a shared library.
  17974. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17975. # Dependencies to place before and after the objects being linked to
  17976. # create a shared library.
  17977. predep_objects=$lt_predep_objects
  17978. postdep_objects=$lt_postdep_objects
  17979. predeps=$lt_predeps
  17980. postdeps=$lt_postdeps
  17981. # The library search path used internally by the compiler when linking
  17982. # a shared library.
  17983. compiler_lib_search_path=$lt_compiler_lib_search_path
  17984. # ### END LIBTOOL CONFIG
  17985. _LT_EOF
  17986. cat <<'_LT_EOF' >> "$cfgfile"
  17987. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17988. # func_munge_path_list VARIABLE PATH
  17989. # -----------------------------------
  17990. # VARIABLE is name of variable containing _space_ separated list of
  17991. # directories to be munged by the contents of PATH, which is string
  17992. # having a format:
  17993. # "DIR[:DIR]:"
  17994. # string "DIR[ DIR]" will be prepended to VARIABLE
  17995. # ":DIR[:DIR]"
  17996. # string "DIR[ DIR]" will be appended to VARIABLE
  17997. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17998. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17999. # "DIRA[ DIRA]" will be appended to VARIABLE
  18000. # "DIR[:DIR]"
  18001. # VARIABLE will be replaced by "DIR[ DIR]"
  18002. func_munge_path_list ()
  18003. {
  18004. case x$2 in
  18005. x)
  18006. ;;
  18007. *:)
  18008. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  18009. ;;
  18010. x:*)
  18011. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  18012. ;;
  18013. *::*)
  18014. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  18015. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  18016. ;;
  18017. *)
  18018. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  18019. ;;
  18020. esac
  18021. }
  18022. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  18023. func_cc_basename ()
  18024. {
  18025. for cc_temp in $*""; do
  18026. case $cc_temp in
  18027. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18028. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18029. \-*) ;;
  18030. *) break;;
  18031. esac
  18032. done
  18033. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  18034. }
  18035. # ### END FUNCTIONS SHARED WITH CONFIGURE
  18036. _LT_EOF
  18037. case $host_os in
  18038. aix3*)
  18039. cat <<\_LT_EOF >> "$cfgfile"
  18040. # AIX sometimes has problems with the GCC collect2 program. For some
  18041. # reason, if we set the COLLECT_NAMES environment variable, the problems
  18042. # vanish in a puff of smoke.
  18043. if test set != "${COLLECT_NAMES+set}"; then
  18044. COLLECT_NAMES=
  18045. export COLLECT_NAMES
  18046. fi
  18047. _LT_EOF
  18048. ;;
  18049. esac
  18050. ltmain=$ac_aux_dir/ltmain.sh
  18051. # We use sed instead of cat because bash on DJGPP gets confused if
  18052. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  18053. # text mode, it properly converts lines to CR/LF. This bash problem
  18054. # is reportedly fixed, but why not run on old versions too?
  18055. sed '$q' "$ltmain" >> "$cfgfile" \
  18056. || (rm -f "$cfgfile"; exit 1)
  18057. mv -f "$cfgfile" "$ofile" ||
  18058. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18059. chmod +x "$ofile"
  18060. cat <<_LT_EOF >> "$ofile"
  18061. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  18062. # The linker used to build libraries.
  18063. LD=$lt_LD_CXX
  18064. # How to create reloadable object files.
  18065. reload_flag=$lt_reload_flag_CXX
  18066. reload_cmds=$lt_reload_cmds_CXX
  18067. # Commands used to build an old-style archive.
  18068. old_archive_cmds=$lt_old_archive_cmds_CXX
  18069. # A language specific compiler.
  18070. CC=$lt_compiler_CXX
  18071. # Is the compiler the GNU compiler?
  18072. with_gcc=$GCC_CXX
  18073. # Compiler flag to turn off builtin functions.
  18074. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  18075. # Additional compiler flags for building library objects.
  18076. pic_flag=$lt_lt_prog_compiler_pic_CXX
  18077. # How to pass a linker flag through the compiler.
  18078. wl=$lt_lt_prog_compiler_wl_CXX
  18079. # Compiler flag to prevent dynamic linking.
  18080. link_static_flag=$lt_lt_prog_compiler_static_CXX
  18081. # Does compiler simultaneously support -c and -o options?
  18082. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  18083. # Whether or not to add -lc for building shared libraries.
  18084. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  18085. # Whether or not to disallow shared libs when runtime libs are static.
  18086. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  18087. # Compiler flag to allow reflexive dlopens.
  18088. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  18089. # Compiler flag to generate shared objects directly from archives.
  18090. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  18091. # Whether the compiler copes with passing no objects directly.
  18092. compiler_needs_object=$lt_compiler_needs_object_CXX
  18093. # Create an old-style archive from a shared archive.
  18094. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  18095. # Create a temporary old-style archive to link instead of a shared archive.
  18096. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  18097. # Commands used to build a shared archive.
  18098. archive_cmds=$lt_archive_cmds_CXX
  18099. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  18100. # Commands used to build a loadable module if different from building
  18101. # a shared archive.
  18102. module_cmds=$lt_module_cmds_CXX
  18103. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  18104. # Whether we are building with GNU ld or not.
  18105. with_gnu_ld=$lt_with_gnu_ld_CXX
  18106. # Flag that allows shared libraries with undefined symbols to be built.
  18107. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  18108. # Flag that enforces no undefined symbols.
  18109. no_undefined_flag=$lt_no_undefined_flag_CXX
  18110. # Flag to hardcode \$libdir into a binary during linking.
  18111. # This must work even if \$libdir does not exist
  18112. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  18113. # Whether we need a single "-rpath" flag with a separated argument.
  18114. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  18115. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18116. # DIR into the resulting binary.
  18117. hardcode_direct=$hardcode_direct_CXX
  18118. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18119. # DIR into the resulting binary and the resulting library dependency is
  18120. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  18121. # library is relocated.
  18122. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  18123. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18124. # into the resulting binary.
  18125. hardcode_minus_L=$hardcode_minus_L_CXX
  18126. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18127. # into the resulting binary.
  18128. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  18129. # Set to "yes" if building a shared library automatically hardcodes DIR
  18130. # into the library and all subsequent libraries and executables linked
  18131. # against it.
  18132. hardcode_automatic=$hardcode_automatic_CXX
  18133. # Set to yes if linker adds runtime paths of dependent libraries
  18134. # to runtime path list.
  18135. inherit_rpath=$inherit_rpath_CXX
  18136. # Whether libtool must link a program against all its dependency libraries.
  18137. link_all_deplibs=$link_all_deplibs_CXX
  18138. # Set to "yes" if exported symbols are required.
  18139. always_export_symbols=$always_export_symbols_CXX
  18140. # The commands to list exported symbols.
  18141. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  18142. # Symbols that should not be listed in the preloaded symbols.
  18143. exclude_expsyms=$lt_exclude_expsyms_CXX
  18144. # Symbols that must always be exported.
  18145. include_expsyms=$lt_include_expsyms_CXX
  18146. # Commands necessary for linking programs (against libraries) with templates.
  18147. prelink_cmds=$lt_prelink_cmds_CXX
  18148. # Commands necessary for finishing linking programs.
  18149. postlink_cmds=$lt_postlink_cmds_CXX
  18150. # Specify filename containing input files.
  18151. file_list_spec=$lt_file_list_spec_CXX
  18152. # How to hardcode a shared library path into an executable.
  18153. hardcode_action=$hardcode_action_CXX
  18154. # The directories searched by this compiler when creating a shared library.
  18155. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  18156. # Dependencies to place before and after the objects being linked to
  18157. # create a shared library.
  18158. predep_objects=$lt_predep_objects_CXX
  18159. postdep_objects=$lt_postdep_objects_CXX
  18160. predeps=$lt_predeps_CXX
  18161. postdeps=$lt_postdeps_CXX
  18162. # The library search path used internally by the compiler when linking
  18163. # a shared library.
  18164. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  18165. # ### END LIBTOOL TAG CONFIG: CXX
  18166. _LT_EOF
  18167. ;;
  18168. "run.sh":F) chmod +x run.sh ;;
  18169. esac
  18170. done # for ac_tag
  18171. as_fn_exit 0
  18172. _ACEOF
  18173. ac_clean_files=$ac_clean_files_save
  18174. test $ac_write_fail = 0 ||
  18175. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18176. # configure is writing to config.log, and then calls config.status.
  18177. # config.status does its own redirection, appending to config.log.
  18178. # Unfortunately, on DOS this fails, as config.log is still kept open
  18179. # by configure, so config.status won't be able to write to it; its
  18180. # output is simply discarded. So we exec the FD to /dev/null,
  18181. # effectively closing config.log, so it can be properly (re)opened and
  18182. # appended to by config.status. When coming back to configure, we
  18183. # need to make the FD available again.
  18184. if test "$no_create" != yes; then
  18185. ac_cs_success=:
  18186. ac_config_status_args=
  18187. test "$silent" = yes &&
  18188. ac_config_status_args="$ac_config_status_args --quiet"
  18189. exec 5>/dev/null
  18190. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18191. exec 5>>config.log
  18192. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18193. # would make configure fail if this is the last instruction.
  18194. $ac_cs_success || as_fn_exit 1
  18195. fi
  18196. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18198. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18199. fi