configure 681 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for expat 2.6.1.
  4. #
  5. # Report bugs to <https://github.com/libexpat/libexpat/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and
  256. $0: https://github.com/libexpat/libexpat/issues about your
  257. $0: system, including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='expat'
  565. PACKAGE_TARNAME='expat'
  566. PACKAGE_VERSION='2.6.1'
  567. PACKAGE_STRING='expat 2.6.1'
  568. PACKAGE_BUGREPORT='https://github.com/libexpat/libexpat/issues'
  569. PACKAGE_URL=''
  570. ac_unique_file="Makefile.in"
  571. # Factoring default headers for most tests.
  572. ac_includes_default="\
  573. #include <stddef.h>
  574. #ifdef HAVE_STDIO_H
  575. # include <stdio.h>
  576. #endif
  577. #ifdef HAVE_STDLIB_H
  578. # include <stdlib.h>
  579. #endif
  580. #ifdef HAVE_STRING_H
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_INTTYPES_H
  584. # include <inttypes.h>
  585. #endif
  586. #ifdef HAVE_STDINT_H
  587. # include <stdint.h>
  588. #endif
  589. #ifdef HAVE_STRINGS_H
  590. # include <strings.h>
  591. #endif
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef HAVE_UNISTD_H
  599. # include <unistd.h>
  600. #endif"
  601. ac_header_c_list=
  602. ac_func_c_list=
  603. ac_subst_vars='am__EXEEXT_FALSE
  604. am__EXEEXT_TRUE
  605. LTLIBOBJS
  606. LIBOBJS
  607. CMAKE_SHARED_LIBRARY_PREFIX
  608. AM_LDFLAGS
  609. AM_CXXFLAGS
  610. AM_CFLAGS
  611. AM_CPPFLAGS
  612. ac_cv_sizeof_void_p
  613. SO_PATCH
  614. SO_MINOR
  615. SO_MAJOR
  616. LIBDIR_BASENAME
  617. EXPAT_CHAR_TYPE
  618. EXPAT_CONTEXT_BYTES
  619. EXPAT_NS
  620. EXPAT_MIN_SIZE
  621. EXPAT_LARGE_SIZE
  622. EXPAT_DTD
  623. EXPAT_ATTR_INFO
  624. WITH_DISTRIBUTABLE_MANPAGE_FALSE
  625. WITH_DISTRIBUTABLE_MANPAGE_TRUE
  626. WITH_PREBUILT_MANPAGE_FALSE
  627. WITH_PREBUILT_MANPAGE_TRUE
  628. WITH_MANPAGE_FALSE
  629. WITH_MANPAGE_TRUE
  630. DOCBOOK_TO_MAN
  631. FILEMAP
  632. LIBM
  633. _INTERNAL_LARGE_SIZE_FALSE
  634. _INTERNAL_LARGE_SIZE_TRUE
  635. _INTERNAL_MIN_SIZE_FALSE
  636. _INTERNAL_MIN_SIZE_TRUE
  637. _INTERNAL_UNICODE_WCHAR_T_FALSE
  638. _INTERNAL_UNICODE_WCHAR_T_TRUE
  639. UNICODE_FALSE
  640. UNICODE_TRUE
  641. MINGW_FALSE
  642. MINGW_TRUE
  643. HAVE_CXX11
  644. WITH_TESTS_FALSE
  645. WITH_TESTS_TRUE
  646. WITH_EXAMPLES_FALSE
  647. WITH_EXAMPLES_TRUE
  648. WITH_XMLWF_FALSE
  649. WITH_XMLWF_TRUE
  650. CXXCPP
  651. am__fastdepCXX_FALSE
  652. am__fastdepCXX_TRUE
  653. CXXDEPMODE
  654. ac_ct_CXX
  655. CXXFLAGS
  656. CXX
  657. LIBAGE
  658. LIBREVISION
  659. LIBCURRENT
  660. LT_SYS_LIBRARY_PATH
  661. OTOOL64
  662. OTOOL
  663. LIPO
  664. NMEDIT
  665. DSYMUTIL
  666. MANIFEST_TOOL
  667. RANLIB
  668. FILECMD
  669. NM
  670. ac_ct_DUMPBIN
  671. DUMPBIN
  672. LD
  673. FGREP
  674. EGREP
  675. GREP
  676. SED
  677. LIBTOOL
  678. OBJDUMP
  679. DLLTOOL
  680. AS
  681. LN_S
  682. am__fastdepCC_FALSE
  683. am__fastdepCC_TRUE
  684. CCDEPMODE
  685. am__nodep
  686. AMDEPBACKSLASH
  687. AMDEP_FALSE
  688. AMDEP_TRUE
  689. am__include
  690. DEPDIR
  691. OBJEXT
  692. EXEEXT
  693. ac_ct_CC
  694. CPPFLAGS
  695. LDFLAGS
  696. CFLAGS
  697. CC
  698. ac_ct_AR
  699. AR
  700. MAINT
  701. MAINTAINER_MODE_FALSE
  702. MAINTAINER_MODE_TRUE
  703. AM_BACKSLASH
  704. AM_DEFAULT_VERBOSITY
  705. AM_DEFAULT_V
  706. AM_V
  707. CSCOPE
  708. ETAGS
  709. CTAGS
  710. am__untar
  711. am__tar
  712. AMTAR
  713. am__leading_dot
  714. SET_MAKE
  715. AWK
  716. mkdir_p
  717. MKDIR_P
  718. INSTALL_STRIP_PROGRAM
  719. STRIP
  720. install_sh
  721. MAKEINFO
  722. AUTOHEADER
  723. AUTOMAKE
  724. AUTOCONF
  725. ACLOCAL
  726. VERSION
  727. PACKAGE
  728. CYGPATH_W
  729. am__isrc
  730. INSTALL_DATA
  731. INSTALL_SCRIPT
  732. INSTALL_PROGRAM
  733. host_os
  734. host_vendor
  735. host_cpu
  736. host
  737. build_os
  738. build_vendor
  739. build_cpu
  740. build
  741. target_alias
  742. host_alias
  743. build_alias
  744. LIBS
  745. ECHO_T
  746. ECHO_N
  747. ECHO_C
  748. DEFS
  749. mandir
  750. localedir
  751. libdir
  752. psdir
  753. pdfdir
  754. dvidir
  755. htmldir
  756. infodir
  757. docdir
  758. oldincludedir
  759. includedir
  760. runstatedir
  761. localstatedir
  762. sharedstatedir
  763. sysconfdir
  764. datadir
  765. datarootdir
  766. libexecdir
  767. sbindir
  768. bindir
  769. program_transform_name
  770. prefix
  771. exec_prefix
  772. PACKAGE_URL
  773. PACKAGE_BUGREPORT
  774. PACKAGE_STRING
  775. PACKAGE_VERSION
  776. PACKAGE_TARNAME
  777. PACKAGE_NAME
  778. PATH_SEPARATOR
  779. SHELL
  780. am__quote'
  781. ac_subst_files='PACKAGE_INIT'
  782. ac_user_opts='
  783. enable_option_checking
  784. enable_silent_rules
  785. enable_maintainer_mode
  786. enable_dependency_tracking
  787. enable_shared
  788. enable_static
  789. with_pic
  790. enable_fast_install
  791. with_aix_soname
  792. with_gnu_ld
  793. with_sysroot
  794. enable_libtool_lock
  795. with_xmlwf
  796. with_examples
  797. with_tests
  798. with_libbsd
  799. with_getrandom
  800. with_sys_getrandom
  801. enable_xml_attr_info
  802. enable_xml_context
  803. with_docbook
  804. '
  805. ac_precious_vars='build_alias
  806. host_alias
  807. target_alias
  808. CC
  809. CFLAGS
  810. LDFLAGS
  811. LIBS
  812. CPPFLAGS
  813. LT_SYS_LIBRARY_PATH
  814. CXX
  815. CXXFLAGS
  816. CCC
  817. CXXCPP
  818. DOCBOOK_TO_MAN'
  819. # Initialize some variables set by options.
  820. ac_init_help=
  821. ac_init_version=false
  822. ac_unrecognized_opts=
  823. ac_unrecognized_sep=
  824. # The variables have the same names as the options, with
  825. # dashes changed to underlines.
  826. cache_file=/dev/null
  827. exec_prefix=NONE
  828. no_create=
  829. no_recursion=
  830. prefix=NONE
  831. program_prefix=NONE
  832. program_suffix=NONE
  833. program_transform_name=s,x,x,
  834. silent=
  835. site=
  836. srcdir=
  837. verbose=
  838. x_includes=NONE
  839. x_libraries=NONE
  840. # Installation directory options.
  841. # These are left unexpanded so users can "make install exec_prefix=/foo"
  842. # and all the variables that are supposed to be based on exec_prefix
  843. # by default will actually change.
  844. # Use braces instead of parens because sh, perl, etc. also accept them.
  845. # (The list follows the same order as the GNU Coding Standards.)
  846. bindir='${exec_prefix}/bin'
  847. sbindir='${exec_prefix}/sbin'
  848. libexecdir='${exec_prefix}/libexec'
  849. datarootdir='${prefix}/share'
  850. datadir='${datarootdir}'
  851. sysconfdir='${prefix}/etc'
  852. sharedstatedir='${prefix}/com'
  853. localstatedir='${prefix}/var'
  854. runstatedir='${localstatedir}/run'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. case $ac_dashdash$ac_option in
  882. --)
  883. ac_dashdash=yes ;;
  884. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  885. ac_prev=bindir ;;
  886. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  887. bindir=$ac_optarg ;;
  888. -build | --build | --buil | --bui | --bu)
  889. ac_prev=build_alias ;;
  890. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  891. build_alias=$ac_optarg ;;
  892. -cache-file | --cache-file | --cache-fil | --cache-fi \
  893. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  894. ac_prev=cache_file ;;
  895. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  896. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  897. cache_file=$ac_optarg ;;
  898. --config-cache | -C)
  899. cache_file=config.cache ;;
  900. -datadir | --datadir | --datadi | --datad)
  901. ac_prev=datadir ;;
  902. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  903. datadir=$ac_optarg ;;
  904. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  905. | --dataroo | --dataro | --datar)
  906. ac_prev=datarootdir ;;
  907. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  908. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  909. datarootdir=$ac_optarg ;;
  910. -disable-* | --disable-*)
  911. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  912. # Reject names that are not valid shell variable names.
  913. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  914. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  915. ac_useropt_orig=$ac_useropt
  916. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  917. case $ac_user_opts in
  918. *"
  919. "enable_$ac_useropt"
  920. "*) ;;
  921. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  922. ac_unrecognized_sep=', ';;
  923. esac
  924. eval enable_$ac_useropt=no ;;
  925. -docdir | --docdir | --docdi | --doc | --do)
  926. ac_prev=docdir ;;
  927. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  928. docdir=$ac_optarg ;;
  929. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  930. ac_prev=dvidir ;;
  931. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  932. dvidir=$ac_optarg ;;
  933. -enable-* | --enable-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "enable_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval enable_$ac_useropt=\$ac_optarg ;;
  948. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  949. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  950. | --exec | --exe | --ex)
  951. ac_prev=exec_prefix ;;
  952. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  953. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  954. | --exec=* | --exe=* | --ex=*)
  955. exec_prefix=$ac_optarg ;;
  956. -gas | --gas | --ga | --g)
  957. # Obsolete; use --with-gas.
  958. with_gas=yes ;;
  959. -help | --help | --hel | --he | -h)
  960. ac_init_help=long ;;
  961. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  962. ac_init_help=recursive ;;
  963. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  964. ac_init_help=short ;;
  965. -host | --host | --hos | --ho)
  966. ac_prev=host_alias ;;
  967. -host=* | --host=* | --hos=* | --ho=*)
  968. host_alias=$ac_optarg ;;
  969. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  970. ac_prev=htmldir ;;
  971. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  972. | --ht=*)
  973. htmldir=$ac_optarg ;;
  974. -includedir | --includedir | --includedi | --included | --include \
  975. | --includ | --inclu | --incl | --inc)
  976. ac_prev=includedir ;;
  977. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  978. | --includ=* | --inclu=* | --incl=* | --inc=*)
  979. includedir=$ac_optarg ;;
  980. -infodir | --infodir | --infodi | --infod | --info | --inf)
  981. ac_prev=infodir ;;
  982. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  983. infodir=$ac_optarg ;;
  984. -libdir | --libdir | --libdi | --libd)
  985. ac_prev=libdir ;;
  986. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  987. libdir=$ac_optarg ;;
  988. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  989. | --libexe | --libex | --libe)
  990. ac_prev=libexecdir ;;
  991. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  992. | --libexe=* | --libex=* | --libe=*)
  993. libexecdir=$ac_optarg ;;
  994. -localedir | --localedir | --localedi | --localed | --locale)
  995. ac_prev=localedir ;;
  996. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  997. localedir=$ac_optarg ;;
  998. -localstatedir | --localstatedir | --localstatedi | --localstated \
  999. | --localstate | --localstat | --localsta | --localst | --locals)
  1000. ac_prev=localstatedir ;;
  1001. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1002. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1003. localstatedir=$ac_optarg ;;
  1004. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1005. ac_prev=mandir ;;
  1006. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1007. mandir=$ac_optarg ;;
  1008. -nfp | --nfp | --nf)
  1009. # Obsolete; use --without-fp.
  1010. with_fp=no ;;
  1011. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1012. | --no-cr | --no-c | -n)
  1013. no_create=yes ;;
  1014. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1015. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1016. no_recursion=yes ;;
  1017. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1018. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1019. | --oldin | --oldi | --old | --ol | --o)
  1020. ac_prev=oldincludedir ;;
  1021. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1022. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1023. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1024. oldincludedir=$ac_optarg ;;
  1025. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1026. ac_prev=prefix ;;
  1027. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1028. prefix=$ac_optarg ;;
  1029. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1030. | --program-pre | --program-pr | --program-p)
  1031. ac_prev=program_prefix ;;
  1032. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1033. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1034. program_prefix=$ac_optarg ;;
  1035. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1036. | --program-suf | --program-su | --program-s)
  1037. ac_prev=program_suffix ;;
  1038. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1039. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1040. program_suffix=$ac_optarg ;;
  1041. -program-transform-name | --program-transform-name \
  1042. | --program-transform-nam | --program-transform-na \
  1043. | --program-transform-n | --program-transform- \
  1044. | --program-transform | --program-transfor \
  1045. | --program-transfo | --program-transf \
  1046. | --program-trans | --program-tran \
  1047. | --progr-tra | --program-tr | --program-t)
  1048. ac_prev=program_transform_name ;;
  1049. -program-transform-name=* | --program-transform-name=* \
  1050. | --program-transform-nam=* | --program-transform-na=* \
  1051. | --program-transform-n=* | --program-transform-=* \
  1052. | --program-transform=* | --program-transfor=* \
  1053. | --program-transfo=* | --program-transf=* \
  1054. | --program-trans=* | --program-tran=* \
  1055. | --progr-tra=* | --program-tr=* | --program-t=*)
  1056. program_transform_name=$ac_optarg ;;
  1057. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1058. ac_prev=pdfdir ;;
  1059. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1060. pdfdir=$ac_optarg ;;
  1061. -psdir | --psdir | --psdi | --psd | --ps)
  1062. ac_prev=psdir ;;
  1063. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1064. psdir=$ac_optarg ;;
  1065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1066. | -silent | --silent | --silen | --sile | --sil)
  1067. silent=yes ;;
  1068. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1069. | --runstate | --runstat | --runsta | --runst | --runs \
  1070. | --run | --ru | --r)
  1071. ac_prev=runstatedir ;;
  1072. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1073. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1074. | --run=* | --ru=* | --r=*)
  1075. runstatedir=$ac_optarg ;;
  1076. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1077. ac_prev=sbindir ;;
  1078. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1079. | --sbi=* | --sb=*)
  1080. sbindir=$ac_optarg ;;
  1081. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1082. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1083. | --sharedst | --shareds | --shared | --share | --shar \
  1084. | --sha | --sh)
  1085. ac_prev=sharedstatedir ;;
  1086. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1087. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1088. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1089. | --sha=* | --sh=*)
  1090. sharedstatedir=$ac_optarg ;;
  1091. -site | --site | --sit)
  1092. ac_prev=site ;;
  1093. -site=* | --site=* | --sit=*)
  1094. site=$ac_optarg ;;
  1095. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1096. ac_prev=srcdir ;;
  1097. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1098. srcdir=$ac_optarg ;;
  1099. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1100. | --syscon | --sysco | --sysc | --sys | --sy)
  1101. ac_prev=sysconfdir ;;
  1102. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1103. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1104. sysconfdir=$ac_optarg ;;
  1105. -target | --target | --targe | --targ | --tar | --ta | --t)
  1106. ac_prev=target_alias ;;
  1107. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1108. target_alias=$ac_optarg ;;
  1109. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1110. verbose=yes ;;
  1111. -version | --version | --versio | --versi | --vers | -V)
  1112. ac_init_version=: ;;
  1113. -with-* | --with-*)
  1114. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1117. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval with_$ac_useropt=\$ac_optarg ;;
  1128. -without-* | --without-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "with_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval with_$ac_useropt=no ;;
  1143. --x)
  1144. # Obsolete; use --with-x.
  1145. with_x=yes ;;
  1146. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1147. | --x-incl | --x-inc | --x-in | --x-i)
  1148. ac_prev=x_includes ;;
  1149. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1150. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1151. x_includes=$ac_optarg ;;
  1152. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1153. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1154. ac_prev=x_libraries ;;
  1155. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1156. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1157. x_libraries=$ac_optarg ;;
  1158. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1159. Try \`$0 --help' for more information"
  1160. ;;
  1161. *=*)
  1162. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1163. # Reject names that are not valid shell variable names.
  1164. case $ac_envvar in #(
  1165. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1166. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1167. esac
  1168. eval $ac_envvar=\$ac_optarg
  1169. export $ac_envvar ;;
  1170. *)
  1171. # FIXME: should be removed in autoconf 3.0.
  1172. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1173. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1174. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1175. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1176. ;;
  1177. esac
  1178. done
  1179. if test -n "$ac_prev"; then
  1180. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1181. as_fn_error $? "missing argument to $ac_option"
  1182. fi
  1183. if test -n "$ac_unrecognized_opts"; then
  1184. case $enable_option_checking in
  1185. no) ;;
  1186. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1187. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1188. esac
  1189. fi
  1190. # Check all directory arguments for consistency.
  1191. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1192. datadir sysconfdir sharedstatedir localstatedir includedir \
  1193. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1194. libdir localedir mandir runstatedir
  1195. do
  1196. eval ac_val=\$$ac_var
  1197. # Remove trailing slashes.
  1198. case $ac_val in
  1199. */ )
  1200. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1201. eval $ac_var=\$ac_val;;
  1202. esac
  1203. # Be sure to have absolute directory names.
  1204. case $ac_val in
  1205. [\\/$]* | ?:[\\/]* ) continue;;
  1206. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1207. esac
  1208. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1209. done
  1210. # There might be people who depend on the old broken behavior: `$host'
  1211. # used to hold the argument of --host etc.
  1212. # FIXME: To remove some day.
  1213. build=$build_alias
  1214. host=$host_alias
  1215. target=$target_alias
  1216. # FIXME: To remove some day.
  1217. if test "x$host_alias" != x; then
  1218. if test "x$build_alias" = x; then
  1219. cross_compiling=maybe
  1220. elif test "x$build_alias" != "x$host_alias"; then
  1221. cross_compiling=yes
  1222. fi
  1223. fi
  1224. ac_tool_prefix=
  1225. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1226. test "$silent" = yes && exec 6>/dev/null
  1227. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1228. ac_ls_di=`ls -di .` &&
  1229. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1230. as_fn_error $? "working directory cannot be determined"
  1231. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1232. as_fn_error $? "pwd does not report name of working directory"
  1233. # Find the source files, if location was not specified.
  1234. if test -z "$srcdir"; then
  1235. ac_srcdir_defaulted=yes
  1236. # Try the directory containing this script, then the parent directory.
  1237. ac_confdir=`$as_dirname -- "$as_myself" ||
  1238. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1239. X"$as_myself" : 'X\(//\)[^/]' \| \
  1240. X"$as_myself" : 'X\(//\)$' \| \
  1241. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1242. printf "%s\n" X"$as_myself" |
  1243. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\/\)[^/].*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. /^X\(\/\/\)$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\).*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. s/.*/./; q'`
  1260. srcdir=$ac_confdir
  1261. if test ! -r "$srcdir/$ac_unique_file"; then
  1262. srcdir=..
  1263. fi
  1264. else
  1265. ac_srcdir_defaulted=no
  1266. fi
  1267. if test ! -r "$srcdir/$ac_unique_file"; then
  1268. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1269. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1270. fi
  1271. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1272. ac_abs_confdir=`(
  1273. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1274. pwd)`
  1275. # When building in place, set srcdir=.
  1276. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1277. srcdir=.
  1278. fi
  1279. # Remove unnecessary trailing slashes from srcdir.
  1280. # Double slashes in file names in object file debugging info
  1281. # mess up M-x gdb in Emacs.
  1282. case $srcdir in
  1283. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1284. esac
  1285. for ac_var in $ac_precious_vars; do
  1286. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1287. eval ac_env_${ac_var}_value=\$${ac_var}
  1288. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1289. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1290. done
  1291. #
  1292. # Report the --help message.
  1293. #
  1294. if test "$ac_init_help" = "long"; then
  1295. # Omit some internal or obsolete options to make the list less imposing.
  1296. # This message is too long to be a string in the A/UX 3.1 sh.
  1297. cat <<_ACEOF
  1298. \`configure' configures expat 2.6.1 to adapt to many kinds of systems.
  1299. Usage: $0 [OPTION]... [VAR=VALUE]...
  1300. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1301. VAR=VALUE. See below for descriptions of some of the useful variables.
  1302. Defaults for the options are specified in brackets.
  1303. Configuration:
  1304. -h, --help display this help and exit
  1305. --help=short display options specific to this package
  1306. --help=recursive display the short help of all the included packages
  1307. -V, --version display version information and exit
  1308. -q, --quiet, --silent do not print \`checking ...' messages
  1309. --cache-file=FILE cache test results in FILE [disabled]
  1310. -C, --config-cache alias for \`--cache-file=config.cache'
  1311. -n, --no-create do not create output files
  1312. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1313. Installation directories:
  1314. --prefix=PREFIX install architecture-independent files in PREFIX
  1315. [$ac_default_prefix]
  1316. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1317. [PREFIX]
  1318. By default, \`make install' will install all the files in
  1319. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1320. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1321. for instance \`--prefix=\$HOME'.
  1322. For better control, use the options below.
  1323. Fine tuning of the installation directories:
  1324. --bindir=DIR user executables [EPREFIX/bin]
  1325. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1326. --libexecdir=DIR program executables [EPREFIX/libexec]
  1327. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1328. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1329. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1330. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1331. --libdir=DIR object code libraries [EPREFIX/lib]
  1332. --includedir=DIR C header files [PREFIX/include]
  1333. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1334. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1335. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1336. --infodir=DIR info documentation [DATAROOTDIR/info]
  1337. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1338. --mandir=DIR man documentation [DATAROOTDIR/man]
  1339. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1340. --htmldir=DIR html documentation [DOCDIR]
  1341. --dvidir=DIR dvi documentation [DOCDIR]
  1342. --pdfdir=DIR pdf documentation [DOCDIR]
  1343. --psdir=DIR ps documentation [DOCDIR]
  1344. _ACEOF
  1345. cat <<\_ACEOF
  1346. Program names:
  1347. --program-prefix=PREFIX prepend PREFIX to installed program names
  1348. --program-suffix=SUFFIX append SUFFIX to installed program names
  1349. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1350. System types:
  1351. --build=BUILD configure for building on BUILD [guessed]
  1352. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1353. _ACEOF
  1354. fi
  1355. if test -n "$ac_init_help"; then
  1356. case $ac_init_help in
  1357. short | recursive ) echo "Configuration of expat 2.6.1:";;
  1358. esac
  1359. cat <<\_ACEOF
  1360. Optional Features:
  1361. --disable-option-checking ignore unrecognized --enable/--with options
  1362. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1363. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1364. --enable-silent-rules less verbose build output (undo: "make V=1")
  1365. --disable-silent-rules verbose build output (undo: "make V=0")
  1366. --disable-maintainer-mode
  1367. disable make rules and dependencies not useful (and
  1368. sometimes confusing) to the casual installer
  1369. --enable-dependency-tracking
  1370. do not reject slow dependency extractors
  1371. --disable-dependency-tracking
  1372. speeds up one-time build
  1373. --enable-shared[=PKGS] build shared libraries [default=yes]
  1374. --enable-static[=PKGS] build static libraries [default=yes]
  1375. --enable-fast-install[=PKGS]
  1376. optimize for fast installation [default=yes]
  1377. --disable-libtool-lock avoid locking (might break parallel builds)
  1378. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1379. names and values [default=no]
  1380. --enable-xml-context [COUNT]
  1381. Retain context around the current parse point;
  1382. default is enabled and a size of 1024 bytes
  1383. --disable-xml-context Do not retain context around the current parse point
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1388. both]
  1389. --with-aix-soname=aix|svr4|both
  1390. shared library versioning (aka "SONAME") variant to
  1391. provide on AIX, [default=aix].
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1394. compiler's sysroot if not specified).
  1395. --without-xmlwf do not build xmlwf
  1396. --without-examples do not build examples [default=included]
  1397. --without-tests do not build tests [default=included]
  1398. --with-libbsd utilize libbsd (for arc4random_buf)
  1399. --with-getrandom enforce the use of getrandom function in the system
  1400. [default=check]
  1401. --without-getrandom skip auto detect of getrandom [default=check]
  1402. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1403. the system [default=check]
  1404. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1405. [default=check]
  1406. --with-docbook enforce XML to man page compilation [default=check]
  1407. --without-docbook skip XML to man page compilation [default=check]
  1408. Some influential environment variables:
  1409. CC C compiler command
  1410. CFLAGS C compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. LT_SYS_LIBRARY_PATH
  1417. User-defined run-time library search path.
  1418. CXX C++ compiler command
  1419. CXXFLAGS C++ compiler flags
  1420. CXXCPP C++ preprocessor
  1421. DOCBOOK_TO_MAN
  1422. docbook2x-man command
  1423. Use these variables to override the choices made by `configure' or to help
  1424. it to find libraries and programs with nonstandard names/locations.
  1425. Report bugs to <https://github.com/libexpat/libexpat/issues>.
  1426. _ACEOF
  1427. ac_status=$?
  1428. fi
  1429. if test "$ac_init_help" = "recursive"; then
  1430. # If there are subdirs, report their specific --help.
  1431. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1432. test -d "$ac_dir" ||
  1433. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1434. continue
  1435. ac_builddir=.
  1436. case "$ac_dir" in
  1437. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *)
  1439. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1440. # A ".." for each directory in $ac_dir_suffix.
  1441. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1442. case $ac_top_builddir_sub in
  1443. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1445. esac ;;
  1446. esac
  1447. ac_abs_top_builddir=$ac_pwd
  1448. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1449. # for backward compatibility:
  1450. ac_top_builddir=$ac_top_build_prefix
  1451. case $srcdir in
  1452. .) # We are building in place.
  1453. ac_srcdir=.
  1454. ac_top_srcdir=$ac_top_builddir_sub
  1455. ac_abs_top_srcdir=$ac_pwd ;;
  1456. [\\/]* | ?:[\\/]* ) # Absolute name.
  1457. ac_srcdir=$srcdir$ac_dir_suffix;
  1458. ac_top_srcdir=$srcdir
  1459. ac_abs_top_srcdir=$srcdir ;;
  1460. *) # Relative name.
  1461. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1462. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1463. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1464. esac
  1465. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1466. cd "$ac_dir" || { ac_status=$?; continue; }
  1467. # Check for configure.gnu first; this name is used for a wrapper for
  1468. # Metaconfig's "Configure" on case-insensitive file systems.
  1469. if test -f "$ac_srcdir/configure.gnu"; then
  1470. echo &&
  1471. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1472. elif test -f "$ac_srcdir/configure"; then
  1473. echo &&
  1474. $SHELL "$ac_srcdir/configure" --help=recursive
  1475. else
  1476. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1477. fi || ac_status=$?
  1478. cd "$ac_pwd" || { ac_status=$?; break; }
  1479. done
  1480. fi
  1481. test -n "$ac_init_help" && exit $ac_status
  1482. if $ac_init_version; then
  1483. cat <<\_ACEOF
  1484. expat configure 2.6.1
  1485. generated by GNU Autoconf 2.71
  1486. Copyright (C) 2021 Free Software Foundation, Inc.
  1487. This configure script is free software; the Free Software Foundation
  1488. gives unlimited permission to copy, distribute and modify it.
  1489. _ACEOF
  1490. exit
  1491. fi
  1492. ## ------------------------ ##
  1493. ## Autoconf initialization. ##
  1494. ## ------------------------ ##
  1495. # ac_fn_c_try_compile LINENO
  1496. # --------------------------
  1497. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1498. ac_fn_c_try_compile ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. rm -f conftest.$ac_objext conftest.beam
  1502. if { { ac_try="$ac_compile"
  1503. case "(($ac_try" in
  1504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1505. *) ac_try_echo=$ac_try;;
  1506. esac
  1507. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1508. printf "%s\n" "$ac_try_echo"; } >&5
  1509. (eval "$ac_compile") 2>conftest.err
  1510. ac_status=$?
  1511. if test -s conftest.err; then
  1512. grep -v '^ *+' conftest.err >conftest.er1
  1513. cat conftest.er1 >&5
  1514. mv -f conftest.er1 conftest.err
  1515. fi
  1516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1517. test $ac_status = 0; } && {
  1518. test -z "$ac_c_werror_flag" ||
  1519. test ! -s conftest.err
  1520. } && test -s conftest.$ac_objext
  1521. then :
  1522. ac_retval=0
  1523. else $as_nop
  1524. printf "%s\n" "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=1
  1527. fi
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_compile
  1531. # ac_fn_c_try_link LINENO
  1532. # -----------------------
  1533. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1534. ac_fn_c_try_link ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1538. if { { ac_try="$ac_link"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. printf "%s\n" "$ac_try_echo"; } >&5
  1545. (eval "$ac_link") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && {
  1554. test -z "$ac_c_werror_flag" ||
  1555. test ! -s conftest.err
  1556. } && test -s conftest$ac_exeext && {
  1557. test "$cross_compiling" = yes ||
  1558. test -x conftest$ac_exeext
  1559. }
  1560. then :
  1561. ac_retval=0
  1562. else $as_nop
  1563. printf "%s\n" "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1568. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1569. # interfere with the next link command; also delete a directory that is
  1570. # left behind by Apple's compiler. We do this before executing the actions.
  1571. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1572. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1573. as_fn_set_status $ac_retval
  1574. } # ac_fn_c_try_link
  1575. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists and can be compiled using the include files in
  1578. # INCLUDES, setting the cache variable VAR accordingly.
  1579. ac_fn_c_check_header_compile ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1583. printf %s "checking for $2... " >&6; }
  1584. if eval test \${$3+y}
  1585. then :
  1586. printf %s "(cached) " >&6
  1587. else $as_nop
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. $4
  1591. #include <$2>
  1592. _ACEOF
  1593. if ac_fn_c_try_compile "$LINENO"
  1594. then :
  1595. eval "$3=yes"
  1596. else $as_nop
  1597. eval "$3=no"
  1598. fi
  1599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1600. fi
  1601. eval ac_res=\$$3
  1602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1603. printf "%s\n" "$ac_res" >&6; }
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. } # ac_fn_c_check_header_compile
  1606. # ac_fn_c_check_func LINENO FUNC VAR
  1607. # ----------------------------------
  1608. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1609. ac_fn_c_check_func ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1613. printf %s "checking for $2... " >&6; }
  1614. if eval test \${$3+y}
  1615. then :
  1616. printf %s "(cached) " >&6
  1617. else $as_nop
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h. */
  1620. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1622. #define $2 innocuous_$2
  1623. /* System header to define __stub macros and hopefully few prototypes,
  1624. which can conflict with char $2 (void); below. */
  1625. #include <limits.h>
  1626. #undef $2
  1627. /* Override any GCC internal prototype to avoid an error.
  1628. Use char because int might match the return type of a GCC
  1629. builtin and then its argument prototype would still apply. */
  1630. #ifdef __cplusplus
  1631. extern "C"
  1632. #endif
  1633. char $2 (void);
  1634. /* The GNU C library defines this for functions which it implements
  1635. to always fail with ENOSYS. Some functions are actually named
  1636. something starting with __ and the normal name is an alias. */
  1637. #if defined __stub_$2 || defined __stub___$2
  1638. choke me
  1639. #endif
  1640. int
  1641. main (void)
  1642. {
  1643. return $2 ();
  1644. ;
  1645. return 0;
  1646. }
  1647. _ACEOF
  1648. if ac_fn_c_try_link "$LINENO"
  1649. then :
  1650. eval "$3=yes"
  1651. else $as_nop
  1652. eval "$3=no"
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1655. conftest$ac_exeext conftest.$ac_ext
  1656. fi
  1657. eval ac_res=\$$3
  1658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1659. printf "%s\n" "$ac_res" >&6; }
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. } # ac_fn_c_check_func
  1662. # ac_fn_cxx_try_compile LINENO
  1663. # ----------------------------
  1664. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1665. ac_fn_cxx_try_compile ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. rm -f conftest.$ac_objext conftest.beam
  1669. if { { ac_try="$ac_compile"
  1670. case "(($ac_try" in
  1671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1672. *) ac_try_echo=$ac_try;;
  1673. esac
  1674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1675. printf "%s\n" "$ac_try_echo"; } >&5
  1676. (eval "$ac_compile") 2>conftest.err
  1677. ac_status=$?
  1678. if test -s conftest.err; then
  1679. grep -v '^ *+' conftest.err >conftest.er1
  1680. cat conftest.er1 >&5
  1681. mv -f conftest.er1 conftest.err
  1682. fi
  1683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1684. test $ac_status = 0; } && {
  1685. test -z "$ac_cxx_werror_flag" ||
  1686. test ! -s conftest.err
  1687. } && test -s conftest.$ac_objext
  1688. then :
  1689. ac_retval=0
  1690. else $as_nop
  1691. printf "%s\n" "$as_me: failed program was:" >&5
  1692. sed 's/^/| /' conftest.$ac_ext >&5
  1693. ac_retval=1
  1694. fi
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_cxx_try_compile
  1698. # ac_fn_cxx_try_cpp LINENO
  1699. # ------------------------
  1700. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_cxx_try_cpp ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. printf "%s\n" "$ac_try_echo"; } >&5
  1711. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1712. ac_status=$?
  1713. if test -s conftest.err; then
  1714. grep -v '^ *+' conftest.err >conftest.er1
  1715. cat conftest.er1 >&5
  1716. mv -f conftest.er1 conftest.err
  1717. fi
  1718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } > conftest.i && {
  1720. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1721. test ! -s conftest.err
  1722. }
  1723. then :
  1724. ac_retval=0
  1725. else $as_nop
  1726. printf "%s\n" "$as_me: failed program was:" >&5
  1727. sed 's/^/| /' conftest.$ac_ext >&5
  1728. ac_retval=1
  1729. fi
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. as_fn_set_status $ac_retval
  1732. } # ac_fn_cxx_try_cpp
  1733. # ac_fn_cxx_try_link LINENO
  1734. # -------------------------
  1735. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1736. ac_fn_cxx_try_link ()
  1737. {
  1738. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1740. if { { ac_try="$ac_link"
  1741. case "(($ac_try" in
  1742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1743. *) ac_try_echo=$ac_try;;
  1744. esac
  1745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1746. printf "%s\n" "$ac_try_echo"; } >&5
  1747. (eval "$ac_link") 2>conftest.err
  1748. ac_status=$?
  1749. if test -s conftest.err; then
  1750. grep -v '^ *+' conftest.err >conftest.er1
  1751. cat conftest.er1 >&5
  1752. mv -f conftest.er1 conftest.err
  1753. fi
  1754. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && {
  1756. test -z "$ac_cxx_werror_flag" ||
  1757. test ! -s conftest.err
  1758. } && test -s conftest$ac_exeext && {
  1759. test "$cross_compiling" = yes ||
  1760. test -x conftest$ac_exeext
  1761. }
  1762. then :
  1763. ac_retval=0
  1764. else $as_nop
  1765. printf "%s\n" "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=1
  1768. fi
  1769. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1770. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1771. # interfere with the next link command; also delete a directory that is
  1772. # left behind by Apple's compiler. We do this before executing the actions.
  1773. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_cxx_try_link
  1777. # ac_fn_c_try_run LINENO
  1778. # ----------------------
  1779. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1780. # executables *can* be run.
  1781. ac_fn_c_try_run ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. if { { ac_try="$ac_link"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. printf "%s\n" "$ac_try_echo"; } >&5
  1791. (eval "$ac_link") 2>&5
  1792. ac_status=$?
  1793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1794. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1795. { { case "(($ac_try" in
  1796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1797. *) ac_try_echo=$ac_try;;
  1798. esac
  1799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1800. printf "%s\n" "$ac_try_echo"; } >&5
  1801. (eval "$ac_try") 2>&5
  1802. ac_status=$?
  1803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; }; }
  1805. then :
  1806. ac_retval=0
  1807. else $as_nop
  1808. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1809. printf "%s\n" "$as_me: failed program was:" >&5
  1810. sed 's/^/| /' conftest.$ac_ext >&5
  1811. ac_retval=$ac_status
  1812. fi
  1813. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_run
  1817. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1818. # -------------------------------------------
  1819. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1820. # variable VAR accordingly.
  1821. ac_fn_c_check_type ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. printf %s "checking for $2... " >&6; }
  1826. if eval test \${$3+y}
  1827. then :
  1828. printf %s "(cached) " >&6
  1829. else $as_nop
  1830. eval "$3=no"
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $4
  1834. int
  1835. main (void)
  1836. {
  1837. if (sizeof ($2))
  1838. return 0;
  1839. ;
  1840. return 0;
  1841. }
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"
  1844. then :
  1845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h. */
  1847. $4
  1848. int
  1849. main (void)
  1850. {
  1851. if (sizeof (($2)))
  1852. return 0;
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"
  1858. then :
  1859. else $as_nop
  1860. eval "$3=yes"
  1861. fi
  1862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1863. fi
  1864. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1865. fi
  1866. eval ac_res=\$$3
  1867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1868. printf "%s\n" "$ac_res" >&6; }
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. } # ac_fn_c_check_type
  1871. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1872. # --------------------------------------------
  1873. # Tries to find the compile-time value of EXPR in a program that includes
  1874. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1875. # computed
  1876. ac_fn_c_compute_int ()
  1877. {
  1878. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1879. if test "$cross_compiling" = yes; then
  1880. # Depending upon the size, compute the lo and hi bounds.
  1881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1882. /* end confdefs.h. */
  1883. $4
  1884. int
  1885. main (void)
  1886. {
  1887. static int test_array [1 - 2 * !(($2) >= 0)];
  1888. test_array [0] = 0;
  1889. return test_array [0];
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"
  1895. then :
  1896. ac_lo=0 ac_mid=0
  1897. while :; do
  1898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1899. /* end confdefs.h. */
  1900. $4
  1901. int
  1902. main (void)
  1903. {
  1904. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1905. test_array [0] = 0;
  1906. return test_array [0];
  1907. ;
  1908. return 0;
  1909. }
  1910. _ACEOF
  1911. if ac_fn_c_try_compile "$LINENO"
  1912. then :
  1913. ac_hi=$ac_mid; break
  1914. else $as_nop
  1915. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1916. if test $ac_lo -le $ac_mid; then
  1917. ac_lo= ac_hi=
  1918. break
  1919. fi
  1920. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1923. done
  1924. else $as_nop
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. $4
  1928. int
  1929. main (void)
  1930. {
  1931. static int test_array [1 - 2 * !(($2) < 0)];
  1932. test_array [0] = 0;
  1933. return test_array [0];
  1934. ;
  1935. return 0;
  1936. }
  1937. _ACEOF
  1938. if ac_fn_c_try_compile "$LINENO"
  1939. then :
  1940. ac_hi=-1 ac_mid=-1
  1941. while :; do
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $4
  1945. int
  1946. main (void)
  1947. {
  1948. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1949. test_array [0] = 0;
  1950. return test_array [0];
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_compile "$LINENO"
  1956. then :
  1957. ac_lo=$ac_mid; break
  1958. else $as_nop
  1959. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1960. if test $ac_mid -le $ac_hi; then
  1961. ac_lo= ac_hi=
  1962. break
  1963. fi
  1964. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1965. fi
  1966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1967. done
  1968. else $as_nop
  1969. ac_lo= ac_hi=
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1974. # Binary search between lo and hi bounds.
  1975. while test "x$ac_lo" != "x$ac_hi"; do
  1976. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1978. /* end confdefs.h. */
  1979. $4
  1980. int
  1981. main (void)
  1982. {
  1983. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1984. test_array [0] = 0;
  1985. return test_array [0];
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. if ac_fn_c_try_compile "$LINENO"
  1991. then :
  1992. ac_hi=$ac_mid
  1993. else $as_nop
  1994. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1995. fi
  1996. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1997. done
  1998. case $ac_lo in #((
  1999. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2000. '') ac_retval=1 ;;
  2001. esac
  2002. else
  2003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2004. /* end confdefs.h. */
  2005. $4
  2006. static long int longval (void) { return $2; }
  2007. static unsigned long int ulongval (void) { return $2; }
  2008. #include <stdio.h>
  2009. #include <stdlib.h>
  2010. int
  2011. main (void)
  2012. {
  2013. FILE *f = fopen ("conftest.val", "w");
  2014. if (! f)
  2015. return 1;
  2016. if (($2) < 0)
  2017. {
  2018. long int i = longval ();
  2019. if (i != ($2))
  2020. return 1;
  2021. fprintf (f, "%ld", i);
  2022. }
  2023. else
  2024. {
  2025. unsigned long int i = ulongval ();
  2026. if (i != ($2))
  2027. return 1;
  2028. fprintf (f, "%lu", i);
  2029. }
  2030. /* Do not output a trailing newline, as this causes \r\n confusion
  2031. on some platforms. */
  2032. return ferror (f) || fclose (f) != 0;
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_c_try_run "$LINENO"
  2038. then :
  2039. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2040. else $as_nop
  2041. ac_retval=1
  2042. fi
  2043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2045. rm -f conftest.val
  2046. fi
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. as_fn_set_status $ac_retval
  2049. } # ac_fn_c_compute_int
  2050. ac_configure_args_raw=
  2051. for ac_arg
  2052. do
  2053. case $ac_arg in
  2054. *\'*)
  2055. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2056. esac
  2057. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2058. done
  2059. case $ac_configure_args_raw in
  2060. *$as_nl*)
  2061. ac_safe_unquote= ;;
  2062. *)
  2063. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2064. ac_unsafe_a="$ac_unsafe_z#~"
  2065. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2066. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2067. esac
  2068. cat >config.log <<_ACEOF
  2069. This file contains any messages produced by compilers while
  2070. running configure, to aid debugging if configure makes a mistake.
  2071. It was created by expat $as_me 2.6.1, which was
  2072. generated by GNU Autoconf 2.71. Invocation command line was
  2073. $ $0$ac_configure_args_raw
  2074. _ACEOF
  2075. exec 5>>config.log
  2076. {
  2077. cat <<_ASUNAME
  2078. ## --------- ##
  2079. ## Platform. ##
  2080. ## --------- ##
  2081. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2082. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2083. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2084. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2085. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2086. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2087. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2088. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2089. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2090. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2091. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2092. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2093. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2094. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2095. _ASUNAME
  2096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2097. for as_dir in $PATH
  2098. do
  2099. IFS=$as_save_IFS
  2100. case $as_dir in #(((
  2101. '') as_dir=./ ;;
  2102. */) ;;
  2103. *) as_dir=$as_dir/ ;;
  2104. esac
  2105. printf "%s\n" "PATH: $as_dir"
  2106. done
  2107. IFS=$as_save_IFS
  2108. } >&5
  2109. cat >&5 <<_ACEOF
  2110. ## ----------- ##
  2111. ## Core tests. ##
  2112. ## ----------- ##
  2113. _ACEOF
  2114. # Keep a trace of the command line.
  2115. # Strip out --no-create and --no-recursion so they do not pile up.
  2116. # Strip out --silent because we don't want to record it for future runs.
  2117. # Also quote any args containing shell meta-characters.
  2118. # Make two passes to allow for proper duplicate-argument suppression.
  2119. ac_configure_args=
  2120. ac_configure_args0=
  2121. ac_configure_args1=
  2122. ac_must_keep_next=false
  2123. for ac_pass in 1 2
  2124. do
  2125. for ac_arg
  2126. do
  2127. case $ac_arg in
  2128. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2129. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2130. | -silent | --silent | --silen | --sile | --sil)
  2131. continue ;;
  2132. *\'*)
  2133. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2134. esac
  2135. case $ac_pass in
  2136. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2137. 2)
  2138. as_fn_append ac_configure_args1 " '$ac_arg'"
  2139. if test $ac_must_keep_next = true; then
  2140. ac_must_keep_next=false # Got value, back to normal.
  2141. else
  2142. case $ac_arg in
  2143. *=* | --config-cache | -C | -disable-* | --disable-* \
  2144. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2145. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2146. | -with-* | --with-* | -without-* | --without-* | --x)
  2147. case "$ac_configure_args0 " in
  2148. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2149. esac
  2150. ;;
  2151. -* ) ac_must_keep_next=true ;;
  2152. esac
  2153. fi
  2154. as_fn_append ac_configure_args " '$ac_arg'"
  2155. ;;
  2156. esac
  2157. done
  2158. done
  2159. { ac_configure_args0=; unset ac_configure_args0;}
  2160. { ac_configure_args1=; unset ac_configure_args1;}
  2161. # When interrupted or exit'd, cleanup temporary files, and complete
  2162. # config.log. We remove comments because anyway the quotes in there
  2163. # would cause problems or look ugly.
  2164. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2165. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2166. trap 'exit_status=$?
  2167. # Sanitize IFS.
  2168. IFS=" "" $as_nl"
  2169. # Save into config.log some information that might help in debugging.
  2170. {
  2171. echo
  2172. printf "%s\n" "## ---------------- ##
  2173. ## Cache variables. ##
  2174. ## ---------------- ##"
  2175. echo
  2176. # The following way of writing the cache mishandles newlines in values,
  2177. (
  2178. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2179. eval ac_val=\$$ac_var
  2180. case $ac_val in #(
  2181. *${as_nl}*)
  2182. case $ac_var in #(
  2183. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2184. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2185. esac
  2186. case $ac_var in #(
  2187. _ | IFS | as_nl) ;; #(
  2188. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2189. *) { eval $ac_var=; unset $ac_var;} ;;
  2190. esac ;;
  2191. esac
  2192. done
  2193. (set) 2>&1 |
  2194. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2195. *${as_nl}ac_space=\ *)
  2196. sed -n \
  2197. "s/'\''/'\''\\\\'\'''\''/g;
  2198. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2199. ;; #(
  2200. *)
  2201. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2202. ;;
  2203. esac |
  2204. sort
  2205. )
  2206. echo
  2207. printf "%s\n" "## ----------------- ##
  2208. ## Output variables. ##
  2209. ## ----------------- ##"
  2210. echo
  2211. for ac_var in $ac_subst_vars
  2212. do
  2213. eval ac_val=\$$ac_var
  2214. case $ac_val in
  2215. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2216. esac
  2217. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2218. done | sort
  2219. echo
  2220. if test -n "$ac_subst_files"; then
  2221. printf "%s\n" "## ------------------- ##
  2222. ## File substitutions. ##
  2223. ## ------------------- ##"
  2224. echo
  2225. for ac_var in $ac_subst_files
  2226. do
  2227. eval ac_val=\$$ac_var
  2228. case $ac_val in
  2229. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2230. esac
  2231. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2232. done | sort
  2233. echo
  2234. fi
  2235. if test -s confdefs.h; then
  2236. printf "%s\n" "## ----------- ##
  2237. ## confdefs.h. ##
  2238. ## ----------- ##"
  2239. echo
  2240. cat confdefs.h
  2241. echo
  2242. fi
  2243. test "$ac_signal" != 0 &&
  2244. printf "%s\n" "$as_me: caught signal $ac_signal"
  2245. printf "%s\n" "$as_me: exit $exit_status"
  2246. } >&5
  2247. rm -f core *.core core.conftest.* &&
  2248. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2249. exit $exit_status
  2250. ' 0
  2251. for ac_signal in 1 2 13 15; do
  2252. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2253. done
  2254. ac_signal=0
  2255. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2256. rm -f -r conftest* confdefs.h
  2257. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2258. # Predefined preprocessor variables.
  2259. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2260. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2261. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2262. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2263. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2264. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2265. # Let the site file select an alternate cache file if it wants to.
  2266. # Prefer an explicitly selected file to automatically selected ones.
  2267. if test -n "$CONFIG_SITE"; then
  2268. ac_site_files="$CONFIG_SITE"
  2269. elif test "x$prefix" != xNONE; then
  2270. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2271. else
  2272. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2273. fi
  2274. for ac_site_file in $ac_site_files
  2275. do
  2276. case $ac_site_file in #(
  2277. */*) :
  2278. ;; #(
  2279. *) :
  2280. ac_site_file=./$ac_site_file ;;
  2281. esac
  2282. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2284. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2285. sed 's/^/| /' "$ac_site_file" >&5
  2286. . "$ac_site_file" \
  2287. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2288. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2289. as_fn_error $? "failed to load site script $ac_site_file
  2290. See \`config.log' for more details" "$LINENO" 5; }
  2291. fi
  2292. done
  2293. if test -r "$cache_file"; then
  2294. # Some versions of bash will fail to source /dev/null (special files
  2295. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2296. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2298. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2299. case $cache_file in
  2300. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2301. *) . "./$cache_file";;
  2302. esac
  2303. fi
  2304. else
  2305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2306. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2307. >$cache_file
  2308. fi
  2309. # Test code for whether the C compiler supports C89 (global declarations)
  2310. ac_c_conftest_c89_globals='
  2311. /* Does the compiler advertise C89 conformance?
  2312. Do not test the value of __STDC__, because some compilers set it to 0
  2313. while being otherwise adequately conformant. */
  2314. #if !defined __STDC__
  2315. # error "Compiler does not advertise C89 conformance"
  2316. #endif
  2317. #include <stddef.h>
  2318. #include <stdarg.h>
  2319. struct stat;
  2320. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2321. struct buf { int x; };
  2322. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2323. static char *e (char **p, int i)
  2324. {
  2325. return p[i];
  2326. }
  2327. static char *f (char * (*g) (char **, int), char **p, ...)
  2328. {
  2329. char *s;
  2330. va_list v;
  2331. va_start (v,p);
  2332. s = g (p, va_arg (v,int));
  2333. va_end (v);
  2334. return s;
  2335. }
  2336. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2337. function prototypes and stuff, but not \xHH hex character constants.
  2338. These do not provoke an error unfortunately, instead are silently treated
  2339. as an "x". The following induces an error, until -std is added to get
  2340. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2341. array size at least. It is necessary to write \x00 == 0 to get something
  2342. that is true only with -std. */
  2343. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2344. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2345. inside strings and character constants. */
  2346. #define FOO(x) '\''x'\''
  2347. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2348. int test (int i, double x);
  2349. struct s1 {int (*f) (int a);};
  2350. struct s2 {int (*f) (double a);};
  2351. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2352. int, int);'
  2353. # Test code for whether the C compiler supports C89 (body of main).
  2354. ac_c_conftest_c89_main='
  2355. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2356. '
  2357. # Test code for whether the C compiler supports C99 (global declarations)
  2358. ac_c_conftest_c99_globals='
  2359. // Does the compiler advertise C99 conformance?
  2360. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2361. # error "Compiler does not advertise C99 conformance"
  2362. #endif
  2363. #include <stdbool.h>
  2364. extern int puts (const char *);
  2365. extern int printf (const char *, ...);
  2366. extern int dprintf (int, const char *, ...);
  2367. extern void *malloc (size_t);
  2368. extern void free (void *);
  2369. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2370. // dprintf is used instead of fprintf to avoid needing to declare
  2371. // FILE and stderr.
  2372. #define debug(...) dprintf (2, __VA_ARGS__)
  2373. #define showlist(...) puts (#__VA_ARGS__)
  2374. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2375. static void
  2376. test_varargs_macros (void)
  2377. {
  2378. int x = 1234;
  2379. int y = 5678;
  2380. debug ("Flag");
  2381. debug ("X = %d\n", x);
  2382. showlist (The first, second, and third items.);
  2383. report (x>y, "x is %d but y is %d", x, y);
  2384. }
  2385. // Check long long types.
  2386. #define BIG64 18446744073709551615ull
  2387. #define BIG32 4294967295ul
  2388. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2389. #if !BIG_OK
  2390. #error "your preprocessor is broken"
  2391. #endif
  2392. #if BIG_OK
  2393. #else
  2394. #error "your preprocessor is broken"
  2395. #endif
  2396. static long long int bignum = -9223372036854775807LL;
  2397. static unsigned long long int ubignum = BIG64;
  2398. struct incomplete_array
  2399. {
  2400. int datasize;
  2401. double data[];
  2402. };
  2403. struct named_init {
  2404. int number;
  2405. const wchar_t *name;
  2406. double average;
  2407. };
  2408. typedef const char *ccp;
  2409. static inline int
  2410. test_restrict (ccp restrict text)
  2411. {
  2412. // See if C++-style comments work.
  2413. // Iterate through items via the restricted pointer.
  2414. // Also check for declarations in for loops.
  2415. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2416. continue;
  2417. return 0;
  2418. }
  2419. // Check varargs and va_copy.
  2420. static bool
  2421. test_varargs (const char *format, ...)
  2422. {
  2423. va_list args;
  2424. va_start (args, format);
  2425. va_list args_copy;
  2426. va_copy (args_copy, args);
  2427. const char *str = "";
  2428. int number = 0;
  2429. float fnumber = 0;
  2430. while (*format)
  2431. {
  2432. switch (*format++)
  2433. {
  2434. case '\''s'\'': // string
  2435. str = va_arg (args_copy, const char *);
  2436. break;
  2437. case '\''d'\'': // int
  2438. number = va_arg (args_copy, int);
  2439. break;
  2440. case '\''f'\'': // float
  2441. fnumber = va_arg (args_copy, double);
  2442. break;
  2443. default:
  2444. break;
  2445. }
  2446. }
  2447. va_end (args_copy);
  2448. va_end (args);
  2449. return *str && number && fnumber;
  2450. }
  2451. '
  2452. # Test code for whether the C compiler supports C99 (body of main).
  2453. ac_c_conftest_c99_main='
  2454. // Check bool.
  2455. _Bool success = false;
  2456. success |= (argc != 0);
  2457. // Check restrict.
  2458. if (test_restrict ("String literal") == 0)
  2459. success = true;
  2460. char *restrict newvar = "Another string";
  2461. // Check varargs.
  2462. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2463. test_varargs_macros ();
  2464. // Check flexible array members.
  2465. struct incomplete_array *ia =
  2466. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2467. ia->datasize = 10;
  2468. for (int i = 0; i < ia->datasize; ++i)
  2469. ia->data[i] = i * 1.234;
  2470. // Check named initializers.
  2471. struct named_init ni = {
  2472. .number = 34,
  2473. .name = L"Test wide string",
  2474. .average = 543.34343,
  2475. };
  2476. ni.number = 58;
  2477. int dynamic_array[ni.number];
  2478. dynamic_array[0] = argv[0][0];
  2479. dynamic_array[ni.number - 1] = 543;
  2480. // work around unused variable warnings
  2481. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2482. || dynamic_array[ni.number - 1] != 543);
  2483. '
  2484. # Test code for whether the C compiler supports C11 (global declarations)
  2485. ac_c_conftest_c11_globals='
  2486. // Does the compiler advertise C11 conformance?
  2487. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2488. # error "Compiler does not advertise C11 conformance"
  2489. #endif
  2490. // Check _Alignas.
  2491. char _Alignas (double) aligned_as_double;
  2492. char _Alignas (0) no_special_alignment;
  2493. extern char aligned_as_int;
  2494. char _Alignas (0) _Alignas (int) aligned_as_int;
  2495. // Check _Alignof.
  2496. enum
  2497. {
  2498. int_alignment = _Alignof (int),
  2499. int_array_alignment = _Alignof (int[100]),
  2500. char_alignment = _Alignof (char)
  2501. };
  2502. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2503. // Check _Noreturn.
  2504. int _Noreturn does_not_return (void) { for (;;) continue; }
  2505. // Check _Static_assert.
  2506. struct test_static_assert
  2507. {
  2508. int x;
  2509. _Static_assert (sizeof (int) <= sizeof (long int),
  2510. "_Static_assert does not work in struct");
  2511. long int y;
  2512. };
  2513. // Check UTF-8 literals.
  2514. #define u8 syntax error!
  2515. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2516. // Check duplicate typedefs.
  2517. typedef long *long_ptr;
  2518. typedef long int *long_ptr;
  2519. typedef long_ptr long_ptr;
  2520. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2521. struct anonymous
  2522. {
  2523. union {
  2524. struct { int i; int j; };
  2525. struct { int k; long int l; } w;
  2526. };
  2527. int m;
  2528. } v1;
  2529. '
  2530. # Test code for whether the C compiler supports C11 (body of main).
  2531. ac_c_conftest_c11_main='
  2532. _Static_assert ((offsetof (struct anonymous, i)
  2533. == offsetof (struct anonymous, w.k)),
  2534. "Anonymous union alignment botch");
  2535. v1.i = 2;
  2536. v1.w.k = 5;
  2537. ok |= v1.i != 5;
  2538. '
  2539. # Test code for whether the C compiler supports C11 (complete).
  2540. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2541. ${ac_c_conftest_c99_globals}
  2542. ${ac_c_conftest_c11_globals}
  2543. int
  2544. main (int argc, char **argv)
  2545. {
  2546. int ok = 0;
  2547. ${ac_c_conftest_c89_main}
  2548. ${ac_c_conftest_c99_main}
  2549. ${ac_c_conftest_c11_main}
  2550. return ok;
  2551. }
  2552. "
  2553. # Test code for whether the C compiler supports C99 (complete).
  2554. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2555. ${ac_c_conftest_c99_globals}
  2556. int
  2557. main (int argc, char **argv)
  2558. {
  2559. int ok = 0;
  2560. ${ac_c_conftest_c89_main}
  2561. ${ac_c_conftest_c99_main}
  2562. return ok;
  2563. }
  2564. "
  2565. # Test code for whether the C compiler supports C89 (complete).
  2566. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2567. int
  2568. main (int argc, char **argv)
  2569. {
  2570. int ok = 0;
  2571. ${ac_c_conftest_c89_main}
  2572. return ok;
  2573. }
  2574. "
  2575. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2576. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2577. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2578. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2579. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2580. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2581. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2582. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2583. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2584. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2585. ac_cxx_conftest_cxx98_globals='
  2586. // Does the compiler advertise C++98 conformance?
  2587. #if !defined __cplusplus || __cplusplus < 199711L
  2588. # error "Compiler does not advertise C++98 conformance"
  2589. #endif
  2590. // These inclusions are to reject old compilers that
  2591. // lack the unsuffixed header files.
  2592. #include <cstdlib>
  2593. #include <exception>
  2594. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2595. extern void assert (int);
  2596. namespace std {
  2597. extern int strcmp (const char *, const char *);
  2598. }
  2599. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2600. using std::exception;
  2601. using std::strcmp;
  2602. namespace {
  2603. void test_exception_syntax()
  2604. {
  2605. try {
  2606. throw "test";
  2607. } catch (const char *s) {
  2608. // Extra parentheses suppress a warning when building autoconf itself,
  2609. // due to lint rules shared with more typical C programs.
  2610. assert (!(strcmp) (s, "test"));
  2611. }
  2612. }
  2613. template <typename T> struct test_template
  2614. {
  2615. T const val;
  2616. explicit test_template(T t) : val(t) {}
  2617. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2618. };
  2619. } // anonymous namespace
  2620. '
  2621. # Test code for whether the C++ compiler supports C++98 (body of main)
  2622. ac_cxx_conftest_cxx98_main='
  2623. assert (argc);
  2624. assert (! argv[0]);
  2625. {
  2626. test_exception_syntax ();
  2627. test_template<double> tt (2.0);
  2628. assert (tt.add (4) == 6.0);
  2629. assert (true && !false);
  2630. }
  2631. '
  2632. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2633. ac_cxx_conftest_cxx11_globals='
  2634. // Does the compiler advertise C++ 2011 conformance?
  2635. #if !defined __cplusplus || __cplusplus < 201103L
  2636. # error "Compiler does not advertise C++11 conformance"
  2637. #endif
  2638. namespace cxx11test
  2639. {
  2640. constexpr int get_val() { return 20; }
  2641. struct testinit
  2642. {
  2643. int i;
  2644. double d;
  2645. };
  2646. class delegate
  2647. {
  2648. public:
  2649. delegate(int n) : n(n) {}
  2650. delegate(): delegate(2354) {}
  2651. virtual int getval() { return this->n; };
  2652. protected:
  2653. int n;
  2654. };
  2655. class overridden : public delegate
  2656. {
  2657. public:
  2658. overridden(int n): delegate(n) {}
  2659. virtual int getval() override final { return this->n * 2; }
  2660. };
  2661. class nocopy
  2662. {
  2663. public:
  2664. nocopy(int i): i(i) {}
  2665. nocopy() = default;
  2666. nocopy(const nocopy&) = delete;
  2667. nocopy & operator=(const nocopy&) = delete;
  2668. private:
  2669. int i;
  2670. };
  2671. // for testing lambda expressions
  2672. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2673. {
  2674. return f(v);
  2675. }
  2676. // for testing variadic templates and trailing return types
  2677. template <typename V> auto sum(V first) -> V
  2678. {
  2679. return first;
  2680. }
  2681. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2682. {
  2683. return first + sum(rest...);
  2684. }
  2685. }
  2686. '
  2687. # Test code for whether the C++ compiler supports C++11 (body of main)
  2688. ac_cxx_conftest_cxx11_main='
  2689. {
  2690. // Test auto and decltype
  2691. auto a1 = 6538;
  2692. auto a2 = 48573953.4;
  2693. auto a3 = "String literal";
  2694. int total = 0;
  2695. for (auto i = a3; *i; ++i) { total += *i; }
  2696. decltype(a2) a4 = 34895.034;
  2697. }
  2698. {
  2699. // Test constexpr
  2700. short sa[cxx11test::get_val()] = { 0 };
  2701. }
  2702. {
  2703. // Test initializer lists
  2704. cxx11test::testinit il = { 4323, 435234.23544 };
  2705. }
  2706. {
  2707. // Test range-based for
  2708. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2709. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2710. for (auto &x : array) { x += 23; }
  2711. }
  2712. {
  2713. // Test lambda expressions
  2714. using cxx11test::eval;
  2715. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2716. double d = 2.0;
  2717. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2718. assert (d == 5.0);
  2719. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2720. assert (d == 5.0);
  2721. }
  2722. {
  2723. // Test use of variadic templates
  2724. using cxx11test::sum;
  2725. auto a = sum(1);
  2726. auto b = sum(1, 2);
  2727. auto c = sum(1.0, 2.0, 3.0);
  2728. }
  2729. {
  2730. // Test constructor delegation
  2731. cxx11test::delegate d1;
  2732. cxx11test::delegate d2();
  2733. cxx11test::delegate d3(45);
  2734. }
  2735. {
  2736. // Test override and final
  2737. cxx11test::overridden o1(55464);
  2738. }
  2739. {
  2740. // Test nullptr
  2741. char *c = nullptr;
  2742. }
  2743. {
  2744. // Test template brackets
  2745. test_template<::test_template<int>> v(test_template<int>(12));
  2746. }
  2747. {
  2748. // Unicode literals
  2749. char const *utf8 = u8"UTF-8 string \u2500";
  2750. char16_t const *utf16 = u"UTF-8 string \u2500";
  2751. char32_t const *utf32 = U"UTF-32 string \u2500";
  2752. }
  2753. '
  2754. # Test code for whether the C compiler supports C++11 (complete).
  2755. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2756. ${ac_cxx_conftest_cxx11_globals}
  2757. int
  2758. main (int argc, char **argv)
  2759. {
  2760. int ok = 0;
  2761. ${ac_cxx_conftest_cxx98_main}
  2762. ${ac_cxx_conftest_cxx11_main}
  2763. return ok;
  2764. }
  2765. "
  2766. # Test code for whether the C compiler supports C++98 (complete).
  2767. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2768. int
  2769. main (int argc, char **argv)
  2770. {
  2771. int ok = 0;
  2772. ${ac_cxx_conftest_cxx98_main}
  2773. return ok;
  2774. }
  2775. "
  2776. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2777. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2778. # Auxiliary files required by this configure script.
  2779. ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
  2780. # Locations in which to look for auxiliary files.
  2781. ac_aux_dir_candidates="${srcdir}/conftools"
  2782. # Search for a directory containing all of the required auxiliary files,
  2783. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2784. # If we don't find one directory that contains all the files we need,
  2785. # we report the set of missing files from the *first* directory in
  2786. # $ac_aux_dir_candidates and give up.
  2787. ac_missing_aux_files=""
  2788. ac_first_candidate=:
  2789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2791. as_found=false
  2792. for as_dir in $ac_aux_dir_candidates
  2793. do
  2794. IFS=$as_save_IFS
  2795. case $as_dir in #(((
  2796. '') as_dir=./ ;;
  2797. */) ;;
  2798. *) as_dir=$as_dir/ ;;
  2799. esac
  2800. as_found=:
  2801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2802. ac_aux_dir_found=yes
  2803. ac_install_sh=
  2804. for ac_aux in $ac_aux_files
  2805. do
  2806. # As a special case, if "install-sh" is required, that requirement
  2807. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2808. # and $ac_install_sh is set appropriately for whichever one is found.
  2809. if test x"$ac_aux" = x"install-sh"
  2810. then
  2811. if test -f "${as_dir}install-sh"; then
  2812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2813. ac_install_sh="${as_dir}install-sh -c"
  2814. elif test -f "${as_dir}install.sh"; then
  2815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2816. ac_install_sh="${as_dir}install.sh -c"
  2817. elif test -f "${as_dir}shtool"; then
  2818. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2819. ac_install_sh="${as_dir}shtool install -c"
  2820. else
  2821. ac_aux_dir_found=no
  2822. if $ac_first_candidate; then
  2823. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2824. else
  2825. break
  2826. fi
  2827. fi
  2828. else
  2829. if test -f "${as_dir}${ac_aux}"; then
  2830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2831. else
  2832. ac_aux_dir_found=no
  2833. if $ac_first_candidate; then
  2834. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2835. else
  2836. break
  2837. fi
  2838. fi
  2839. fi
  2840. done
  2841. if test "$ac_aux_dir_found" = yes; then
  2842. ac_aux_dir="$as_dir"
  2843. break
  2844. fi
  2845. ac_first_candidate=false
  2846. as_found=false
  2847. done
  2848. IFS=$as_save_IFS
  2849. if $as_found
  2850. then :
  2851. else $as_nop
  2852. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2853. fi
  2854. # These three variables are undocumented and unsupported,
  2855. # and are intended to be withdrawn in a future Autoconf release.
  2856. # They can cause serious problems if a builder's source tree is in a directory
  2857. # whose full name contains unusual characters.
  2858. if test -f "${ac_aux_dir}config.guess"; then
  2859. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2860. fi
  2861. if test -f "${ac_aux_dir}config.sub"; then
  2862. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2863. fi
  2864. if test -f "$ac_aux_dir/configure"; then
  2865. ac_configure="$SHELL ${ac_aux_dir}configure"
  2866. fi
  2867. # Check that the precious variables saved in the cache have kept the same
  2868. # value.
  2869. ac_cache_corrupted=false
  2870. for ac_var in $ac_precious_vars; do
  2871. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2872. eval ac_new_set=\$ac_env_${ac_var}_set
  2873. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2874. eval ac_new_val=\$ac_env_${ac_var}_value
  2875. case $ac_old_set,$ac_new_set in
  2876. set,)
  2877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2878. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2879. ac_cache_corrupted=: ;;
  2880. ,set)
  2881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2882. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2883. ac_cache_corrupted=: ;;
  2884. ,);;
  2885. *)
  2886. if test "x$ac_old_val" != "x$ac_new_val"; then
  2887. # differences in whitespace do not lead to failure.
  2888. ac_old_val_w=`echo x $ac_old_val`
  2889. ac_new_val_w=`echo x $ac_new_val`
  2890. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2892. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2893. ac_cache_corrupted=:
  2894. else
  2895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2896. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2897. eval $ac_var=\$ac_old_val
  2898. fi
  2899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2900. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2902. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2903. fi;;
  2904. esac
  2905. # Pass precious variables to config.status.
  2906. if test "$ac_new_set" = set; then
  2907. case $ac_new_val in
  2908. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2909. *) ac_arg=$ac_var=$ac_new_val ;;
  2910. esac
  2911. case " $ac_configure_args " in
  2912. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2913. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2914. esac
  2915. fi
  2916. done
  2917. if $ac_cache_corrupted; then
  2918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2919. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2921. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2922. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2923. and start over" "$LINENO" 5
  2924. fi
  2925. ## -------------------- ##
  2926. ## Main body of script. ##
  2927. ## -------------------- ##
  2928. ac_ext=c
  2929. ac_cpp='$CPP $CPPFLAGS'
  2930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2933. # Make sure we can run config.sub.
  2934. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2935. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2937. printf %s "checking build system type... " >&6; }
  2938. if test ${ac_cv_build+y}
  2939. then :
  2940. printf %s "(cached) " >&6
  2941. else $as_nop
  2942. ac_build_alias=$build_alias
  2943. test "x$ac_build_alias" = x &&
  2944. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2945. test "x$ac_build_alias" = x &&
  2946. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2947. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2948. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2949. fi
  2950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2951. printf "%s\n" "$ac_cv_build" >&6; }
  2952. case $ac_cv_build in
  2953. *-*-*) ;;
  2954. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2955. esac
  2956. build=$ac_cv_build
  2957. ac_save_IFS=$IFS; IFS='-'
  2958. set x $ac_cv_build
  2959. shift
  2960. build_cpu=$1
  2961. build_vendor=$2
  2962. shift; shift
  2963. # Remember, the first character of IFS is used to create $*,
  2964. # except with old shells:
  2965. build_os=$*
  2966. IFS=$ac_save_IFS
  2967. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2969. printf %s "checking host system type... " >&6; }
  2970. if test ${ac_cv_host+y}
  2971. then :
  2972. printf %s "(cached) " >&6
  2973. else $as_nop
  2974. if test "x$host_alias" = x; then
  2975. ac_cv_host=$ac_cv_build
  2976. else
  2977. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2978. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2979. fi
  2980. fi
  2981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2982. printf "%s\n" "$ac_cv_host" >&6; }
  2983. case $ac_cv_host in
  2984. *-*-*) ;;
  2985. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2986. esac
  2987. host=$ac_cv_host
  2988. ac_save_IFS=$IFS; IFS='-'
  2989. set x $ac_cv_host
  2990. shift
  2991. host_cpu=$1
  2992. host_vendor=$2
  2993. shift; shift
  2994. # Remember, the first character of IFS is used to create $*,
  2995. # except with old shells:
  2996. host_os=$*
  2997. IFS=$ac_save_IFS
  2998. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2999. am__api_version='1.16'
  3000. # Find a good install program. We prefer a C program (faster),
  3001. # so one script is as good as another. But avoid the broken or
  3002. # incompatible versions:
  3003. # SysV /etc/install, /usr/sbin/install
  3004. # SunOS /usr/etc/install
  3005. # IRIX /sbin/install
  3006. # AIX /bin/install
  3007. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3008. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3009. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3010. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3011. # OS/2's system install, which has a completely different semantic
  3012. # ./install, which can be erroneously created by make from ./install.sh.
  3013. # Reject install programs that cannot install multiple files.
  3014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3015. printf %s "checking for a BSD-compatible install... " >&6; }
  3016. if test -z "$INSTALL"; then
  3017. if test ${ac_cv_path_install+y}
  3018. then :
  3019. printf %s "(cached) " >&6
  3020. else $as_nop
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024. IFS=$as_save_IFS
  3025. case $as_dir in #(((
  3026. '') as_dir=./ ;;
  3027. */) ;;
  3028. *) as_dir=$as_dir/ ;;
  3029. esac
  3030. # Account for fact that we put trailing slashes in our PATH walk.
  3031. case $as_dir in #((
  3032. ./ | /[cC]/* | \
  3033. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3034. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3035. /usr/ucb/* ) ;;
  3036. *)
  3037. # OSF1 and SCO ODT 3.0 have their own names for install.
  3038. # Don't use installbsd from OSF since it installs stuff as root
  3039. # by default.
  3040. for ac_prog in ginstall scoinst install; do
  3041. for ac_exec_ext in '' $ac_executable_extensions; do
  3042. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3043. if test $ac_prog = install &&
  3044. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3045. # AIX install. It has an incompatible calling convention.
  3046. :
  3047. elif test $ac_prog = install &&
  3048. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3049. # program-specific install script used by HP pwplus--don't use.
  3050. :
  3051. else
  3052. rm -rf conftest.one conftest.two conftest.dir
  3053. echo one > conftest.one
  3054. echo two > conftest.two
  3055. mkdir conftest.dir
  3056. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3057. test -s conftest.one && test -s conftest.two &&
  3058. test -s conftest.dir/conftest.one &&
  3059. test -s conftest.dir/conftest.two
  3060. then
  3061. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3062. break 3
  3063. fi
  3064. fi
  3065. fi
  3066. done
  3067. done
  3068. ;;
  3069. esac
  3070. done
  3071. IFS=$as_save_IFS
  3072. rm -rf conftest.one conftest.two conftest.dir
  3073. fi
  3074. if test ${ac_cv_path_install+y}; then
  3075. INSTALL=$ac_cv_path_install
  3076. else
  3077. # As a last resort, use the slow shell script. Don't cache a
  3078. # value for INSTALL within a source directory, because that will
  3079. # break other packages using the cache if that directory is
  3080. # removed, or if the value is a relative name.
  3081. INSTALL=$ac_install_sh
  3082. fi
  3083. fi
  3084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3085. printf "%s\n" "$INSTALL" >&6; }
  3086. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3087. # It thinks the first close brace ends the variable substitution.
  3088. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3089. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3090. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3092. printf %s "checking whether build environment is sane... " >&6; }
  3093. # Reject unsafe characters in $srcdir or the absolute working directory
  3094. # name. Accept space and tab only in the latter.
  3095. am_lf='
  3096. '
  3097. case `pwd` in
  3098. *[\\\"\#\$\&\'\`$am_lf]*)
  3099. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3100. esac
  3101. case $srcdir in
  3102. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3103. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3104. esac
  3105. # Do 'set' in a subshell so we don't clobber the current shell's
  3106. # arguments. Must try -L first in case configure is actually a
  3107. # symlink; some systems play weird games with the mod time of symlinks
  3108. # (eg FreeBSD returns the mod time of the symlink's containing
  3109. # directory).
  3110. if (
  3111. am_has_slept=no
  3112. for am_try in 1 2; do
  3113. echo "timestamp, slept: $am_has_slept" > conftest.file
  3114. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3115. if test "$*" = "X"; then
  3116. # -L didn't work.
  3117. set X `ls -t "$srcdir/configure" conftest.file`
  3118. fi
  3119. if test "$*" != "X $srcdir/configure conftest.file" \
  3120. && test "$*" != "X conftest.file $srcdir/configure"; then
  3121. # If neither matched, then we have a broken ls. This can happen
  3122. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3123. # broken ls alias from the environment. This has actually
  3124. # happened. Such a system could not be considered "sane".
  3125. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3126. alias in your environment" "$LINENO" 5
  3127. fi
  3128. if test "$2" = conftest.file || test $am_try -eq 2; then
  3129. break
  3130. fi
  3131. # Just in case.
  3132. sleep 1
  3133. am_has_slept=yes
  3134. done
  3135. test "$2" = conftest.file
  3136. )
  3137. then
  3138. # Ok.
  3139. :
  3140. else
  3141. as_fn_error $? "newly created file is older than distributed files!
  3142. Check your system clock" "$LINENO" 5
  3143. fi
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3145. printf "%s\n" "yes" >&6; }
  3146. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3147. # generated files are strictly newer.
  3148. am_sleep_pid=
  3149. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3150. ( sleep 1 ) &
  3151. am_sleep_pid=$!
  3152. fi
  3153. rm -f conftest.file
  3154. test "$program_prefix" != NONE &&
  3155. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3156. # Use a double $ so make ignores it.
  3157. test "$program_suffix" != NONE &&
  3158. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3159. # Double any \ or $.
  3160. # By default was `s,x,x', remove it if useless.
  3161. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3162. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3163. # Expand $ac_aux_dir to an absolute path.
  3164. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3165. if test x"${MISSING+set}" != xset; then
  3166. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3167. fi
  3168. # Use eval to expand $SHELL
  3169. if eval "$MISSING --is-lightweight"; then
  3170. am_missing_run="$MISSING "
  3171. else
  3172. am_missing_run=
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3174. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3175. fi
  3176. if test x"${install_sh+set}" != xset; then
  3177. case $am_aux_dir in
  3178. *\ * | *\ *)
  3179. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3180. *)
  3181. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3182. esac
  3183. fi
  3184. # Installed binaries are usually stripped using 'strip' when the user
  3185. # run "make install-strip". However 'strip' might not be the right
  3186. # tool to use in cross-compilation environments, therefore Automake
  3187. # will honor the 'STRIP' environment variable to overrule this program.
  3188. if test "$cross_compiling" != no; then
  3189. if test -n "$ac_tool_prefix"; then
  3190. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3191. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3193. printf %s "checking for $ac_word... " >&6; }
  3194. if test ${ac_cv_prog_STRIP+y}
  3195. then :
  3196. printf %s "(cached) " >&6
  3197. else $as_nop
  3198. if test -n "$STRIP"; then
  3199. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3200. else
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH
  3203. do
  3204. IFS=$as_save_IFS
  3205. case $as_dir in #(((
  3206. '') as_dir=./ ;;
  3207. */) ;;
  3208. *) as_dir=$as_dir/ ;;
  3209. esac
  3210. for ac_exec_ext in '' $ac_executable_extensions; do
  3211. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3212. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3214. break 2
  3215. fi
  3216. done
  3217. done
  3218. IFS=$as_save_IFS
  3219. fi
  3220. fi
  3221. STRIP=$ac_cv_prog_STRIP
  3222. if test -n "$STRIP"; then
  3223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3224. printf "%s\n" "$STRIP" >&6; }
  3225. else
  3226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3227. printf "%s\n" "no" >&6; }
  3228. fi
  3229. fi
  3230. if test -z "$ac_cv_prog_STRIP"; then
  3231. ac_ct_STRIP=$STRIP
  3232. # Extract the first word of "strip", so it can be a program name with args.
  3233. set dummy strip; ac_word=$2
  3234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3235. printf %s "checking for $ac_word... " >&6; }
  3236. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3237. then :
  3238. printf %s "(cached) " >&6
  3239. else $as_nop
  3240. if test -n "$ac_ct_STRIP"; then
  3241. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3242. else
  3243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3244. for as_dir in $PATH
  3245. do
  3246. IFS=$as_save_IFS
  3247. case $as_dir in #(((
  3248. '') as_dir=./ ;;
  3249. */) ;;
  3250. *) as_dir=$as_dir/ ;;
  3251. esac
  3252. for ac_exec_ext in '' $ac_executable_extensions; do
  3253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3254. ac_cv_prog_ac_ct_STRIP="strip"
  3255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3256. break 2
  3257. fi
  3258. done
  3259. done
  3260. IFS=$as_save_IFS
  3261. fi
  3262. fi
  3263. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3264. if test -n "$ac_ct_STRIP"; then
  3265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3266. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3267. else
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3269. printf "%s\n" "no" >&6; }
  3270. fi
  3271. if test "x$ac_ct_STRIP" = x; then
  3272. STRIP=":"
  3273. else
  3274. case $cross_compiling:$ac_tool_warned in
  3275. yes:)
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3277. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3278. ac_tool_warned=yes ;;
  3279. esac
  3280. STRIP=$ac_ct_STRIP
  3281. fi
  3282. else
  3283. STRIP="$ac_cv_prog_STRIP"
  3284. fi
  3285. fi
  3286. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3288. printf %s "checking for a race-free mkdir -p... " >&6; }
  3289. if test -z "$MKDIR_P"; then
  3290. if test ${ac_cv_path_mkdir+y}
  3291. then :
  3292. printf %s "(cached) " >&6
  3293. else $as_nop
  3294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3295. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3296. do
  3297. IFS=$as_save_IFS
  3298. case $as_dir in #(((
  3299. '') as_dir=./ ;;
  3300. */) ;;
  3301. *) as_dir=$as_dir/ ;;
  3302. esac
  3303. for ac_prog in mkdir gmkdir; do
  3304. for ac_exec_ext in '' $ac_executable_extensions; do
  3305. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3306. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3307. 'mkdir ('*'coreutils) '* | \
  3308. 'BusyBox '* | \
  3309. 'mkdir (fileutils) '4.1*)
  3310. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3311. break 3;;
  3312. esac
  3313. done
  3314. done
  3315. done
  3316. IFS=$as_save_IFS
  3317. fi
  3318. test -d ./--version && rmdir ./--version
  3319. if test ${ac_cv_path_mkdir+y}; then
  3320. MKDIR_P="$ac_cv_path_mkdir -p"
  3321. else
  3322. # As a last resort, use the slow shell script. Don't cache a
  3323. # value for MKDIR_P within a source directory, because that will
  3324. # break other packages using the cache if that directory is
  3325. # removed, or if the value is a relative name.
  3326. MKDIR_P="$ac_install_sh -d"
  3327. fi
  3328. fi
  3329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3330. printf "%s\n" "$MKDIR_P" >&6; }
  3331. for ac_prog in gawk mawk nawk awk
  3332. do
  3333. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3334. set dummy $ac_prog; ac_word=$2
  3335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3336. printf %s "checking for $ac_word... " >&6; }
  3337. if test ${ac_cv_prog_AWK+y}
  3338. then :
  3339. printf %s "(cached) " >&6
  3340. else $as_nop
  3341. if test -n "$AWK"; then
  3342. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. case $as_dir in #(((
  3349. '') as_dir=./ ;;
  3350. */) ;;
  3351. *) as_dir=$as_dir/ ;;
  3352. esac
  3353. for ac_exec_ext in '' $ac_executable_extensions; do
  3354. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3355. ac_cv_prog_AWK="$ac_prog"
  3356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3357. break 2
  3358. fi
  3359. done
  3360. done
  3361. IFS=$as_save_IFS
  3362. fi
  3363. fi
  3364. AWK=$ac_cv_prog_AWK
  3365. if test -n "$AWK"; then
  3366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3367. printf "%s\n" "$AWK" >&6; }
  3368. else
  3369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3370. printf "%s\n" "no" >&6; }
  3371. fi
  3372. test -n "$AWK" && break
  3373. done
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3375. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3376. set x ${MAKE-make}
  3377. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3378. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3379. then :
  3380. printf %s "(cached) " >&6
  3381. else $as_nop
  3382. cat >conftest.make <<\_ACEOF
  3383. SHELL = /bin/sh
  3384. all:
  3385. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3386. _ACEOF
  3387. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3388. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3389. *@@@%%%=?*=@@@%%%*)
  3390. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3391. *)
  3392. eval ac_cv_prog_make_${ac_make}_set=no;;
  3393. esac
  3394. rm -f conftest.make
  3395. fi
  3396. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3398. printf "%s\n" "yes" >&6; }
  3399. SET_MAKE=
  3400. else
  3401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. printf "%s\n" "no" >&6; }
  3403. SET_MAKE="MAKE=${MAKE-make}"
  3404. fi
  3405. rm -rf .tst 2>/dev/null
  3406. mkdir .tst 2>/dev/null
  3407. if test -d .tst; then
  3408. am__leading_dot=.
  3409. else
  3410. am__leading_dot=_
  3411. fi
  3412. rmdir .tst 2>/dev/null
  3413. # Check whether --enable-silent-rules was given.
  3414. if test ${enable_silent_rules+y}
  3415. then :
  3416. enableval=$enable_silent_rules;
  3417. fi
  3418. case $enable_silent_rules in # (((
  3419. yes) AM_DEFAULT_VERBOSITY=0;;
  3420. no) AM_DEFAULT_VERBOSITY=1;;
  3421. *) AM_DEFAULT_VERBOSITY=1;;
  3422. esac
  3423. am_make=${MAKE-make}
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3425. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3426. if test ${am_cv_make_support_nested_variables+y}
  3427. then :
  3428. printf %s "(cached) " >&6
  3429. else $as_nop
  3430. if printf "%s\n" 'TRUE=$(BAR$(V))
  3431. BAR0=false
  3432. BAR1=true
  3433. V=1
  3434. am__doit:
  3435. @$(TRUE)
  3436. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3437. am_cv_make_support_nested_variables=yes
  3438. else
  3439. am_cv_make_support_nested_variables=no
  3440. fi
  3441. fi
  3442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3443. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3444. if test $am_cv_make_support_nested_variables = yes; then
  3445. AM_V='$(V)'
  3446. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3447. else
  3448. AM_V=$AM_DEFAULT_VERBOSITY
  3449. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3450. fi
  3451. AM_BACKSLASH='\'
  3452. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3453. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3454. # is not polluted with repeated "-I."
  3455. am__isrc=' -I$(srcdir)'
  3456. # test to see if srcdir already configured
  3457. if test -f $srcdir/config.status; then
  3458. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3459. fi
  3460. fi
  3461. # test whether we have cygpath
  3462. if test -z "$CYGPATH_W"; then
  3463. if (cygpath --version) >/dev/null 2>/dev/null; then
  3464. CYGPATH_W='cygpath -w'
  3465. else
  3466. CYGPATH_W=echo
  3467. fi
  3468. fi
  3469. # Define the identity of the package.
  3470. PACKAGE='expat'
  3471. VERSION='2.6.1'
  3472. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3473. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3474. # Some tools Automake needs.
  3475. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3476. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3477. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3478. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3479. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3480. # For better backward compatibility. To be removed once Automake 1.9.x
  3481. # dies out for good. For more background, see:
  3482. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3483. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3484. mkdir_p='$(MKDIR_P)'
  3485. # We need awk for the "check" target (and possibly the TAP driver). The
  3486. # system "awk" is bad on some platforms.
  3487. # Always define AMTAR for backward compatibility. Yes, it's still used
  3488. # in the wild :-( We should find a proper way to deprecate it ...
  3489. AMTAR='$${TAR-tar}'
  3490. # We'll loop over all known methods to create a tar archive until one works.
  3491. _am_tools='gnutar pax cpio none'
  3492. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3493. # Variables for tags utilities; see am/tags.am
  3494. if test -z "$CTAGS"; then
  3495. CTAGS=ctags
  3496. fi
  3497. if test -z "$ETAGS"; then
  3498. ETAGS=etags
  3499. fi
  3500. if test -z "$CSCOPE"; then
  3501. CSCOPE=cscope
  3502. fi
  3503. # POSIX will say in a future version that running "rm -f" with no argument
  3504. # is OK; and we want to be able to make that assumption in our Makefile
  3505. # recipes. So use an aggressive probe to check that the usage we want is
  3506. # actually supported "in the wild" to an acceptable degree.
  3507. # See automake bug#10828.
  3508. # To make any issue more visible, cause the running configure to be aborted
  3509. # by default if the 'rm' program in use doesn't match our expectations; the
  3510. # user can still override this though.
  3511. if rm -f && rm -fr && rm -rf; then : OK; else
  3512. cat >&2 <<'END'
  3513. Oops!
  3514. Your 'rm' program seems unable to run without file operands specified
  3515. on the command line, even when the '-f' option is present. This is contrary
  3516. to the behaviour of most rm programs out there, and not conforming with
  3517. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3518. Please tell [email protected] about your system, including the value
  3519. of your $PATH and any error possibly output before this message. This
  3520. can help us improve future automake versions.
  3521. END
  3522. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3523. echo 'Configuration will proceed anyway, since you have set the' >&2
  3524. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3525. echo >&2
  3526. else
  3527. cat >&2 <<'END'
  3528. Aborting the configuration process, to ensure you take notice of the issue.
  3529. You can download and install GNU coreutils to get an 'rm' implementation
  3530. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3531. If you want to complete the configuration process using your problematic
  3532. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3533. to "yes", and re-run configure.
  3534. END
  3535. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3536. fi
  3537. fi
  3538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3539. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3540. # Check whether --enable-maintainer-mode was given.
  3541. if test ${enable_maintainer_mode+y}
  3542. then :
  3543. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3544. else $as_nop
  3545. USE_MAINTAINER_MODE=yes
  3546. fi
  3547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3548. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3549. if test $USE_MAINTAINER_MODE = yes; then
  3550. MAINTAINER_MODE_TRUE=
  3551. MAINTAINER_MODE_FALSE='#'
  3552. else
  3553. MAINTAINER_MODE_TRUE='#'
  3554. MAINTAINER_MODE_FALSE=
  3555. fi
  3556. MAINT=$MAINTAINER_MODE_TRUE
  3557. # to allow argument --disable-maintainer-mode
  3558. LIBCURRENT=10 # sync
  3559. LIBREVISION=1 # with
  3560. LIBAGE=9 # CMakeLists.txt!
  3561. ac_config_headers="$ac_config_headers expat_config.h"
  3562. DEPDIR="${am__leading_dot}deps"
  3563. ac_config_commands="$ac_config_commands depfiles"
  3564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3565. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3566. cat > confinc.mk << 'END'
  3567. am__doit:
  3568. @echo this is the am__doit target >confinc.out
  3569. .PHONY: am__doit
  3570. END
  3571. am__include="#"
  3572. am__quote=
  3573. # BSD make does it like this.
  3574. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3575. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3576. echo 'include confinc.mk # ignored' > confmf.GNU
  3577. _am_result=no
  3578. for s in GNU BSD; do
  3579. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3580. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3581. ac_status=$?
  3582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3583. (exit $ac_status); }
  3584. case $?:`cat confinc.out 2>/dev/null` in #(
  3585. '0:this is the am__doit target') :
  3586. case $s in #(
  3587. BSD) :
  3588. am__include='.include' am__quote='"' ;; #(
  3589. *) :
  3590. am__include='include' am__quote='' ;;
  3591. esac ;; #(
  3592. *) :
  3593. ;;
  3594. esac
  3595. if test "$am__include" != "#"; then
  3596. _am_result="yes ($s style)"
  3597. break
  3598. fi
  3599. done
  3600. rm -f confinc.* confmf.*
  3601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3602. printf "%s\n" "${_am_result}" >&6; }
  3603. # Check whether --enable-dependency-tracking was given.
  3604. if test ${enable_dependency_tracking+y}
  3605. then :
  3606. enableval=$enable_dependency_tracking;
  3607. fi
  3608. if test "x$enable_dependency_tracking" != xno; then
  3609. am_depcomp="$ac_aux_dir/depcomp"
  3610. AMDEPBACKSLASH='\'
  3611. am__nodep='_no'
  3612. fi
  3613. if test "x$enable_dependency_tracking" != xno; then
  3614. AMDEP_TRUE=
  3615. AMDEP_FALSE='#'
  3616. else
  3617. AMDEP_TRUE='#'
  3618. AMDEP_FALSE=
  3619. fi
  3620. ac_ext=c
  3621. ac_cpp='$CPP $CPPFLAGS'
  3622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3625. if test -n "$ac_tool_prefix"; then
  3626. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3627. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3629. printf %s "checking for $ac_word... " >&6; }
  3630. if test ${ac_cv_prog_CC+y}
  3631. then :
  3632. printf %s "(cached) " >&6
  3633. else $as_nop
  3634. if test -n "$CC"; then
  3635. ac_cv_prog_CC="$CC" # Let the user override the test.
  3636. else
  3637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3638. for as_dir in $PATH
  3639. do
  3640. IFS=$as_save_IFS
  3641. case $as_dir in #(((
  3642. '') as_dir=./ ;;
  3643. */) ;;
  3644. *) as_dir=$as_dir/ ;;
  3645. esac
  3646. for ac_exec_ext in '' $ac_executable_extensions; do
  3647. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3648. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3650. break 2
  3651. fi
  3652. done
  3653. done
  3654. IFS=$as_save_IFS
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. printf "%s\n" "$CC" >&6; }
  3661. else
  3662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. printf "%s\n" "no" >&6; }
  3664. fi
  3665. fi
  3666. if test -z "$ac_cv_prog_CC"; then
  3667. ac_ct_CC=$CC
  3668. # Extract the first word of "gcc", so it can be a program name with args.
  3669. set dummy gcc; ac_word=$2
  3670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3671. printf %s "checking for $ac_word... " >&6; }
  3672. if test ${ac_cv_prog_ac_ct_CC+y}
  3673. then :
  3674. printf %s "(cached) " >&6
  3675. else $as_nop
  3676. if test -n "$ac_ct_CC"; then
  3677. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3678. else
  3679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3680. for as_dir in $PATH
  3681. do
  3682. IFS=$as_save_IFS
  3683. case $as_dir in #(((
  3684. '') as_dir=./ ;;
  3685. */) ;;
  3686. *) as_dir=$as_dir/ ;;
  3687. esac
  3688. for ac_exec_ext in '' $ac_executable_extensions; do
  3689. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3690. ac_cv_prog_ac_ct_CC="gcc"
  3691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3692. break 2
  3693. fi
  3694. done
  3695. done
  3696. IFS=$as_save_IFS
  3697. fi
  3698. fi
  3699. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3700. if test -n "$ac_ct_CC"; then
  3701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3702. printf "%s\n" "$ac_ct_CC" >&6; }
  3703. else
  3704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. printf "%s\n" "no" >&6; }
  3706. fi
  3707. if test "x$ac_ct_CC" = x; then
  3708. CC=""
  3709. else
  3710. case $cross_compiling:$ac_tool_warned in
  3711. yes:)
  3712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3713. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3714. ac_tool_warned=yes ;;
  3715. esac
  3716. CC=$ac_ct_CC
  3717. fi
  3718. else
  3719. CC="$ac_cv_prog_CC"
  3720. fi
  3721. if test -z "$CC"; then
  3722. if test -n "$ac_tool_prefix"; then
  3723. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3724. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3726. printf %s "checking for $ac_word... " >&6; }
  3727. if test ${ac_cv_prog_CC+y}
  3728. then :
  3729. printf %s "(cached) " >&6
  3730. else $as_nop
  3731. if test -n "$CC"; then
  3732. ac_cv_prog_CC="$CC" # Let the user override the test.
  3733. else
  3734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3735. for as_dir in $PATH
  3736. do
  3737. IFS=$as_save_IFS
  3738. case $as_dir in #(((
  3739. '') as_dir=./ ;;
  3740. */) ;;
  3741. *) as_dir=$as_dir/ ;;
  3742. esac
  3743. for ac_exec_ext in '' $ac_executable_extensions; do
  3744. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3745. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3747. break 2
  3748. fi
  3749. done
  3750. done
  3751. IFS=$as_save_IFS
  3752. fi
  3753. fi
  3754. CC=$ac_cv_prog_CC
  3755. if test -n "$CC"; then
  3756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3757. printf "%s\n" "$CC" >&6; }
  3758. else
  3759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3760. printf "%s\n" "no" >&6; }
  3761. fi
  3762. fi
  3763. fi
  3764. if test -z "$CC"; then
  3765. # Extract the first word of "cc", so it can be a program name with args.
  3766. set dummy cc; ac_word=$2
  3767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3768. printf %s "checking for $ac_word... " >&6; }
  3769. if test ${ac_cv_prog_CC+y}
  3770. then :
  3771. printf %s "(cached) " >&6
  3772. else $as_nop
  3773. if test -n "$CC"; then
  3774. ac_cv_prog_CC="$CC" # Let the user override the test.
  3775. else
  3776. ac_prog_rejected=no
  3777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. for as_dir in $PATH
  3779. do
  3780. IFS=$as_save_IFS
  3781. case $as_dir in #(((
  3782. '') as_dir=./ ;;
  3783. */) ;;
  3784. *) as_dir=$as_dir/ ;;
  3785. esac
  3786. for ac_exec_ext in '' $ac_executable_extensions; do
  3787. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3788. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3789. ac_prog_rejected=yes
  3790. continue
  3791. fi
  3792. ac_cv_prog_CC="cc"
  3793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. if test $ac_prog_rejected = yes; then
  3800. # We found a bogon in the path, so make sure we never use it.
  3801. set dummy $ac_cv_prog_CC
  3802. shift
  3803. if test $# != 0; then
  3804. # We chose a different compiler from the bogus one.
  3805. # However, it has the same basename, so the bogon will be chosen
  3806. # first if we set CC to just the basename; use the full file name.
  3807. shift
  3808. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3809. fi
  3810. fi
  3811. fi
  3812. fi
  3813. CC=$ac_cv_prog_CC
  3814. if test -n "$CC"; then
  3815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3816. printf "%s\n" "$CC" >&6; }
  3817. else
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3819. printf "%s\n" "no" >&6; }
  3820. fi
  3821. fi
  3822. if test -z "$CC"; then
  3823. if test -n "$ac_tool_prefix"; then
  3824. for ac_prog in cl.exe
  3825. do
  3826. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3827. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3829. printf %s "checking for $ac_word... " >&6; }
  3830. if test ${ac_cv_prog_CC+y}
  3831. then :
  3832. printf %s "(cached) " >&6
  3833. else $as_nop
  3834. if test -n "$CC"; then
  3835. ac_cv_prog_CC="$CC" # Let the user override the test.
  3836. else
  3837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3838. for as_dir in $PATH
  3839. do
  3840. IFS=$as_save_IFS
  3841. case $as_dir in #(((
  3842. '') as_dir=./ ;;
  3843. */) ;;
  3844. *) as_dir=$as_dir/ ;;
  3845. esac
  3846. for ac_exec_ext in '' $ac_executable_extensions; do
  3847. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3848. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3850. break 2
  3851. fi
  3852. done
  3853. done
  3854. IFS=$as_save_IFS
  3855. fi
  3856. fi
  3857. CC=$ac_cv_prog_CC
  3858. if test -n "$CC"; then
  3859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3860. printf "%s\n" "$CC" >&6; }
  3861. else
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. printf "%s\n" "no" >&6; }
  3864. fi
  3865. test -n "$CC" && break
  3866. done
  3867. fi
  3868. if test -z "$CC"; then
  3869. ac_ct_CC=$CC
  3870. for ac_prog in cl.exe
  3871. do
  3872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3873. set dummy $ac_prog; ac_word=$2
  3874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3875. printf %s "checking for $ac_word... " >&6; }
  3876. if test ${ac_cv_prog_ac_ct_CC+y}
  3877. then :
  3878. printf %s "(cached) " >&6
  3879. else $as_nop
  3880. if test -n "$ac_ct_CC"; then
  3881. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3882. else
  3883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3884. for as_dir in $PATH
  3885. do
  3886. IFS=$as_save_IFS
  3887. case $as_dir in #(((
  3888. '') as_dir=./ ;;
  3889. */) ;;
  3890. *) as_dir=$as_dir/ ;;
  3891. esac
  3892. for ac_exec_ext in '' $ac_executable_extensions; do
  3893. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3894. ac_cv_prog_ac_ct_CC="$ac_prog"
  3895. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3896. break 2
  3897. fi
  3898. done
  3899. done
  3900. IFS=$as_save_IFS
  3901. fi
  3902. fi
  3903. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3904. if test -n "$ac_ct_CC"; then
  3905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3906. printf "%s\n" "$ac_ct_CC" >&6; }
  3907. else
  3908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3909. printf "%s\n" "no" >&6; }
  3910. fi
  3911. test -n "$ac_ct_CC" && break
  3912. done
  3913. if test "x$ac_ct_CC" = x; then
  3914. CC=""
  3915. else
  3916. case $cross_compiling:$ac_tool_warned in
  3917. yes:)
  3918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3919. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3920. ac_tool_warned=yes ;;
  3921. esac
  3922. CC=$ac_ct_CC
  3923. fi
  3924. fi
  3925. fi
  3926. if test -z "$CC"; then
  3927. if test -n "$ac_tool_prefix"; then
  3928. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3929. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3931. printf %s "checking for $ac_word... " >&6; }
  3932. if test ${ac_cv_prog_CC+y}
  3933. then :
  3934. printf %s "(cached) " >&6
  3935. else $as_nop
  3936. if test -n "$CC"; then
  3937. ac_cv_prog_CC="$CC" # Let the user override the test.
  3938. else
  3939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3940. for as_dir in $PATH
  3941. do
  3942. IFS=$as_save_IFS
  3943. case $as_dir in #(((
  3944. '') as_dir=./ ;;
  3945. */) ;;
  3946. *) as_dir=$as_dir/ ;;
  3947. esac
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3950. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3952. break 2
  3953. fi
  3954. done
  3955. done
  3956. IFS=$as_save_IFS
  3957. fi
  3958. fi
  3959. CC=$ac_cv_prog_CC
  3960. if test -n "$CC"; then
  3961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3962. printf "%s\n" "$CC" >&6; }
  3963. else
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3965. printf "%s\n" "no" >&6; }
  3966. fi
  3967. fi
  3968. if test -z "$ac_cv_prog_CC"; then
  3969. ac_ct_CC=$CC
  3970. # Extract the first word of "clang", so it can be a program name with args.
  3971. set dummy clang; ac_word=$2
  3972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3973. printf %s "checking for $ac_word... " >&6; }
  3974. if test ${ac_cv_prog_ac_ct_CC+y}
  3975. then :
  3976. printf %s "(cached) " >&6
  3977. else $as_nop
  3978. if test -n "$ac_ct_CC"; then
  3979. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3980. else
  3981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3982. for as_dir in $PATH
  3983. do
  3984. IFS=$as_save_IFS
  3985. case $as_dir in #(((
  3986. '') as_dir=./ ;;
  3987. */) ;;
  3988. *) as_dir=$as_dir/ ;;
  3989. esac
  3990. for ac_exec_ext in '' $ac_executable_extensions; do
  3991. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3992. ac_cv_prog_ac_ct_CC="clang"
  3993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3994. break 2
  3995. fi
  3996. done
  3997. done
  3998. IFS=$as_save_IFS
  3999. fi
  4000. fi
  4001. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4002. if test -n "$ac_ct_CC"; then
  4003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4004. printf "%s\n" "$ac_ct_CC" >&6; }
  4005. else
  4006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4007. printf "%s\n" "no" >&6; }
  4008. fi
  4009. if test "x$ac_ct_CC" = x; then
  4010. CC=""
  4011. else
  4012. case $cross_compiling:$ac_tool_warned in
  4013. yes:)
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4015. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4016. ac_tool_warned=yes ;;
  4017. esac
  4018. CC=$ac_ct_CC
  4019. fi
  4020. else
  4021. CC="$ac_cv_prog_CC"
  4022. fi
  4023. fi
  4024. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4025. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4026. as_fn_error $? "no acceptable C compiler found in \$PATH
  4027. See \`config.log' for more details" "$LINENO" 5; }
  4028. # Provide some information about the compiler.
  4029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4030. set X $ac_compile
  4031. ac_compiler=$2
  4032. for ac_option in --version -v -V -qversion -version; do
  4033. { { ac_try="$ac_compiler $ac_option >&5"
  4034. case "(($ac_try" in
  4035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4036. *) ac_try_echo=$ac_try;;
  4037. esac
  4038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4039. printf "%s\n" "$ac_try_echo"; } >&5
  4040. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4041. ac_status=$?
  4042. if test -s conftest.err; then
  4043. sed '10a\
  4044. ... rest of stderr output deleted ...
  4045. 10q' conftest.err >conftest.er1
  4046. cat conftest.er1 >&5
  4047. fi
  4048. rm -f conftest.er1 conftest.err
  4049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4050. test $ac_status = 0; }
  4051. done
  4052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4053. /* end confdefs.h. */
  4054. int
  4055. main (void)
  4056. {
  4057. ;
  4058. return 0;
  4059. }
  4060. _ACEOF
  4061. ac_clean_files_save=$ac_clean_files
  4062. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4063. # Try to create an executable without -o first, disregard a.out.
  4064. # It will help us diagnose broken compilers, and finding out an intuition
  4065. # of exeext.
  4066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4067. printf %s "checking whether the C compiler works... " >&6; }
  4068. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4069. # The possible output files:
  4070. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4071. ac_rmfiles=
  4072. for ac_file in $ac_files
  4073. do
  4074. case $ac_file in
  4075. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4076. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4077. esac
  4078. done
  4079. rm -f $ac_rmfiles
  4080. if { { ac_try="$ac_link_default"
  4081. case "(($ac_try" in
  4082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4083. *) ac_try_echo=$ac_try;;
  4084. esac
  4085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4086. printf "%s\n" "$ac_try_echo"; } >&5
  4087. (eval "$ac_link_default") 2>&5
  4088. ac_status=$?
  4089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4090. test $ac_status = 0; }
  4091. then :
  4092. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4093. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4094. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4095. # so that the user can short-circuit this test for compilers unknown to
  4096. # Autoconf.
  4097. for ac_file in $ac_files ''
  4098. do
  4099. test -f "$ac_file" || continue
  4100. case $ac_file in
  4101. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4102. ;;
  4103. [ab].out )
  4104. # We found the default executable, but exeext='' is most
  4105. # certainly right.
  4106. break;;
  4107. *.* )
  4108. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4109. then :; else
  4110. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4111. fi
  4112. # We set ac_cv_exeext here because the later test for it is not
  4113. # safe: cross compilers may not add the suffix if given an `-o'
  4114. # argument, so we may need to know it at that point already.
  4115. # Even if this section looks crufty: it has the advantage of
  4116. # actually working.
  4117. break;;
  4118. * )
  4119. break;;
  4120. esac
  4121. done
  4122. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4123. else $as_nop
  4124. ac_file=''
  4125. fi
  4126. if test -z "$ac_file"
  4127. then :
  4128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4129. printf "%s\n" "no" >&6; }
  4130. printf "%s\n" "$as_me: failed program was:" >&5
  4131. sed 's/^/| /' conftest.$ac_ext >&5
  4132. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4133. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4134. as_fn_error 77 "C compiler cannot create executables
  4135. See \`config.log' for more details" "$LINENO" 5; }
  4136. else $as_nop
  4137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4138. printf "%s\n" "yes" >&6; }
  4139. fi
  4140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4141. printf %s "checking for C compiler default output file name... " >&6; }
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4143. printf "%s\n" "$ac_file" >&6; }
  4144. ac_exeext=$ac_cv_exeext
  4145. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4146. ac_clean_files=$ac_clean_files_save
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4148. printf %s "checking for suffix of executables... " >&6; }
  4149. if { { ac_try="$ac_link"
  4150. case "(($ac_try" in
  4151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4152. *) ac_try_echo=$ac_try;;
  4153. esac
  4154. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4155. printf "%s\n" "$ac_try_echo"; } >&5
  4156. (eval "$ac_link") 2>&5
  4157. ac_status=$?
  4158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4159. test $ac_status = 0; }
  4160. then :
  4161. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4162. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4163. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4164. # `rm'.
  4165. for ac_file in conftest.exe conftest conftest.*; do
  4166. test -f "$ac_file" || continue
  4167. case $ac_file in
  4168. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4169. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4170. break;;
  4171. * ) break;;
  4172. esac
  4173. done
  4174. else $as_nop
  4175. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4176. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4177. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4178. See \`config.log' for more details" "$LINENO" 5; }
  4179. fi
  4180. rm -f conftest conftest$ac_cv_exeext
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4182. printf "%s\n" "$ac_cv_exeext" >&6; }
  4183. rm -f conftest.$ac_ext
  4184. EXEEXT=$ac_cv_exeext
  4185. ac_exeext=$EXEEXT
  4186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4187. /* end confdefs.h. */
  4188. #include <stdio.h>
  4189. int
  4190. main (void)
  4191. {
  4192. FILE *f = fopen ("conftest.out", "w");
  4193. return ferror (f) || fclose (f) != 0;
  4194. ;
  4195. return 0;
  4196. }
  4197. _ACEOF
  4198. ac_clean_files="$ac_clean_files conftest.out"
  4199. # Check that the compiler produces executables we can run. If not, either
  4200. # the compiler is broken, or we cross compile.
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4202. printf %s "checking whether we are cross compiling... " >&6; }
  4203. if test "$cross_compiling" != yes; then
  4204. { { ac_try="$ac_link"
  4205. case "(($ac_try" in
  4206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4207. *) ac_try_echo=$ac_try;;
  4208. esac
  4209. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4210. printf "%s\n" "$ac_try_echo"; } >&5
  4211. (eval "$ac_link") 2>&5
  4212. ac_status=$?
  4213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4214. test $ac_status = 0; }
  4215. if { ac_try='./conftest$ac_cv_exeext'
  4216. { { case "(($ac_try" in
  4217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4218. *) ac_try_echo=$ac_try;;
  4219. esac
  4220. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4221. printf "%s\n" "$ac_try_echo"; } >&5
  4222. (eval "$ac_try") 2>&5
  4223. ac_status=$?
  4224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4225. test $ac_status = 0; }; }; then
  4226. cross_compiling=no
  4227. else
  4228. if test "$cross_compiling" = maybe; then
  4229. cross_compiling=yes
  4230. else
  4231. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4232. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4233. as_fn_error 77 "cannot run C compiled programs.
  4234. If you meant to cross compile, use \`--host'.
  4235. See \`config.log' for more details" "$LINENO" 5; }
  4236. fi
  4237. fi
  4238. fi
  4239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4240. printf "%s\n" "$cross_compiling" >&6; }
  4241. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4242. ac_clean_files=$ac_clean_files_save
  4243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4244. printf %s "checking for suffix of object files... " >&6; }
  4245. if test ${ac_cv_objext+y}
  4246. then :
  4247. printf %s "(cached) " >&6
  4248. else $as_nop
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. int
  4252. main (void)
  4253. {
  4254. ;
  4255. return 0;
  4256. }
  4257. _ACEOF
  4258. rm -f conftest.o conftest.obj
  4259. if { { ac_try="$ac_compile"
  4260. case "(($ac_try" in
  4261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4262. *) ac_try_echo=$ac_try;;
  4263. esac
  4264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4265. printf "%s\n" "$ac_try_echo"; } >&5
  4266. (eval "$ac_compile") 2>&5
  4267. ac_status=$?
  4268. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4269. test $ac_status = 0; }
  4270. then :
  4271. for ac_file in conftest.o conftest.obj conftest.*; do
  4272. test -f "$ac_file" || continue;
  4273. case $ac_file in
  4274. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4275. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4276. break;;
  4277. esac
  4278. done
  4279. else $as_nop
  4280. printf "%s\n" "$as_me: failed program was:" >&5
  4281. sed 's/^/| /' conftest.$ac_ext >&5
  4282. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4283. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4284. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4285. See \`config.log' for more details" "$LINENO" 5; }
  4286. fi
  4287. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4288. fi
  4289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4290. printf "%s\n" "$ac_cv_objext" >&6; }
  4291. OBJEXT=$ac_cv_objext
  4292. ac_objext=$OBJEXT
  4293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4294. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4295. if test ${ac_cv_c_compiler_gnu+y}
  4296. then :
  4297. printf %s "(cached) " >&6
  4298. else $as_nop
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. int
  4302. main (void)
  4303. {
  4304. #ifndef __GNUC__
  4305. choke me
  4306. #endif
  4307. ;
  4308. return 0;
  4309. }
  4310. _ACEOF
  4311. if ac_fn_c_try_compile "$LINENO"
  4312. then :
  4313. ac_compiler_gnu=yes
  4314. else $as_nop
  4315. ac_compiler_gnu=no
  4316. fi
  4317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4318. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4319. fi
  4320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4321. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4323. if test $ac_compiler_gnu = yes; then
  4324. GCC=yes
  4325. else
  4326. GCC=
  4327. fi
  4328. ac_test_CFLAGS=${CFLAGS+y}
  4329. ac_save_CFLAGS=$CFLAGS
  4330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4331. printf %s "checking whether $CC accepts -g... " >&6; }
  4332. if test ${ac_cv_prog_cc_g+y}
  4333. then :
  4334. printf %s "(cached) " >&6
  4335. else $as_nop
  4336. ac_save_c_werror_flag=$ac_c_werror_flag
  4337. ac_c_werror_flag=yes
  4338. ac_cv_prog_cc_g=no
  4339. CFLAGS="-g"
  4340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4341. /* end confdefs.h. */
  4342. int
  4343. main (void)
  4344. {
  4345. ;
  4346. return 0;
  4347. }
  4348. _ACEOF
  4349. if ac_fn_c_try_compile "$LINENO"
  4350. then :
  4351. ac_cv_prog_cc_g=yes
  4352. else $as_nop
  4353. CFLAGS=""
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int
  4357. main (void)
  4358. {
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. if ac_fn_c_try_compile "$LINENO"
  4364. then :
  4365. else $as_nop
  4366. ac_c_werror_flag=$ac_save_c_werror_flag
  4367. CFLAGS="-g"
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. int
  4371. main (void)
  4372. {
  4373. ;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. if ac_fn_c_try_compile "$LINENO"
  4378. then :
  4379. ac_cv_prog_cc_g=yes
  4380. fi
  4381. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4382. fi
  4383. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4386. ac_c_werror_flag=$ac_save_c_werror_flag
  4387. fi
  4388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4389. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4390. if test $ac_test_CFLAGS; then
  4391. CFLAGS=$ac_save_CFLAGS
  4392. elif test $ac_cv_prog_cc_g = yes; then
  4393. if test "$GCC" = yes; then
  4394. CFLAGS="-g -O2"
  4395. else
  4396. CFLAGS="-g"
  4397. fi
  4398. else
  4399. if test "$GCC" = yes; then
  4400. CFLAGS="-O2"
  4401. else
  4402. CFLAGS=
  4403. fi
  4404. fi
  4405. ac_prog_cc_stdc=no
  4406. if test x$ac_prog_cc_stdc = xno
  4407. then :
  4408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4409. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4410. if test ${ac_cv_prog_cc_c11+y}
  4411. then :
  4412. printf %s "(cached) " >&6
  4413. else $as_nop
  4414. ac_cv_prog_cc_c11=no
  4415. ac_save_CC=$CC
  4416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4417. /* end confdefs.h. */
  4418. $ac_c_conftest_c11_program
  4419. _ACEOF
  4420. for ac_arg in '' -std=gnu11
  4421. do
  4422. CC="$ac_save_CC $ac_arg"
  4423. if ac_fn_c_try_compile "$LINENO"
  4424. then :
  4425. ac_cv_prog_cc_c11=$ac_arg
  4426. fi
  4427. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4428. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4429. done
  4430. rm -f conftest.$ac_ext
  4431. CC=$ac_save_CC
  4432. fi
  4433. if test "x$ac_cv_prog_cc_c11" = xno
  4434. then :
  4435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4436. printf "%s\n" "unsupported" >&6; }
  4437. else $as_nop
  4438. if test "x$ac_cv_prog_cc_c11" = x
  4439. then :
  4440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4441. printf "%s\n" "none needed" >&6; }
  4442. else $as_nop
  4443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4444. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4445. CC="$CC $ac_cv_prog_cc_c11"
  4446. fi
  4447. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4448. ac_prog_cc_stdc=c11
  4449. fi
  4450. fi
  4451. if test x$ac_prog_cc_stdc = xno
  4452. then :
  4453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4454. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4455. if test ${ac_cv_prog_cc_c99+y}
  4456. then :
  4457. printf %s "(cached) " >&6
  4458. else $as_nop
  4459. ac_cv_prog_cc_c99=no
  4460. ac_save_CC=$CC
  4461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4462. /* end confdefs.h. */
  4463. $ac_c_conftest_c99_program
  4464. _ACEOF
  4465. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4466. do
  4467. CC="$ac_save_CC $ac_arg"
  4468. if ac_fn_c_try_compile "$LINENO"
  4469. then :
  4470. ac_cv_prog_cc_c99=$ac_arg
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4473. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4474. done
  4475. rm -f conftest.$ac_ext
  4476. CC=$ac_save_CC
  4477. fi
  4478. if test "x$ac_cv_prog_cc_c99" = xno
  4479. then :
  4480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4481. printf "%s\n" "unsupported" >&6; }
  4482. else $as_nop
  4483. if test "x$ac_cv_prog_cc_c99" = x
  4484. then :
  4485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4486. printf "%s\n" "none needed" >&6; }
  4487. else $as_nop
  4488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4489. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4490. CC="$CC $ac_cv_prog_cc_c99"
  4491. fi
  4492. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4493. ac_prog_cc_stdc=c99
  4494. fi
  4495. fi
  4496. if test x$ac_prog_cc_stdc = xno
  4497. then :
  4498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4499. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4500. if test ${ac_cv_prog_cc_c89+y}
  4501. then :
  4502. printf %s "(cached) " >&6
  4503. else $as_nop
  4504. ac_cv_prog_cc_c89=no
  4505. ac_save_CC=$CC
  4506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4507. /* end confdefs.h. */
  4508. $ac_c_conftest_c89_program
  4509. _ACEOF
  4510. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4511. do
  4512. CC="$ac_save_CC $ac_arg"
  4513. if ac_fn_c_try_compile "$LINENO"
  4514. then :
  4515. ac_cv_prog_cc_c89=$ac_arg
  4516. fi
  4517. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4518. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4519. done
  4520. rm -f conftest.$ac_ext
  4521. CC=$ac_save_CC
  4522. fi
  4523. if test "x$ac_cv_prog_cc_c89" = xno
  4524. then :
  4525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4526. printf "%s\n" "unsupported" >&6; }
  4527. else $as_nop
  4528. if test "x$ac_cv_prog_cc_c89" = x
  4529. then :
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4531. printf "%s\n" "none needed" >&6; }
  4532. else $as_nop
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4534. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4535. CC="$CC $ac_cv_prog_cc_c89"
  4536. fi
  4537. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4538. ac_prog_cc_stdc=c89
  4539. fi
  4540. fi
  4541. ac_ext=c
  4542. ac_cpp='$CPP $CPPFLAGS'
  4543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4546. ac_ext=c
  4547. ac_cpp='$CPP $CPPFLAGS'
  4548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4552. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4553. if test ${am_cv_prog_cc_c_o+y}
  4554. then :
  4555. printf %s "(cached) " >&6
  4556. else $as_nop
  4557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4558. /* end confdefs.h. */
  4559. int
  4560. main (void)
  4561. {
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. # Make sure it works both with $CC and with simple cc.
  4567. # Following AC_PROG_CC_C_O, we do the test twice because some
  4568. # compilers refuse to overwrite an existing .o file with -o,
  4569. # though they will create one.
  4570. am_cv_prog_cc_c_o=yes
  4571. for am_i in 1 2; do
  4572. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4573. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } \
  4577. && test -f conftest2.$ac_objext; then
  4578. : OK
  4579. else
  4580. am_cv_prog_cc_c_o=no
  4581. break
  4582. fi
  4583. done
  4584. rm -f core conftest*
  4585. unset am_i
  4586. fi
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4588. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4589. if test "$am_cv_prog_cc_c_o" != yes; then
  4590. # Losing compiler, so override with the script.
  4591. # FIXME: It is wrong to rewrite CC.
  4592. # But if we don't then we get into trouble of one sort or another.
  4593. # A longer-term fix would be to have automake use am__CC in this case,
  4594. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4595. CC="$am_aux_dir/compile $CC"
  4596. fi
  4597. ac_ext=c
  4598. ac_cpp='$CPP $CPPFLAGS'
  4599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4602. depcc="$CC" am_compiler_list=
  4603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4604. printf %s "checking dependency style of $depcc... " >&6; }
  4605. if test ${am_cv_CC_dependencies_compiler_type+y}
  4606. then :
  4607. printf %s "(cached) " >&6
  4608. else $as_nop
  4609. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4610. # We make a subdir and do the tests there. Otherwise we can end up
  4611. # making bogus files that we don't know about and never remove. For
  4612. # instance it was reported that on HP-UX the gcc test will end up
  4613. # making a dummy file named 'D' -- because '-MD' means "put the output
  4614. # in D".
  4615. rm -rf conftest.dir
  4616. mkdir conftest.dir
  4617. # Copy depcomp to subdir because otherwise we won't find it if we're
  4618. # using a relative directory.
  4619. cp "$am_depcomp" conftest.dir
  4620. cd conftest.dir
  4621. # We will build objects and dependencies in a subdirectory because
  4622. # it helps to detect inapplicable dependency modes. For instance
  4623. # both Tru64's cc and ICC support -MD to output dependencies as a
  4624. # side effect of compilation, but ICC will put the dependencies in
  4625. # the current directory while Tru64 will put them in the object
  4626. # directory.
  4627. mkdir sub
  4628. am_cv_CC_dependencies_compiler_type=none
  4629. if test "$am_compiler_list" = ""; then
  4630. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4631. fi
  4632. am__universal=false
  4633. case " $depcc " in #(
  4634. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4635. esac
  4636. for depmode in $am_compiler_list; do
  4637. # Setup a source with many dependencies, because some compilers
  4638. # like to wrap large dependency lists on column 80 (with \), and
  4639. # we should not choose a depcomp mode which is confused by this.
  4640. #
  4641. # We need to recreate these files for each test, as the compiler may
  4642. # overwrite some of them when testing with obscure command lines.
  4643. # This happens at least with the AIX C compiler.
  4644. : > sub/conftest.c
  4645. for i in 1 2 3 4 5 6; do
  4646. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4647. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4648. # Solaris 10 /bin/sh.
  4649. echo '/* dummy */' > sub/conftst$i.h
  4650. done
  4651. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4652. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4653. # mode. It turns out that the SunPro C++ compiler does not properly
  4654. # handle '-M -o', and we need to detect this. Also, some Intel
  4655. # versions had trouble with output in subdirs.
  4656. am__obj=sub/conftest.${OBJEXT-o}
  4657. am__minus_obj="-o $am__obj"
  4658. case $depmode in
  4659. gcc)
  4660. # This depmode causes a compiler race in universal mode.
  4661. test "$am__universal" = false || continue
  4662. ;;
  4663. nosideeffect)
  4664. # After this tag, mechanisms are not by side-effect, so they'll
  4665. # only be used when explicitly requested.
  4666. if test "x$enable_dependency_tracking" = xyes; then
  4667. continue
  4668. else
  4669. break
  4670. fi
  4671. ;;
  4672. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4673. # This compiler won't grok '-c -o', but also, the minuso test has
  4674. # not run yet. These depmodes are late enough in the game, and
  4675. # so weak that their functioning should not be impacted.
  4676. am__obj=conftest.${OBJEXT-o}
  4677. am__minus_obj=
  4678. ;;
  4679. none) break ;;
  4680. esac
  4681. if depmode=$depmode \
  4682. source=sub/conftest.c object=$am__obj \
  4683. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4684. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4685. >/dev/null 2>conftest.err &&
  4686. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4687. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4688. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4689. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4690. # icc doesn't choke on unknown options, it will just issue warnings
  4691. # or remarks (even with -Werror). So we grep stderr for any message
  4692. # that says an option was ignored or not supported.
  4693. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4694. # icc: Command line warning: ignoring option '-M'; no argument required
  4695. # The diagnosis changed in icc 8.0:
  4696. # icc: Command line remark: option '-MP' not supported
  4697. if (grep 'ignoring option' conftest.err ||
  4698. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4699. am_cv_CC_dependencies_compiler_type=$depmode
  4700. break
  4701. fi
  4702. fi
  4703. done
  4704. cd ..
  4705. rm -rf conftest.dir
  4706. else
  4707. am_cv_CC_dependencies_compiler_type=none
  4708. fi
  4709. fi
  4710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4711. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4712. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4713. if
  4714. test "x$enable_dependency_tracking" != xno \
  4715. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4716. am__fastdepCC_TRUE=
  4717. am__fastdepCC_FALSE='#'
  4718. else
  4719. am__fastdepCC_TRUE='#'
  4720. am__fastdepCC_FALSE=
  4721. fi
  4722. if test -n "$ac_tool_prefix"; then
  4723. for ac_prog in ar lib "link -lib"
  4724. do
  4725. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4726. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. printf %s "checking for $ac_word... " >&6; }
  4729. if test ${ac_cv_prog_AR+y}
  4730. then :
  4731. printf %s "(cached) " >&6
  4732. else $as_nop
  4733. if test -n "$AR"; then
  4734. ac_cv_prog_AR="$AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. case $as_dir in #(((
  4741. '') as_dir=./ ;;
  4742. */) ;;
  4743. *) as_dir=$as_dir/ ;;
  4744. esac
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4747. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4749. break 2
  4750. fi
  4751. done
  4752. done
  4753. IFS=$as_save_IFS
  4754. fi
  4755. fi
  4756. AR=$ac_cv_prog_AR
  4757. if test -n "$AR"; then
  4758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4759. printf "%s\n" "$AR" >&6; }
  4760. else
  4761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4762. printf "%s\n" "no" >&6; }
  4763. fi
  4764. test -n "$AR" && break
  4765. done
  4766. fi
  4767. if test -z "$AR"; then
  4768. ac_ct_AR=$AR
  4769. for ac_prog in ar lib "link -lib"
  4770. do
  4771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4772. set dummy $ac_prog; ac_word=$2
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. printf %s "checking for $ac_word... " >&6; }
  4775. if test ${ac_cv_prog_ac_ct_AR+y}
  4776. then :
  4777. printf %s "(cached) " >&6
  4778. else $as_nop
  4779. if test -n "$ac_ct_AR"; then
  4780. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4781. else
  4782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4783. for as_dir in $PATH
  4784. do
  4785. IFS=$as_save_IFS
  4786. case $as_dir in #(((
  4787. '') as_dir=./ ;;
  4788. */) ;;
  4789. *) as_dir=$as_dir/ ;;
  4790. esac
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4793. ac_cv_prog_ac_ct_AR="$ac_prog"
  4794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4803. if test -n "$ac_ct_AR"; then
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4805. printf "%s\n" "$ac_ct_AR" >&6; }
  4806. else
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4808. printf "%s\n" "no" >&6; }
  4809. fi
  4810. test -n "$ac_ct_AR" && break
  4811. done
  4812. if test "x$ac_ct_AR" = x; then
  4813. AR="false"
  4814. else
  4815. case $cross_compiling:$ac_tool_warned in
  4816. yes:)
  4817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4818. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4819. ac_tool_warned=yes ;;
  4820. esac
  4821. AR=$ac_ct_AR
  4822. fi
  4823. fi
  4824. : ${AR=ar}
  4825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4826. printf %s "checking the archiver ($AR) interface... " >&6; }
  4827. if test ${am_cv_ar_interface+y}
  4828. then :
  4829. printf %s "(cached) " >&6
  4830. else $as_nop
  4831. ac_ext=c
  4832. ac_cpp='$CPP $CPPFLAGS'
  4833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4836. am_cv_ar_interface=ar
  4837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end confdefs.h. */
  4839. int some_variable = 0;
  4840. _ACEOF
  4841. if ac_fn_c_try_compile "$LINENO"
  4842. then :
  4843. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4844. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4845. (eval $am_ar_try) 2>&5
  4846. ac_status=$?
  4847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4848. test $ac_status = 0; }
  4849. if test "$ac_status" -eq 0; then
  4850. am_cv_ar_interface=ar
  4851. else
  4852. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4853. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4854. (eval $am_ar_try) 2>&5
  4855. ac_status=$?
  4856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4857. test $ac_status = 0; }
  4858. if test "$ac_status" -eq 0; then
  4859. am_cv_ar_interface=lib
  4860. else
  4861. am_cv_ar_interface=unknown
  4862. fi
  4863. fi
  4864. rm -f conftest.lib libconftest.a
  4865. fi
  4866. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4867. ac_ext=c
  4868. ac_cpp='$CPP $CPPFLAGS'
  4869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4872. fi
  4873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4874. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4875. case $am_cv_ar_interface in
  4876. ar)
  4877. ;;
  4878. lib)
  4879. # Microsoft lib, so override with the ar-lib wrapper script.
  4880. # FIXME: It is wrong to rewrite AR.
  4881. # But if we don't then we get into trouble of one sort or another.
  4882. # A longer-term fix would be to have automake use am__AR in this case,
  4883. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4884. # similar.
  4885. AR="$am_aux_dir/ar-lib $AR"
  4886. ;;
  4887. unknown)
  4888. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4889. ;;
  4890. esac
  4891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4892. printf %s "checking whether ln -s works... " >&6; }
  4893. LN_S=$as_ln_s
  4894. if test "$LN_S" = "ln -s"; then
  4895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4896. printf "%s\n" "yes" >&6; }
  4897. else
  4898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4899. printf "%s\n" "no, using $LN_S" >&6; }
  4900. fi
  4901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4902. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4903. set x ${MAKE-make}
  4904. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4905. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4906. then :
  4907. printf %s "(cached) " >&6
  4908. else $as_nop
  4909. cat >conftest.make <<\_ACEOF
  4910. SHELL = /bin/sh
  4911. all:
  4912. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4913. _ACEOF
  4914. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4915. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4916. *@@@%%%=?*=@@@%%%*)
  4917. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4918. *)
  4919. eval ac_cv_prog_make_${ac_make}_set=no;;
  4920. esac
  4921. rm -f conftest.make
  4922. fi
  4923. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4925. printf "%s\n" "yes" >&6; }
  4926. SET_MAKE=
  4927. else
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4929. printf "%s\n" "no" >&6; }
  4930. SET_MAKE="MAKE=${MAKE-make}"
  4931. fi
  4932. case `pwd` in
  4933. *\ * | *\ *)
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4935. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4936. esac
  4937. macro_version='2.4.7'
  4938. macro_revision='2.4.7'
  4939. ltmain=$ac_aux_dir/ltmain.sh
  4940. # Backslashify metacharacters that are still active within
  4941. # double-quoted strings.
  4942. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4943. # Same as above, but do not quote variable references.
  4944. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4945. # Sed substitution to delay expansion of an escaped shell variable in a
  4946. # double_quote_subst'ed string.
  4947. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4948. # Sed substitution to delay expansion of an escaped single quote.
  4949. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4950. # Sed substitution to avoid accidental globbing in evaled expressions
  4951. no_glob_subst='s/\*/\\\*/g'
  4952. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4953. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4954. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4956. printf %s "checking how to print strings... " >&6; }
  4957. # Test print first, because it will be a builtin if present.
  4958. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4959. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4960. ECHO='print -r --'
  4961. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4962. ECHO='printf %s\n'
  4963. else
  4964. # Use this function as a fallback that always works.
  4965. func_fallback_echo ()
  4966. {
  4967. eval 'cat <<_LTECHO_EOF
  4968. $1
  4969. _LTECHO_EOF'
  4970. }
  4971. ECHO='func_fallback_echo'
  4972. fi
  4973. # func_echo_all arg...
  4974. # Invoke $ECHO with all args, space-separated.
  4975. func_echo_all ()
  4976. {
  4977. $ECHO ""
  4978. }
  4979. case $ECHO in
  4980. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4981. printf "%s\n" "printf" >&6; } ;;
  4982. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4983. printf "%s\n" "print -r" >&6; } ;;
  4984. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4985. printf "%s\n" "cat" >&6; } ;;
  4986. esac
  4987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4988. printf %s "checking for a sed that does not truncate output... " >&6; }
  4989. if test ${ac_cv_path_SED+y}
  4990. then :
  4991. printf %s "(cached) " >&6
  4992. else $as_nop
  4993. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4994. for ac_i in 1 2 3 4 5 6 7; do
  4995. ac_script="$ac_script$as_nl$ac_script"
  4996. done
  4997. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4998. { ac_script=; unset ac_script;}
  4999. if test -z "$SED"; then
  5000. ac_path_SED_found=false
  5001. # Loop through the user's path and test for each of PROGNAME-LIST
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. case $as_dir in #(((
  5007. '') as_dir=./ ;;
  5008. */) ;;
  5009. *) as_dir=$as_dir/ ;;
  5010. esac
  5011. for ac_prog in sed gsed
  5012. do
  5013. for ac_exec_ext in '' $ac_executable_extensions; do
  5014. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5015. as_fn_executable_p "$ac_path_SED" || continue
  5016. # Check for GNU ac_path_SED and select it if it is found.
  5017. # Check for GNU $ac_path_SED
  5018. case `"$ac_path_SED" --version 2>&1` in
  5019. *GNU*)
  5020. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5021. *)
  5022. ac_count=0
  5023. printf %s 0123456789 >"conftest.in"
  5024. while :
  5025. do
  5026. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5027. mv "conftest.tmp" "conftest.in"
  5028. cp "conftest.in" "conftest.nl"
  5029. printf "%s\n" '' >> "conftest.nl"
  5030. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5031. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5032. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5033. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5034. # Best one so far, save it but keep looking for a better one
  5035. ac_cv_path_SED="$ac_path_SED"
  5036. ac_path_SED_max=$ac_count
  5037. fi
  5038. # 10*(2^10) chars as input seems more than enough
  5039. test $ac_count -gt 10 && break
  5040. done
  5041. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5042. esac
  5043. $ac_path_SED_found && break 3
  5044. done
  5045. done
  5046. done
  5047. IFS=$as_save_IFS
  5048. if test -z "$ac_cv_path_SED"; then
  5049. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5050. fi
  5051. else
  5052. ac_cv_path_SED=$SED
  5053. fi
  5054. fi
  5055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5056. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5057. SED="$ac_cv_path_SED"
  5058. rm -f conftest.sed
  5059. test -z "$SED" && SED=sed
  5060. Xsed="$SED -e 1s/^X//"
  5061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5062. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5063. if test ${ac_cv_path_GREP+y}
  5064. then :
  5065. printf %s "(cached) " >&6
  5066. else $as_nop
  5067. if test -z "$GREP"; then
  5068. ac_path_GREP_found=false
  5069. # Loop through the user's path and test for each of PROGNAME-LIST
  5070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5071. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5072. do
  5073. IFS=$as_save_IFS
  5074. case $as_dir in #(((
  5075. '') as_dir=./ ;;
  5076. */) ;;
  5077. *) as_dir=$as_dir/ ;;
  5078. esac
  5079. for ac_prog in grep ggrep
  5080. do
  5081. for ac_exec_ext in '' $ac_executable_extensions; do
  5082. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5083. as_fn_executable_p "$ac_path_GREP" || continue
  5084. # Check for GNU ac_path_GREP and select it if it is found.
  5085. # Check for GNU $ac_path_GREP
  5086. case `"$ac_path_GREP" --version 2>&1` in
  5087. *GNU*)
  5088. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5089. *)
  5090. ac_count=0
  5091. printf %s 0123456789 >"conftest.in"
  5092. while :
  5093. do
  5094. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5095. mv "conftest.tmp" "conftest.in"
  5096. cp "conftest.in" "conftest.nl"
  5097. printf "%s\n" 'GREP' >> "conftest.nl"
  5098. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5099. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5100. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5101. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5102. # Best one so far, save it but keep looking for a better one
  5103. ac_cv_path_GREP="$ac_path_GREP"
  5104. ac_path_GREP_max=$ac_count
  5105. fi
  5106. # 10*(2^10) chars as input seems more than enough
  5107. test $ac_count -gt 10 && break
  5108. done
  5109. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5110. esac
  5111. $ac_path_GREP_found && break 3
  5112. done
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. if test -z "$ac_cv_path_GREP"; then
  5117. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5118. fi
  5119. else
  5120. ac_cv_path_GREP=$GREP
  5121. fi
  5122. fi
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5124. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5125. GREP="$ac_cv_path_GREP"
  5126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5127. printf %s "checking for egrep... " >&6; }
  5128. if test ${ac_cv_path_EGREP+y}
  5129. then :
  5130. printf %s "(cached) " >&6
  5131. else $as_nop
  5132. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5133. then ac_cv_path_EGREP="$GREP -E"
  5134. else
  5135. if test -z "$EGREP"; then
  5136. ac_path_EGREP_found=false
  5137. # Loop through the user's path and test for each of PROGNAME-LIST
  5138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5139. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5140. do
  5141. IFS=$as_save_IFS
  5142. case $as_dir in #(((
  5143. '') as_dir=./ ;;
  5144. */) ;;
  5145. *) as_dir=$as_dir/ ;;
  5146. esac
  5147. for ac_prog in egrep
  5148. do
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5151. as_fn_executable_p "$ac_path_EGREP" || continue
  5152. # Check for GNU ac_path_EGREP and select it if it is found.
  5153. # Check for GNU $ac_path_EGREP
  5154. case `"$ac_path_EGREP" --version 2>&1` in
  5155. *GNU*)
  5156. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5157. *)
  5158. ac_count=0
  5159. printf %s 0123456789 >"conftest.in"
  5160. while :
  5161. do
  5162. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5163. mv "conftest.tmp" "conftest.in"
  5164. cp "conftest.in" "conftest.nl"
  5165. printf "%s\n" 'EGREP' >> "conftest.nl"
  5166. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5167. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5168. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5169. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5170. # Best one so far, save it but keep looking for a better one
  5171. ac_cv_path_EGREP="$ac_path_EGREP"
  5172. ac_path_EGREP_max=$ac_count
  5173. fi
  5174. # 10*(2^10) chars as input seems more than enough
  5175. test $ac_count -gt 10 && break
  5176. done
  5177. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5178. esac
  5179. $ac_path_EGREP_found && break 3
  5180. done
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. if test -z "$ac_cv_path_EGREP"; then
  5185. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5186. fi
  5187. else
  5188. ac_cv_path_EGREP=$EGREP
  5189. fi
  5190. fi
  5191. fi
  5192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5193. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5194. EGREP="$ac_cv_path_EGREP"
  5195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5196. printf %s "checking for fgrep... " >&6; }
  5197. if test ${ac_cv_path_FGREP+y}
  5198. then :
  5199. printf %s "(cached) " >&6
  5200. else $as_nop
  5201. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5202. then ac_cv_path_FGREP="$GREP -F"
  5203. else
  5204. if test -z "$FGREP"; then
  5205. ac_path_FGREP_found=false
  5206. # Loop through the user's path and test for each of PROGNAME-LIST
  5207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5208. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5209. do
  5210. IFS=$as_save_IFS
  5211. case $as_dir in #(((
  5212. '') as_dir=./ ;;
  5213. */) ;;
  5214. *) as_dir=$as_dir/ ;;
  5215. esac
  5216. for ac_prog in fgrep
  5217. do
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5220. as_fn_executable_p "$ac_path_FGREP" || continue
  5221. # Check for GNU ac_path_FGREP and select it if it is found.
  5222. # Check for GNU $ac_path_FGREP
  5223. case `"$ac_path_FGREP" --version 2>&1` in
  5224. *GNU*)
  5225. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5226. *)
  5227. ac_count=0
  5228. printf %s 0123456789 >"conftest.in"
  5229. while :
  5230. do
  5231. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5232. mv "conftest.tmp" "conftest.in"
  5233. cp "conftest.in" "conftest.nl"
  5234. printf "%s\n" 'FGREP' >> "conftest.nl"
  5235. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5236. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5237. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5238. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5239. # Best one so far, save it but keep looking for a better one
  5240. ac_cv_path_FGREP="$ac_path_FGREP"
  5241. ac_path_FGREP_max=$ac_count
  5242. fi
  5243. # 10*(2^10) chars as input seems more than enough
  5244. test $ac_count -gt 10 && break
  5245. done
  5246. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5247. esac
  5248. $ac_path_FGREP_found && break 3
  5249. done
  5250. done
  5251. done
  5252. IFS=$as_save_IFS
  5253. if test -z "$ac_cv_path_FGREP"; then
  5254. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5255. fi
  5256. else
  5257. ac_cv_path_FGREP=$FGREP
  5258. fi
  5259. fi
  5260. fi
  5261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5262. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5263. FGREP="$ac_cv_path_FGREP"
  5264. test -z "$GREP" && GREP=grep
  5265. # Check whether --with-gnu-ld was given.
  5266. if test ${with_gnu_ld+y}
  5267. then :
  5268. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5269. else $as_nop
  5270. with_gnu_ld=no
  5271. fi
  5272. ac_prog=ld
  5273. if test yes = "$GCC"; then
  5274. # Check if gcc -print-prog-name=ld gives a path.
  5275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5276. printf %s "checking for ld used by $CC... " >&6; }
  5277. case $host in
  5278. *-*-mingw*)
  5279. # gcc leaves a trailing carriage return, which upsets mingw
  5280. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5281. *)
  5282. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5283. esac
  5284. case $ac_prog in
  5285. # Accept absolute paths.
  5286. [\\/]* | ?:[\\/]*)
  5287. re_direlt='/[^/][^/]*/\.\./'
  5288. # Canonicalize the pathname of ld
  5289. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5290. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5291. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5292. done
  5293. test -z "$LD" && LD=$ac_prog
  5294. ;;
  5295. "")
  5296. # If it fails, then pretend we aren't using GCC.
  5297. ac_prog=ld
  5298. ;;
  5299. *)
  5300. # If it is relative, then search for the first ld in PATH.
  5301. with_gnu_ld=unknown
  5302. ;;
  5303. esac
  5304. elif test yes = "$with_gnu_ld"; then
  5305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5306. printf %s "checking for GNU ld... " >&6; }
  5307. else
  5308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5309. printf %s "checking for non-GNU ld... " >&6; }
  5310. fi
  5311. if test ${lt_cv_path_LD+y}
  5312. then :
  5313. printf %s "(cached) " >&6
  5314. else $as_nop
  5315. if test -z "$LD"; then
  5316. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5317. for ac_dir in $PATH; do
  5318. IFS=$lt_save_ifs
  5319. test -z "$ac_dir" && ac_dir=.
  5320. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5321. lt_cv_path_LD=$ac_dir/$ac_prog
  5322. # Check to see if the program is GNU ld. I'd rather use --version,
  5323. # but apparently some variants of GNU ld only accept -v.
  5324. # Break only if it was the GNU/non-GNU ld that we prefer.
  5325. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5326. *GNU* | *'with BFD'*)
  5327. test no != "$with_gnu_ld" && break
  5328. ;;
  5329. *)
  5330. test yes != "$with_gnu_ld" && break
  5331. ;;
  5332. esac
  5333. fi
  5334. done
  5335. IFS=$lt_save_ifs
  5336. else
  5337. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5338. fi
  5339. fi
  5340. LD=$lt_cv_path_LD
  5341. if test -n "$LD"; then
  5342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5343. printf "%s\n" "$LD" >&6; }
  5344. else
  5345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5346. printf "%s\n" "no" >&6; }
  5347. fi
  5348. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5350. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5351. if test ${lt_cv_prog_gnu_ld+y}
  5352. then :
  5353. printf %s "(cached) " >&6
  5354. else $as_nop
  5355. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5356. case `$LD -v 2>&1 </dev/null` in
  5357. *GNU* | *'with BFD'*)
  5358. lt_cv_prog_gnu_ld=yes
  5359. ;;
  5360. *)
  5361. lt_cv_prog_gnu_ld=no
  5362. ;;
  5363. esac
  5364. fi
  5365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5366. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5367. with_gnu_ld=$lt_cv_prog_gnu_ld
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5369. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5370. if test ${lt_cv_path_NM+y}
  5371. then :
  5372. printf %s "(cached) " >&6
  5373. else $as_nop
  5374. if test -n "$NM"; then
  5375. # Let the user override the test.
  5376. lt_cv_path_NM=$NM
  5377. else
  5378. lt_nm_to_check=${ac_tool_prefix}nm
  5379. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5380. lt_nm_to_check="$lt_nm_to_check nm"
  5381. fi
  5382. for lt_tmp_nm in $lt_nm_to_check; do
  5383. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5384. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5385. IFS=$lt_save_ifs
  5386. test -z "$ac_dir" && ac_dir=.
  5387. tmp_nm=$ac_dir/$lt_tmp_nm
  5388. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5389. # Check to see if the nm accepts a BSD-compat flag.
  5390. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5391. # nm: unknown option "B" ignored
  5392. # Tru64's nm complains that /dev/null is an invalid object file
  5393. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5394. case $build_os in
  5395. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5396. *) lt_bad_file=/dev/null ;;
  5397. esac
  5398. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5399. *$lt_bad_file* | *'Invalid file or object type'*)
  5400. lt_cv_path_NM="$tmp_nm -B"
  5401. break 2
  5402. ;;
  5403. *)
  5404. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5405. */dev/null*)
  5406. lt_cv_path_NM="$tmp_nm -p"
  5407. break 2
  5408. ;;
  5409. *)
  5410. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5411. continue # so that we can try to find one that supports BSD flags
  5412. ;;
  5413. esac
  5414. ;;
  5415. esac
  5416. fi
  5417. done
  5418. IFS=$lt_save_ifs
  5419. done
  5420. : ${lt_cv_path_NM=no}
  5421. fi
  5422. fi
  5423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5424. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5425. if test no != "$lt_cv_path_NM"; then
  5426. NM=$lt_cv_path_NM
  5427. else
  5428. # Didn't find any BSD compatible name lister, look for dumpbin.
  5429. if test -n "$DUMPBIN"; then :
  5430. # Let the user override the test.
  5431. else
  5432. if test -n "$ac_tool_prefix"; then
  5433. for ac_prog in dumpbin "link -dump"
  5434. do
  5435. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5436. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5438. printf %s "checking for $ac_word... " >&6; }
  5439. if test ${ac_cv_prog_DUMPBIN+y}
  5440. then :
  5441. printf %s "(cached) " >&6
  5442. else $as_nop
  5443. if test -n "$DUMPBIN"; then
  5444. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. case $as_dir in #(((
  5451. '') as_dir=./ ;;
  5452. */) ;;
  5453. *) as_dir=$as_dir/ ;;
  5454. esac
  5455. for ac_exec_ext in '' $ac_executable_extensions; do
  5456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5457. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5459. break 2
  5460. fi
  5461. done
  5462. done
  5463. IFS=$as_save_IFS
  5464. fi
  5465. fi
  5466. DUMPBIN=$ac_cv_prog_DUMPBIN
  5467. if test -n "$DUMPBIN"; then
  5468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5469. printf "%s\n" "$DUMPBIN" >&6; }
  5470. else
  5471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5472. printf "%s\n" "no" >&6; }
  5473. fi
  5474. test -n "$DUMPBIN" && break
  5475. done
  5476. fi
  5477. if test -z "$DUMPBIN"; then
  5478. ac_ct_DUMPBIN=$DUMPBIN
  5479. for ac_prog in dumpbin "link -dump"
  5480. do
  5481. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5482. set dummy $ac_prog; ac_word=$2
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5484. printf %s "checking for $ac_word... " >&6; }
  5485. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5486. then :
  5487. printf %s "(cached) " >&6
  5488. else $as_nop
  5489. if test -n "$ac_ct_DUMPBIN"; then
  5490. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5491. else
  5492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5493. for as_dir in $PATH
  5494. do
  5495. IFS=$as_save_IFS
  5496. case $as_dir in #(((
  5497. '') as_dir=./ ;;
  5498. */) ;;
  5499. *) as_dir=$as_dir/ ;;
  5500. esac
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5503. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5513. if test -n "$ac_ct_DUMPBIN"; then
  5514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5515. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5516. else
  5517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5518. printf "%s\n" "no" >&6; }
  5519. fi
  5520. test -n "$ac_ct_DUMPBIN" && break
  5521. done
  5522. if test "x$ac_ct_DUMPBIN" = x; then
  5523. DUMPBIN=":"
  5524. else
  5525. case $cross_compiling:$ac_tool_warned in
  5526. yes:)
  5527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5528. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5529. ac_tool_warned=yes ;;
  5530. esac
  5531. DUMPBIN=$ac_ct_DUMPBIN
  5532. fi
  5533. fi
  5534. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5535. *COFF*)
  5536. DUMPBIN="$DUMPBIN -symbols -headers"
  5537. ;;
  5538. *)
  5539. DUMPBIN=:
  5540. ;;
  5541. esac
  5542. fi
  5543. if test : != "$DUMPBIN"; then
  5544. NM=$DUMPBIN
  5545. fi
  5546. fi
  5547. test -z "$NM" && NM=nm
  5548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5549. printf %s "checking the name lister ($NM) interface... " >&6; }
  5550. if test ${lt_cv_nm_interface+y}
  5551. then :
  5552. printf %s "(cached) " >&6
  5553. else $as_nop
  5554. lt_cv_nm_interface="BSD nm"
  5555. echo "int some_variable = 0;" > conftest.$ac_ext
  5556. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5557. (eval "$ac_compile" 2>conftest.err)
  5558. cat conftest.err >&5
  5559. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5560. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5561. cat conftest.err >&5
  5562. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5563. cat conftest.out >&5
  5564. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5565. lt_cv_nm_interface="MS dumpbin"
  5566. fi
  5567. rm -f conftest*
  5568. fi
  5569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5570. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5571. # find the maximum length of command line arguments
  5572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5573. printf %s "checking the maximum length of command line arguments... " >&6; }
  5574. if test ${lt_cv_sys_max_cmd_len+y}
  5575. then :
  5576. printf %s "(cached) " >&6
  5577. else $as_nop
  5578. i=0
  5579. teststring=ABCD
  5580. case $build_os in
  5581. msdosdjgpp*)
  5582. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5583. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5584. # during glob expansion). Even if it were fixed, the result of this
  5585. # check would be larger than it should be.
  5586. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5587. ;;
  5588. gnu*)
  5589. # Under GNU Hurd, this test is not required because there is
  5590. # no limit to the length of command line arguments.
  5591. # Libtool will interpret -1 as no limit whatsoever
  5592. lt_cv_sys_max_cmd_len=-1;
  5593. ;;
  5594. cygwin* | mingw* | cegcc*)
  5595. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5596. # about 5 minutes as the teststring grows exponentially.
  5597. # Worse, since 9x/ME are not pre-emptively multitasking,
  5598. # you end up with a "frozen" computer, even though with patience
  5599. # the test eventually succeeds (with a max line length of 256k).
  5600. # Instead, let's just punt: use the minimum linelength reported by
  5601. # all of the supported platforms: 8192 (on NT/2K/XP).
  5602. lt_cv_sys_max_cmd_len=8192;
  5603. ;;
  5604. mint*)
  5605. # On MiNT this can take a long time and run out of memory.
  5606. lt_cv_sys_max_cmd_len=8192;
  5607. ;;
  5608. mint*)
  5609. # On MiNT this can take a long time and run out of memory.
  5610. lt_cv_sys_max_cmd_len=8192;
  5611. ;;
  5612. amigaos*)
  5613. # On AmigaOS with pdksh, this test takes hours, literally.
  5614. # So we just punt and use a minimum line length of 8192.
  5615. lt_cv_sys_max_cmd_len=8192;
  5616. ;;
  5617. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5618. # This has been around since 386BSD, at least. Likely further.
  5619. if test -x /sbin/sysctl; then
  5620. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5621. elif test -x /usr/sbin/sysctl; then
  5622. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5623. else
  5624. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5625. fi
  5626. # And add a safety zone
  5627. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5628. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5629. ;;
  5630. interix*)
  5631. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5632. lt_cv_sys_max_cmd_len=196608
  5633. ;;
  5634. os2*)
  5635. # The test takes a long time on OS/2.
  5636. lt_cv_sys_max_cmd_len=8192
  5637. ;;
  5638. osf*)
  5639. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5640. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5641. # nice to cause kernel panics so lets avoid the loop below.
  5642. # First set a reasonable default.
  5643. lt_cv_sys_max_cmd_len=16384
  5644. #
  5645. if test -x /sbin/sysconfig; then
  5646. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5647. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5648. esac
  5649. fi
  5650. ;;
  5651. sco3.2v5*)
  5652. lt_cv_sys_max_cmd_len=102400
  5653. ;;
  5654. sysv5* | sco5v6* | sysv4.2uw2*)
  5655. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5656. if test -n "$kargmax"; then
  5657. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  5658. else
  5659. lt_cv_sys_max_cmd_len=32768
  5660. fi
  5661. ;;
  5662. *)
  5663. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5664. if test -n "$lt_cv_sys_max_cmd_len" && \
  5665. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5666. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5667. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5668. else
  5669. # Make teststring a little bigger before we do anything with it.
  5670. # a 1K string should be a reasonable start.
  5671. for i in 1 2 3 4 5 6 7 8; do
  5672. teststring=$teststring$teststring
  5673. done
  5674. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5675. # If test is not a shell built-in, we'll probably end up computing a
  5676. # maximum length that is only half of the actual maximum length, but
  5677. # we can't tell.
  5678. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5679. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5680. test 17 != "$i" # 1/2 MB should be enough
  5681. do
  5682. i=`expr $i + 1`
  5683. teststring=$teststring$teststring
  5684. done
  5685. # Only check the string length outside the loop.
  5686. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5687. teststring=
  5688. # Add a significant safety factor because C++ compilers can tack on
  5689. # massive amounts of additional arguments before passing them to the
  5690. # linker. It appears as though 1/2 is a usable value.
  5691. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5692. fi
  5693. ;;
  5694. esac
  5695. fi
  5696. if test -n "$lt_cv_sys_max_cmd_len"; then
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5698. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5699. else
  5700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5701. printf "%s\n" "none" >&6; }
  5702. fi
  5703. max_cmd_len=$lt_cv_sys_max_cmd_len
  5704. : ${CP="cp -f"}
  5705. : ${MV="mv -f"}
  5706. : ${RM="rm -f"}
  5707. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5708. lt_unset=unset
  5709. else
  5710. lt_unset=false
  5711. fi
  5712. # test EBCDIC or ASCII
  5713. case `echo X|tr X '\101'` in
  5714. A) # ASCII based system
  5715. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5716. lt_SP2NL='tr \040 \012'
  5717. lt_NL2SP='tr \015\012 \040\040'
  5718. ;;
  5719. *) # EBCDIC based system
  5720. lt_SP2NL='tr \100 \n'
  5721. lt_NL2SP='tr \r\n \100\100'
  5722. ;;
  5723. esac
  5724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5725. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5726. if test ${lt_cv_to_host_file_cmd+y}
  5727. then :
  5728. printf %s "(cached) " >&6
  5729. else $as_nop
  5730. case $host in
  5731. *-*-mingw* )
  5732. case $build in
  5733. *-*-mingw* ) # actually msys
  5734. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5735. ;;
  5736. *-*-cygwin* )
  5737. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5738. ;;
  5739. * ) # otherwise, assume *nix
  5740. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5741. ;;
  5742. esac
  5743. ;;
  5744. *-*-cygwin* )
  5745. case $build in
  5746. *-*-mingw* ) # actually msys
  5747. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5748. ;;
  5749. *-*-cygwin* )
  5750. lt_cv_to_host_file_cmd=func_convert_file_noop
  5751. ;;
  5752. * ) # otherwise, assume *nix
  5753. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5754. ;;
  5755. esac
  5756. ;;
  5757. * ) # unhandled hosts (and "normal" native builds)
  5758. lt_cv_to_host_file_cmd=func_convert_file_noop
  5759. ;;
  5760. esac
  5761. fi
  5762. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5764. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5766. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5767. if test ${lt_cv_to_tool_file_cmd+y}
  5768. then :
  5769. printf %s "(cached) " >&6
  5770. else $as_nop
  5771. #assume ordinary cross tools, or native build.
  5772. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5773. case $host in
  5774. *-*-mingw* )
  5775. case $build in
  5776. *-*-mingw* ) # actually msys
  5777. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5778. ;;
  5779. esac
  5780. ;;
  5781. esac
  5782. fi
  5783. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5785. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5787. printf %s "checking for $LD option to reload object files... " >&6; }
  5788. if test ${lt_cv_ld_reload_flag+y}
  5789. then :
  5790. printf %s "(cached) " >&6
  5791. else $as_nop
  5792. lt_cv_ld_reload_flag='-r'
  5793. fi
  5794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5795. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5796. reload_flag=$lt_cv_ld_reload_flag
  5797. case $reload_flag in
  5798. "" | " "*) ;;
  5799. *) reload_flag=" $reload_flag" ;;
  5800. esac
  5801. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5802. case $host_os in
  5803. cygwin* | mingw* | pw32* | cegcc*)
  5804. if test yes != "$GCC"; then
  5805. reload_cmds=false
  5806. fi
  5807. ;;
  5808. darwin*)
  5809. if test yes = "$GCC"; then
  5810. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5811. else
  5812. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5813. fi
  5814. ;;
  5815. esac
  5816. if test -n "$ac_tool_prefix"; then
  5817. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  5818. set dummy ${ac_tool_prefix}file; ac_word=$2
  5819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. printf %s "checking for $ac_word... " >&6; }
  5821. if test ${ac_cv_prog_FILECMD+y}
  5822. then :
  5823. printf %s "(cached) " >&6
  5824. else $as_nop
  5825. if test -n "$FILECMD"; then
  5826. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. case $as_dir in #(((
  5833. '') as_dir=./ ;;
  5834. */) ;;
  5835. *) as_dir=$as_dir/ ;;
  5836. esac
  5837. for ac_exec_ext in '' $ac_executable_extensions; do
  5838. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5839. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  5840. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. IFS=$as_save_IFS
  5846. fi
  5847. fi
  5848. FILECMD=$ac_cv_prog_FILECMD
  5849. if test -n "$FILECMD"; then
  5850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  5851. printf "%s\n" "$FILECMD" >&6; }
  5852. else
  5853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5854. printf "%s\n" "no" >&6; }
  5855. fi
  5856. fi
  5857. if test -z "$ac_cv_prog_FILECMD"; then
  5858. ac_ct_FILECMD=$FILECMD
  5859. # Extract the first word of "file", so it can be a program name with args.
  5860. set dummy file; ac_word=$2
  5861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. printf %s "checking for $ac_word... " >&6; }
  5863. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  5864. then :
  5865. printf %s "(cached) " >&6
  5866. else $as_nop
  5867. if test -n "$ac_ct_FILECMD"; then
  5868. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. case $as_dir in #(((
  5875. '') as_dir=./ ;;
  5876. */) ;;
  5877. *) as_dir=$as_dir/ ;;
  5878. esac
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5881. ac_cv_prog_ac_ct_FILECMD="file"
  5882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  5891. if test -n "$ac_ct_FILECMD"; then
  5892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  5893. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  5894. else
  5895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. printf "%s\n" "no" >&6; }
  5897. fi
  5898. if test "x$ac_ct_FILECMD" = x; then
  5899. FILECMD=":"
  5900. else
  5901. case $cross_compiling:$ac_tool_warned in
  5902. yes:)
  5903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5904. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5905. ac_tool_warned=yes ;;
  5906. esac
  5907. FILECMD=$ac_ct_FILECMD
  5908. fi
  5909. else
  5910. FILECMD="$ac_cv_prog_FILECMD"
  5911. fi
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. printf %s "checking for $ac_word... " >&6; }
  5917. if test ${ac_cv_prog_OBJDUMP+y}
  5918. then :
  5919. printf %s "(cached) " >&6
  5920. else $as_nop
  5921. if test -n "$OBJDUMP"; then
  5922. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5923. else
  5924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925. for as_dir in $PATH
  5926. do
  5927. IFS=$as_save_IFS
  5928. case $as_dir in #(((
  5929. '') as_dir=./ ;;
  5930. */) ;;
  5931. *) as_dir=$as_dir/ ;;
  5932. esac
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5935. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. OBJDUMP=$ac_cv_prog_OBJDUMP
  5945. if test -n "$OBJDUMP"; then
  5946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5947. printf "%s\n" "$OBJDUMP" >&6; }
  5948. else
  5949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. printf "%s\n" "no" >&6; }
  5951. fi
  5952. fi
  5953. if test -z "$ac_cv_prog_OBJDUMP"; then
  5954. ac_ct_OBJDUMP=$OBJDUMP
  5955. # Extract the first word of "objdump", so it can be a program name with args.
  5956. set dummy objdump; ac_word=$2
  5957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5958. printf %s "checking for $ac_word... " >&6; }
  5959. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5960. then :
  5961. printf %s "(cached) " >&6
  5962. else $as_nop
  5963. if test -n "$ac_ct_OBJDUMP"; then
  5964. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5965. else
  5966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5967. for as_dir in $PATH
  5968. do
  5969. IFS=$as_save_IFS
  5970. case $as_dir in #(((
  5971. '') as_dir=./ ;;
  5972. */) ;;
  5973. *) as_dir=$as_dir/ ;;
  5974. esac
  5975. for ac_exec_ext in '' $ac_executable_extensions; do
  5976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5977. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5979. break 2
  5980. fi
  5981. done
  5982. done
  5983. IFS=$as_save_IFS
  5984. fi
  5985. fi
  5986. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5987. if test -n "$ac_ct_OBJDUMP"; then
  5988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5989. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5990. else
  5991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. printf "%s\n" "no" >&6; }
  5993. fi
  5994. if test "x$ac_ct_OBJDUMP" = x; then
  5995. OBJDUMP="false"
  5996. else
  5997. case $cross_compiling:$ac_tool_warned in
  5998. yes:)
  5999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6000. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6001. ac_tool_warned=yes ;;
  6002. esac
  6003. OBJDUMP=$ac_ct_OBJDUMP
  6004. fi
  6005. else
  6006. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6007. fi
  6008. test -z "$OBJDUMP" && OBJDUMP=objdump
  6009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6010. printf %s "checking how to recognize dependent libraries... " >&6; }
  6011. if test ${lt_cv_deplibs_check_method+y}
  6012. then :
  6013. printf %s "(cached) " >&6
  6014. else $as_nop
  6015. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6016. lt_cv_file_magic_test_file=
  6017. lt_cv_deplibs_check_method='unknown'
  6018. # Need to set the preceding variable on all platforms that support
  6019. # interlibrary dependencies.
  6020. # 'none' -- dependencies not supported.
  6021. # 'unknown' -- same as none, but documents that we really don't know.
  6022. # 'pass_all' -- all dependencies passed with no checks.
  6023. # 'test_compile' -- check by making test program.
  6024. # 'file_magic [[regex]]' -- check by looking for files in library path
  6025. # that responds to the $file_magic_cmd with a given extended regex.
  6026. # If you have 'file' or equivalent on your system and you're not sure
  6027. # whether 'pass_all' will *always* work, you probably want this one.
  6028. case $host_os in
  6029. aix[4-9]*)
  6030. lt_cv_deplibs_check_method=pass_all
  6031. ;;
  6032. beos*)
  6033. lt_cv_deplibs_check_method=pass_all
  6034. ;;
  6035. bsdi[45]*)
  6036. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6037. lt_cv_file_magic_cmd='$FILECMD -L'
  6038. lt_cv_file_magic_test_file=/shlib/libc.so
  6039. ;;
  6040. cygwin*)
  6041. # func_win32_libid is a shell function defined in ltmain.sh
  6042. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6043. lt_cv_file_magic_cmd='func_win32_libid'
  6044. ;;
  6045. mingw* | pw32*)
  6046. # Base MSYS/MinGW do not provide the 'file' command needed by
  6047. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6048. # unless we find 'file', for example because we are cross-compiling.
  6049. if ( file / ) >/dev/null 2>&1; then
  6050. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6051. lt_cv_file_magic_cmd='func_win32_libid'
  6052. else
  6053. # Keep this pattern in sync with the one in func_win32_libid.
  6054. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6055. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6056. fi
  6057. ;;
  6058. cegcc*)
  6059. # use the weaker test based on 'objdump'. See mingw*.
  6060. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6061. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6062. ;;
  6063. darwin* | rhapsody*)
  6064. lt_cv_deplibs_check_method=pass_all
  6065. ;;
  6066. freebsd* | dragonfly* | midnightbsd*)
  6067. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6068. case $host_cpu in
  6069. i*86 )
  6070. # Not sure whether the presence of OpenBSD here was a mistake.
  6071. # Let's accept both of them until this is cleared up.
  6072. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6073. lt_cv_file_magic_cmd=$FILECMD
  6074. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6075. ;;
  6076. esac
  6077. else
  6078. lt_cv_deplibs_check_method=pass_all
  6079. fi
  6080. ;;
  6081. haiku*)
  6082. lt_cv_deplibs_check_method=pass_all
  6083. ;;
  6084. hpux10.20* | hpux11*)
  6085. lt_cv_file_magic_cmd=$FILECMD
  6086. case $host_cpu in
  6087. ia64*)
  6088. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6089. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6090. ;;
  6091. hppa*64*)
  6092. 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]'
  6093. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6094. ;;
  6095. *)
  6096. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6097. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6098. ;;
  6099. esac
  6100. ;;
  6101. interix[3-9]*)
  6102. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6103. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6104. ;;
  6105. irix5* | irix6* | nonstopux*)
  6106. case $LD in
  6107. *-32|*"-32 ") libmagic=32-bit;;
  6108. *-n32|*"-n32 ") libmagic=N32;;
  6109. *-64|*"-64 ") libmagic=64-bit;;
  6110. *) libmagic=never-match;;
  6111. esac
  6112. lt_cv_deplibs_check_method=pass_all
  6113. ;;
  6114. # This must be glibc/ELF.
  6115. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6116. lt_cv_deplibs_check_method=pass_all
  6117. ;;
  6118. netbsd*)
  6119. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6120. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6121. else
  6122. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6123. fi
  6124. ;;
  6125. newos6*)
  6126. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6127. lt_cv_file_magic_cmd=$FILECMD
  6128. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6129. ;;
  6130. *nto* | *qnx*)
  6131. lt_cv_deplibs_check_method=pass_all
  6132. ;;
  6133. openbsd* | bitrig*)
  6134. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6135. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6136. else
  6137. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6138. fi
  6139. ;;
  6140. osf3* | osf4* | osf5*)
  6141. lt_cv_deplibs_check_method=pass_all
  6142. ;;
  6143. rdos*)
  6144. lt_cv_deplibs_check_method=pass_all
  6145. ;;
  6146. solaris*)
  6147. lt_cv_deplibs_check_method=pass_all
  6148. ;;
  6149. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6150. lt_cv_deplibs_check_method=pass_all
  6151. ;;
  6152. sysv4 | sysv4.3*)
  6153. case $host_vendor in
  6154. motorola)
  6155. 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]'
  6156. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6157. ;;
  6158. ncr)
  6159. lt_cv_deplibs_check_method=pass_all
  6160. ;;
  6161. sequent)
  6162. lt_cv_file_magic_cmd='/bin/file'
  6163. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6164. ;;
  6165. sni)
  6166. lt_cv_file_magic_cmd='/bin/file'
  6167. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6168. lt_cv_file_magic_test_file=/lib/libc.so
  6169. ;;
  6170. siemens)
  6171. lt_cv_deplibs_check_method=pass_all
  6172. ;;
  6173. pc)
  6174. lt_cv_deplibs_check_method=pass_all
  6175. ;;
  6176. esac
  6177. ;;
  6178. tpf*)
  6179. lt_cv_deplibs_check_method=pass_all
  6180. ;;
  6181. os2*)
  6182. lt_cv_deplibs_check_method=pass_all
  6183. ;;
  6184. esac
  6185. fi
  6186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6187. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6188. file_magic_glob=
  6189. want_nocaseglob=no
  6190. if test "$build" = "$host"; then
  6191. case $host_os in
  6192. mingw* | pw32*)
  6193. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6194. want_nocaseglob=yes
  6195. else
  6196. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6197. fi
  6198. ;;
  6199. esac
  6200. fi
  6201. file_magic_cmd=$lt_cv_file_magic_cmd
  6202. deplibs_check_method=$lt_cv_deplibs_check_method
  6203. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6204. if test -n "$ac_tool_prefix"; then
  6205. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6206. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. printf %s "checking for $ac_word... " >&6; }
  6209. if test ${ac_cv_prog_DLLTOOL+y}
  6210. then :
  6211. printf %s "(cached) " >&6
  6212. else $as_nop
  6213. if test -n "$DLLTOOL"; then
  6214. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6215. else
  6216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6217. for as_dir in $PATH
  6218. do
  6219. IFS=$as_save_IFS
  6220. case $as_dir in #(((
  6221. '') as_dir=./ ;;
  6222. */) ;;
  6223. *) as_dir=$as_dir/ ;;
  6224. esac
  6225. for ac_exec_ext in '' $ac_executable_extensions; do
  6226. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6227. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6228. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6229. break 2
  6230. fi
  6231. done
  6232. done
  6233. IFS=$as_save_IFS
  6234. fi
  6235. fi
  6236. DLLTOOL=$ac_cv_prog_DLLTOOL
  6237. if test -n "$DLLTOOL"; then
  6238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6239. printf "%s\n" "$DLLTOOL" >&6; }
  6240. else
  6241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6242. printf "%s\n" "no" >&6; }
  6243. fi
  6244. fi
  6245. if test -z "$ac_cv_prog_DLLTOOL"; then
  6246. ac_ct_DLLTOOL=$DLLTOOL
  6247. # Extract the first word of "dlltool", so it can be a program name with args.
  6248. set dummy dlltool; ac_word=$2
  6249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. printf %s "checking for $ac_word... " >&6; }
  6251. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6252. then :
  6253. printf %s "(cached) " >&6
  6254. else $as_nop
  6255. if test -n "$ac_ct_DLLTOOL"; then
  6256. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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. case $as_dir in #(((
  6263. '') as_dir=./ ;;
  6264. */) ;;
  6265. *) as_dir=$as_dir/ ;;
  6266. esac
  6267. for ac_exec_ext in '' $ac_executable_extensions; do
  6268. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6269. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6271. break 2
  6272. fi
  6273. done
  6274. done
  6275. IFS=$as_save_IFS
  6276. fi
  6277. fi
  6278. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6279. if test -n "$ac_ct_DLLTOOL"; then
  6280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6281. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6282. else
  6283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6284. printf "%s\n" "no" >&6; }
  6285. fi
  6286. if test "x$ac_ct_DLLTOOL" = x; then
  6287. DLLTOOL="false"
  6288. else
  6289. case $cross_compiling:$ac_tool_warned in
  6290. yes:)
  6291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6292. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6293. ac_tool_warned=yes ;;
  6294. esac
  6295. DLLTOOL=$ac_ct_DLLTOOL
  6296. fi
  6297. else
  6298. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6299. fi
  6300. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6302. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6303. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6304. then :
  6305. printf %s "(cached) " >&6
  6306. else $as_nop
  6307. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6308. case $host_os in
  6309. cygwin* | mingw* | pw32* | cegcc*)
  6310. # two different shell functions defined in ltmain.sh;
  6311. # decide which one to use based on capabilities of $DLLTOOL
  6312. case `$DLLTOOL --help 2>&1` in
  6313. *--identify-strict*)
  6314. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6315. ;;
  6316. *)
  6317. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6318. ;;
  6319. esac
  6320. ;;
  6321. *)
  6322. # fallback: assume linklib IS sharedlib
  6323. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6324. ;;
  6325. esac
  6326. fi
  6327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6328. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6329. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6330. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6331. if test -n "$ac_tool_prefix"; then
  6332. for ac_prog in ar
  6333. do
  6334. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6335. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6337. printf %s "checking for $ac_word... " >&6; }
  6338. if test ${ac_cv_prog_AR+y}
  6339. then :
  6340. printf %s "(cached) " >&6
  6341. else $as_nop
  6342. if test -n "$AR"; then
  6343. ac_cv_prog_AR="$AR" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. case $as_dir in #(((
  6350. '') as_dir=./ ;;
  6351. */) ;;
  6352. *) as_dir=$as_dir/ ;;
  6353. esac
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6356. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. AR=$ac_cv_prog_AR
  6366. if test -n "$AR"; then
  6367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6368. printf "%s\n" "$AR" >&6; }
  6369. else
  6370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6371. printf "%s\n" "no" >&6; }
  6372. fi
  6373. test -n "$AR" && break
  6374. done
  6375. fi
  6376. if test -z "$AR"; then
  6377. ac_ct_AR=$AR
  6378. for ac_prog in ar
  6379. do
  6380. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6381. set dummy $ac_prog; ac_word=$2
  6382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. printf %s "checking for $ac_word... " >&6; }
  6384. if test ${ac_cv_prog_ac_ct_AR+y}
  6385. then :
  6386. printf %s "(cached) " >&6
  6387. else $as_nop
  6388. if test -n "$ac_ct_AR"; then
  6389. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. case $as_dir in #(((
  6396. '') as_dir=./ ;;
  6397. */) ;;
  6398. *) as_dir=$as_dir/ ;;
  6399. esac
  6400. for ac_exec_ext in '' $ac_executable_extensions; do
  6401. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6402. ac_cv_prog_ac_ct_AR="$ac_prog"
  6403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6404. break 2
  6405. fi
  6406. done
  6407. done
  6408. IFS=$as_save_IFS
  6409. fi
  6410. fi
  6411. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6412. if test -n "$ac_ct_AR"; then
  6413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6414. printf "%s\n" "$ac_ct_AR" >&6; }
  6415. else
  6416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6417. printf "%s\n" "no" >&6; }
  6418. fi
  6419. test -n "$ac_ct_AR" && break
  6420. done
  6421. if test "x$ac_ct_AR" = x; then
  6422. AR="false"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. AR=$ac_ct_AR
  6431. fi
  6432. fi
  6433. : ${AR=ar}
  6434. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6435. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6436. # higher priority because thats what people were doing historically (setting
  6437. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6438. # variable obsoleted/removed.
  6439. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6440. lt_ar_flags=$AR_FLAGS
  6441. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6442. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6444. printf %s "checking for archiver @FILE support... " >&6; }
  6445. if test ${lt_cv_ar_at_file+y}
  6446. then :
  6447. printf %s "(cached) " >&6
  6448. else $as_nop
  6449. lt_cv_ar_at_file=no
  6450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6451. /* end confdefs.h. */
  6452. int
  6453. main (void)
  6454. {
  6455. ;
  6456. return 0;
  6457. }
  6458. _ACEOF
  6459. if ac_fn_c_try_compile "$LINENO"
  6460. then :
  6461. echo conftest.$ac_objext > conftest.lst
  6462. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6463. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6464. (eval $lt_ar_try) 2>&5
  6465. ac_status=$?
  6466. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6467. test $ac_status = 0; }
  6468. if test 0 -eq "$ac_status"; then
  6469. # Ensure the archiver fails upon bogus file names.
  6470. rm -f conftest.$ac_objext libconftest.a
  6471. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6472. (eval $lt_ar_try) 2>&5
  6473. ac_status=$?
  6474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6475. test $ac_status = 0; }
  6476. if test 0 -ne "$ac_status"; then
  6477. lt_cv_ar_at_file=@
  6478. fi
  6479. fi
  6480. rm -f conftest.* libconftest.a
  6481. fi
  6482. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6483. fi
  6484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6485. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6486. if test no = "$lt_cv_ar_at_file"; then
  6487. archiver_list_spec=
  6488. else
  6489. archiver_list_spec=$lt_cv_ar_at_file
  6490. fi
  6491. if test -n "$ac_tool_prefix"; then
  6492. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6493. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. printf %s "checking for $ac_word... " >&6; }
  6496. if test ${ac_cv_prog_STRIP+y}
  6497. then :
  6498. printf %s "(cached) " >&6
  6499. else $as_nop
  6500. if test -n "$STRIP"; then
  6501. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6502. else
  6503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6504. for as_dir in $PATH
  6505. do
  6506. IFS=$as_save_IFS
  6507. case $as_dir in #(((
  6508. '') as_dir=./ ;;
  6509. */) ;;
  6510. *) as_dir=$as_dir/ ;;
  6511. esac
  6512. for ac_exec_ext in '' $ac_executable_extensions; do
  6513. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6514. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6516. break 2
  6517. fi
  6518. done
  6519. done
  6520. IFS=$as_save_IFS
  6521. fi
  6522. fi
  6523. STRIP=$ac_cv_prog_STRIP
  6524. if test -n "$STRIP"; then
  6525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6526. printf "%s\n" "$STRIP" >&6; }
  6527. else
  6528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. printf "%s\n" "no" >&6; }
  6530. fi
  6531. fi
  6532. if test -z "$ac_cv_prog_STRIP"; then
  6533. ac_ct_STRIP=$STRIP
  6534. # Extract the first word of "strip", so it can be a program name with args.
  6535. set dummy strip; ac_word=$2
  6536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6537. printf %s "checking for $ac_word... " >&6; }
  6538. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6539. then :
  6540. printf %s "(cached) " >&6
  6541. else $as_nop
  6542. if test -n "$ac_ct_STRIP"; then
  6543. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6544. else
  6545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6546. for as_dir in $PATH
  6547. do
  6548. IFS=$as_save_IFS
  6549. case $as_dir in #(((
  6550. '') as_dir=./ ;;
  6551. */) ;;
  6552. *) as_dir=$as_dir/ ;;
  6553. esac
  6554. for ac_exec_ext in '' $ac_executable_extensions; do
  6555. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6556. ac_cv_prog_ac_ct_STRIP="strip"
  6557. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6558. break 2
  6559. fi
  6560. done
  6561. done
  6562. IFS=$as_save_IFS
  6563. fi
  6564. fi
  6565. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6566. if test -n "$ac_ct_STRIP"; then
  6567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6568. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6569. else
  6570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6571. printf "%s\n" "no" >&6; }
  6572. fi
  6573. if test "x$ac_ct_STRIP" = x; then
  6574. STRIP=":"
  6575. else
  6576. case $cross_compiling:$ac_tool_warned in
  6577. yes:)
  6578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6579. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6580. ac_tool_warned=yes ;;
  6581. esac
  6582. STRIP=$ac_ct_STRIP
  6583. fi
  6584. else
  6585. STRIP="$ac_cv_prog_STRIP"
  6586. fi
  6587. test -z "$STRIP" && STRIP=:
  6588. if test -n "$ac_tool_prefix"; then
  6589. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6590. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. printf %s "checking for $ac_word... " >&6; }
  6593. if test ${ac_cv_prog_RANLIB+y}
  6594. then :
  6595. printf %s "(cached) " >&6
  6596. else $as_nop
  6597. if test -n "$RANLIB"; then
  6598. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6599. else
  6600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6601. for as_dir in $PATH
  6602. do
  6603. IFS=$as_save_IFS
  6604. case $as_dir in #(((
  6605. '') as_dir=./ ;;
  6606. */) ;;
  6607. *) as_dir=$as_dir/ ;;
  6608. esac
  6609. for ac_exec_ext in '' $ac_executable_extensions; do
  6610. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6611. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6613. break 2
  6614. fi
  6615. done
  6616. done
  6617. IFS=$as_save_IFS
  6618. fi
  6619. fi
  6620. RANLIB=$ac_cv_prog_RANLIB
  6621. if test -n "$RANLIB"; then
  6622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6623. printf "%s\n" "$RANLIB" >&6; }
  6624. else
  6625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6626. printf "%s\n" "no" >&6; }
  6627. fi
  6628. fi
  6629. if test -z "$ac_cv_prog_RANLIB"; then
  6630. ac_ct_RANLIB=$RANLIB
  6631. # Extract the first word of "ranlib", so it can be a program name with args.
  6632. set dummy ranlib; ac_word=$2
  6633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6634. printf %s "checking for $ac_word... " >&6; }
  6635. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6636. then :
  6637. printf %s "(cached) " >&6
  6638. else $as_nop
  6639. if test -n "$ac_ct_RANLIB"; then
  6640. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. case $as_dir in #(((
  6647. '') as_dir=./ ;;
  6648. */) ;;
  6649. *) as_dir=$as_dir/ ;;
  6650. esac
  6651. for ac_exec_ext in '' $ac_executable_extensions; do
  6652. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6653. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6654. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6655. break 2
  6656. fi
  6657. done
  6658. done
  6659. IFS=$as_save_IFS
  6660. fi
  6661. fi
  6662. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6663. if test -n "$ac_ct_RANLIB"; then
  6664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6665. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6666. else
  6667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. printf "%s\n" "no" >&6; }
  6669. fi
  6670. if test "x$ac_ct_RANLIB" = x; then
  6671. RANLIB=":"
  6672. else
  6673. case $cross_compiling:$ac_tool_warned in
  6674. yes:)
  6675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6676. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6677. ac_tool_warned=yes ;;
  6678. esac
  6679. RANLIB=$ac_ct_RANLIB
  6680. fi
  6681. else
  6682. RANLIB="$ac_cv_prog_RANLIB"
  6683. fi
  6684. test -z "$RANLIB" && RANLIB=:
  6685. # Determine commands to create old-style static archives.
  6686. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6687. old_postinstall_cmds='chmod 644 $oldlib'
  6688. old_postuninstall_cmds=
  6689. if test -n "$RANLIB"; then
  6690. case $host_os in
  6691. bitrig* | openbsd*)
  6692. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6693. ;;
  6694. *)
  6695. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6696. ;;
  6697. esac
  6698. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6699. fi
  6700. case $host_os in
  6701. darwin*)
  6702. lock_old_archive_extraction=yes ;;
  6703. *)
  6704. lock_old_archive_extraction=no ;;
  6705. esac
  6706. # If no C compiler was specified, use CC.
  6707. LTCC=${LTCC-"$CC"}
  6708. # If no C compiler flags were specified, use CFLAGS.
  6709. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6710. # Allow CC to be a program name with arguments.
  6711. compiler=$CC
  6712. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6714. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6715. if test ${lt_cv_sys_global_symbol_pipe+y}
  6716. then :
  6717. printf %s "(cached) " >&6
  6718. else $as_nop
  6719. # These are sane defaults that work on at least a few old systems.
  6720. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6721. # Character class describing NM global symbol codes.
  6722. symcode='[BCDEGRST]'
  6723. # Regexp to match symbols that can be accessed directly from C.
  6724. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6725. # Define system-specific variables.
  6726. case $host_os in
  6727. aix*)
  6728. symcode='[BCDT]'
  6729. ;;
  6730. cygwin* | mingw* | pw32* | cegcc*)
  6731. symcode='[ABCDGISTW]'
  6732. ;;
  6733. hpux*)
  6734. if test ia64 = "$host_cpu"; then
  6735. symcode='[ABCDEGRST]'
  6736. fi
  6737. ;;
  6738. irix* | nonstopux*)
  6739. symcode='[BCDEGRST]'
  6740. ;;
  6741. osf*)
  6742. symcode='[BCDEGQRST]'
  6743. ;;
  6744. solaris*)
  6745. symcode='[BDRT]'
  6746. ;;
  6747. sco3.2v5*)
  6748. symcode='[DT]'
  6749. ;;
  6750. sysv4.2uw2*)
  6751. symcode='[DT]'
  6752. ;;
  6753. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6754. symcode='[ABDT]'
  6755. ;;
  6756. sysv4)
  6757. symcode='[DFNSTU]'
  6758. ;;
  6759. esac
  6760. # If we're using GNU nm, then use its standard symbol codes.
  6761. case `$NM -V 2>&1` in
  6762. *GNU* | *'with BFD'*)
  6763. symcode='[ABCDGIRSTW]' ;;
  6764. esac
  6765. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6766. # Gets list of data symbols to import.
  6767. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  6768. # Adjust the below global symbol transforms to fixup imported variables.
  6769. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6770. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6771. lt_c_name_lib_hook="\
  6772. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6773. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6774. else
  6775. # Disable hooks by default.
  6776. lt_cv_sys_global_symbol_to_import=
  6777. lt_cdecl_hook=
  6778. lt_c_name_hook=
  6779. lt_c_name_lib_hook=
  6780. fi
  6781. # Transform an extracted symbol line into a proper C declaration.
  6782. # Some systems (esp. on ia64) link data and code symbols differently,
  6783. # so use this general approach.
  6784. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  6785. $lt_cdecl_hook\
  6786. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6787. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6788. # Transform an extracted symbol line into symbol name and symbol address
  6789. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  6790. $lt_c_name_hook\
  6791. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6792. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6793. # Transform an extracted symbol line into symbol name with lib prefix and
  6794. # symbol address.
  6795. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  6796. $lt_c_name_lib_hook\
  6797. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6798. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6799. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6800. # Handle CRLF in mingw tool chain
  6801. opt_cr=
  6802. case $build_os in
  6803. mingw*)
  6804. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6805. ;;
  6806. esac
  6807. # Try without a prefix underscore, then with it.
  6808. for ac_symprfx in "" "_"; do
  6809. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6810. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6811. # Write the raw and C identifiers.
  6812. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6813. # Fake it for dumpbin and say T for any non-static function,
  6814. # D for any global variable and I for any imported variable.
  6815. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6816. # which start with @ or ?.
  6817. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6818. " {last_section=section; section=\$ 3};"\
  6819. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6820. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6821. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6822. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6823. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6824. " \$ 0!~/External *\|/{next};"\
  6825. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6826. " {if(hide[section]) next};"\
  6827. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6828. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6829. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6830. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6831. " ' prfx=^$ac_symprfx"
  6832. else
  6833. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6834. fi
  6835. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  6836. # Check to see that the pipe works correctly.
  6837. pipe_works=no
  6838. rm -f conftest*
  6839. cat > conftest.$ac_ext <<_LT_EOF
  6840. #ifdef __cplusplus
  6841. extern "C" {
  6842. #endif
  6843. char nm_test_var;
  6844. void nm_test_func(void);
  6845. void nm_test_func(void){}
  6846. #ifdef __cplusplus
  6847. }
  6848. #endif
  6849. int main(){nm_test_var='a';nm_test_func();return(0);}
  6850. _LT_EOF
  6851. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6852. (eval $ac_compile) 2>&5
  6853. ac_status=$?
  6854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6855. test $ac_status = 0; }; then
  6856. # Now try to grab the symbols.
  6857. nlist=conftest.nm
  6858. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6859. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6860. ac_status=$?
  6861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6862. test $ac_status = 0; } && test -s "$nlist"; then
  6863. # Try sorting and uniquifying the output.
  6864. if sort "$nlist" | uniq > "$nlist"T; then
  6865. mv -f "$nlist"T "$nlist"
  6866. else
  6867. rm -f "$nlist"T
  6868. fi
  6869. # Make sure that we snagged all the symbols we need.
  6870. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6871. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6872. cat <<_LT_EOF > conftest.$ac_ext
  6873. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6874. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6875. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6876. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6877. # define LT_DLSYM_CONST
  6878. #elif defined __osf__
  6879. /* This system does not cope well with relocations in const data. */
  6880. # define LT_DLSYM_CONST
  6881. #else
  6882. # define LT_DLSYM_CONST const
  6883. #endif
  6884. #ifdef __cplusplus
  6885. extern "C" {
  6886. #endif
  6887. _LT_EOF
  6888. # Now generate the symbol file.
  6889. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6890. cat <<_LT_EOF >> conftest.$ac_ext
  6891. /* The mapping between symbol names and symbols. */
  6892. LT_DLSYM_CONST struct {
  6893. const char *name;
  6894. void *address;
  6895. }
  6896. lt__PROGRAM__LTX_preloaded_symbols[] =
  6897. {
  6898. { "@PROGRAM@", (void *) 0 },
  6899. _LT_EOF
  6900. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6901. cat <<\_LT_EOF >> conftest.$ac_ext
  6902. {0, (void *) 0}
  6903. };
  6904. /* This works around a problem in FreeBSD linker */
  6905. #ifdef FREEBSD_WORKAROUND
  6906. static const void *lt_preloaded_setup() {
  6907. return lt__PROGRAM__LTX_preloaded_symbols;
  6908. }
  6909. #endif
  6910. #ifdef __cplusplus
  6911. }
  6912. #endif
  6913. _LT_EOF
  6914. # Now try linking the two files.
  6915. mv conftest.$ac_objext conftstm.$ac_objext
  6916. lt_globsym_save_LIBS=$LIBS
  6917. lt_globsym_save_CFLAGS=$CFLAGS
  6918. LIBS=conftstm.$ac_objext
  6919. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6920. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6921. (eval $ac_link) 2>&5
  6922. ac_status=$?
  6923. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6924. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6925. pipe_works=yes
  6926. fi
  6927. LIBS=$lt_globsym_save_LIBS
  6928. CFLAGS=$lt_globsym_save_CFLAGS
  6929. else
  6930. echo "cannot find nm_test_func in $nlist" >&5
  6931. fi
  6932. else
  6933. echo "cannot find nm_test_var in $nlist" >&5
  6934. fi
  6935. else
  6936. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6937. fi
  6938. else
  6939. echo "$progname: failed program was:" >&5
  6940. cat conftest.$ac_ext >&5
  6941. fi
  6942. rm -rf conftest* conftst*
  6943. # Do not use the global_symbol_pipe unless it works.
  6944. if test yes = "$pipe_works"; then
  6945. break
  6946. else
  6947. lt_cv_sys_global_symbol_pipe=
  6948. fi
  6949. done
  6950. fi
  6951. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6952. lt_cv_sys_global_symbol_to_cdecl=
  6953. fi
  6954. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6956. printf "%s\n" "failed" >&6; }
  6957. else
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6959. printf "%s\n" "ok" >&6; }
  6960. fi
  6961. # Response file support.
  6962. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6963. nm_file_list_spec='@'
  6964. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6965. nm_file_list_spec='@'
  6966. fi
  6967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6968. printf %s "checking for sysroot... " >&6; }
  6969. # Check whether --with-sysroot was given.
  6970. if test ${with_sysroot+y}
  6971. then :
  6972. withval=$with_sysroot;
  6973. else $as_nop
  6974. with_sysroot=no
  6975. fi
  6976. lt_sysroot=
  6977. case $with_sysroot in #(
  6978. yes)
  6979. if test yes = "$GCC"; then
  6980. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6981. fi
  6982. ;; #(
  6983. /*)
  6984. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  6985. ;; #(
  6986. no|'')
  6987. ;; #(
  6988. *)
  6989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6990. printf "%s\n" "$with_sysroot" >&6; }
  6991. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6992. ;;
  6993. esac
  6994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6995. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6997. printf %s "checking for a working dd... " >&6; }
  6998. if test ${ac_cv_path_lt_DD+y}
  6999. then :
  7000. printf %s "(cached) " >&6
  7001. else $as_nop
  7002. printf 0123456789abcdef0123456789abcdef >conftest.i
  7003. cat conftest.i conftest.i >conftest2.i
  7004. : ${lt_DD:=$DD}
  7005. if test -z "$lt_DD"; then
  7006. ac_path_lt_DD_found=false
  7007. # Loop through the user's path and test for each of PROGNAME-LIST
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. case $as_dir in #(((
  7013. '') as_dir=./ ;;
  7014. */) ;;
  7015. *) as_dir=$as_dir/ ;;
  7016. esac
  7017. for ac_prog in dd
  7018. do
  7019. for ac_exec_ext in '' $ac_executable_extensions; do
  7020. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7021. as_fn_executable_p "$ac_path_lt_DD" || continue
  7022. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7023. cmp -s conftest.i conftest.out \
  7024. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7025. fi
  7026. $ac_path_lt_DD_found && break 3
  7027. done
  7028. done
  7029. done
  7030. IFS=$as_save_IFS
  7031. if test -z "$ac_cv_path_lt_DD"; then
  7032. :
  7033. fi
  7034. else
  7035. ac_cv_path_lt_DD=$lt_DD
  7036. fi
  7037. rm -f conftest.i conftest2.i conftest.out
  7038. fi
  7039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7040. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7042. printf %s "checking how to truncate binary pipes... " >&6; }
  7043. if test ${lt_cv_truncate_bin+y}
  7044. then :
  7045. printf %s "(cached) " >&6
  7046. else $as_nop
  7047. printf 0123456789abcdef0123456789abcdef >conftest.i
  7048. cat conftest.i conftest.i >conftest2.i
  7049. lt_cv_truncate_bin=
  7050. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7051. cmp -s conftest.i conftest.out \
  7052. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7053. fi
  7054. rm -f conftest.i conftest2.i conftest.out
  7055. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7056. fi
  7057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7058. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7059. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7060. func_cc_basename ()
  7061. {
  7062. for cc_temp in $*""; do
  7063. case $cc_temp in
  7064. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7065. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7066. \-*) ;;
  7067. *) break;;
  7068. esac
  7069. done
  7070. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7071. }
  7072. # Check whether --enable-libtool-lock was given.
  7073. if test ${enable_libtool_lock+y}
  7074. then :
  7075. enableval=$enable_libtool_lock;
  7076. fi
  7077. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7078. # Some flags need to be propagated to the compiler or linker for good
  7079. # libtool support.
  7080. case $host in
  7081. ia64-*-hpux*)
  7082. # Find out what ABI is being produced by ac_compile, and set mode
  7083. # options accordingly.
  7084. echo 'int i;' > conftest.$ac_ext
  7085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7086. (eval $ac_compile) 2>&5
  7087. ac_status=$?
  7088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7089. test $ac_status = 0; }; then
  7090. case `$FILECMD conftest.$ac_objext` in
  7091. *ELF-32*)
  7092. HPUX_IA64_MODE=32
  7093. ;;
  7094. *ELF-64*)
  7095. HPUX_IA64_MODE=64
  7096. ;;
  7097. esac
  7098. fi
  7099. rm -rf conftest*
  7100. ;;
  7101. *-*-irix6*)
  7102. # Find out what ABI is being produced by ac_compile, and set linker
  7103. # options accordingly.
  7104. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7106. (eval $ac_compile) 2>&5
  7107. ac_status=$?
  7108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7109. test $ac_status = 0; }; then
  7110. if test yes = "$lt_cv_prog_gnu_ld"; then
  7111. case `$FILECMD conftest.$ac_objext` in
  7112. *32-bit*)
  7113. LD="${LD-ld} -melf32bsmip"
  7114. ;;
  7115. *N32*)
  7116. LD="${LD-ld} -melf32bmipn32"
  7117. ;;
  7118. *64-bit*)
  7119. LD="${LD-ld} -melf64bmip"
  7120. ;;
  7121. esac
  7122. else
  7123. case `$FILECMD conftest.$ac_objext` in
  7124. *32-bit*)
  7125. LD="${LD-ld} -32"
  7126. ;;
  7127. *N32*)
  7128. LD="${LD-ld} -n32"
  7129. ;;
  7130. *64-bit*)
  7131. LD="${LD-ld} -64"
  7132. ;;
  7133. esac
  7134. fi
  7135. fi
  7136. rm -rf conftest*
  7137. ;;
  7138. mips64*-*linux*)
  7139. # Find out what ABI is being produced by ac_compile, and set linker
  7140. # options accordingly.
  7141. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7143. (eval $ac_compile) 2>&5
  7144. ac_status=$?
  7145. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7146. test $ac_status = 0; }; then
  7147. emul=elf
  7148. case `$FILECMD conftest.$ac_objext` in
  7149. *32-bit*)
  7150. emul="${emul}32"
  7151. ;;
  7152. *64-bit*)
  7153. emul="${emul}64"
  7154. ;;
  7155. esac
  7156. case `$FILECMD conftest.$ac_objext` in
  7157. *MSB*)
  7158. emul="${emul}btsmip"
  7159. ;;
  7160. *LSB*)
  7161. emul="${emul}ltsmip"
  7162. ;;
  7163. esac
  7164. case `$FILECMD conftest.$ac_objext` in
  7165. *N32*)
  7166. emul="${emul}n32"
  7167. ;;
  7168. esac
  7169. LD="${LD-ld} -m $emul"
  7170. fi
  7171. rm -rf conftest*
  7172. ;;
  7173. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7174. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7175. # Find out what ABI is being produced by ac_compile, and set linker
  7176. # options accordingly. Note that the listed cases only cover the
  7177. # situations where additional linker options are needed (such as when
  7178. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7179. # vice versa); the common cases where no linker options are needed do
  7180. # not appear in the list.
  7181. echo 'int i;' > conftest.$ac_ext
  7182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7183. (eval $ac_compile) 2>&5
  7184. ac_status=$?
  7185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7186. test $ac_status = 0; }; then
  7187. case `$FILECMD conftest.o` in
  7188. *32-bit*)
  7189. case $host in
  7190. x86_64-*kfreebsd*-gnu)
  7191. LD="${LD-ld} -m elf_i386_fbsd"
  7192. ;;
  7193. x86_64-*linux*)
  7194. case `$FILECMD conftest.o` in
  7195. *x86-64*)
  7196. LD="${LD-ld} -m elf32_x86_64"
  7197. ;;
  7198. *)
  7199. LD="${LD-ld} -m elf_i386"
  7200. ;;
  7201. esac
  7202. ;;
  7203. powerpc64le-*linux*)
  7204. LD="${LD-ld} -m elf32lppclinux"
  7205. ;;
  7206. powerpc64-*linux*)
  7207. LD="${LD-ld} -m elf32ppclinux"
  7208. ;;
  7209. s390x-*linux*)
  7210. LD="${LD-ld} -m elf_s390"
  7211. ;;
  7212. sparc64-*linux*)
  7213. LD="${LD-ld} -m elf32_sparc"
  7214. ;;
  7215. esac
  7216. ;;
  7217. *64-bit*)
  7218. case $host in
  7219. x86_64-*kfreebsd*-gnu)
  7220. LD="${LD-ld} -m elf_x86_64_fbsd"
  7221. ;;
  7222. x86_64-*linux*)
  7223. LD="${LD-ld} -m elf_x86_64"
  7224. ;;
  7225. powerpcle-*linux*|powerpc64le-*linux*)
  7226. LD="${LD-ld} -m elf64lppc"
  7227. ;;
  7228. powerpc-*linux*|powerpc64-*linux*)
  7229. LD="${LD-ld} -m elf64ppc"
  7230. ;;
  7231. s390*-*linux*|s390*-*tpf*)
  7232. LD="${LD-ld} -m elf64_s390"
  7233. ;;
  7234. sparc*-*linux*)
  7235. LD="${LD-ld} -m elf64_sparc"
  7236. ;;
  7237. esac
  7238. ;;
  7239. esac
  7240. fi
  7241. rm -rf conftest*
  7242. ;;
  7243. *-*-sco3.2v5*)
  7244. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7245. SAVE_CFLAGS=$CFLAGS
  7246. CFLAGS="$CFLAGS -belf"
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7248. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7249. if test ${lt_cv_cc_needs_belf+y}
  7250. then :
  7251. printf %s "(cached) " >&6
  7252. else $as_nop
  7253. ac_ext=c
  7254. ac_cpp='$CPP $CPPFLAGS'
  7255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7259. /* end confdefs.h. */
  7260. int
  7261. main (void)
  7262. {
  7263. ;
  7264. return 0;
  7265. }
  7266. _ACEOF
  7267. if ac_fn_c_try_link "$LINENO"
  7268. then :
  7269. lt_cv_cc_needs_belf=yes
  7270. else $as_nop
  7271. lt_cv_cc_needs_belf=no
  7272. fi
  7273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7274. conftest$ac_exeext conftest.$ac_ext
  7275. ac_ext=c
  7276. ac_cpp='$CPP $CPPFLAGS'
  7277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7280. fi
  7281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7282. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7283. if test yes != "$lt_cv_cc_needs_belf"; then
  7284. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7285. CFLAGS=$SAVE_CFLAGS
  7286. fi
  7287. ;;
  7288. *-*solaris*)
  7289. # Find out what ABI is being produced by ac_compile, and set linker
  7290. # options accordingly.
  7291. echo 'int i;' > conftest.$ac_ext
  7292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7293. (eval $ac_compile) 2>&5
  7294. ac_status=$?
  7295. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7296. test $ac_status = 0; }; then
  7297. case `$FILECMD conftest.o` in
  7298. *64-bit*)
  7299. case $lt_cv_prog_gnu_ld in
  7300. yes*)
  7301. case $host in
  7302. i?86-*-solaris*|x86_64-*-solaris*)
  7303. LD="${LD-ld} -m elf_x86_64"
  7304. ;;
  7305. sparc*-*-solaris*)
  7306. LD="${LD-ld} -m elf64_sparc"
  7307. ;;
  7308. esac
  7309. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7310. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7311. LD=${LD-ld}_sol2
  7312. fi
  7313. ;;
  7314. *)
  7315. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7316. LD="${LD-ld} -64"
  7317. fi
  7318. ;;
  7319. esac
  7320. ;;
  7321. esac
  7322. fi
  7323. rm -rf conftest*
  7324. ;;
  7325. esac
  7326. need_locks=$enable_libtool_lock
  7327. if test -n "$ac_tool_prefix"; then
  7328. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7329. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7331. printf %s "checking for $ac_word... " >&6; }
  7332. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7333. then :
  7334. printf %s "(cached) " >&6
  7335. else $as_nop
  7336. if test -n "$MANIFEST_TOOL"; then
  7337. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7338. else
  7339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7340. for as_dir in $PATH
  7341. do
  7342. IFS=$as_save_IFS
  7343. case $as_dir in #(((
  7344. '') as_dir=./ ;;
  7345. */) ;;
  7346. *) as_dir=$as_dir/ ;;
  7347. esac
  7348. for ac_exec_ext in '' $ac_executable_extensions; do
  7349. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7350. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7351. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7352. break 2
  7353. fi
  7354. done
  7355. done
  7356. IFS=$as_save_IFS
  7357. fi
  7358. fi
  7359. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7360. if test -n "$MANIFEST_TOOL"; then
  7361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7362. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7363. else
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7365. printf "%s\n" "no" >&6; }
  7366. fi
  7367. fi
  7368. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7369. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7370. # Extract the first word of "mt", so it can be a program name with args.
  7371. set dummy mt; ac_word=$2
  7372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7373. printf %s "checking for $ac_word... " >&6; }
  7374. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7375. then :
  7376. printf %s "(cached) " >&6
  7377. else $as_nop
  7378. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7379. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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. case $as_dir in #(((
  7386. '') as_dir=./ ;;
  7387. */) ;;
  7388. *) as_dir=$as_dir/ ;;
  7389. esac
  7390. for ac_exec_ext in '' $ac_executable_extensions; do
  7391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7392. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7394. break 2
  7395. fi
  7396. done
  7397. done
  7398. IFS=$as_save_IFS
  7399. fi
  7400. fi
  7401. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7402. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7404. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7405. else
  7406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7407. printf "%s\n" "no" >&6; }
  7408. fi
  7409. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7410. MANIFEST_TOOL=":"
  7411. else
  7412. case $cross_compiling:$ac_tool_warned in
  7413. yes:)
  7414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7415. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7416. ac_tool_warned=yes ;;
  7417. esac
  7418. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7419. fi
  7420. else
  7421. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7422. fi
  7423. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7425. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7426. if test ${lt_cv_path_mainfest_tool+y}
  7427. then :
  7428. printf %s "(cached) " >&6
  7429. else $as_nop
  7430. lt_cv_path_mainfest_tool=no
  7431. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7432. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7433. cat conftest.err >&5
  7434. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7435. lt_cv_path_mainfest_tool=yes
  7436. fi
  7437. rm -f conftest*
  7438. fi
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7440. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7441. if test yes != "$lt_cv_path_mainfest_tool"; then
  7442. MANIFEST_TOOL=:
  7443. fi
  7444. case $host_os in
  7445. rhapsody* | darwin*)
  7446. if test -n "$ac_tool_prefix"; then
  7447. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7448. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7450. printf %s "checking for $ac_word... " >&6; }
  7451. if test ${ac_cv_prog_DSYMUTIL+y}
  7452. then :
  7453. printf %s "(cached) " >&6
  7454. else $as_nop
  7455. if test -n "$DSYMUTIL"; then
  7456. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7457. else
  7458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7459. for as_dir in $PATH
  7460. do
  7461. IFS=$as_save_IFS
  7462. case $as_dir in #(((
  7463. '') as_dir=./ ;;
  7464. */) ;;
  7465. *) as_dir=$as_dir/ ;;
  7466. esac
  7467. for ac_exec_ext in '' $ac_executable_extensions; do
  7468. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7469. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7471. break 2
  7472. fi
  7473. done
  7474. done
  7475. IFS=$as_save_IFS
  7476. fi
  7477. fi
  7478. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7479. if test -n "$DSYMUTIL"; then
  7480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7481. printf "%s\n" "$DSYMUTIL" >&6; }
  7482. else
  7483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7484. printf "%s\n" "no" >&6; }
  7485. fi
  7486. fi
  7487. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7488. ac_ct_DSYMUTIL=$DSYMUTIL
  7489. # Extract the first word of "dsymutil", so it can be a program name with args.
  7490. set dummy dsymutil; ac_word=$2
  7491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7492. printf %s "checking for $ac_word... " >&6; }
  7493. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7494. then :
  7495. printf %s "(cached) " >&6
  7496. else $as_nop
  7497. if test -n "$ac_ct_DSYMUTIL"; then
  7498. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7499. else
  7500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7501. for as_dir in $PATH
  7502. do
  7503. IFS=$as_save_IFS
  7504. case $as_dir in #(((
  7505. '') as_dir=./ ;;
  7506. */) ;;
  7507. *) as_dir=$as_dir/ ;;
  7508. esac
  7509. for ac_exec_ext in '' $ac_executable_extensions; do
  7510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7511. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7513. break 2
  7514. fi
  7515. done
  7516. done
  7517. IFS=$as_save_IFS
  7518. fi
  7519. fi
  7520. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7521. if test -n "$ac_ct_DSYMUTIL"; then
  7522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7523. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7524. else
  7525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7526. printf "%s\n" "no" >&6; }
  7527. fi
  7528. if test "x$ac_ct_DSYMUTIL" = x; then
  7529. DSYMUTIL=":"
  7530. else
  7531. case $cross_compiling:$ac_tool_warned in
  7532. yes:)
  7533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7534. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7535. ac_tool_warned=yes ;;
  7536. esac
  7537. DSYMUTIL=$ac_ct_DSYMUTIL
  7538. fi
  7539. else
  7540. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7541. fi
  7542. if test -n "$ac_tool_prefix"; then
  7543. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7544. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7546. printf %s "checking for $ac_word... " >&6; }
  7547. if test ${ac_cv_prog_NMEDIT+y}
  7548. then :
  7549. printf %s "(cached) " >&6
  7550. else $as_nop
  7551. if test -n "$NMEDIT"; then
  7552. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7553. else
  7554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7555. for as_dir in $PATH
  7556. do
  7557. IFS=$as_save_IFS
  7558. case $as_dir in #(((
  7559. '') as_dir=./ ;;
  7560. */) ;;
  7561. *) as_dir=$as_dir/ ;;
  7562. esac
  7563. for ac_exec_ext in '' $ac_executable_extensions; do
  7564. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7565. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7566. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7567. break 2
  7568. fi
  7569. done
  7570. done
  7571. IFS=$as_save_IFS
  7572. fi
  7573. fi
  7574. NMEDIT=$ac_cv_prog_NMEDIT
  7575. if test -n "$NMEDIT"; then
  7576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7577. printf "%s\n" "$NMEDIT" >&6; }
  7578. else
  7579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7580. printf "%s\n" "no" >&6; }
  7581. fi
  7582. fi
  7583. if test -z "$ac_cv_prog_NMEDIT"; then
  7584. ac_ct_NMEDIT=$NMEDIT
  7585. # Extract the first word of "nmedit", so it can be a program name with args.
  7586. set dummy nmedit; ac_word=$2
  7587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7588. printf %s "checking for $ac_word... " >&6; }
  7589. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7590. then :
  7591. printf %s "(cached) " >&6
  7592. else $as_nop
  7593. if test -n "$ac_ct_NMEDIT"; then
  7594. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7595. else
  7596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7597. for as_dir in $PATH
  7598. do
  7599. IFS=$as_save_IFS
  7600. case $as_dir in #(((
  7601. '') as_dir=./ ;;
  7602. */) ;;
  7603. *) as_dir=$as_dir/ ;;
  7604. esac
  7605. for ac_exec_ext in '' $ac_executable_extensions; do
  7606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7607. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7609. break 2
  7610. fi
  7611. done
  7612. done
  7613. IFS=$as_save_IFS
  7614. fi
  7615. fi
  7616. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7617. if test -n "$ac_ct_NMEDIT"; then
  7618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7619. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7620. else
  7621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7622. printf "%s\n" "no" >&6; }
  7623. fi
  7624. if test "x$ac_ct_NMEDIT" = x; then
  7625. NMEDIT=":"
  7626. else
  7627. case $cross_compiling:$ac_tool_warned in
  7628. yes:)
  7629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7631. ac_tool_warned=yes ;;
  7632. esac
  7633. NMEDIT=$ac_ct_NMEDIT
  7634. fi
  7635. else
  7636. NMEDIT="$ac_cv_prog_NMEDIT"
  7637. fi
  7638. if test -n "$ac_tool_prefix"; then
  7639. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7640. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7642. printf %s "checking for $ac_word... " >&6; }
  7643. if test ${ac_cv_prog_LIPO+y}
  7644. then :
  7645. printf %s "(cached) " >&6
  7646. else $as_nop
  7647. if test -n "$LIPO"; then
  7648. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7649. else
  7650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7651. for as_dir in $PATH
  7652. do
  7653. IFS=$as_save_IFS
  7654. case $as_dir in #(((
  7655. '') as_dir=./ ;;
  7656. */) ;;
  7657. *) as_dir=$as_dir/ ;;
  7658. esac
  7659. for ac_exec_ext in '' $ac_executable_extensions; do
  7660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7661. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7663. break 2
  7664. fi
  7665. done
  7666. done
  7667. IFS=$as_save_IFS
  7668. fi
  7669. fi
  7670. LIPO=$ac_cv_prog_LIPO
  7671. if test -n "$LIPO"; then
  7672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7673. printf "%s\n" "$LIPO" >&6; }
  7674. else
  7675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7676. printf "%s\n" "no" >&6; }
  7677. fi
  7678. fi
  7679. if test -z "$ac_cv_prog_LIPO"; then
  7680. ac_ct_LIPO=$LIPO
  7681. # Extract the first word of "lipo", so it can be a program name with args.
  7682. set dummy lipo; ac_word=$2
  7683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7684. printf %s "checking for $ac_word... " >&6; }
  7685. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7686. then :
  7687. printf %s "(cached) " >&6
  7688. else $as_nop
  7689. if test -n "$ac_ct_LIPO"; then
  7690. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7691. else
  7692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7693. for as_dir in $PATH
  7694. do
  7695. IFS=$as_save_IFS
  7696. case $as_dir in #(((
  7697. '') as_dir=./ ;;
  7698. */) ;;
  7699. *) as_dir=$as_dir/ ;;
  7700. esac
  7701. for ac_exec_ext in '' $ac_executable_extensions; do
  7702. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7703. ac_cv_prog_ac_ct_LIPO="lipo"
  7704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7705. break 2
  7706. fi
  7707. done
  7708. done
  7709. IFS=$as_save_IFS
  7710. fi
  7711. fi
  7712. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7713. if test -n "$ac_ct_LIPO"; then
  7714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7715. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7716. else
  7717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7718. printf "%s\n" "no" >&6; }
  7719. fi
  7720. if test "x$ac_ct_LIPO" = x; then
  7721. LIPO=":"
  7722. else
  7723. case $cross_compiling:$ac_tool_warned in
  7724. yes:)
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7726. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7727. ac_tool_warned=yes ;;
  7728. esac
  7729. LIPO=$ac_ct_LIPO
  7730. fi
  7731. else
  7732. LIPO="$ac_cv_prog_LIPO"
  7733. fi
  7734. if test -n "$ac_tool_prefix"; then
  7735. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7736. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7738. printf %s "checking for $ac_word... " >&6; }
  7739. if test ${ac_cv_prog_OTOOL+y}
  7740. then :
  7741. printf %s "(cached) " >&6
  7742. else $as_nop
  7743. if test -n "$OTOOL"; then
  7744. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7745. else
  7746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7747. for as_dir in $PATH
  7748. do
  7749. IFS=$as_save_IFS
  7750. case $as_dir in #(((
  7751. '') as_dir=./ ;;
  7752. */) ;;
  7753. *) as_dir=$as_dir/ ;;
  7754. esac
  7755. for ac_exec_ext in '' $ac_executable_extensions; do
  7756. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7757. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7759. break 2
  7760. fi
  7761. done
  7762. done
  7763. IFS=$as_save_IFS
  7764. fi
  7765. fi
  7766. OTOOL=$ac_cv_prog_OTOOL
  7767. if test -n "$OTOOL"; then
  7768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7769. printf "%s\n" "$OTOOL" >&6; }
  7770. else
  7771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7772. printf "%s\n" "no" >&6; }
  7773. fi
  7774. fi
  7775. if test -z "$ac_cv_prog_OTOOL"; then
  7776. ac_ct_OTOOL=$OTOOL
  7777. # Extract the first word of "otool", so it can be a program name with args.
  7778. set dummy otool; ac_word=$2
  7779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7780. printf %s "checking for $ac_word... " >&6; }
  7781. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7782. then :
  7783. printf %s "(cached) " >&6
  7784. else $as_nop
  7785. if test -n "$ac_ct_OTOOL"; then
  7786. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7787. else
  7788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7789. for as_dir in $PATH
  7790. do
  7791. IFS=$as_save_IFS
  7792. case $as_dir in #(((
  7793. '') as_dir=./ ;;
  7794. */) ;;
  7795. *) as_dir=$as_dir/ ;;
  7796. esac
  7797. for ac_exec_ext in '' $ac_executable_extensions; do
  7798. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7799. ac_cv_prog_ac_ct_OTOOL="otool"
  7800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7801. break 2
  7802. fi
  7803. done
  7804. done
  7805. IFS=$as_save_IFS
  7806. fi
  7807. fi
  7808. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7809. if test -n "$ac_ct_OTOOL"; then
  7810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7811. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7812. else
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. printf "%s\n" "no" >&6; }
  7815. fi
  7816. if test "x$ac_ct_OTOOL" = x; then
  7817. OTOOL=":"
  7818. else
  7819. case $cross_compiling:$ac_tool_warned in
  7820. yes:)
  7821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7822. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7823. ac_tool_warned=yes ;;
  7824. esac
  7825. OTOOL=$ac_ct_OTOOL
  7826. fi
  7827. else
  7828. OTOOL="$ac_cv_prog_OTOOL"
  7829. fi
  7830. if test -n "$ac_tool_prefix"; then
  7831. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7832. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7834. printf %s "checking for $ac_word... " >&6; }
  7835. if test ${ac_cv_prog_OTOOL64+y}
  7836. then :
  7837. printf %s "(cached) " >&6
  7838. else $as_nop
  7839. if test -n "$OTOOL64"; then
  7840. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7841. else
  7842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7843. for as_dir in $PATH
  7844. do
  7845. IFS=$as_save_IFS
  7846. case $as_dir in #(((
  7847. '') as_dir=./ ;;
  7848. */) ;;
  7849. *) as_dir=$as_dir/ ;;
  7850. esac
  7851. for ac_exec_ext in '' $ac_executable_extensions; do
  7852. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7853. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7855. break 2
  7856. fi
  7857. done
  7858. done
  7859. IFS=$as_save_IFS
  7860. fi
  7861. fi
  7862. OTOOL64=$ac_cv_prog_OTOOL64
  7863. if test -n "$OTOOL64"; then
  7864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7865. printf "%s\n" "$OTOOL64" >&6; }
  7866. else
  7867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7868. printf "%s\n" "no" >&6; }
  7869. fi
  7870. fi
  7871. if test -z "$ac_cv_prog_OTOOL64"; then
  7872. ac_ct_OTOOL64=$OTOOL64
  7873. # Extract the first word of "otool64", so it can be a program name with args.
  7874. set dummy otool64; ac_word=$2
  7875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7876. printf %s "checking for $ac_word... " >&6; }
  7877. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7878. then :
  7879. printf %s "(cached) " >&6
  7880. else $as_nop
  7881. if test -n "$ac_ct_OTOOL64"; then
  7882. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7883. else
  7884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7885. for as_dir in $PATH
  7886. do
  7887. IFS=$as_save_IFS
  7888. case $as_dir in #(((
  7889. '') as_dir=./ ;;
  7890. */) ;;
  7891. *) as_dir=$as_dir/ ;;
  7892. esac
  7893. for ac_exec_ext in '' $ac_executable_extensions; do
  7894. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7895. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7896. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7897. break 2
  7898. fi
  7899. done
  7900. done
  7901. IFS=$as_save_IFS
  7902. fi
  7903. fi
  7904. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7905. if test -n "$ac_ct_OTOOL64"; then
  7906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7907. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7908. else
  7909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7910. printf "%s\n" "no" >&6; }
  7911. fi
  7912. if test "x$ac_ct_OTOOL64" = x; then
  7913. OTOOL64=":"
  7914. else
  7915. case $cross_compiling:$ac_tool_warned in
  7916. yes:)
  7917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7918. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7919. ac_tool_warned=yes ;;
  7920. esac
  7921. OTOOL64=$ac_ct_OTOOL64
  7922. fi
  7923. else
  7924. OTOOL64="$ac_cv_prog_OTOOL64"
  7925. fi
  7926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7927. printf %s "checking for -single_module linker flag... " >&6; }
  7928. if test ${lt_cv_apple_cc_single_mod+y}
  7929. then :
  7930. printf %s "(cached) " >&6
  7931. else $as_nop
  7932. lt_cv_apple_cc_single_mod=no
  7933. if test -z "$LT_MULTI_MODULE"; then
  7934. # By default we will add the -single_module flag. You can override
  7935. # by either setting the environment variable LT_MULTI_MODULE
  7936. # non-empty at configure time, or by adding -multi_module to the
  7937. # link flags.
  7938. rm -rf libconftest.dylib*
  7939. echo "int foo(void){return 1;}" > conftest.c
  7940. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7941. -dynamiclib -Wl,-single_module conftest.c" >&5
  7942. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7943. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7944. _lt_result=$?
  7945. # If there is a non-empty error log, and "single_module"
  7946. # appears in it, assume the flag caused a linker warning
  7947. if test -s conftest.err && $GREP single_module conftest.err; then
  7948. cat conftest.err >&5
  7949. # Otherwise, if the output was created with a 0 exit code from
  7950. # the compiler, it worked.
  7951. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7952. lt_cv_apple_cc_single_mod=yes
  7953. else
  7954. cat conftest.err >&5
  7955. fi
  7956. rm -rf libconftest.dylib*
  7957. rm -f conftest.*
  7958. fi
  7959. fi
  7960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7961. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7963. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7964. if test ${lt_cv_ld_exported_symbols_list+y}
  7965. then :
  7966. printf %s "(cached) " >&6
  7967. else $as_nop
  7968. lt_cv_ld_exported_symbols_list=no
  7969. save_LDFLAGS=$LDFLAGS
  7970. echo "_main" > conftest.sym
  7971. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7973. /* end confdefs.h. */
  7974. int
  7975. main (void)
  7976. {
  7977. ;
  7978. return 0;
  7979. }
  7980. _ACEOF
  7981. if ac_fn_c_try_link "$LINENO"
  7982. then :
  7983. lt_cv_ld_exported_symbols_list=yes
  7984. else $as_nop
  7985. lt_cv_ld_exported_symbols_list=no
  7986. fi
  7987. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7988. conftest$ac_exeext conftest.$ac_ext
  7989. LDFLAGS=$save_LDFLAGS
  7990. fi
  7991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7992. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7994. printf %s "checking for -force_load linker flag... " >&6; }
  7995. if test ${lt_cv_ld_force_load+y}
  7996. then :
  7997. printf %s "(cached) " >&6
  7998. else $as_nop
  7999. lt_cv_ld_force_load=no
  8000. cat > conftest.c << _LT_EOF
  8001. int forced_loaded() { return 2;}
  8002. _LT_EOF
  8003. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8004. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8005. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8006. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8007. echo "$RANLIB libconftest.a" >&5
  8008. $RANLIB libconftest.a 2>&5
  8009. cat > conftest.c << _LT_EOF
  8010. int main() { return 0;}
  8011. _LT_EOF
  8012. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8013. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8014. _lt_result=$?
  8015. if test -s conftest.err && $GREP force_load conftest.err; then
  8016. cat conftest.err >&5
  8017. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8018. lt_cv_ld_force_load=yes
  8019. else
  8020. cat conftest.err >&5
  8021. fi
  8022. rm -f conftest.err libconftest.a conftest conftest.c
  8023. rm -rf conftest.dSYM
  8024. fi
  8025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8026. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8027. case $host_os in
  8028. rhapsody* | darwin1.[012])
  8029. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8030. darwin1.*)
  8031. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8032. darwin*)
  8033. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8034. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8035. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8036. *)
  8037. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8038. esac
  8039. ;;
  8040. esac
  8041. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8042. _lt_dar_single_mod='$single_module'
  8043. fi
  8044. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8045. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8046. else
  8047. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8048. fi
  8049. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8050. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8051. else
  8052. _lt_dsymutil=
  8053. fi
  8054. ;;
  8055. esac
  8056. # func_munge_path_list VARIABLE PATH
  8057. # -----------------------------------
  8058. # VARIABLE is name of variable containing _space_ separated list of
  8059. # directories to be munged by the contents of PATH, which is string
  8060. # having a format:
  8061. # "DIR[:DIR]:"
  8062. # string "DIR[ DIR]" will be prepended to VARIABLE
  8063. # ":DIR[:DIR]"
  8064. # string "DIR[ DIR]" will be appended to VARIABLE
  8065. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8066. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8067. # "DIRA[ DIRA]" will be appended to VARIABLE
  8068. # "DIR[:DIR]"
  8069. # VARIABLE will be replaced by "DIR[ DIR]"
  8070. func_munge_path_list ()
  8071. {
  8072. case x$2 in
  8073. x)
  8074. ;;
  8075. *:)
  8076. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8077. ;;
  8078. x:*)
  8079. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8080. ;;
  8081. *::*)
  8082. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8083. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8084. ;;
  8085. *)
  8086. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8087. ;;
  8088. esac
  8089. }
  8090. ac_header= ac_cache=
  8091. for ac_item in $ac_header_c_list
  8092. do
  8093. if test $ac_cache; then
  8094. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8095. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8096. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8097. fi
  8098. ac_header= ac_cache=
  8099. elif test $ac_header; then
  8100. ac_cache=$ac_item
  8101. else
  8102. ac_header=$ac_item
  8103. fi
  8104. done
  8105. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8106. then :
  8107. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8108. fi
  8109. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8110. "
  8111. if test "x$ac_cv_header_dlfcn_h" = xyes
  8112. then :
  8113. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8114. fi
  8115. # Set options
  8116. enable_win32_dll=yes
  8117. case $host in
  8118. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8119. if test -n "$ac_tool_prefix"; then
  8120. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8121. set dummy ${ac_tool_prefix}as; ac_word=$2
  8122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8123. printf %s "checking for $ac_word... " >&6; }
  8124. if test ${ac_cv_prog_AS+y}
  8125. then :
  8126. printf %s "(cached) " >&6
  8127. else $as_nop
  8128. if test -n "$AS"; then
  8129. ac_cv_prog_AS="$AS" # Let the user override the test.
  8130. else
  8131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8132. for as_dir in $PATH
  8133. do
  8134. IFS=$as_save_IFS
  8135. case $as_dir in #(((
  8136. '') as_dir=./ ;;
  8137. */) ;;
  8138. *) as_dir=$as_dir/ ;;
  8139. esac
  8140. for ac_exec_ext in '' $ac_executable_extensions; do
  8141. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8142. ac_cv_prog_AS="${ac_tool_prefix}as"
  8143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8144. break 2
  8145. fi
  8146. done
  8147. done
  8148. IFS=$as_save_IFS
  8149. fi
  8150. fi
  8151. AS=$ac_cv_prog_AS
  8152. if test -n "$AS"; then
  8153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8154. printf "%s\n" "$AS" >&6; }
  8155. else
  8156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8157. printf "%s\n" "no" >&6; }
  8158. fi
  8159. fi
  8160. if test -z "$ac_cv_prog_AS"; then
  8161. ac_ct_AS=$AS
  8162. # Extract the first word of "as", so it can be a program name with args.
  8163. set dummy as; ac_word=$2
  8164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8165. printf %s "checking for $ac_word... " >&6; }
  8166. if test ${ac_cv_prog_ac_ct_AS+y}
  8167. then :
  8168. printf %s "(cached) " >&6
  8169. else $as_nop
  8170. if test -n "$ac_ct_AS"; then
  8171. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8172. else
  8173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8174. for as_dir in $PATH
  8175. do
  8176. IFS=$as_save_IFS
  8177. case $as_dir in #(((
  8178. '') as_dir=./ ;;
  8179. */) ;;
  8180. *) as_dir=$as_dir/ ;;
  8181. esac
  8182. for ac_exec_ext in '' $ac_executable_extensions; do
  8183. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8184. ac_cv_prog_ac_ct_AS="as"
  8185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8186. break 2
  8187. fi
  8188. done
  8189. done
  8190. IFS=$as_save_IFS
  8191. fi
  8192. fi
  8193. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8194. if test -n "$ac_ct_AS"; then
  8195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8196. printf "%s\n" "$ac_ct_AS" >&6; }
  8197. else
  8198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8199. printf "%s\n" "no" >&6; }
  8200. fi
  8201. if test "x$ac_ct_AS" = x; then
  8202. AS="false"
  8203. else
  8204. case $cross_compiling:$ac_tool_warned in
  8205. yes:)
  8206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8207. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8208. ac_tool_warned=yes ;;
  8209. esac
  8210. AS=$ac_ct_AS
  8211. fi
  8212. else
  8213. AS="$ac_cv_prog_AS"
  8214. fi
  8215. if test -n "$ac_tool_prefix"; then
  8216. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8217. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8219. printf %s "checking for $ac_word... " >&6; }
  8220. if test ${ac_cv_prog_DLLTOOL+y}
  8221. then :
  8222. printf %s "(cached) " >&6
  8223. else $as_nop
  8224. if test -n "$DLLTOOL"; then
  8225. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8226. else
  8227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8228. for as_dir in $PATH
  8229. do
  8230. IFS=$as_save_IFS
  8231. case $as_dir in #(((
  8232. '') as_dir=./ ;;
  8233. */) ;;
  8234. *) as_dir=$as_dir/ ;;
  8235. esac
  8236. for ac_exec_ext in '' $ac_executable_extensions; do
  8237. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8238. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8240. break 2
  8241. fi
  8242. done
  8243. done
  8244. IFS=$as_save_IFS
  8245. fi
  8246. fi
  8247. DLLTOOL=$ac_cv_prog_DLLTOOL
  8248. if test -n "$DLLTOOL"; then
  8249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8250. printf "%s\n" "$DLLTOOL" >&6; }
  8251. else
  8252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8253. printf "%s\n" "no" >&6; }
  8254. fi
  8255. fi
  8256. if test -z "$ac_cv_prog_DLLTOOL"; then
  8257. ac_ct_DLLTOOL=$DLLTOOL
  8258. # Extract the first word of "dlltool", so it can be a program name with args.
  8259. set dummy dlltool; ac_word=$2
  8260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8261. printf %s "checking for $ac_word... " >&6; }
  8262. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8263. then :
  8264. printf %s "(cached) " >&6
  8265. else $as_nop
  8266. if test -n "$ac_ct_DLLTOOL"; then
  8267. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8268. else
  8269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8270. for as_dir in $PATH
  8271. do
  8272. IFS=$as_save_IFS
  8273. case $as_dir in #(((
  8274. '') as_dir=./ ;;
  8275. */) ;;
  8276. *) as_dir=$as_dir/ ;;
  8277. esac
  8278. for ac_exec_ext in '' $ac_executable_extensions; do
  8279. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8280. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8281. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8282. break 2
  8283. fi
  8284. done
  8285. done
  8286. IFS=$as_save_IFS
  8287. fi
  8288. fi
  8289. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8290. if test -n "$ac_ct_DLLTOOL"; then
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8292. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8293. else
  8294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8295. printf "%s\n" "no" >&6; }
  8296. fi
  8297. if test "x$ac_ct_DLLTOOL" = x; then
  8298. DLLTOOL="false"
  8299. else
  8300. case $cross_compiling:$ac_tool_warned in
  8301. yes:)
  8302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8303. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8304. ac_tool_warned=yes ;;
  8305. esac
  8306. DLLTOOL=$ac_ct_DLLTOOL
  8307. fi
  8308. else
  8309. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8310. fi
  8311. if test -n "$ac_tool_prefix"; then
  8312. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8313. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8315. printf %s "checking for $ac_word... " >&6; }
  8316. if test ${ac_cv_prog_OBJDUMP+y}
  8317. then :
  8318. printf %s "(cached) " >&6
  8319. else $as_nop
  8320. if test -n "$OBJDUMP"; then
  8321. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8322. else
  8323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8324. for as_dir in $PATH
  8325. do
  8326. IFS=$as_save_IFS
  8327. case $as_dir in #(((
  8328. '') as_dir=./ ;;
  8329. */) ;;
  8330. *) as_dir=$as_dir/ ;;
  8331. esac
  8332. for ac_exec_ext in '' $ac_executable_extensions; do
  8333. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8334. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8336. break 2
  8337. fi
  8338. done
  8339. done
  8340. IFS=$as_save_IFS
  8341. fi
  8342. fi
  8343. OBJDUMP=$ac_cv_prog_OBJDUMP
  8344. if test -n "$OBJDUMP"; then
  8345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8346. printf "%s\n" "$OBJDUMP" >&6; }
  8347. else
  8348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8349. printf "%s\n" "no" >&6; }
  8350. fi
  8351. fi
  8352. if test -z "$ac_cv_prog_OBJDUMP"; then
  8353. ac_ct_OBJDUMP=$OBJDUMP
  8354. # Extract the first word of "objdump", so it can be a program name with args.
  8355. set dummy objdump; ac_word=$2
  8356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8357. printf %s "checking for $ac_word... " >&6; }
  8358. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8359. then :
  8360. printf %s "(cached) " >&6
  8361. else $as_nop
  8362. if test -n "$ac_ct_OBJDUMP"; then
  8363. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8364. else
  8365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8366. for as_dir in $PATH
  8367. do
  8368. IFS=$as_save_IFS
  8369. case $as_dir in #(((
  8370. '') as_dir=./ ;;
  8371. */) ;;
  8372. *) as_dir=$as_dir/ ;;
  8373. esac
  8374. for ac_exec_ext in '' $ac_executable_extensions; do
  8375. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8376. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8377. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8378. break 2
  8379. fi
  8380. done
  8381. done
  8382. IFS=$as_save_IFS
  8383. fi
  8384. fi
  8385. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8386. if test -n "$ac_ct_OBJDUMP"; then
  8387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8388. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8389. else
  8390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8391. printf "%s\n" "no" >&6; }
  8392. fi
  8393. if test "x$ac_ct_OBJDUMP" = x; then
  8394. OBJDUMP="false"
  8395. else
  8396. case $cross_compiling:$ac_tool_warned in
  8397. yes:)
  8398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8399. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8400. ac_tool_warned=yes ;;
  8401. esac
  8402. OBJDUMP=$ac_ct_OBJDUMP
  8403. fi
  8404. else
  8405. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8406. fi
  8407. ;;
  8408. esac
  8409. test -z "$AS" && AS=as
  8410. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8411. test -z "$OBJDUMP" && OBJDUMP=objdump
  8412. enable_dlopen=no
  8413. # Check whether --enable-shared was given.
  8414. if test ${enable_shared+y}
  8415. then :
  8416. enableval=$enable_shared; p=${PACKAGE-default}
  8417. case $enableval in
  8418. yes) enable_shared=yes ;;
  8419. no) enable_shared=no ;;
  8420. *)
  8421. enable_shared=no
  8422. # Look at the argument we got. We use all the common list separators.
  8423. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8424. for pkg in $enableval; do
  8425. IFS=$lt_save_ifs
  8426. if test "X$pkg" = "X$p"; then
  8427. enable_shared=yes
  8428. fi
  8429. done
  8430. IFS=$lt_save_ifs
  8431. ;;
  8432. esac
  8433. else $as_nop
  8434. enable_shared=yes
  8435. fi
  8436. # Check whether --enable-static was given.
  8437. if test ${enable_static+y}
  8438. then :
  8439. enableval=$enable_static; p=${PACKAGE-default}
  8440. case $enableval in
  8441. yes) enable_static=yes ;;
  8442. no) enable_static=no ;;
  8443. *)
  8444. enable_static=no
  8445. # Look at the argument we got. We use all the common list separators.
  8446. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8447. for pkg in $enableval; do
  8448. IFS=$lt_save_ifs
  8449. if test "X$pkg" = "X$p"; then
  8450. enable_static=yes
  8451. fi
  8452. done
  8453. IFS=$lt_save_ifs
  8454. ;;
  8455. esac
  8456. else $as_nop
  8457. enable_static=yes
  8458. fi
  8459. # Check whether --with-pic was given.
  8460. if test ${with_pic+y}
  8461. then :
  8462. withval=$with_pic; lt_p=${PACKAGE-default}
  8463. case $withval in
  8464. yes|no) pic_mode=$withval ;;
  8465. *)
  8466. pic_mode=default
  8467. # Look at the argument we got. We use all the common list separators.
  8468. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8469. for lt_pkg in $withval; do
  8470. IFS=$lt_save_ifs
  8471. if test "X$lt_pkg" = "X$lt_p"; then
  8472. pic_mode=yes
  8473. fi
  8474. done
  8475. IFS=$lt_save_ifs
  8476. ;;
  8477. esac
  8478. else $as_nop
  8479. pic_mode=default
  8480. fi
  8481. # Check whether --enable-fast-install was given.
  8482. if test ${enable_fast_install+y}
  8483. then :
  8484. enableval=$enable_fast_install; p=${PACKAGE-default}
  8485. case $enableval in
  8486. yes) enable_fast_install=yes ;;
  8487. no) enable_fast_install=no ;;
  8488. *)
  8489. enable_fast_install=no
  8490. # Look at the argument we got. We use all the common list separators.
  8491. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8492. for pkg in $enableval; do
  8493. IFS=$lt_save_ifs
  8494. if test "X$pkg" = "X$p"; then
  8495. enable_fast_install=yes
  8496. fi
  8497. done
  8498. IFS=$lt_save_ifs
  8499. ;;
  8500. esac
  8501. else $as_nop
  8502. enable_fast_install=yes
  8503. fi
  8504. shared_archive_member_spec=
  8505. case $host,$enable_shared in
  8506. power*-*-aix[5-9]*,yes)
  8507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8508. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8509. # Check whether --with-aix-soname was given.
  8510. if test ${with_aix_soname+y}
  8511. then :
  8512. withval=$with_aix_soname; case $withval in
  8513. aix|svr4|both)
  8514. ;;
  8515. *)
  8516. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8517. ;;
  8518. esac
  8519. lt_cv_with_aix_soname=$with_aix_soname
  8520. else $as_nop
  8521. if test ${lt_cv_with_aix_soname+y}
  8522. then :
  8523. printf %s "(cached) " >&6
  8524. else $as_nop
  8525. lt_cv_with_aix_soname=aix
  8526. fi
  8527. with_aix_soname=$lt_cv_with_aix_soname
  8528. fi
  8529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8530. printf "%s\n" "$with_aix_soname" >&6; }
  8531. if test aix != "$with_aix_soname"; then
  8532. # For the AIX way of multilib, we name the shared archive member
  8533. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8534. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8535. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8536. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8537. if test 64 = "${OBJECT_MODE-32}"; then
  8538. shared_archive_member_spec=shr_64
  8539. else
  8540. shared_archive_member_spec=shr
  8541. fi
  8542. fi
  8543. ;;
  8544. *)
  8545. with_aix_soname=aix
  8546. ;;
  8547. esac
  8548. # This can be used to rebuild libtool when needed
  8549. LIBTOOL_DEPS=$ltmain
  8550. # Always use our own libtool.
  8551. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8552. test -z "$LN_S" && LN_S="ln -s"
  8553. if test -n "${ZSH_VERSION+set}"; then
  8554. setopt NO_GLOB_SUBST
  8555. fi
  8556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8557. printf %s "checking for objdir... " >&6; }
  8558. if test ${lt_cv_objdir+y}
  8559. then :
  8560. printf %s "(cached) " >&6
  8561. else $as_nop
  8562. rm -f .libs 2>/dev/null
  8563. mkdir .libs 2>/dev/null
  8564. if test -d .libs; then
  8565. lt_cv_objdir=.libs
  8566. else
  8567. # MS-DOS does not allow filenames that begin with a dot.
  8568. lt_cv_objdir=_libs
  8569. fi
  8570. rmdir .libs 2>/dev/null
  8571. fi
  8572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8573. printf "%s\n" "$lt_cv_objdir" >&6; }
  8574. objdir=$lt_cv_objdir
  8575. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8576. case $host_os in
  8577. aix3*)
  8578. # AIX sometimes has problems with the GCC collect2 program. For some
  8579. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8580. # vanish in a puff of smoke.
  8581. if test set != "${COLLECT_NAMES+set}"; then
  8582. COLLECT_NAMES=
  8583. export COLLECT_NAMES
  8584. fi
  8585. ;;
  8586. esac
  8587. # Global variables:
  8588. ofile=libtool
  8589. can_build_shared=yes
  8590. # All known linkers require a '.a' archive for static linking (except MSVC and
  8591. # ICC, which need '.lib').
  8592. libext=a
  8593. with_gnu_ld=$lt_cv_prog_gnu_ld
  8594. old_CC=$CC
  8595. old_CFLAGS=$CFLAGS
  8596. # Set sane defaults for various variables
  8597. test -z "$CC" && CC=cc
  8598. test -z "$LTCC" && LTCC=$CC
  8599. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8600. test -z "$LD" && LD=ld
  8601. test -z "$ac_objext" && ac_objext=o
  8602. func_cc_basename $compiler
  8603. cc_basename=$func_cc_basename_result
  8604. # Only perform the check for file, if the check method requires it
  8605. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8606. case $deplibs_check_method in
  8607. file_magic*)
  8608. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8610. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8611. if test ${lt_cv_path_MAGIC_CMD+y}
  8612. then :
  8613. printf %s "(cached) " >&6
  8614. else $as_nop
  8615. case $MAGIC_CMD in
  8616. [\\/*] | ?:[\\/]*)
  8617. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8618. ;;
  8619. *)
  8620. lt_save_MAGIC_CMD=$MAGIC_CMD
  8621. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8622. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8623. for ac_dir in $ac_dummy; do
  8624. IFS=$lt_save_ifs
  8625. test -z "$ac_dir" && ac_dir=.
  8626. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8627. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8628. if test -n "$file_magic_test_file"; then
  8629. case $deplibs_check_method in
  8630. "file_magic "*)
  8631. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8632. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8633. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8634. $EGREP "$file_magic_regex" > /dev/null; then
  8635. :
  8636. else
  8637. cat <<_LT_EOF 1>&2
  8638. *** Warning: the command libtool uses to detect shared libraries,
  8639. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8640. *** The result is that libtool may fail to recognize shared libraries
  8641. *** as such. This will affect the creation of libtool libraries that
  8642. *** depend on shared libraries, but programs linked with such libtool
  8643. *** libraries will work regardless of this problem. Nevertheless, you
  8644. *** may want to report the problem to your system manager and/or to
  8645. *** [email protected]
  8646. _LT_EOF
  8647. fi ;;
  8648. esac
  8649. fi
  8650. break
  8651. fi
  8652. done
  8653. IFS=$lt_save_ifs
  8654. MAGIC_CMD=$lt_save_MAGIC_CMD
  8655. ;;
  8656. esac
  8657. fi
  8658. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8659. if test -n "$MAGIC_CMD"; then
  8660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8661. printf "%s\n" "$MAGIC_CMD" >&6; }
  8662. else
  8663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8664. printf "%s\n" "no" >&6; }
  8665. fi
  8666. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8667. if test -n "$ac_tool_prefix"; then
  8668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8669. printf %s "checking for file... " >&6; }
  8670. if test ${lt_cv_path_MAGIC_CMD+y}
  8671. then :
  8672. printf %s "(cached) " >&6
  8673. else $as_nop
  8674. case $MAGIC_CMD in
  8675. [\\/*] | ?:[\\/]*)
  8676. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8677. ;;
  8678. *)
  8679. lt_save_MAGIC_CMD=$MAGIC_CMD
  8680. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8681. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8682. for ac_dir in $ac_dummy; do
  8683. IFS=$lt_save_ifs
  8684. test -z "$ac_dir" && ac_dir=.
  8685. if test -f "$ac_dir/file"; then
  8686. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8687. if test -n "$file_magic_test_file"; then
  8688. case $deplibs_check_method in
  8689. "file_magic "*)
  8690. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8691. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8692. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8693. $EGREP "$file_magic_regex" > /dev/null; then
  8694. :
  8695. else
  8696. cat <<_LT_EOF 1>&2
  8697. *** Warning: the command libtool uses to detect shared libraries,
  8698. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8699. *** The result is that libtool may fail to recognize shared libraries
  8700. *** as such. This will affect the creation of libtool libraries that
  8701. *** depend on shared libraries, but programs linked with such libtool
  8702. *** libraries will work regardless of this problem. Nevertheless, you
  8703. *** may want to report the problem to your system manager and/or to
  8704. *** [email protected]
  8705. _LT_EOF
  8706. fi ;;
  8707. esac
  8708. fi
  8709. break
  8710. fi
  8711. done
  8712. IFS=$lt_save_ifs
  8713. MAGIC_CMD=$lt_save_MAGIC_CMD
  8714. ;;
  8715. esac
  8716. fi
  8717. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8718. if test -n "$MAGIC_CMD"; then
  8719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8720. printf "%s\n" "$MAGIC_CMD" >&6; }
  8721. else
  8722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8723. printf "%s\n" "no" >&6; }
  8724. fi
  8725. else
  8726. MAGIC_CMD=:
  8727. fi
  8728. fi
  8729. fi
  8730. ;;
  8731. esac
  8732. # Use C for the default configuration in the libtool script
  8733. lt_save_CC=$CC
  8734. ac_ext=c
  8735. ac_cpp='$CPP $CPPFLAGS'
  8736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8739. # Source file extension for C test sources.
  8740. ac_ext=c
  8741. # Object file extension for compiled C test sources.
  8742. objext=o
  8743. objext=$objext
  8744. # Code to be used in simple compile tests
  8745. lt_simple_compile_test_code="int some_variable = 0;"
  8746. # Code to be used in simple link tests
  8747. lt_simple_link_test_code='int main(){return(0);}'
  8748. # If no C compiler was specified, use CC.
  8749. LTCC=${LTCC-"$CC"}
  8750. # If no C compiler flags were specified, use CFLAGS.
  8751. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8752. # Allow CC to be a program name with arguments.
  8753. compiler=$CC
  8754. # Save the default compiler, since it gets overwritten when the other
  8755. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8756. compiler_DEFAULT=$CC
  8757. # save warnings/boilerplate of simple test code
  8758. ac_outfile=conftest.$ac_objext
  8759. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8760. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8761. _lt_compiler_boilerplate=`cat conftest.err`
  8762. $RM conftest*
  8763. ac_outfile=conftest.$ac_objext
  8764. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8765. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8766. _lt_linker_boilerplate=`cat conftest.err`
  8767. $RM -r conftest*
  8768. ## CAVEAT EMPTOR:
  8769. ## There is no encapsulation within the following macros, do not change
  8770. ## the running order or otherwise move them around unless you know exactly
  8771. ## what you are doing...
  8772. if test -n "$compiler"; then
  8773. lt_prog_compiler_no_builtin_flag=
  8774. if test yes = "$GCC"; then
  8775. case $cc_basename in
  8776. nvcc*)
  8777. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8778. *)
  8779. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8780. esac
  8781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8782. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8783. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8784. then :
  8785. printf %s "(cached) " >&6
  8786. else $as_nop
  8787. lt_cv_prog_compiler_rtti_exceptions=no
  8788. ac_outfile=conftest.$ac_objext
  8789. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8790. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8791. # Insert the option either (1) after the last *FLAGS variable, or
  8792. # (2) before a word containing "conftest.", or (3) at the end.
  8793. # Note that $ac_compile itself does not contain backslashes and begins
  8794. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8795. # The option is referenced via a variable to avoid confusing sed.
  8796. lt_compile=`echo "$ac_compile" | $SED \
  8797. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8798. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8799. -e 's:$: $lt_compiler_flag:'`
  8800. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8801. (eval "$lt_compile" 2>conftest.err)
  8802. ac_status=$?
  8803. cat conftest.err >&5
  8804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8805. if (exit $ac_status) && test -s "$ac_outfile"; then
  8806. # The compiler can only warn and ignore the option if not recognized
  8807. # So say no if there are warnings other than the usual output.
  8808. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8809. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8810. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8811. lt_cv_prog_compiler_rtti_exceptions=yes
  8812. fi
  8813. fi
  8814. $RM conftest*
  8815. fi
  8816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8817. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8818. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8819. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8820. else
  8821. :
  8822. fi
  8823. fi
  8824. lt_prog_compiler_wl=
  8825. lt_prog_compiler_pic=
  8826. lt_prog_compiler_static=
  8827. if test yes = "$GCC"; then
  8828. lt_prog_compiler_wl='-Wl,'
  8829. lt_prog_compiler_static='-static'
  8830. case $host_os in
  8831. aix*)
  8832. # All AIX code is PIC.
  8833. if test ia64 = "$host_cpu"; then
  8834. # AIX 5 now supports IA64 processor
  8835. lt_prog_compiler_static='-Bstatic'
  8836. fi
  8837. lt_prog_compiler_pic='-fPIC'
  8838. ;;
  8839. amigaos*)
  8840. case $host_cpu in
  8841. powerpc)
  8842. # see comment about AmigaOS4 .so support
  8843. lt_prog_compiler_pic='-fPIC'
  8844. ;;
  8845. m68k)
  8846. # FIXME: we need at least 68020 code to build shared libraries, but
  8847. # adding the '-m68020' flag to GCC prevents building anything better,
  8848. # like '-m68040'.
  8849. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8850. ;;
  8851. esac
  8852. ;;
  8853. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8854. # PIC is the default for these OSes.
  8855. ;;
  8856. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8857. # This hack is so that the source file can tell whether it is being
  8858. # built for inclusion in a dll (and should export symbols for example).
  8859. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8860. # (--disable-auto-import) libraries
  8861. lt_prog_compiler_pic='-DDLL_EXPORT'
  8862. case $host_os in
  8863. os2*)
  8864. lt_prog_compiler_static='$wl-static'
  8865. ;;
  8866. esac
  8867. ;;
  8868. darwin* | rhapsody*)
  8869. # PIC is the default on this platform
  8870. # Common symbols not allowed in MH_DYLIB files
  8871. lt_prog_compiler_pic='-fno-common'
  8872. ;;
  8873. haiku*)
  8874. # PIC is the default for Haiku.
  8875. # The "-static" flag exists, but is broken.
  8876. lt_prog_compiler_static=
  8877. ;;
  8878. hpux*)
  8879. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8880. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8881. # sets the default TLS model and affects inlining.
  8882. case $host_cpu in
  8883. hppa*64*)
  8884. # +Z the default
  8885. ;;
  8886. *)
  8887. lt_prog_compiler_pic='-fPIC'
  8888. ;;
  8889. esac
  8890. ;;
  8891. interix[3-9]*)
  8892. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8893. # Instead, we relocate shared libraries at runtime.
  8894. ;;
  8895. msdosdjgpp*)
  8896. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8897. # on systems that don't support them.
  8898. lt_prog_compiler_can_build_shared=no
  8899. enable_shared=no
  8900. ;;
  8901. *nto* | *qnx*)
  8902. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8903. # it will coredump.
  8904. lt_prog_compiler_pic='-fPIC -shared'
  8905. ;;
  8906. sysv4*MP*)
  8907. if test -d /usr/nec; then
  8908. lt_prog_compiler_pic=-Kconform_pic
  8909. fi
  8910. ;;
  8911. *)
  8912. lt_prog_compiler_pic='-fPIC'
  8913. ;;
  8914. esac
  8915. case $cc_basename in
  8916. nvcc*) # Cuda Compiler Driver 2.2
  8917. lt_prog_compiler_wl='-Xlinker '
  8918. if test -n "$lt_prog_compiler_pic"; then
  8919. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8920. fi
  8921. ;;
  8922. esac
  8923. else
  8924. # PORTME Check for flag to pass linker flags through the system compiler.
  8925. case $host_os in
  8926. aix*)
  8927. lt_prog_compiler_wl='-Wl,'
  8928. if test ia64 = "$host_cpu"; then
  8929. # AIX 5 now supports IA64 processor
  8930. lt_prog_compiler_static='-Bstatic'
  8931. else
  8932. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8933. fi
  8934. ;;
  8935. darwin* | rhapsody*)
  8936. # PIC is the default on this platform
  8937. # Common symbols not allowed in MH_DYLIB files
  8938. lt_prog_compiler_pic='-fno-common'
  8939. case $cc_basename in
  8940. nagfor*)
  8941. # NAG Fortran compiler
  8942. lt_prog_compiler_wl='-Wl,-Wl,,'
  8943. lt_prog_compiler_pic='-PIC'
  8944. lt_prog_compiler_static='-Bstatic'
  8945. ;;
  8946. esac
  8947. ;;
  8948. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8949. # This hack is so that the source file can tell whether it is being
  8950. # built for inclusion in a dll (and should export symbols for example).
  8951. lt_prog_compiler_pic='-DDLL_EXPORT'
  8952. case $host_os in
  8953. os2*)
  8954. lt_prog_compiler_static='$wl-static'
  8955. ;;
  8956. esac
  8957. ;;
  8958. hpux9* | hpux10* | hpux11*)
  8959. lt_prog_compiler_wl='-Wl,'
  8960. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8961. # not for PA HP-UX.
  8962. case $host_cpu in
  8963. hppa*64*|ia64*)
  8964. # +Z the default
  8965. ;;
  8966. *)
  8967. lt_prog_compiler_pic='+Z'
  8968. ;;
  8969. esac
  8970. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8971. lt_prog_compiler_static='$wl-a ${wl}archive'
  8972. ;;
  8973. irix5* | irix6* | nonstopux*)
  8974. lt_prog_compiler_wl='-Wl,'
  8975. # PIC (with -KPIC) is the default.
  8976. lt_prog_compiler_static='-non_shared'
  8977. ;;
  8978. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8979. case $cc_basename in
  8980. # old Intel for x86_64, which still supported -KPIC.
  8981. ecc*)
  8982. lt_prog_compiler_wl='-Wl,'
  8983. lt_prog_compiler_pic='-KPIC'
  8984. lt_prog_compiler_static='-static'
  8985. ;;
  8986. # icc used to be incompatible with GCC.
  8987. # ICC 10 doesn't accept -KPIC any more.
  8988. icc* | ifort*)
  8989. lt_prog_compiler_wl='-Wl,'
  8990. lt_prog_compiler_pic='-fPIC'
  8991. lt_prog_compiler_static='-static'
  8992. ;;
  8993. # Lahey Fortran 8.1.
  8994. lf95*)
  8995. lt_prog_compiler_wl='-Wl,'
  8996. lt_prog_compiler_pic='--shared'
  8997. lt_prog_compiler_static='--static'
  8998. ;;
  8999. nagfor*)
  9000. # NAG Fortran compiler
  9001. lt_prog_compiler_wl='-Wl,-Wl,,'
  9002. lt_prog_compiler_pic='-PIC'
  9003. lt_prog_compiler_static='-Bstatic'
  9004. ;;
  9005. tcc*)
  9006. # Fabrice Bellard et al's Tiny C Compiler
  9007. lt_prog_compiler_wl='-Wl,'
  9008. lt_prog_compiler_pic='-fPIC'
  9009. lt_prog_compiler_static='-static'
  9010. ;;
  9011. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9012. # Portland Group compilers (*not* the Pentium gcc compiler,
  9013. # which looks to be a dead project)
  9014. lt_prog_compiler_wl='-Wl,'
  9015. lt_prog_compiler_pic='-fpic'
  9016. lt_prog_compiler_static='-Bstatic'
  9017. ;;
  9018. ccc*)
  9019. lt_prog_compiler_wl='-Wl,'
  9020. # All Alpha code is PIC.
  9021. lt_prog_compiler_static='-non_shared'
  9022. ;;
  9023. xl* | bgxl* | bgf* | mpixl*)
  9024. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9025. lt_prog_compiler_wl='-Wl,'
  9026. lt_prog_compiler_pic='-qpic'
  9027. lt_prog_compiler_static='-qstaticlink'
  9028. ;;
  9029. *)
  9030. case `$CC -V 2>&1 | $SED 5q` in
  9031. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9032. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9033. lt_prog_compiler_pic='-KPIC'
  9034. lt_prog_compiler_static='-Bstatic'
  9035. lt_prog_compiler_wl=''
  9036. ;;
  9037. *Sun\ F* | *Sun*Fortran*)
  9038. lt_prog_compiler_pic='-KPIC'
  9039. lt_prog_compiler_static='-Bstatic'
  9040. lt_prog_compiler_wl='-Qoption ld '
  9041. ;;
  9042. *Sun\ C*)
  9043. # Sun C 5.9
  9044. lt_prog_compiler_pic='-KPIC'
  9045. lt_prog_compiler_static='-Bstatic'
  9046. lt_prog_compiler_wl='-Wl,'
  9047. ;;
  9048. *Intel*\ [CF]*Compiler*)
  9049. lt_prog_compiler_wl='-Wl,'
  9050. lt_prog_compiler_pic='-fPIC'
  9051. lt_prog_compiler_static='-static'
  9052. ;;
  9053. *Portland\ Group*)
  9054. lt_prog_compiler_wl='-Wl,'
  9055. lt_prog_compiler_pic='-fpic'
  9056. lt_prog_compiler_static='-Bstatic'
  9057. ;;
  9058. esac
  9059. ;;
  9060. esac
  9061. ;;
  9062. newsos6)
  9063. lt_prog_compiler_pic='-KPIC'
  9064. lt_prog_compiler_static='-Bstatic'
  9065. ;;
  9066. *nto* | *qnx*)
  9067. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9068. # it will coredump.
  9069. lt_prog_compiler_pic='-fPIC -shared'
  9070. ;;
  9071. osf3* | osf4* | osf5*)
  9072. lt_prog_compiler_wl='-Wl,'
  9073. # All OSF/1 code is PIC.
  9074. lt_prog_compiler_static='-non_shared'
  9075. ;;
  9076. rdos*)
  9077. lt_prog_compiler_static='-non_shared'
  9078. ;;
  9079. solaris*)
  9080. lt_prog_compiler_pic='-KPIC'
  9081. lt_prog_compiler_static='-Bstatic'
  9082. case $cc_basename in
  9083. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9084. lt_prog_compiler_wl='-Qoption ld ';;
  9085. *)
  9086. lt_prog_compiler_wl='-Wl,';;
  9087. esac
  9088. ;;
  9089. sunos4*)
  9090. lt_prog_compiler_wl='-Qoption ld '
  9091. lt_prog_compiler_pic='-PIC'
  9092. lt_prog_compiler_static='-Bstatic'
  9093. ;;
  9094. sysv4 | sysv4.2uw2* | sysv4.3*)
  9095. lt_prog_compiler_wl='-Wl,'
  9096. lt_prog_compiler_pic='-KPIC'
  9097. lt_prog_compiler_static='-Bstatic'
  9098. ;;
  9099. sysv4*MP*)
  9100. if test -d /usr/nec; then
  9101. lt_prog_compiler_pic='-Kconform_pic'
  9102. lt_prog_compiler_static='-Bstatic'
  9103. fi
  9104. ;;
  9105. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9106. lt_prog_compiler_wl='-Wl,'
  9107. lt_prog_compiler_pic='-KPIC'
  9108. lt_prog_compiler_static='-Bstatic'
  9109. ;;
  9110. unicos*)
  9111. lt_prog_compiler_wl='-Wl,'
  9112. lt_prog_compiler_can_build_shared=no
  9113. ;;
  9114. uts4*)
  9115. lt_prog_compiler_pic='-pic'
  9116. lt_prog_compiler_static='-Bstatic'
  9117. ;;
  9118. *)
  9119. lt_prog_compiler_can_build_shared=no
  9120. ;;
  9121. esac
  9122. fi
  9123. case $host_os in
  9124. # For platforms that do not support PIC, -DPIC is meaningless:
  9125. *djgpp*)
  9126. lt_prog_compiler_pic=
  9127. ;;
  9128. *)
  9129. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9130. ;;
  9131. esac
  9132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9133. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9134. if test ${lt_cv_prog_compiler_pic+y}
  9135. then :
  9136. printf %s "(cached) " >&6
  9137. else $as_nop
  9138. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9139. fi
  9140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9141. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9142. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9143. #
  9144. # Check to make sure the PIC flag actually works.
  9145. #
  9146. if test -n "$lt_prog_compiler_pic"; then
  9147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9148. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9149. if test ${lt_cv_prog_compiler_pic_works+y}
  9150. then :
  9151. printf %s "(cached) " >&6
  9152. else $as_nop
  9153. lt_cv_prog_compiler_pic_works=no
  9154. ac_outfile=conftest.$ac_objext
  9155. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9156. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9157. # Insert the option either (1) after the last *FLAGS variable, or
  9158. # (2) before a word containing "conftest.", or (3) at the end.
  9159. # Note that $ac_compile itself does not contain backslashes and begins
  9160. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9161. # The option is referenced via a variable to avoid confusing sed.
  9162. lt_compile=`echo "$ac_compile" | $SED \
  9163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9165. -e 's:$: $lt_compiler_flag:'`
  9166. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9167. (eval "$lt_compile" 2>conftest.err)
  9168. ac_status=$?
  9169. cat conftest.err >&5
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. if (exit $ac_status) && test -s "$ac_outfile"; then
  9172. # The compiler can only warn and ignore the option if not recognized
  9173. # So say no if there are warnings other than the usual output.
  9174. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9176. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9177. lt_cv_prog_compiler_pic_works=yes
  9178. fi
  9179. fi
  9180. $RM conftest*
  9181. fi
  9182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9183. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9184. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9185. case $lt_prog_compiler_pic in
  9186. "" | " "*) ;;
  9187. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9188. esac
  9189. else
  9190. lt_prog_compiler_pic=
  9191. lt_prog_compiler_can_build_shared=no
  9192. fi
  9193. fi
  9194. #
  9195. # Check to make sure the static flag actually works.
  9196. #
  9197. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9199. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9200. if test ${lt_cv_prog_compiler_static_works+y}
  9201. then :
  9202. printf %s "(cached) " >&6
  9203. else $as_nop
  9204. lt_cv_prog_compiler_static_works=no
  9205. save_LDFLAGS=$LDFLAGS
  9206. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9207. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9208. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9209. # The linker can only warn and ignore the option if not recognized
  9210. # So say no if there are warnings
  9211. if test -s conftest.err; then
  9212. # Append any errors to the config.log.
  9213. cat conftest.err 1>&5
  9214. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9216. if diff conftest.exp conftest.er2 >/dev/null; then
  9217. lt_cv_prog_compiler_static_works=yes
  9218. fi
  9219. else
  9220. lt_cv_prog_compiler_static_works=yes
  9221. fi
  9222. fi
  9223. $RM -r conftest*
  9224. LDFLAGS=$save_LDFLAGS
  9225. fi
  9226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9227. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9228. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9229. :
  9230. else
  9231. lt_prog_compiler_static=
  9232. fi
  9233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9234. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9235. if test ${lt_cv_prog_compiler_c_o+y}
  9236. then :
  9237. printf %s "(cached) " >&6
  9238. else $as_nop
  9239. lt_cv_prog_compiler_c_o=no
  9240. $RM -r conftest 2>/dev/null
  9241. mkdir conftest
  9242. cd conftest
  9243. mkdir out
  9244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9245. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9246. # Insert the option either (1) after the last *FLAGS variable, or
  9247. # (2) before a word containing "conftest.", or (3) at the end.
  9248. # Note that $ac_compile itself does not contain backslashes and begins
  9249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9250. lt_compile=`echo "$ac_compile" | $SED \
  9251. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9252. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9253. -e 's:$: $lt_compiler_flag:'`
  9254. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9255. (eval "$lt_compile" 2>out/conftest.err)
  9256. ac_status=$?
  9257. cat out/conftest.err >&5
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9260. then
  9261. # The compiler can only warn and ignore the option if not recognized
  9262. # So say no if there are warnings
  9263. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9264. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9265. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9266. lt_cv_prog_compiler_c_o=yes
  9267. fi
  9268. fi
  9269. chmod u+w . 2>&5
  9270. $RM conftest*
  9271. # SGI C++ compiler will create directory out/ii_files/ for
  9272. # template instantiation
  9273. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9274. $RM out/* && rmdir out
  9275. cd ..
  9276. $RM -r conftest
  9277. $RM conftest*
  9278. fi
  9279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9280. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9282. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9283. if test ${lt_cv_prog_compiler_c_o+y}
  9284. then :
  9285. printf %s "(cached) " >&6
  9286. else $as_nop
  9287. lt_cv_prog_compiler_c_o=no
  9288. $RM -r conftest 2>/dev/null
  9289. mkdir conftest
  9290. cd conftest
  9291. mkdir out
  9292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9293. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9294. # Insert the option either (1) after the last *FLAGS variable, or
  9295. # (2) before a word containing "conftest.", or (3) at the end.
  9296. # Note that $ac_compile itself does not contain backslashes and begins
  9297. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9298. lt_compile=`echo "$ac_compile" | $SED \
  9299. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9300. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9301. -e 's:$: $lt_compiler_flag:'`
  9302. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9303. (eval "$lt_compile" 2>out/conftest.err)
  9304. ac_status=$?
  9305. cat out/conftest.err >&5
  9306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9308. then
  9309. # The compiler can only warn and ignore the option if not recognized
  9310. # So say no if there are warnings
  9311. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9312. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9313. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9314. lt_cv_prog_compiler_c_o=yes
  9315. fi
  9316. fi
  9317. chmod u+w . 2>&5
  9318. $RM conftest*
  9319. # SGI C++ compiler will create directory out/ii_files/ for
  9320. # template instantiation
  9321. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9322. $RM out/* && rmdir out
  9323. cd ..
  9324. $RM -r conftest
  9325. $RM conftest*
  9326. fi
  9327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9328. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9329. hard_links=nottested
  9330. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9331. # do not overwrite the value of need_locks provided by the user
  9332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9333. printf %s "checking if we can lock with hard links... " >&6; }
  9334. hard_links=yes
  9335. $RM conftest*
  9336. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9337. touch conftest.a
  9338. ln conftest.a conftest.b 2>&5 || hard_links=no
  9339. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9341. printf "%s\n" "$hard_links" >&6; }
  9342. if test no = "$hard_links"; then
  9343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9344. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9345. need_locks=warn
  9346. fi
  9347. else
  9348. need_locks=no
  9349. fi
  9350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9351. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9352. runpath_var=
  9353. allow_undefined_flag=
  9354. always_export_symbols=no
  9355. archive_cmds=
  9356. archive_expsym_cmds=
  9357. compiler_needs_object=no
  9358. enable_shared_with_static_runtimes=no
  9359. export_dynamic_flag_spec=
  9360. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9361. hardcode_automatic=no
  9362. hardcode_direct=no
  9363. hardcode_direct_absolute=no
  9364. hardcode_libdir_flag_spec=
  9365. hardcode_libdir_separator=
  9366. hardcode_minus_L=no
  9367. hardcode_shlibpath_var=unsupported
  9368. inherit_rpath=no
  9369. link_all_deplibs=unknown
  9370. module_cmds=
  9371. module_expsym_cmds=
  9372. old_archive_from_new_cmds=
  9373. old_archive_from_expsyms_cmds=
  9374. thread_safe_flag_spec=
  9375. whole_archive_flag_spec=
  9376. # include_expsyms should be a list of space-separated symbols to be *always*
  9377. # included in the symbol list
  9378. include_expsyms=
  9379. # exclude_expsyms can be an extended regexp of symbols to exclude
  9380. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9381. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9382. # as well as any symbol that contains 'd'.
  9383. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9384. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9385. # platforms (ab)use it in PIC code, but their linkers get confused if
  9386. # the symbol is explicitly referenced. Since portable code cannot
  9387. # rely on this symbol name, it's probably fine to never include it in
  9388. # preloaded symbol tables.
  9389. # Exclude shared library initialization/finalization symbols.
  9390. extract_expsyms_cmds=
  9391. case $host_os in
  9392. cygwin* | mingw* | pw32* | cegcc*)
  9393. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9394. # When not using gcc, we currently assume that we are using
  9395. # Microsoft Visual C++ or Intel C++ Compiler.
  9396. if test yes != "$GCC"; then
  9397. with_gnu_ld=no
  9398. fi
  9399. ;;
  9400. interix*)
  9401. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9402. with_gnu_ld=yes
  9403. ;;
  9404. openbsd* | bitrig*)
  9405. with_gnu_ld=no
  9406. ;;
  9407. esac
  9408. ld_shlibs=yes
  9409. # On some targets, GNU ld is compatible enough with the native linker
  9410. # that we're better off using the native interface for both.
  9411. lt_use_gnu_ld_interface=no
  9412. if test yes = "$with_gnu_ld"; then
  9413. case $host_os in
  9414. aix*)
  9415. # The AIX port of GNU ld has always aspired to compatibility
  9416. # with the native linker. However, as the warning in the GNU ld
  9417. # block says, versions before 2.19.5* couldn't really create working
  9418. # shared libraries, regardless of the interface used.
  9419. case `$LD -v 2>&1` in
  9420. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9421. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9422. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9423. *)
  9424. lt_use_gnu_ld_interface=yes
  9425. ;;
  9426. esac
  9427. ;;
  9428. *)
  9429. lt_use_gnu_ld_interface=yes
  9430. ;;
  9431. esac
  9432. fi
  9433. if test yes = "$lt_use_gnu_ld_interface"; then
  9434. # If archive_cmds runs LD, not CC, wlarc should be empty
  9435. wlarc='$wl'
  9436. # Set some defaults for GNU ld with shared library support. These
  9437. # are reset later if shared libraries are not supported. Putting them
  9438. # here allows them to be overridden if necessary.
  9439. runpath_var=LD_RUN_PATH
  9440. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9441. export_dynamic_flag_spec='$wl--export-dynamic'
  9442. # ancient GNU ld didn't support --whole-archive et. al.
  9443. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9444. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9445. else
  9446. whole_archive_flag_spec=
  9447. fi
  9448. supports_anon_versioning=no
  9449. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9450. *GNU\ gold*) supports_anon_versioning=yes ;;
  9451. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9452. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9453. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9454. *\ 2.11.*) ;; # other 2.11 versions
  9455. *) supports_anon_versioning=yes ;;
  9456. esac
  9457. # See if GNU ld supports shared libraries.
  9458. case $host_os in
  9459. aix[3-9]*)
  9460. # On AIX/PPC, the GNU linker is very broken
  9461. if test ia64 != "$host_cpu"; then
  9462. ld_shlibs=no
  9463. cat <<_LT_EOF 1>&2
  9464. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9465. *** to be unable to reliably create shared libraries on AIX.
  9466. *** Therefore, libtool is disabling shared libraries support. If you
  9467. *** really care for shared libraries, you may want to install binutils
  9468. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9469. *** You will then need to restart the configuration process.
  9470. _LT_EOF
  9471. fi
  9472. ;;
  9473. amigaos*)
  9474. case $host_cpu in
  9475. powerpc)
  9476. # see comment about AmigaOS4 .so support
  9477. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9478. archive_expsym_cmds=''
  9479. ;;
  9480. m68k)
  9481. 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)'
  9482. hardcode_libdir_flag_spec='-L$libdir'
  9483. hardcode_minus_L=yes
  9484. ;;
  9485. esac
  9486. ;;
  9487. beos*)
  9488. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9489. allow_undefined_flag=unsupported
  9490. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9491. # support --undefined. This deserves some investigation. FIXME
  9492. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9493. else
  9494. ld_shlibs=no
  9495. fi
  9496. ;;
  9497. cygwin* | mingw* | pw32* | cegcc*)
  9498. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9499. # as there is no search path for DLLs.
  9500. hardcode_libdir_flag_spec='-L$libdir'
  9501. export_dynamic_flag_spec='$wl--export-all-symbols'
  9502. allow_undefined_flag=unsupported
  9503. always_export_symbols=no
  9504. enable_shared_with_static_runtimes=yes
  9505. 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'
  9506. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9507. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9508. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9509. # If the export-symbols file already is a .def file, use it as
  9510. # is; otherwise, prepend EXPORTS...
  9511. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9512. cp $export_symbols $output_objdir/$soname.def;
  9513. else
  9514. echo EXPORTS > $output_objdir/$soname.def;
  9515. cat $export_symbols >> $output_objdir/$soname.def;
  9516. fi~
  9517. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9518. else
  9519. ld_shlibs=no
  9520. fi
  9521. ;;
  9522. haiku*)
  9523. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9524. link_all_deplibs=yes
  9525. ;;
  9526. os2*)
  9527. hardcode_libdir_flag_spec='-L$libdir'
  9528. hardcode_minus_L=yes
  9529. allow_undefined_flag=unsupported
  9530. shrext_cmds=.dll
  9531. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9532. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9533. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9534. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9535. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9536. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9537. emximp -o $lib $output_objdir/$libname.def'
  9538. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9539. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9540. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9541. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9542. prefix_cmds="$SED"~
  9543. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9544. prefix_cmds="$prefix_cmds -e 1d";
  9545. fi~
  9546. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9547. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9548. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9549. emximp -o $lib $output_objdir/$libname.def'
  9550. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9551. enable_shared_with_static_runtimes=yes
  9552. file_list_spec='@'
  9553. ;;
  9554. interix[3-9]*)
  9555. hardcode_direct=no
  9556. hardcode_shlibpath_var=no
  9557. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9558. export_dynamic_flag_spec='$wl-E'
  9559. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9560. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9561. # default) and relocated if they conflict, which is a slow very memory
  9562. # consuming and fragmenting process. To avoid this, we pick a random,
  9563. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9564. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9565. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9566. 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'
  9567. ;;
  9568. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9569. tmp_diet=no
  9570. if test linux-dietlibc = "$host_os"; then
  9571. case $cc_basename in
  9572. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9573. esac
  9574. fi
  9575. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9576. && test no = "$tmp_diet"
  9577. then
  9578. tmp_addflag=' $pic_flag'
  9579. tmp_sharedflag='-shared'
  9580. case $cc_basename,$host_cpu in
  9581. pgcc*) # Portland Group C compiler
  9582. 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'
  9583. tmp_addflag=' $pic_flag'
  9584. ;;
  9585. pgf77* | pgf90* | pgf95* | pgfortran*)
  9586. # Portland Group f77 and f90 compilers
  9587. 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'
  9588. tmp_addflag=' $pic_flag -Mnomain' ;;
  9589. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9590. tmp_addflag=' -i_dynamic' ;;
  9591. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9592. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9593. ifc* | ifort*) # Intel Fortran compiler
  9594. tmp_addflag=' -nofor_main' ;;
  9595. lf95*) # Lahey Fortran 8.1
  9596. whole_archive_flag_spec=
  9597. tmp_sharedflag='--shared' ;;
  9598. nagfor*) # NAGFOR 5.3
  9599. tmp_sharedflag='-Wl,-shared' ;;
  9600. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9601. tmp_sharedflag='-qmkshrobj'
  9602. tmp_addflag= ;;
  9603. nvcc*) # Cuda Compiler Driver 2.2
  9604. 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'
  9605. compiler_needs_object=yes
  9606. ;;
  9607. esac
  9608. case `$CC -V 2>&1 | $SED 5q` in
  9609. *Sun\ C*) # Sun C 5.9
  9610. 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'
  9611. compiler_needs_object=yes
  9612. tmp_sharedflag='-G' ;;
  9613. *Sun\ F*) # Sun Fortran 8.3
  9614. tmp_sharedflag='-G' ;;
  9615. esac
  9616. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9617. if test yes = "$supports_anon_versioning"; then
  9618. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9619. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9620. echo "local: *; };" >> $output_objdir/$libname.ver~
  9621. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9622. fi
  9623. case $cc_basename in
  9624. tcc*)
  9625. export_dynamic_flag_spec='-rdynamic'
  9626. ;;
  9627. xlf* | bgf* | bgxlf* | mpixlf*)
  9628. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9629. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9630. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9631. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9632. if test yes = "$supports_anon_versioning"; then
  9633. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9634. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9635. echo "local: *; };" >> $output_objdir/$libname.ver~
  9636. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9637. fi
  9638. ;;
  9639. esac
  9640. else
  9641. ld_shlibs=no
  9642. fi
  9643. ;;
  9644. netbsd*)
  9645. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9646. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9647. wlarc=
  9648. else
  9649. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9650. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9651. fi
  9652. ;;
  9653. solaris*)
  9654. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9655. ld_shlibs=no
  9656. cat <<_LT_EOF 1>&2
  9657. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9658. *** create shared libraries on Solaris systems. Therefore, libtool
  9659. *** is disabling shared libraries support. We urge you to upgrade GNU
  9660. *** binutils to release 2.9.1 or newer. Another option is to modify
  9661. *** your PATH or compiler configuration so that the native linker is
  9662. *** used, and then restart.
  9663. _LT_EOF
  9664. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9665. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9666. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9667. else
  9668. ld_shlibs=no
  9669. fi
  9670. ;;
  9671. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9672. case `$LD -v 2>&1` in
  9673. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9674. ld_shlibs=no
  9675. cat <<_LT_EOF 1>&2
  9676. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9677. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9678. *** is disabling shared libraries support. We urge you to upgrade GNU
  9679. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9680. *** your PATH or compiler configuration so that the native linker is
  9681. *** used, and then restart.
  9682. _LT_EOF
  9683. ;;
  9684. *)
  9685. # For security reasons, it is highly recommended that you always
  9686. # use absolute paths for naming shared libraries, and exclude the
  9687. # DT_RUNPATH tag from executables and libraries. But doing so
  9688. # requires that you compile everything twice, which is a pain.
  9689. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9690. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9691. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9692. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9693. else
  9694. ld_shlibs=no
  9695. fi
  9696. ;;
  9697. esac
  9698. ;;
  9699. sunos4*)
  9700. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9701. wlarc=
  9702. hardcode_direct=yes
  9703. hardcode_shlibpath_var=no
  9704. ;;
  9705. *)
  9706. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9707. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9708. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9709. else
  9710. ld_shlibs=no
  9711. fi
  9712. ;;
  9713. esac
  9714. if test no = "$ld_shlibs"; then
  9715. runpath_var=
  9716. hardcode_libdir_flag_spec=
  9717. export_dynamic_flag_spec=
  9718. whole_archive_flag_spec=
  9719. fi
  9720. else
  9721. # PORTME fill in a description of your system's linker (not GNU ld)
  9722. case $host_os in
  9723. aix3*)
  9724. allow_undefined_flag=unsupported
  9725. always_export_symbols=yes
  9726. 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'
  9727. # Note: this linker hardcodes the directories in LIBPATH if there
  9728. # are no directories specified by -L.
  9729. hardcode_minus_L=yes
  9730. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9731. # Neither direct hardcoding nor static linking is supported with a
  9732. # broken collect2.
  9733. hardcode_direct=unsupported
  9734. fi
  9735. ;;
  9736. aix[4-9]*)
  9737. if test ia64 = "$host_cpu"; then
  9738. # On IA64, the linker does run time linking by default, so we don't
  9739. # have to do anything special.
  9740. aix_use_runtimelinking=no
  9741. exp_sym_flag='-Bexport'
  9742. no_entry_flag=
  9743. else
  9744. # If we're using GNU nm, then we don't want the "-C" option.
  9745. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9746. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9747. # weak defined symbols like other global defined symbols, whereas
  9748. # GNU nm marks them as "W".
  9749. # While the 'weak' keyword is ignored in the Export File, we need
  9750. # it in the Import File for the 'aix-soname' feature, so we have
  9751. # to replace the "-B" option with "-P" for AIX nm.
  9752. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9753. 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'
  9754. else
  9755. 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 == "L") || (\$ 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'
  9756. fi
  9757. aix_use_runtimelinking=no
  9758. # Test if we are trying to use run time linking or normal
  9759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9760. # have runtime linking enabled, and use it for executables.
  9761. # For shared libraries, we enable/disable runtime linking
  9762. # depending on the kind of the shared library created -
  9763. # when "with_aix_soname,aix_use_runtimelinking" is:
  9764. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9765. # "aix,yes" lib.so shared, rtl:yes, for executables
  9766. # lib.a static archive
  9767. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9768. # lib.a(lib.so.V) shared, rtl:no, for executables
  9769. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9770. # lib.a(lib.so.V) shared, rtl:no
  9771. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9772. # lib.a static archive
  9773. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9774. for ld_flag in $LDFLAGS; do
  9775. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9776. aix_use_runtimelinking=yes
  9777. break
  9778. fi
  9779. done
  9780. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9781. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9782. # so we don't have lib.a shared libs to link our executables.
  9783. # We have to force runtime linking in this case.
  9784. aix_use_runtimelinking=yes
  9785. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9786. fi
  9787. ;;
  9788. esac
  9789. exp_sym_flag='-bexport'
  9790. no_entry_flag='-bnoentry'
  9791. fi
  9792. # When large executables or shared objects are built, AIX ld can
  9793. # have problems creating the table of contents. If linking a library
  9794. # or program results in "error TOC overflow" add -mminimal-toc to
  9795. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9796. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9797. archive_cmds=''
  9798. hardcode_direct=yes
  9799. hardcode_direct_absolute=yes
  9800. hardcode_libdir_separator=':'
  9801. link_all_deplibs=yes
  9802. file_list_spec='$wl-f,'
  9803. case $with_aix_soname,$aix_use_runtimelinking in
  9804. aix,*) ;; # traditional, no import file
  9805. svr4,* | *,yes) # use import file
  9806. # The Import File defines what to hardcode.
  9807. hardcode_direct=no
  9808. hardcode_direct_absolute=no
  9809. ;;
  9810. esac
  9811. if test yes = "$GCC"; then
  9812. case $host_os in aix4.[012]|aix4.[012].*)
  9813. # We only want to do this on AIX 4.2 and lower, the check
  9814. # below for broken collect2 doesn't work under 4.3+
  9815. collect2name=`$CC -print-prog-name=collect2`
  9816. if test -f "$collect2name" &&
  9817. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9818. then
  9819. # We have reworked collect2
  9820. :
  9821. else
  9822. # We have old collect2
  9823. hardcode_direct=unsupported
  9824. # It fails to find uninstalled libraries when the uninstalled
  9825. # path is not listed in the libpath. Setting hardcode_minus_L
  9826. # to unsupported forces relinking
  9827. hardcode_minus_L=yes
  9828. hardcode_libdir_flag_spec='-L$libdir'
  9829. hardcode_libdir_separator=
  9830. fi
  9831. ;;
  9832. esac
  9833. shared_flag='-shared'
  9834. if test yes = "$aix_use_runtimelinking"; then
  9835. shared_flag="$shared_flag "'$wl-G'
  9836. fi
  9837. # Need to ensure runtime linking is disabled for the traditional
  9838. # shared library, or the linker may eventually find shared libraries
  9839. # /with/ Import File - we do not want to mix them.
  9840. shared_flag_aix='-shared'
  9841. shared_flag_svr4='-shared $wl-G'
  9842. else
  9843. # not using gcc
  9844. if test ia64 = "$host_cpu"; then
  9845. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9846. # chokes on -Wl,-G. The following line is correct:
  9847. shared_flag='-G'
  9848. else
  9849. if test yes = "$aix_use_runtimelinking"; then
  9850. shared_flag='$wl-G'
  9851. else
  9852. shared_flag='$wl-bM:SRE'
  9853. fi
  9854. shared_flag_aix='$wl-bM:SRE'
  9855. shared_flag_svr4='$wl-G'
  9856. fi
  9857. fi
  9858. export_dynamic_flag_spec='$wl-bexpall'
  9859. # It seems that -bexpall does not export symbols beginning with
  9860. # underscore (_), so it is better to generate a list of symbols to export.
  9861. always_export_symbols=yes
  9862. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9863. # Warning - without using the other runtime loading flags (-brtl),
  9864. # -berok will link without error, but may produce a broken library.
  9865. allow_undefined_flag='-berok'
  9866. # Determine the default libpath from the value encoded in an
  9867. # empty executable.
  9868. if test set = "${lt_cv_aix_libpath+set}"; then
  9869. aix_libpath=$lt_cv_aix_libpath
  9870. else
  9871. if test ${lt_cv_aix_libpath_+y}
  9872. then :
  9873. printf %s "(cached) " >&6
  9874. else $as_nop
  9875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9876. /* end confdefs.h. */
  9877. int
  9878. main (void)
  9879. {
  9880. ;
  9881. return 0;
  9882. }
  9883. _ACEOF
  9884. if ac_fn_c_try_link "$LINENO"
  9885. then :
  9886. lt_aix_libpath_sed='
  9887. /Import File Strings/,/^$/ {
  9888. /^0/ {
  9889. s/^0 *\([^ ]*\) *$/\1/
  9890. p
  9891. }
  9892. }'
  9893. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9894. # Check for a 64-bit object if we didn't find anything.
  9895. if test -z "$lt_cv_aix_libpath_"; then
  9896. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9897. fi
  9898. fi
  9899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9900. conftest$ac_exeext conftest.$ac_ext
  9901. if test -z "$lt_cv_aix_libpath_"; then
  9902. lt_cv_aix_libpath_=/usr/lib:/lib
  9903. fi
  9904. fi
  9905. aix_libpath=$lt_cv_aix_libpath_
  9906. fi
  9907. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9908. 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
  9909. else
  9910. if test ia64 = "$host_cpu"; then
  9911. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9912. allow_undefined_flag="-z nodefs"
  9913. 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"
  9914. else
  9915. # Determine the default libpath from the value encoded in an
  9916. # empty executable.
  9917. if test set = "${lt_cv_aix_libpath+set}"; then
  9918. aix_libpath=$lt_cv_aix_libpath
  9919. else
  9920. if test ${lt_cv_aix_libpath_+y}
  9921. then :
  9922. printf %s "(cached) " >&6
  9923. else $as_nop
  9924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9925. /* end confdefs.h. */
  9926. int
  9927. main (void)
  9928. {
  9929. ;
  9930. return 0;
  9931. }
  9932. _ACEOF
  9933. if ac_fn_c_try_link "$LINENO"
  9934. then :
  9935. lt_aix_libpath_sed='
  9936. /Import File Strings/,/^$/ {
  9937. /^0/ {
  9938. s/^0 *\([^ ]*\) *$/\1/
  9939. p
  9940. }
  9941. }'
  9942. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9943. # Check for a 64-bit object if we didn't find anything.
  9944. if test -z "$lt_cv_aix_libpath_"; then
  9945. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9946. fi
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9949. conftest$ac_exeext conftest.$ac_ext
  9950. if test -z "$lt_cv_aix_libpath_"; then
  9951. lt_cv_aix_libpath_=/usr/lib:/lib
  9952. fi
  9953. fi
  9954. aix_libpath=$lt_cv_aix_libpath_
  9955. fi
  9956. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9957. # Warning - without using the other run time loading flags,
  9958. # -berok will link without error, but may produce a broken library.
  9959. no_undefined_flag=' $wl-bernotok'
  9960. allow_undefined_flag=' $wl-berok'
  9961. if test yes = "$with_gnu_ld"; then
  9962. # We only use this code for GNU lds that support --whole-archive.
  9963. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9964. else
  9965. # Exported symbols can be pulled into shared objects from archives
  9966. whole_archive_flag_spec='$convenience'
  9967. fi
  9968. archive_cmds_need_lc=yes
  9969. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9970. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9971. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9972. if test svr4 != "$with_aix_soname"; then
  9973. # This is similar to how AIX traditionally builds its shared libraries.
  9974. 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'
  9975. fi
  9976. if test aix != "$with_aix_soname"; then
  9977. 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'
  9978. else
  9979. # used by -dlpreopen to get the symbols
  9980. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9981. fi
  9982. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9983. fi
  9984. fi
  9985. ;;
  9986. amigaos*)
  9987. case $host_cpu in
  9988. powerpc)
  9989. # see comment about AmigaOS4 .so support
  9990. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9991. archive_expsym_cmds=''
  9992. ;;
  9993. m68k)
  9994. 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)'
  9995. hardcode_libdir_flag_spec='-L$libdir'
  9996. hardcode_minus_L=yes
  9997. ;;
  9998. esac
  9999. ;;
  10000. bsdi[45]*)
  10001. export_dynamic_flag_spec=-rdynamic
  10002. ;;
  10003. cygwin* | mingw* | pw32* | cegcc*)
  10004. # When not using gcc, we currently assume that we are using
  10005. # Microsoft Visual C++ or Intel C++ Compiler.
  10006. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10007. # no search path for DLLs.
  10008. case $cc_basename in
  10009. cl* | icl*)
  10010. # Native MSVC or ICC
  10011. hardcode_libdir_flag_spec=' '
  10012. allow_undefined_flag=unsupported
  10013. always_export_symbols=yes
  10014. file_list_spec='@'
  10015. # Tell ltmain to make .lib files, not .a files.
  10016. libext=lib
  10017. # Tell ltmain to make .dll files, not .so files.
  10018. shrext_cmds=.dll
  10019. # FIXME: Setting linknames here is a bad hack.
  10020. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10021. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10022. cp "$export_symbols" "$output_objdir/$soname.def";
  10023. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10024. else
  10025. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10026. fi~
  10027. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10028. linknames='
  10029. # The linker will not automatically build a static lib if we build a DLL.
  10030. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10031. enable_shared_with_static_runtimes=yes
  10032. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10034. # Don't use ranlib
  10035. old_postinstall_cmds='chmod 644 $oldlib'
  10036. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10037. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10038. case $lt_outputfile in
  10039. *.exe|*.EXE) ;;
  10040. *)
  10041. lt_outputfile=$lt_outputfile.exe
  10042. lt_tool_outputfile=$lt_tool_outputfile.exe
  10043. ;;
  10044. esac~
  10045. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10046. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10047. $RM "$lt_outputfile.manifest";
  10048. fi'
  10049. ;;
  10050. *)
  10051. # Assume MSVC and ICC wrapper
  10052. hardcode_libdir_flag_spec=' '
  10053. allow_undefined_flag=unsupported
  10054. # Tell ltmain to make .lib files, not .a files.
  10055. libext=lib
  10056. # Tell ltmain to make .dll files, not .so files.
  10057. shrext_cmds=.dll
  10058. # FIXME: Setting linknames here is a bad hack.
  10059. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10060. # The linker will automatically build a .lib file if we build a DLL.
  10061. old_archive_from_new_cmds='true'
  10062. # FIXME: Should let the user specify the lib program.
  10063. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10064. enable_shared_with_static_runtimes=yes
  10065. ;;
  10066. esac
  10067. ;;
  10068. darwin* | rhapsody*)
  10069. archive_cmds_need_lc=no
  10070. hardcode_direct=no
  10071. hardcode_automatic=yes
  10072. hardcode_shlibpath_var=unsupported
  10073. if test yes = "$lt_cv_ld_force_load"; then
  10074. 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\"`'
  10075. else
  10076. whole_archive_flag_spec=''
  10077. fi
  10078. link_all_deplibs=yes
  10079. allow_undefined_flag=$_lt_dar_allow_undefined
  10080. case $cc_basename in
  10081. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10082. *) _lt_dar_can_shared=$GCC ;;
  10083. esac
  10084. if test yes = "$_lt_dar_can_shared"; then
  10085. output_verbose_link_cmd=func_echo_all
  10086. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10087. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10088. 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"
  10089. 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"
  10090. else
  10091. ld_shlibs=no
  10092. fi
  10093. ;;
  10094. dgux*)
  10095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10096. hardcode_libdir_flag_spec='-L$libdir'
  10097. hardcode_shlibpath_var=no
  10098. ;;
  10099. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10100. # support. Future versions do this automatically, but an explicit c++rt0.o
  10101. # does not break anything, and helps significantly (at the cost of a little
  10102. # extra space).
  10103. freebsd2.2*)
  10104. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10105. hardcode_libdir_flag_spec='-R$libdir'
  10106. hardcode_direct=yes
  10107. hardcode_shlibpath_var=no
  10108. ;;
  10109. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10110. freebsd2.*)
  10111. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10112. hardcode_direct=yes
  10113. hardcode_minus_L=yes
  10114. hardcode_shlibpath_var=no
  10115. ;;
  10116. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10117. freebsd* | dragonfly* | midnightbsd*)
  10118. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10119. hardcode_libdir_flag_spec='-R$libdir'
  10120. hardcode_direct=yes
  10121. hardcode_shlibpath_var=no
  10122. ;;
  10123. hpux9*)
  10124. if test yes = "$GCC"; then
  10125. 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'
  10126. else
  10127. 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'
  10128. fi
  10129. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10130. hardcode_libdir_separator=:
  10131. hardcode_direct=yes
  10132. # hardcode_minus_L: Not really in the search PATH,
  10133. # but as the default location of the library.
  10134. hardcode_minus_L=yes
  10135. export_dynamic_flag_spec='$wl-E'
  10136. ;;
  10137. hpux10*)
  10138. if test yes,no = "$GCC,$with_gnu_ld"; then
  10139. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10140. else
  10141. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10142. fi
  10143. if test no = "$with_gnu_ld"; then
  10144. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10145. hardcode_libdir_separator=:
  10146. hardcode_direct=yes
  10147. hardcode_direct_absolute=yes
  10148. export_dynamic_flag_spec='$wl-E'
  10149. # hardcode_minus_L: Not really in the search PATH,
  10150. # but as the default location of the library.
  10151. hardcode_minus_L=yes
  10152. fi
  10153. ;;
  10154. hpux11*)
  10155. if test yes,no = "$GCC,$with_gnu_ld"; then
  10156. case $host_cpu in
  10157. hppa*64*)
  10158. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10159. ;;
  10160. ia64*)
  10161. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10162. ;;
  10163. *)
  10164. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10165. ;;
  10166. esac
  10167. else
  10168. case $host_cpu in
  10169. hppa*64*)
  10170. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10171. ;;
  10172. ia64*)
  10173. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10174. ;;
  10175. *)
  10176. # Older versions of the 11.00 compiler do not understand -b yet
  10177. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10179. printf %s "checking if $CC understands -b... " >&6; }
  10180. if test ${lt_cv_prog_compiler__b+y}
  10181. then :
  10182. printf %s "(cached) " >&6
  10183. else $as_nop
  10184. lt_cv_prog_compiler__b=no
  10185. save_LDFLAGS=$LDFLAGS
  10186. LDFLAGS="$LDFLAGS -b"
  10187. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10188. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10189. # The linker can only warn and ignore the option if not recognized
  10190. # So say no if there are warnings
  10191. if test -s conftest.err; then
  10192. # Append any errors to the config.log.
  10193. cat conftest.err 1>&5
  10194. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10195. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10196. if diff conftest.exp conftest.er2 >/dev/null; then
  10197. lt_cv_prog_compiler__b=yes
  10198. fi
  10199. else
  10200. lt_cv_prog_compiler__b=yes
  10201. fi
  10202. fi
  10203. $RM -r conftest*
  10204. LDFLAGS=$save_LDFLAGS
  10205. fi
  10206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10207. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10208. if test yes = "$lt_cv_prog_compiler__b"; then
  10209. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10210. else
  10211. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10212. fi
  10213. ;;
  10214. esac
  10215. fi
  10216. if test no = "$with_gnu_ld"; then
  10217. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10218. hardcode_libdir_separator=:
  10219. case $host_cpu in
  10220. hppa*64*|ia64*)
  10221. hardcode_direct=no
  10222. hardcode_shlibpath_var=no
  10223. ;;
  10224. *)
  10225. hardcode_direct=yes
  10226. hardcode_direct_absolute=yes
  10227. export_dynamic_flag_spec='$wl-E'
  10228. # hardcode_minus_L: Not really in the search PATH,
  10229. # but as the default location of the library.
  10230. hardcode_minus_L=yes
  10231. ;;
  10232. esac
  10233. fi
  10234. ;;
  10235. irix5* | irix6* | nonstopux*)
  10236. if test yes = "$GCC"; then
  10237. 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'
  10238. # Try to use the -exported_symbol ld option, if it does not
  10239. # work, assume that -exports_file does not work either and
  10240. # implicitly export all symbols.
  10241. # This should be the same for all languages, so no per-tag cache variable.
  10242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10243. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10244. if test ${lt_cv_irix_exported_symbol+y}
  10245. then :
  10246. printf %s "(cached) " >&6
  10247. else $as_nop
  10248. save_LDFLAGS=$LDFLAGS
  10249. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10251. /* end confdefs.h. */
  10252. int foo (void) { return 0; }
  10253. _ACEOF
  10254. if ac_fn_c_try_link "$LINENO"
  10255. then :
  10256. lt_cv_irix_exported_symbol=yes
  10257. else $as_nop
  10258. lt_cv_irix_exported_symbol=no
  10259. fi
  10260. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. LDFLAGS=$save_LDFLAGS
  10263. fi
  10264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10265. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10266. if test yes = "$lt_cv_irix_exported_symbol"; then
  10267. 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'
  10268. fi
  10269. else
  10270. 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'
  10271. 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'
  10272. fi
  10273. archive_cmds_need_lc='no'
  10274. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10275. hardcode_libdir_separator=:
  10276. inherit_rpath=yes
  10277. link_all_deplibs=yes
  10278. ;;
  10279. linux*)
  10280. case $cc_basename in
  10281. tcc*)
  10282. # Fabrice Bellard et al's Tiny C Compiler
  10283. ld_shlibs=yes
  10284. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10285. ;;
  10286. esac
  10287. ;;
  10288. netbsd*)
  10289. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10290. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10291. else
  10292. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10293. fi
  10294. hardcode_libdir_flag_spec='-R$libdir'
  10295. hardcode_direct=yes
  10296. hardcode_shlibpath_var=no
  10297. ;;
  10298. newsos6)
  10299. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10300. hardcode_direct=yes
  10301. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10302. hardcode_libdir_separator=:
  10303. hardcode_shlibpath_var=no
  10304. ;;
  10305. *nto* | *qnx*)
  10306. ;;
  10307. openbsd* | bitrig*)
  10308. if test -f /usr/libexec/ld.so; then
  10309. hardcode_direct=yes
  10310. hardcode_shlibpath_var=no
  10311. hardcode_direct_absolute=yes
  10312. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10313. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10314. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10315. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10316. export_dynamic_flag_spec='$wl-E'
  10317. else
  10318. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10319. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10320. fi
  10321. else
  10322. ld_shlibs=no
  10323. fi
  10324. ;;
  10325. os2*)
  10326. hardcode_libdir_flag_spec='-L$libdir'
  10327. hardcode_minus_L=yes
  10328. allow_undefined_flag=unsupported
  10329. shrext_cmds=.dll
  10330. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10331. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10332. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10333. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10334. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10335. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10336. emximp -o $lib $output_objdir/$libname.def'
  10337. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10338. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10339. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10340. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10341. prefix_cmds="$SED"~
  10342. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10343. prefix_cmds="$prefix_cmds -e 1d";
  10344. fi~
  10345. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10346. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10347. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10348. emximp -o $lib $output_objdir/$libname.def'
  10349. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10350. enable_shared_with_static_runtimes=yes
  10351. file_list_spec='@'
  10352. ;;
  10353. osf3*)
  10354. if test yes = "$GCC"; then
  10355. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10356. 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'
  10357. else
  10358. allow_undefined_flag=' -expect_unresolved \*'
  10359. 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'
  10360. fi
  10361. archive_cmds_need_lc='no'
  10362. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10363. hardcode_libdir_separator=:
  10364. ;;
  10365. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10366. if test yes = "$GCC"; then
  10367. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10368. 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'
  10369. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10370. else
  10371. allow_undefined_flag=' -expect_unresolved \*'
  10372. 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'
  10373. 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~
  10374. $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'
  10375. # Both c and cxx compiler support -rpath directly
  10376. hardcode_libdir_flag_spec='-rpath $libdir'
  10377. fi
  10378. archive_cmds_need_lc='no'
  10379. hardcode_libdir_separator=:
  10380. ;;
  10381. solaris*)
  10382. no_undefined_flag=' -z defs'
  10383. if test yes = "$GCC"; then
  10384. wlarc='$wl'
  10385. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10386. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10387. $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'
  10388. else
  10389. case `$CC -V 2>&1` in
  10390. *"Compilers 5.0"*)
  10391. wlarc=''
  10392. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10393. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10394. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10395. ;;
  10396. *)
  10397. wlarc='$wl'
  10398. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10399. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10400. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10401. ;;
  10402. esac
  10403. fi
  10404. hardcode_libdir_flag_spec='-R$libdir'
  10405. hardcode_shlibpath_var=no
  10406. case $host_os in
  10407. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10408. *)
  10409. # The compiler driver will combine and reorder linker options,
  10410. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10411. # but is careful enough not to reorder.
  10412. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10413. if test yes = "$GCC"; then
  10414. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10415. else
  10416. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10417. fi
  10418. ;;
  10419. esac
  10420. link_all_deplibs=yes
  10421. ;;
  10422. sunos4*)
  10423. if test sequent = "$host_vendor"; then
  10424. # Use $CC to link under sequent, because it throws in some extra .o
  10425. # files that make .init and .fini sections work.
  10426. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10427. else
  10428. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10429. fi
  10430. hardcode_libdir_flag_spec='-L$libdir'
  10431. hardcode_direct=yes
  10432. hardcode_minus_L=yes
  10433. hardcode_shlibpath_var=no
  10434. ;;
  10435. sysv4)
  10436. case $host_vendor in
  10437. sni)
  10438. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10439. hardcode_direct=yes # is this really true???
  10440. ;;
  10441. siemens)
  10442. ## LD is ld it makes a PLAMLIB
  10443. ## CC just makes a GrossModule.
  10444. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10445. reload_cmds='$CC -r -o $output$reload_objs'
  10446. hardcode_direct=no
  10447. ;;
  10448. motorola)
  10449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10450. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10451. ;;
  10452. esac
  10453. runpath_var='LD_RUN_PATH'
  10454. hardcode_shlibpath_var=no
  10455. ;;
  10456. sysv4.3*)
  10457. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10458. hardcode_shlibpath_var=no
  10459. export_dynamic_flag_spec='-Bexport'
  10460. ;;
  10461. sysv4*MP*)
  10462. if test -d /usr/nec; then
  10463. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10464. hardcode_shlibpath_var=no
  10465. runpath_var=LD_RUN_PATH
  10466. hardcode_runpath_var=yes
  10467. ld_shlibs=yes
  10468. fi
  10469. ;;
  10470. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10471. no_undefined_flag='$wl-z,text'
  10472. archive_cmds_need_lc=no
  10473. hardcode_shlibpath_var=no
  10474. runpath_var='LD_RUN_PATH'
  10475. if test yes = "$GCC"; then
  10476. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10477. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10478. else
  10479. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10480. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10481. fi
  10482. ;;
  10483. sysv5* | sco3.2v5* | sco5v6*)
  10484. # Note: We CANNOT use -z defs as we might desire, because we do not
  10485. # link with -lc, and that would cause any symbols used from libc to
  10486. # always be unresolved, which means just about no library would
  10487. # ever link correctly. If we're not using GNU ld we use -z text
  10488. # though, which does catch some bad symbols but isn't as heavy-handed
  10489. # as -z defs.
  10490. no_undefined_flag='$wl-z,text'
  10491. allow_undefined_flag='$wl-z,nodefs'
  10492. archive_cmds_need_lc=no
  10493. hardcode_shlibpath_var=no
  10494. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10495. hardcode_libdir_separator=':'
  10496. link_all_deplibs=yes
  10497. export_dynamic_flag_spec='$wl-Bexport'
  10498. runpath_var='LD_RUN_PATH'
  10499. if test yes = "$GCC"; then
  10500. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10502. else
  10503. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10504. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10505. fi
  10506. ;;
  10507. uts4*)
  10508. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10509. hardcode_libdir_flag_spec='-L$libdir'
  10510. hardcode_shlibpath_var=no
  10511. ;;
  10512. *)
  10513. ld_shlibs=no
  10514. ;;
  10515. esac
  10516. if test sni = "$host_vendor"; then
  10517. case $host in
  10518. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10519. export_dynamic_flag_spec='$wl-Blargedynsym'
  10520. ;;
  10521. esac
  10522. fi
  10523. fi
  10524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10525. printf "%s\n" "$ld_shlibs" >&6; }
  10526. test no = "$ld_shlibs" && can_build_shared=no
  10527. with_gnu_ld=$with_gnu_ld
  10528. #
  10529. # Do we need to explicitly link libc?
  10530. #
  10531. case "x$archive_cmds_need_lc" in
  10532. x|xyes)
  10533. # Assume -lc should be added
  10534. archive_cmds_need_lc=yes
  10535. if test yes,yes = "$GCC,$enable_shared"; then
  10536. case $archive_cmds in
  10537. *'~'*)
  10538. # FIXME: we may have to deal with multi-command sequences.
  10539. ;;
  10540. '$CC '*)
  10541. # Test whether the compiler implicitly links with -lc since on some
  10542. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10543. # to ld, don't add -lc before -lgcc.
  10544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10545. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10546. if test ${lt_cv_archive_cmds_need_lc+y}
  10547. then :
  10548. printf %s "(cached) " >&6
  10549. else $as_nop
  10550. $RM conftest*
  10551. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10552. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10553. (eval $ac_compile) 2>&5
  10554. ac_status=$?
  10555. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10556. test $ac_status = 0; } 2>conftest.err; then
  10557. soname=conftest
  10558. lib=conftest
  10559. libobjs=conftest.$ac_objext
  10560. deplibs=
  10561. wl=$lt_prog_compiler_wl
  10562. pic_flag=$lt_prog_compiler_pic
  10563. compiler_flags=-v
  10564. linker_flags=-v
  10565. verstring=
  10566. output_objdir=.
  10567. libname=conftest
  10568. lt_save_allow_undefined_flag=$allow_undefined_flag
  10569. allow_undefined_flag=
  10570. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10571. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10572. ac_status=$?
  10573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10574. test $ac_status = 0; }
  10575. then
  10576. lt_cv_archive_cmds_need_lc=no
  10577. else
  10578. lt_cv_archive_cmds_need_lc=yes
  10579. fi
  10580. allow_undefined_flag=$lt_save_allow_undefined_flag
  10581. else
  10582. cat conftest.err 1>&5
  10583. fi
  10584. $RM conftest*
  10585. fi
  10586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10587. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10588. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10589. ;;
  10590. esac
  10591. fi
  10592. ;;
  10593. esac
  10594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10595. printf %s "checking dynamic linker characteristics... " >&6; }
  10596. if test yes = "$GCC"; then
  10597. case $host_os in
  10598. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10599. *) lt_awk_arg='/^libraries:/' ;;
  10600. esac
  10601. case $host_os in
  10602. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10603. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10604. esac
  10605. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10606. case $lt_search_path_spec in
  10607. *\;*)
  10608. # if the path contains ";" then we assume it to be the separator
  10609. # otherwise default to the standard path separator (i.e. ":") - it is
  10610. # assumed that no part of a normal pathname contains ";" but that should
  10611. # okay in the real world where ";" in dirpaths is itself problematic.
  10612. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10613. ;;
  10614. *)
  10615. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10616. ;;
  10617. esac
  10618. # Ok, now we have the path, separated by spaces, we can step through it
  10619. # and add multilib dir if necessary...
  10620. lt_tmp_lt_search_path_spec=
  10621. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10622. # ...but if some path component already ends with the multilib dir we assume
  10623. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10624. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10625. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10626. lt_multi_os_dir=
  10627. ;;
  10628. esac
  10629. for lt_sys_path in $lt_search_path_spec; do
  10630. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10631. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10632. elif test -n "$lt_multi_os_dir"; then
  10633. test -d "$lt_sys_path" && \
  10634. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10635. fi
  10636. done
  10637. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10638. BEGIN {RS = " "; FS = "/|\n";} {
  10639. lt_foo = "";
  10640. lt_count = 0;
  10641. for (lt_i = NF; lt_i > 0; lt_i--) {
  10642. if ($lt_i != "" && $lt_i != ".") {
  10643. if ($lt_i == "..") {
  10644. lt_count++;
  10645. } else {
  10646. if (lt_count == 0) {
  10647. lt_foo = "/" $lt_i lt_foo;
  10648. } else {
  10649. lt_count--;
  10650. }
  10651. }
  10652. }
  10653. }
  10654. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10655. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10656. }'`
  10657. # AWK program above erroneously prepends '/' to C:/dos/paths
  10658. # for these hosts.
  10659. case $host_os in
  10660. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10661. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10662. esac
  10663. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10664. else
  10665. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10666. fi
  10667. library_names_spec=
  10668. libname_spec='lib$name'
  10669. soname_spec=
  10670. shrext_cmds=.so
  10671. postinstall_cmds=
  10672. postuninstall_cmds=
  10673. finish_cmds=
  10674. finish_eval=
  10675. shlibpath_var=
  10676. shlibpath_overrides_runpath=unknown
  10677. version_type=none
  10678. dynamic_linker="$host_os ld.so"
  10679. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10680. need_lib_prefix=unknown
  10681. hardcode_into_libs=no
  10682. # when you set need_version to no, make sure it does not cause -set_version
  10683. # flags to be left without arguments
  10684. need_version=unknown
  10685. case $host_os in
  10686. aix3*)
  10687. version_type=linux # correct to gnu/linux during the next big refactor
  10688. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10689. shlibpath_var=LIBPATH
  10690. # AIX 3 has no versioning support, so we append a major version to the name.
  10691. soname_spec='$libname$release$shared_ext$major'
  10692. ;;
  10693. aix[4-9]*)
  10694. version_type=linux # correct to gnu/linux during the next big refactor
  10695. need_lib_prefix=no
  10696. need_version=no
  10697. hardcode_into_libs=yes
  10698. if test ia64 = "$host_cpu"; then
  10699. # AIX 5 supports IA64
  10700. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10701. shlibpath_var=LD_LIBRARY_PATH
  10702. else
  10703. # With GCC up to 2.95.x, collect2 would create an import file
  10704. # for dependence libraries. The import file would start with
  10705. # the line '#! .'. This would cause the generated library to
  10706. # depend on '.', always an invalid library. This was fixed in
  10707. # development snapshots of GCC prior to 3.0.
  10708. case $host_os in
  10709. aix4 | aix4.[01] | aix4.[01].*)
  10710. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10711. echo ' yes '
  10712. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10713. :
  10714. else
  10715. can_build_shared=no
  10716. fi
  10717. ;;
  10718. esac
  10719. # Using Import Files as archive members, it is possible to support
  10720. # filename-based versioning of shared library archives on AIX. While
  10721. # this would work for both with and without runtime linking, it will
  10722. # prevent static linking of such archives. So we do filename-based
  10723. # shared library versioning with .so extension only, which is used
  10724. # when both runtime linking and shared linking is enabled.
  10725. # Unfortunately, runtime linking may impact performance, so we do
  10726. # not want this to be the default eventually. Also, we use the
  10727. # versioned .so libs for executables only if there is the -brtl
  10728. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10729. # To allow for filename-based versioning support, we need to create
  10730. # libNAME.so.V as an archive file, containing:
  10731. # *) an Import File, referring to the versioned filename of the
  10732. # archive as well as the shared archive member, telling the
  10733. # bitwidth (32 or 64) of that shared object, and providing the
  10734. # list of exported symbols of that shared object, eventually
  10735. # decorated with the 'weak' keyword
  10736. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10737. # it being seen by the linker.
  10738. # At run time we better use the real file rather than another symlink,
  10739. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10740. case $with_aix_soname,$aix_use_runtimelinking in
  10741. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10742. # soname into executable. Probably we can add versioning support to
  10743. # collect2, so additional links can be useful in future.
  10744. aix,yes) # traditional libtool
  10745. dynamic_linker='AIX unversionable lib.so'
  10746. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10747. # instead of lib<name>.a to let people know that these are not
  10748. # typical AIX shared libraries.
  10749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10750. ;;
  10751. aix,no) # traditional AIX only
  10752. dynamic_linker='AIX lib.a(lib.so.V)'
  10753. # We preserve .a as extension for shared libraries through AIX4.2
  10754. # and later when we are not doing run time linking.
  10755. library_names_spec='$libname$release.a $libname.a'
  10756. soname_spec='$libname$release$shared_ext$major'
  10757. ;;
  10758. svr4,*) # full svr4 only
  10759. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10760. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10761. # We do not specify a path in Import Files, so LIBPATH fires.
  10762. shlibpath_overrides_runpath=yes
  10763. ;;
  10764. *,yes) # both, prefer svr4
  10765. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10766. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10767. # unpreferred sharedlib libNAME.a needs extra handling
  10768. 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"'
  10769. 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"'
  10770. # We do not specify a path in Import Files, so LIBPATH fires.
  10771. shlibpath_overrides_runpath=yes
  10772. ;;
  10773. *,no) # both, prefer aix
  10774. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10775. library_names_spec='$libname$release.a $libname.a'
  10776. soname_spec='$libname$release$shared_ext$major'
  10777. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10778. 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)'
  10779. 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"'
  10780. ;;
  10781. esac
  10782. shlibpath_var=LIBPATH
  10783. fi
  10784. ;;
  10785. amigaos*)
  10786. case $host_cpu in
  10787. powerpc)
  10788. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10789. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10791. ;;
  10792. m68k)
  10793. library_names_spec='$libname.ixlibrary $libname.a'
  10794. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10795. 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'
  10796. ;;
  10797. esac
  10798. ;;
  10799. beos*)
  10800. library_names_spec='$libname$shared_ext'
  10801. dynamic_linker="$host_os ld.so"
  10802. shlibpath_var=LIBRARY_PATH
  10803. ;;
  10804. bsdi[45]*)
  10805. version_type=linux # correct to gnu/linux during the next big refactor
  10806. need_version=no
  10807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10808. soname_spec='$libname$release$shared_ext$major'
  10809. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10810. shlibpath_var=LD_LIBRARY_PATH
  10811. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10812. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10813. # the default ld.so.conf also contains /usr/contrib/lib and
  10814. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10815. # libtool to hard-code these into programs
  10816. ;;
  10817. cygwin* | mingw* | pw32* | cegcc*)
  10818. version_type=windows
  10819. shrext_cmds=.dll
  10820. need_version=no
  10821. need_lib_prefix=no
  10822. case $GCC,$cc_basename in
  10823. yes,*)
  10824. # gcc
  10825. library_names_spec='$libname.dll.a'
  10826. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10827. postinstall_cmds='base_file=`basename \$file`~
  10828. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10829. dldir=$destdir/`dirname \$dlpath`~
  10830. test -d \$dldir || mkdir -p \$dldir~
  10831. $install_prog $dir/$dlname \$dldir/$dlname~
  10832. chmod a+x \$dldir/$dlname~
  10833. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10834. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10835. fi'
  10836. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10837. dlpath=$dir/\$dldll~
  10838. $RM \$dlpath'
  10839. shlibpath_overrides_runpath=yes
  10840. case $host_os in
  10841. cygwin*)
  10842. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10843. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10844. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10845. ;;
  10846. mingw* | cegcc*)
  10847. # MinGW DLLs use traditional 'lib' prefix
  10848. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10849. ;;
  10850. pw32*)
  10851. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10852. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10853. ;;
  10854. esac
  10855. dynamic_linker='Win32 ld.exe'
  10856. ;;
  10857. *,cl* | *,icl*)
  10858. # Native MSVC or ICC
  10859. libname_spec='$name'
  10860. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10861. library_names_spec='$libname.dll.lib'
  10862. case $build_os in
  10863. mingw*)
  10864. sys_lib_search_path_spec=
  10865. lt_save_ifs=$IFS
  10866. IFS=';'
  10867. for lt_path in $LIB
  10868. do
  10869. IFS=$lt_save_ifs
  10870. # Let DOS variable expansion print the short 8.3 style file name.
  10871. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10872. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10873. done
  10874. IFS=$lt_save_ifs
  10875. # Convert to MSYS style.
  10876. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10877. ;;
  10878. cygwin*)
  10879. # Convert to unix form, then to dos form, then back to unix form
  10880. # but this time dos style (no spaces!) so that the unix form looks
  10881. # like /cygdrive/c/PROGRA~1:/cygdr...
  10882. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10883. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10884. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10885. ;;
  10886. *)
  10887. sys_lib_search_path_spec=$LIB
  10888. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10889. # It is most probably a Windows format PATH.
  10890. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10891. else
  10892. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10893. fi
  10894. # FIXME: find the short name or the path components, as spaces are
  10895. # common. (e.g. "Program Files" -> "PROGRA~1")
  10896. ;;
  10897. esac
  10898. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10899. postinstall_cmds='base_file=`basename \$file`~
  10900. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10901. dldir=$destdir/`dirname \$dlpath`~
  10902. test -d \$dldir || mkdir -p \$dldir~
  10903. $install_prog $dir/$dlname \$dldir/$dlname'
  10904. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10905. dlpath=$dir/\$dldll~
  10906. $RM \$dlpath'
  10907. shlibpath_overrides_runpath=yes
  10908. dynamic_linker='Win32 link.exe'
  10909. ;;
  10910. *)
  10911. # Assume MSVC and ICC wrapper
  10912. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10913. dynamic_linker='Win32 ld.exe'
  10914. ;;
  10915. esac
  10916. # FIXME: first we should search . and the directory the executable is in
  10917. shlibpath_var=PATH
  10918. ;;
  10919. darwin* | rhapsody*)
  10920. dynamic_linker="$host_os dyld"
  10921. version_type=darwin
  10922. need_lib_prefix=no
  10923. need_version=no
  10924. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  10925. soname_spec='$libname$release$major$shared_ext'
  10926. shlibpath_overrides_runpath=yes
  10927. shlibpath_var=DYLD_LIBRARY_PATH
  10928. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  10929. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10930. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10931. ;;
  10932. dgux*)
  10933. version_type=linux # correct to gnu/linux during the next big refactor
  10934. need_lib_prefix=no
  10935. need_version=no
  10936. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10937. soname_spec='$libname$release$shared_ext$major'
  10938. shlibpath_var=LD_LIBRARY_PATH
  10939. ;;
  10940. freebsd* | dragonfly* | midnightbsd*)
  10941. # DragonFly does not have aout. When/if they implement a new
  10942. # versioning mechanism, adjust this.
  10943. if test -x /usr/bin/objformat; then
  10944. objformat=`/usr/bin/objformat`
  10945. else
  10946. case $host_os in
  10947. freebsd[23].*) objformat=aout ;;
  10948. *) objformat=elf ;;
  10949. esac
  10950. fi
  10951. # Handle Gentoo/FreeBSD as it was Linux
  10952. case $host_vendor in
  10953. gentoo)
  10954. version_type=linux ;;
  10955. *)
  10956. version_type=freebsd-$objformat ;;
  10957. esac
  10958. case $version_type in
  10959. freebsd-elf*)
  10960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10961. soname_spec='$libname$release$shared_ext$major'
  10962. need_version=no
  10963. need_lib_prefix=no
  10964. ;;
  10965. freebsd-*)
  10966. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10967. need_version=yes
  10968. ;;
  10969. linux)
  10970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10971. soname_spec='${libname}${release}${shared_ext}$major'
  10972. need_lib_prefix=no
  10973. need_version=no
  10974. ;;
  10975. esac
  10976. shlibpath_var=LD_LIBRARY_PATH
  10977. case $host_os in
  10978. freebsd2.*)
  10979. shlibpath_overrides_runpath=yes
  10980. ;;
  10981. freebsd3.[01]* | freebsdelf3.[01]*)
  10982. shlibpath_overrides_runpath=yes
  10983. hardcode_into_libs=yes
  10984. ;;
  10985. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10986. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10987. shlibpath_overrides_runpath=no
  10988. hardcode_into_libs=yes
  10989. ;;
  10990. *) # from 4.6 on, and DragonFly
  10991. shlibpath_overrides_runpath=yes
  10992. hardcode_into_libs=yes
  10993. ;;
  10994. esac
  10995. ;;
  10996. haiku*)
  10997. version_type=linux # correct to gnu/linux during the next big refactor
  10998. need_lib_prefix=no
  10999. need_version=no
  11000. dynamic_linker="$host_os runtime_loader"
  11001. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11002. soname_spec='$libname$release$shared_ext$major'
  11003. shlibpath_var=LIBRARY_PATH
  11004. shlibpath_overrides_runpath=no
  11005. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11006. hardcode_into_libs=yes
  11007. ;;
  11008. hpux9* | hpux10* | hpux11*)
  11009. # Give a soname corresponding to the major version so that dld.sl refuses to
  11010. # link against other versions.
  11011. version_type=sunos
  11012. need_lib_prefix=no
  11013. need_version=no
  11014. case $host_cpu in
  11015. ia64*)
  11016. shrext_cmds='.so'
  11017. hardcode_into_libs=yes
  11018. dynamic_linker="$host_os dld.so"
  11019. shlibpath_var=LD_LIBRARY_PATH
  11020. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11021. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11022. soname_spec='$libname$release$shared_ext$major'
  11023. if test 32 = "$HPUX_IA64_MODE"; then
  11024. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11025. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11026. else
  11027. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11028. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11029. fi
  11030. ;;
  11031. hppa*64*)
  11032. shrext_cmds='.sl'
  11033. hardcode_into_libs=yes
  11034. dynamic_linker="$host_os dld.sl"
  11035. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11036. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11038. soname_spec='$libname$release$shared_ext$major'
  11039. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11040. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11041. ;;
  11042. *)
  11043. shrext_cmds='.sl'
  11044. dynamic_linker="$host_os dld.sl"
  11045. shlibpath_var=SHLIB_PATH
  11046. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11047. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11048. soname_spec='$libname$release$shared_ext$major'
  11049. ;;
  11050. esac
  11051. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11052. postinstall_cmds='chmod 555 $lib'
  11053. # or fails outright, so override atomically:
  11054. install_override_mode=555
  11055. ;;
  11056. interix[3-9]*)
  11057. version_type=linux # correct to gnu/linux during the next big refactor
  11058. need_lib_prefix=no
  11059. need_version=no
  11060. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11061. soname_spec='$libname$release$shared_ext$major'
  11062. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11063. shlibpath_var=LD_LIBRARY_PATH
  11064. shlibpath_overrides_runpath=no
  11065. hardcode_into_libs=yes
  11066. ;;
  11067. irix5* | irix6* | nonstopux*)
  11068. case $host_os in
  11069. nonstopux*) version_type=nonstopux ;;
  11070. *)
  11071. if test yes = "$lt_cv_prog_gnu_ld"; then
  11072. version_type=linux # correct to gnu/linux during the next big refactor
  11073. else
  11074. version_type=irix
  11075. fi ;;
  11076. esac
  11077. need_lib_prefix=no
  11078. need_version=no
  11079. soname_spec='$libname$release$shared_ext$major'
  11080. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11081. case $host_os in
  11082. irix5* | nonstopux*)
  11083. libsuff= shlibsuff=
  11084. ;;
  11085. *)
  11086. case $LD in # libtool.m4 will add one of these switches to LD
  11087. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11088. libsuff= shlibsuff= libmagic=32-bit;;
  11089. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11090. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11091. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11092. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11093. *) libsuff= shlibsuff= libmagic=never-match;;
  11094. esac
  11095. ;;
  11096. esac
  11097. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11098. shlibpath_overrides_runpath=no
  11099. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11100. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11101. hardcode_into_libs=yes
  11102. ;;
  11103. # No shared lib support for Linux oldld, aout, or coff.
  11104. linux*oldld* | linux*aout* | linux*coff*)
  11105. dynamic_linker=no
  11106. ;;
  11107. linux*android*)
  11108. version_type=none # Android doesn't support versioned libraries.
  11109. need_lib_prefix=no
  11110. need_version=no
  11111. library_names_spec='$libname$release$shared_ext'
  11112. soname_spec='$libname$release$shared_ext'
  11113. finish_cmds=
  11114. shlibpath_var=LD_LIBRARY_PATH
  11115. shlibpath_overrides_runpath=yes
  11116. # This implies no fast_install, which is unacceptable.
  11117. # Some rework will be needed to allow for fast_install
  11118. # before this can be enabled.
  11119. hardcode_into_libs=yes
  11120. dynamic_linker='Android linker'
  11121. # Don't embed -rpath directories since the linker doesn't support them.
  11122. hardcode_libdir_flag_spec='-L$libdir'
  11123. ;;
  11124. # This must be glibc/ELF.
  11125. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11126. version_type=linux # correct to gnu/linux during the next big refactor
  11127. need_lib_prefix=no
  11128. need_version=no
  11129. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11130. soname_spec='$libname$release$shared_ext$major'
  11131. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11132. shlibpath_var=LD_LIBRARY_PATH
  11133. shlibpath_overrides_runpath=no
  11134. # Some binutils ld are patched to set DT_RUNPATH
  11135. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11136. then :
  11137. printf %s "(cached) " >&6
  11138. else $as_nop
  11139. lt_cv_shlibpath_overrides_runpath=no
  11140. save_LDFLAGS=$LDFLAGS
  11141. save_libdir=$libdir
  11142. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11143. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11145. /* end confdefs.h. */
  11146. int
  11147. main (void)
  11148. {
  11149. ;
  11150. return 0;
  11151. }
  11152. _ACEOF
  11153. if ac_fn_c_try_link "$LINENO"
  11154. then :
  11155. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11156. then :
  11157. lt_cv_shlibpath_overrides_runpath=yes
  11158. fi
  11159. fi
  11160. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11161. conftest$ac_exeext conftest.$ac_ext
  11162. LDFLAGS=$save_LDFLAGS
  11163. libdir=$save_libdir
  11164. fi
  11165. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11166. # This implies no fast_install, which is unacceptable.
  11167. # Some rework will be needed to allow for fast_install
  11168. # before this can be enabled.
  11169. hardcode_into_libs=yes
  11170. # Ideally, we could use ldconfig to report *all* directores which are
  11171. # searched for libraries, however this is still not possible. Aside from not
  11172. # being certain /sbin/ldconfig is available, command
  11173. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11174. # even though it is searched at run-time. Try to do the best guess by
  11175. # appending ld.so.conf contents (and includes) to the search path.
  11176. if test -f /etc/ld.so.conf; then
  11177. 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' ' '`
  11178. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11179. fi
  11180. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11181. # powerpc, because MkLinux only supported shared libraries with the
  11182. # GNU dynamic linker. Since this was broken with cross compilers,
  11183. # most powerpc-linux boxes support dynamic linking these days and
  11184. # people can always --disable-shared, the test was removed, and we
  11185. # assume the GNU/Linux dynamic linker is in use.
  11186. dynamic_linker='GNU/Linux ld.so'
  11187. ;;
  11188. netbsd*)
  11189. version_type=sunos
  11190. need_lib_prefix=no
  11191. need_version=no
  11192. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11193. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11194. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11195. dynamic_linker='NetBSD (a.out) ld.so'
  11196. else
  11197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11198. soname_spec='$libname$release$shared_ext$major'
  11199. dynamic_linker='NetBSD ld.elf_so'
  11200. fi
  11201. shlibpath_var=LD_LIBRARY_PATH
  11202. shlibpath_overrides_runpath=yes
  11203. hardcode_into_libs=yes
  11204. ;;
  11205. newsos6)
  11206. version_type=linux # correct to gnu/linux during the next big refactor
  11207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11208. shlibpath_var=LD_LIBRARY_PATH
  11209. shlibpath_overrides_runpath=yes
  11210. ;;
  11211. *nto* | *qnx*)
  11212. version_type=qnx
  11213. need_lib_prefix=no
  11214. need_version=no
  11215. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11216. soname_spec='$libname$release$shared_ext$major'
  11217. shlibpath_var=LD_LIBRARY_PATH
  11218. shlibpath_overrides_runpath=no
  11219. hardcode_into_libs=yes
  11220. dynamic_linker='ldqnx.so'
  11221. ;;
  11222. openbsd* | bitrig*)
  11223. version_type=sunos
  11224. sys_lib_dlsearch_path_spec=/usr/lib
  11225. need_lib_prefix=no
  11226. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11227. need_version=no
  11228. else
  11229. need_version=yes
  11230. fi
  11231. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11232. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11233. shlibpath_var=LD_LIBRARY_PATH
  11234. shlibpath_overrides_runpath=yes
  11235. ;;
  11236. os2*)
  11237. libname_spec='$name'
  11238. version_type=windows
  11239. shrext_cmds=.dll
  11240. need_version=no
  11241. need_lib_prefix=no
  11242. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11243. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11244. v=$($ECHO $release$versuffix | tr -d .-);
  11245. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11246. $ECHO $n$v`$shared_ext'
  11247. library_names_spec='${libname}_dll.$libext'
  11248. dynamic_linker='OS/2 ld.exe'
  11249. shlibpath_var=BEGINLIBPATH
  11250. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11251. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11252. postinstall_cmds='base_file=`basename \$file`~
  11253. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11254. dldir=$destdir/`dirname \$dlpath`~
  11255. test -d \$dldir || mkdir -p \$dldir~
  11256. $install_prog $dir/$dlname \$dldir/$dlname~
  11257. chmod a+x \$dldir/$dlname~
  11258. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11259. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11260. fi'
  11261. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11262. dlpath=$dir/\$dldll~
  11263. $RM \$dlpath'
  11264. ;;
  11265. osf3* | osf4* | osf5*)
  11266. version_type=osf
  11267. need_lib_prefix=no
  11268. need_version=no
  11269. soname_spec='$libname$release$shared_ext$major'
  11270. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11271. shlibpath_var=LD_LIBRARY_PATH
  11272. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11273. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11274. ;;
  11275. rdos*)
  11276. dynamic_linker=no
  11277. ;;
  11278. solaris*)
  11279. version_type=linux # correct to gnu/linux during the next big refactor
  11280. need_lib_prefix=no
  11281. need_version=no
  11282. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11283. soname_spec='$libname$release$shared_ext$major'
  11284. shlibpath_var=LD_LIBRARY_PATH
  11285. shlibpath_overrides_runpath=yes
  11286. hardcode_into_libs=yes
  11287. # ldd complains unless libraries are executable
  11288. postinstall_cmds='chmod +x $lib'
  11289. ;;
  11290. sunos4*)
  11291. version_type=sunos
  11292. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11293. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11294. shlibpath_var=LD_LIBRARY_PATH
  11295. shlibpath_overrides_runpath=yes
  11296. if test yes = "$with_gnu_ld"; then
  11297. need_lib_prefix=no
  11298. fi
  11299. need_version=yes
  11300. ;;
  11301. sysv4 | sysv4.3*)
  11302. version_type=linux # correct to gnu/linux during the next big refactor
  11303. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11304. soname_spec='$libname$release$shared_ext$major'
  11305. shlibpath_var=LD_LIBRARY_PATH
  11306. case $host_vendor in
  11307. sni)
  11308. shlibpath_overrides_runpath=no
  11309. need_lib_prefix=no
  11310. runpath_var=LD_RUN_PATH
  11311. ;;
  11312. siemens)
  11313. need_lib_prefix=no
  11314. ;;
  11315. motorola)
  11316. need_lib_prefix=no
  11317. need_version=no
  11318. shlibpath_overrides_runpath=no
  11319. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11320. ;;
  11321. esac
  11322. ;;
  11323. sysv4*MP*)
  11324. if test -d /usr/nec; then
  11325. version_type=linux # correct to gnu/linux during the next big refactor
  11326. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11327. soname_spec='$libname$shared_ext.$major'
  11328. shlibpath_var=LD_LIBRARY_PATH
  11329. fi
  11330. ;;
  11331. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11332. version_type=sco
  11333. need_lib_prefix=no
  11334. need_version=no
  11335. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11336. soname_spec='$libname$release$shared_ext$major'
  11337. shlibpath_var=LD_LIBRARY_PATH
  11338. shlibpath_overrides_runpath=yes
  11339. hardcode_into_libs=yes
  11340. if test yes = "$with_gnu_ld"; then
  11341. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11342. else
  11343. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11344. case $host_os in
  11345. sco3.2v5*)
  11346. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11347. ;;
  11348. esac
  11349. fi
  11350. sys_lib_dlsearch_path_spec='/usr/lib'
  11351. ;;
  11352. tpf*)
  11353. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11354. version_type=linux # correct to gnu/linux during the next big refactor
  11355. need_lib_prefix=no
  11356. need_version=no
  11357. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11358. shlibpath_var=LD_LIBRARY_PATH
  11359. shlibpath_overrides_runpath=no
  11360. hardcode_into_libs=yes
  11361. ;;
  11362. uts4*)
  11363. version_type=linux # correct to gnu/linux during the next big refactor
  11364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11365. soname_spec='$libname$release$shared_ext$major'
  11366. shlibpath_var=LD_LIBRARY_PATH
  11367. ;;
  11368. *)
  11369. dynamic_linker=no
  11370. ;;
  11371. esac
  11372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11373. printf "%s\n" "$dynamic_linker" >&6; }
  11374. test no = "$dynamic_linker" && can_build_shared=no
  11375. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11376. if test yes = "$GCC"; then
  11377. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11378. fi
  11379. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11380. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11381. fi
  11382. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11383. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11384. fi
  11385. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11386. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11387. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11388. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11389. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11390. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11392. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11393. hardcode_action=
  11394. if test -n "$hardcode_libdir_flag_spec" ||
  11395. test -n "$runpath_var" ||
  11396. test yes = "$hardcode_automatic"; then
  11397. # We can hardcode non-existent directories.
  11398. if test no != "$hardcode_direct" &&
  11399. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11400. # have to relink, otherwise we might link with an installed library
  11401. # when we should be linking with a yet-to-be-installed one
  11402. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11403. test no != "$hardcode_minus_L"; then
  11404. # Linking always hardcodes the temporary library directory.
  11405. hardcode_action=relink
  11406. else
  11407. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11408. hardcode_action=immediate
  11409. fi
  11410. else
  11411. # We cannot hardcode anything, or else we can only hardcode existing
  11412. # directories.
  11413. hardcode_action=unsupported
  11414. fi
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11416. printf "%s\n" "$hardcode_action" >&6; }
  11417. if test relink = "$hardcode_action" ||
  11418. test yes = "$inherit_rpath"; then
  11419. # Fast installation is not supported
  11420. enable_fast_install=no
  11421. elif test yes = "$shlibpath_overrides_runpath" ||
  11422. test no = "$enable_shared"; then
  11423. # Fast installation is not necessary
  11424. enable_fast_install=needless
  11425. fi
  11426. if test yes != "$enable_dlopen"; then
  11427. enable_dlopen=unknown
  11428. enable_dlopen_self=unknown
  11429. enable_dlopen_self_static=unknown
  11430. else
  11431. lt_cv_dlopen=no
  11432. lt_cv_dlopen_libs=
  11433. case $host_os in
  11434. beos*)
  11435. lt_cv_dlopen=load_add_on
  11436. lt_cv_dlopen_libs=
  11437. lt_cv_dlopen_self=yes
  11438. ;;
  11439. mingw* | pw32* | cegcc*)
  11440. lt_cv_dlopen=LoadLibrary
  11441. lt_cv_dlopen_libs=
  11442. ;;
  11443. cygwin*)
  11444. lt_cv_dlopen=dlopen
  11445. lt_cv_dlopen_libs=
  11446. ;;
  11447. darwin*)
  11448. # if libdl is installed we need to link against it
  11449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11450. printf %s "checking for dlopen in -ldl... " >&6; }
  11451. if test ${ac_cv_lib_dl_dlopen+y}
  11452. then :
  11453. printf %s "(cached) " >&6
  11454. else $as_nop
  11455. ac_check_lib_save_LIBS=$LIBS
  11456. LIBS="-ldl $LIBS"
  11457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11458. /* end confdefs.h. */
  11459. /* Override any GCC internal prototype to avoid an error.
  11460. Use char because int might match the return type of a GCC
  11461. builtin and then its argument prototype would still apply.
  11462. The 'extern "C"' is for builds by C++ compilers;
  11463. although this is not generally supported in C code supporting it here
  11464. has little cost and some practical benefit (sr 110532). */
  11465. #ifdef __cplusplus
  11466. extern "C"
  11467. #endif
  11468. char dlopen (void);
  11469. int
  11470. main (void)
  11471. {
  11472. return dlopen ();
  11473. ;
  11474. return 0;
  11475. }
  11476. _ACEOF
  11477. if ac_fn_c_try_link "$LINENO"
  11478. then :
  11479. ac_cv_lib_dl_dlopen=yes
  11480. else $as_nop
  11481. ac_cv_lib_dl_dlopen=no
  11482. fi
  11483. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11484. conftest$ac_exeext conftest.$ac_ext
  11485. LIBS=$ac_check_lib_save_LIBS
  11486. fi
  11487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11488. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11489. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11490. then :
  11491. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11492. else $as_nop
  11493. lt_cv_dlopen=dyld
  11494. lt_cv_dlopen_libs=
  11495. lt_cv_dlopen_self=yes
  11496. fi
  11497. ;;
  11498. tpf*)
  11499. # Don't try to run any link tests for TPF. We know it's impossible
  11500. # because TPF is a cross-compiler, and we know how we open DSOs.
  11501. lt_cv_dlopen=dlopen
  11502. lt_cv_dlopen_libs=
  11503. lt_cv_dlopen_self=no
  11504. ;;
  11505. *)
  11506. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11507. if test "x$ac_cv_func_shl_load" = xyes
  11508. then :
  11509. lt_cv_dlopen=shl_load
  11510. else $as_nop
  11511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11512. printf %s "checking for shl_load in -ldld... " >&6; }
  11513. if test ${ac_cv_lib_dld_shl_load+y}
  11514. then :
  11515. printf %s "(cached) " >&6
  11516. else $as_nop
  11517. ac_check_lib_save_LIBS=$LIBS
  11518. LIBS="-ldld $LIBS"
  11519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11520. /* end confdefs.h. */
  11521. /* Override any GCC internal prototype to avoid an error.
  11522. Use char because int might match the return type of a GCC
  11523. builtin and then its argument prototype would still apply.
  11524. The 'extern "C"' is for builds by C++ compilers;
  11525. although this is not generally supported in C code supporting it here
  11526. has little cost and some practical benefit (sr 110532). */
  11527. #ifdef __cplusplus
  11528. extern "C"
  11529. #endif
  11530. char shl_load (void);
  11531. int
  11532. main (void)
  11533. {
  11534. return shl_load ();
  11535. ;
  11536. return 0;
  11537. }
  11538. _ACEOF
  11539. if ac_fn_c_try_link "$LINENO"
  11540. then :
  11541. ac_cv_lib_dld_shl_load=yes
  11542. else $as_nop
  11543. ac_cv_lib_dld_shl_load=no
  11544. fi
  11545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11546. conftest$ac_exeext conftest.$ac_ext
  11547. LIBS=$ac_check_lib_save_LIBS
  11548. fi
  11549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11550. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11551. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11552. then :
  11553. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11554. else $as_nop
  11555. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11556. if test "x$ac_cv_func_dlopen" = xyes
  11557. then :
  11558. lt_cv_dlopen=dlopen
  11559. else $as_nop
  11560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11561. printf %s "checking for dlopen in -ldl... " >&6; }
  11562. if test ${ac_cv_lib_dl_dlopen+y}
  11563. then :
  11564. printf %s "(cached) " >&6
  11565. else $as_nop
  11566. ac_check_lib_save_LIBS=$LIBS
  11567. LIBS="-ldl $LIBS"
  11568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11569. /* end confdefs.h. */
  11570. /* Override any GCC internal prototype to avoid an error.
  11571. Use char because int might match the return type of a GCC
  11572. builtin and then its argument prototype would still apply.
  11573. The 'extern "C"' is for builds by C++ compilers;
  11574. although this is not generally supported in C code supporting it here
  11575. has little cost and some practical benefit (sr 110532). */
  11576. #ifdef __cplusplus
  11577. extern "C"
  11578. #endif
  11579. char dlopen (void);
  11580. int
  11581. main (void)
  11582. {
  11583. return dlopen ();
  11584. ;
  11585. return 0;
  11586. }
  11587. _ACEOF
  11588. if ac_fn_c_try_link "$LINENO"
  11589. then :
  11590. ac_cv_lib_dl_dlopen=yes
  11591. else $as_nop
  11592. ac_cv_lib_dl_dlopen=no
  11593. fi
  11594. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11595. conftest$ac_exeext conftest.$ac_ext
  11596. LIBS=$ac_check_lib_save_LIBS
  11597. fi
  11598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11599. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11600. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11601. then :
  11602. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11603. else $as_nop
  11604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11605. printf %s "checking for dlopen in -lsvld... " >&6; }
  11606. if test ${ac_cv_lib_svld_dlopen+y}
  11607. then :
  11608. printf %s "(cached) " >&6
  11609. else $as_nop
  11610. ac_check_lib_save_LIBS=$LIBS
  11611. LIBS="-lsvld $LIBS"
  11612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11613. /* end confdefs.h. */
  11614. /* Override any GCC internal prototype to avoid an error.
  11615. Use char because int might match the return type of a GCC
  11616. builtin and then its argument prototype would still apply.
  11617. The 'extern "C"' is for builds by C++ compilers;
  11618. although this is not generally supported in C code supporting it here
  11619. has little cost and some practical benefit (sr 110532). */
  11620. #ifdef __cplusplus
  11621. extern "C"
  11622. #endif
  11623. char dlopen (void);
  11624. int
  11625. main (void)
  11626. {
  11627. return dlopen ();
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. if ac_fn_c_try_link "$LINENO"
  11633. then :
  11634. ac_cv_lib_svld_dlopen=yes
  11635. else $as_nop
  11636. ac_cv_lib_svld_dlopen=no
  11637. fi
  11638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11639. conftest$ac_exeext conftest.$ac_ext
  11640. LIBS=$ac_check_lib_save_LIBS
  11641. fi
  11642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11643. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11644. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11645. then :
  11646. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11647. else $as_nop
  11648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11649. printf %s "checking for dld_link in -ldld... " >&6; }
  11650. if test ${ac_cv_lib_dld_dld_link+y}
  11651. then :
  11652. printf %s "(cached) " >&6
  11653. else $as_nop
  11654. ac_check_lib_save_LIBS=$LIBS
  11655. LIBS="-ldld $LIBS"
  11656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11657. /* end confdefs.h. */
  11658. /* Override any GCC internal prototype to avoid an error.
  11659. Use char because int might match the return type of a GCC
  11660. builtin and then its argument prototype would still apply.
  11661. The 'extern "C"' is for builds by C++ compilers;
  11662. although this is not generally supported in C code supporting it here
  11663. has little cost and some practical benefit (sr 110532). */
  11664. #ifdef __cplusplus
  11665. extern "C"
  11666. #endif
  11667. char dld_link (void);
  11668. int
  11669. main (void)
  11670. {
  11671. return dld_link ();
  11672. ;
  11673. return 0;
  11674. }
  11675. _ACEOF
  11676. if ac_fn_c_try_link "$LINENO"
  11677. then :
  11678. ac_cv_lib_dld_dld_link=yes
  11679. else $as_nop
  11680. ac_cv_lib_dld_dld_link=no
  11681. fi
  11682. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11683. conftest$ac_exeext conftest.$ac_ext
  11684. LIBS=$ac_check_lib_save_LIBS
  11685. fi
  11686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11687. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11688. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11689. then :
  11690. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11691. fi
  11692. fi
  11693. fi
  11694. fi
  11695. fi
  11696. fi
  11697. ;;
  11698. esac
  11699. if test no = "$lt_cv_dlopen"; then
  11700. enable_dlopen=no
  11701. else
  11702. enable_dlopen=yes
  11703. fi
  11704. case $lt_cv_dlopen in
  11705. dlopen)
  11706. save_CPPFLAGS=$CPPFLAGS
  11707. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11708. save_LDFLAGS=$LDFLAGS
  11709. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11710. save_LIBS=$LIBS
  11711. LIBS="$lt_cv_dlopen_libs $LIBS"
  11712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11713. printf %s "checking whether a program can dlopen itself... " >&6; }
  11714. if test ${lt_cv_dlopen_self+y}
  11715. then :
  11716. printf %s "(cached) " >&6
  11717. else $as_nop
  11718. if test yes = "$cross_compiling"; then :
  11719. lt_cv_dlopen_self=cross
  11720. else
  11721. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11722. lt_status=$lt_dlunknown
  11723. cat > conftest.$ac_ext <<_LT_EOF
  11724. #line $LINENO "configure"
  11725. #include "confdefs.h"
  11726. #if HAVE_DLFCN_H
  11727. #include <dlfcn.h>
  11728. #endif
  11729. #include <stdio.h>
  11730. #ifdef RTLD_GLOBAL
  11731. # define LT_DLGLOBAL RTLD_GLOBAL
  11732. #else
  11733. # ifdef DL_GLOBAL
  11734. # define LT_DLGLOBAL DL_GLOBAL
  11735. # else
  11736. # define LT_DLGLOBAL 0
  11737. # endif
  11738. #endif
  11739. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11740. find out it does not work in some platform. */
  11741. #ifndef LT_DLLAZY_OR_NOW
  11742. # ifdef RTLD_LAZY
  11743. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11744. # else
  11745. # ifdef DL_LAZY
  11746. # define LT_DLLAZY_OR_NOW DL_LAZY
  11747. # else
  11748. # ifdef RTLD_NOW
  11749. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11750. # else
  11751. # ifdef DL_NOW
  11752. # define LT_DLLAZY_OR_NOW DL_NOW
  11753. # else
  11754. # define LT_DLLAZY_OR_NOW 0
  11755. # endif
  11756. # endif
  11757. # endif
  11758. # endif
  11759. #endif
  11760. /* When -fvisibility=hidden is used, assume the code has been annotated
  11761. correspondingly for the symbols needed. */
  11762. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11763. int fnord () __attribute__((visibility("default")));
  11764. #endif
  11765. int fnord () { return 42; }
  11766. int main ()
  11767. {
  11768. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11769. int status = $lt_dlunknown;
  11770. if (self)
  11771. {
  11772. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11773. else
  11774. {
  11775. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11776. else puts (dlerror ());
  11777. }
  11778. /* dlclose (self); */
  11779. }
  11780. else
  11781. puts (dlerror ());
  11782. return status;
  11783. }
  11784. _LT_EOF
  11785. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11786. (eval $ac_link) 2>&5
  11787. ac_status=$?
  11788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11789. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11790. (./conftest; exit; ) >&5 2>/dev/null
  11791. lt_status=$?
  11792. case x$lt_status in
  11793. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11794. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11795. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11796. esac
  11797. else :
  11798. # compilation failed
  11799. lt_cv_dlopen_self=no
  11800. fi
  11801. fi
  11802. rm -fr conftest*
  11803. fi
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11805. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11806. if test yes = "$lt_cv_dlopen_self"; then
  11807. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11809. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11810. if test ${lt_cv_dlopen_self_static+y}
  11811. then :
  11812. printf %s "(cached) " >&6
  11813. else $as_nop
  11814. if test yes = "$cross_compiling"; then :
  11815. lt_cv_dlopen_self_static=cross
  11816. else
  11817. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11818. lt_status=$lt_dlunknown
  11819. cat > conftest.$ac_ext <<_LT_EOF
  11820. #line $LINENO "configure"
  11821. #include "confdefs.h"
  11822. #if HAVE_DLFCN_H
  11823. #include <dlfcn.h>
  11824. #endif
  11825. #include <stdio.h>
  11826. #ifdef RTLD_GLOBAL
  11827. # define LT_DLGLOBAL RTLD_GLOBAL
  11828. #else
  11829. # ifdef DL_GLOBAL
  11830. # define LT_DLGLOBAL DL_GLOBAL
  11831. # else
  11832. # define LT_DLGLOBAL 0
  11833. # endif
  11834. #endif
  11835. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11836. find out it does not work in some platform. */
  11837. #ifndef LT_DLLAZY_OR_NOW
  11838. # ifdef RTLD_LAZY
  11839. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11840. # else
  11841. # ifdef DL_LAZY
  11842. # define LT_DLLAZY_OR_NOW DL_LAZY
  11843. # else
  11844. # ifdef RTLD_NOW
  11845. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11846. # else
  11847. # ifdef DL_NOW
  11848. # define LT_DLLAZY_OR_NOW DL_NOW
  11849. # else
  11850. # define LT_DLLAZY_OR_NOW 0
  11851. # endif
  11852. # endif
  11853. # endif
  11854. # endif
  11855. #endif
  11856. /* When -fvisibility=hidden is used, assume the code has been annotated
  11857. correspondingly for the symbols needed. */
  11858. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11859. int fnord () __attribute__((visibility("default")));
  11860. #endif
  11861. int fnord () { return 42; }
  11862. int main ()
  11863. {
  11864. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11865. int status = $lt_dlunknown;
  11866. if (self)
  11867. {
  11868. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11869. else
  11870. {
  11871. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11872. else puts (dlerror ());
  11873. }
  11874. /* dlclose (self); */
  11875. }
  11876. else
  11877. puts (dlerror ());
  11878. return status;
  11879. }
  11880. _LT_EOF
  11881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11882. (eval $ac_link) 2>&5
  11883. ac_status=$?
  11884. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11885. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11886. (./conftest; exit; ) >&5 2>/dev/null
  11887. lt_status=$?
  11888. case x$lt_status in
  11889. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11890. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11891. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11892. esac
  11893. else :
  11894. # compilation failed
  11895. lt_cv_dlopen_self_static=no
  11896. fi
  11897. fi
  11898. rm -fr conftest*
  11899. fi
  11900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11901. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11902. fi
  11903. CPPFLAGS=$save_CPPFLAGS
  11904. LDFLAGS=$save_LDFLAGS
  11905. LIBS=$save_LIBS
  11906. ;;
  11907. esac
  11908. case $lt_cv_dlopen_self in
  11909. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11910. *) enable_dlopen_self=unknown ;;
  11911. esac
  11912. case $lt_cv_dlopen_self_static in
  11913. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11914. *) enable_dlopen_self_static=unknown ;;
  11915. esac
  11916. fi
  11917. striplib=
  11918. old_striplib=
  11919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11920. printf %s "checking whether stripping libraries is possible... " >&6; }
  11921. if test -z "$STRIP"; then
  11922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11923. printf "%s\n" "no" >&6; }
  11924. else
  11925. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11926. old_striplib="$STRIP --strip-debug"
  11927. striplib="$STRIP --strip-unneeded"
  11928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11929. printf "%s\n" "yes" >&6; }
  11930. else
  11931. case $host_os in
  11932. darwin*)
  11933. # FIXME - insert some real tests, host_os isn't really good enough
  11934. striplib="$STRIP -x"
  11935. old_striplib="$STRIP -S"
  11936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11937. printf "%s\n" "yes" >&6; }
  11938. ;;
  11939. freebsd*)
  11940. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11941. old_striplib="$STRIP --strip-debug"
  11942. striplib="$STRIP --strip-unneeded"
  11943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11944. printf "%s\n" "yes" >&6; }
  11945. else
  11946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11947. printf "%s\n" "no" >&6; }
  11948. fi
  11949. ;;
  11950. *)
  11951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11952. printf "%s\n" "no" >&6; }
  11953. ;;
  11954. esac
  11955. fi
  11956. fi
  11957. # Report what library types will actually be built
  11958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11959. printf %s "checking if libtool supports shared libraries... " >&6; }
  11960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11961. printf "%s\n" "$can_build_shared" >&6; }
  11962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11963. printf %s "checking whether to build shared libraries... " >&6; }
  11964. test no = "$can_build_shared" && enable_shared=no
  11965. # On AIX, shared libraries and static libraries use the same namespace, and
  11966. # are all built from PIC.
  11967. case $host_os in
  11968. aix3*)
  11969. test yes = "$enable_shared" && enable_static=no
  11970. if test -n "$RANLIB"; then
  11971. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11972. postinstall_cmds='$RANLIB $lib'
  11973. fi
  11974. ;;
  11975. aix[4-9]*)
  11976. if test ia64 != "$host_cpu"; then
  11977. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11978. yes,aix,yes) ;; # shared object as lib.so file only
  11979. yes,svr4,*) ;; # shared object as lib.so archive member only
  11980. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11981. esac
  11982. fi
  11983. ;;
  11984. esac
  11985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11986. printf "%s\n" "$enable_shared" >&6; }
  11987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11988. printf %s "checking whether to build static libraries... " >&6; }
  11989. # Make sure either enable_shared or enable_static is yes.
  11990. test yes = "$enable_shared" || enable_static=yes
  11991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11992. printf "%s\n" "$enable_static" >&6; }
  11993. fi
  11994. ac_ext=c
  11995. ac_cpp='$CPP $CPPFLAGS'
  11996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11999. CC=$lt_save_CC
  12000. ac_config_commands="$ac_config_commands libtool"
  12001. # Only expand once:
  12002. ac_ext=c
  12003. ac_cpp='$CPP $CPPFLAGS'
  12004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12007. if test "${ac_cv_prog_cc_c99}" = no
  12008. then :
  12009. as_fn_error $? "Expat requires a C99 compiler." "$LINENO" 5
  12010. fi
  12011. if test "$GCC" = yes
  12012. then :
  12013. for flag in -Wall -Wextra; do
  12014. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12016. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12017. if eval test \${$as_CACHEVAR+y}
  12018. then :
  12019. printf %s "(cached) " >&6
  12020. else $as_nop
  12021. ax_check_save_flags=$CFLAGS
  12022. CFLAGS="$CFLAGS -Werror $flag"
  12023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12024. /* end confdefs.h. */
  12025. int main(void) { return 0; }
  12026. _ACEOF
  12027. if ac_fn_c_try_compile "$LINENO"
  12028. then :
  12029. eval "$as_CACHEVAR=yes"
  12030. else $as_nop
  12031. eval "$as_CACHEVAR=no"
  12032. fi
  12033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12034. CFLAGS=$ax_check_save_flags
  12035. fi
  12036. eval ac_res=\$$as_CACHEVAR
  12037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12038. printf "%s\n" "$ac_res" >&6; }
  12039. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12040. then :
  12041. if test ${AM_CFLAGS+y}
  12042. then :
  12043. case " $AM_CFLAGS " in #(
  12044. *" $flag "*) :
  12045. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12046. (: AM_CFLAGS already contains $flag) 2>&5
  12047. ac_status=$?
  12048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12049. test $ac_status = 0; } ;; #(
  12050. *) :
  12051. as_fn_append AM_CFLAGS " $flag"
  12052. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12053. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12054. ac_status=$?
  12055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12056. test $ac_status = 0; }
  12057. ;;
  12058. esac
  12059. else $as_nop
  12060. AM_CFLAGS=$flag
  12061. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12062. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12063. ac_status=$?
  12064. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12065. test $ac_status = 0; }
  12066. fi
  12067. else $as_nop
  12068. :
  12069. fi
  12070. done
  12071. for flag in -fexceptions; do
  12072. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12074. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12075. if eval test \${$as_CACHEVAR+y}
  12076. then :
  12077. printf %s "(cached) " >&6
  12078. else $as_nop
  12079. ax_check_save_flags=$CFLAGS
  12080. CFLAGS="$CFLAGS -Werror $flag"
  12081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12082. /* end confdefs.h. */
  12083. int main(void) { return 0; }
  12084. _ACEOF
  12085. if ac_fn_c_try_compile "$LINENO"
  12086. then :
  12087. eval "$as_CACHEVAR=yes"
  12088. else $as_nop
  12089. eval "$as_CACHEVAR=no"
  12090. fi
  12091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12092. CFLAGS=$ax_check_save_flags
  12093. fi
  12094. eval ac_res=\$$as_CACHEVAR
  12095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12096. printf "%s\n" "$ac_res" >&6; }
  12097. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12098. then :
  12099. if test ${AM_CFLAGS+y}
  12100. then :
  12101. case " $AM_CFLAGS " in #(
  12102. *" $flag "*) :
  12103. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12104. (: AM_CFLAGS already contains $flag) 2>&5
  12105. ac_status=$?
  12106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12107. test $ac_status = 0; } ;; #(
  12108. *) :
  12109. as_fn_append AM_CFLAGS " $flag"
  12110. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12111. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12112. ac_status=$?
  12113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12114. test $ac_status = 0; }
  12115. ;;
  12116. esac
  12117. else $as_nop
  12118. AM_CFLAGS=$flag
  12119. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12120. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12121. ac_status=$?
  12122. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12123. test $ac_status = 0; }
  12124. fi
  12125. else $as_nop
  12126. :
  12127. fi
  12128. done
  12129. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  12130. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12132. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12133. if eval test \${$as_CACHEVAR+y}
  12134. then :
  12135. printf %s "(cached) " >&6
  12136. else $as_nop
  12137. ax_check_save_flags=$CFLAGS
  12138. CFLAGS="$CFLAGS -Werror $flag"
  12139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12140. /* end confdefs.h. */
  12141. int main(void) { return 0; }
  12142. _ACEOF
  12143. if ac_fn_c_try_compile "$LINENO"
  12144. then :
  12145. eval "$as_CACHEVAR=yes"
  12146. else $as_nop
  12147. eval "$as_CACHEVAR=no"
  12148. fi
  12149. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12150. CFLAGS=$ax_check_save_flags
  12151. fi
  12152. eval ac_res=\$$as_CACHEVAR
  12153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12154. printf "%s\n" "$ac_res" >&6; }
  12155. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12156. then :
  12157. if test ${AM_CFLAGS+y}
  12158. then :
  12159. case " $AM_CFLAGS " in #(
  12160. *" $flag "*) :
  12161. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12162. (: AM_CFLAGS already contains $flag) 2>&5
  12163. ac_status=$?
  12164. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12165. test $ac_status = 0; } ;; #(
  12166. *) :
  12167. as_fn_append AM_CFLAGS " $flag"
  12168. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12169. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12170. ac_status=$?
  12171. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12172. test $ac_status = 0; }
  12173. ;;
  12174. esac
  12175. else $as_nop
  12176. AM_CFLAGS=$flag
  12177. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12178. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12179. ac_status=$?
  12180. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12181. test $ac_status = 0; }
  12182. fi
  12183. else $as_nop
  12184. :
  12185. fi
  12186. done
  12187. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  12188. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12190. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12191. if eval test \${$as_CACHEVAR+y}
  12192. then :
  12193. printf %s "(cached) " >&6
  12194. else $as_nop
  12195. ax_check_save_flags=$CFLAGS
  12196. CFLAGS="$CFLAGS -Werror $flag"
  12197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12198. /* end confdefs.h. */
  12199. int main(void) { return 0; }
  12200. _ACEOF
  12201. if ac_fn_c_try_compile "$LINENO"
  12202. then :
  12203. eval "$as_CACHEVAR=yes"
  12204. else $as_nop
  12205. eval "$as_CACHEVAR=no"
  12206. fi
  12207. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12208. CFLAGS=$ax_check_save_flags
  12209. fi
  12210. eval ac_res=\$$as_CACHEVAR
  12211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12212. printf "%s\n" "$ac_res" >&6; }
  12213. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12214. then :
  12215. if test ${AM_CFLAGS+y}
  12216. then :
  12217. case " $AM_CFLAGS " in #(
  12218. *" $flag "*) :
  12219. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12220. (: AM_CFLAGS already contains $flag) 2>&5
  12221. ac_status=$?
  12222. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12223. test $ac_status = 0; } ;; #(
  12224. *) :
  12225. as_fn_append AM_CFLAGS " $flag"
  12226. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12227. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12228. ac_status=$?
  12229. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12230. test $ac_status = 0; }
  12231. ;;
  12232. esac
  12233. else $as_nop
  12234. AM_CFLAGS=$flag
  12235. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12236. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12237. ac_status=$?
  12238. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12239. test $ac_status = 0; }
  12240. fi
  12241. else $as_nop
  12242. :
  12243. fi
  12244. done
  12245. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  12246. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12248. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12249. if eval test \${$as_CACHEVAR+y}
  12250. then :
  12251. printf %s "(cached) " >&6
  12252. else $as_nop
  12253. ax_check_save_flags=$CFLAGS
  12254. CFLAGS="$CFLAGS -Werror $flag"
  12255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12256. /* end confdefs.h. */
  12257. int main(void) { return 0; }
  12258. _ACEOF
  12259. if ac_fn_c_try_compile "$LINENO"
  12260. then :
  12261. eval "$as_CACHEVAR=yes"
  12262. else $as_nop
  12263. eval "$as_CACHEVAR=no"
  12264. fi
  12265. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12266. CFLAGS=$ax_check_save_flags
  12267. fi
  12268. eval ac_res=\$$as_CACHEVAR
  12269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12270. printf "%s\n" "$ac_res" >&6; }
  12271. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12272. then :
  12273. if test ${AM_CFLAGS+y}
  12274. then :
  12275. case " $AM_CFLAGS " in #(
  12276. *" $flag "*) :
  12277. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12278. (: AM_CFLAGS already contains $flag) 2>&5
  12279. ac_status=$?
  12280. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12281. test $ac_status = 0; } ;; #(
  12282. *) :
  12283. as_fn_append AM_CFLAGS " $flag"
  12284. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12285. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12286. ac_status=$?
  12287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12288. test $ac_status = 0; }
  12289. ;;
  12290. esac
  12291. else $as_nop
  12292. AM_CFLAGS=$flag
  12293. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12294. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12295. ac_status=$?
  12296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12297. test $ac_status = 0; }
  12298. fi
  12299. else $as_nop
  12300. :
  12301. fi
  12302. done
  12303. for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
  12304. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12306. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12307. if eval test \${$as_CACHEVAR+y}
  12308. then :
  12309. printf %s "(cached) " >&6
  12310. else $as_nop
  12311. ax_check_save_flags=$CFLAGS
  12312. CFLAGS="$CFLAGS -Werror $flag"
  12313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12314. /* end confdefs.h. */
  12315. int main(void) { return 0; }
  12316. _ACEOF
  12317. if ac_fn_c_try_compile "$LINENO"
  12318. then :
  12319. eval "$as_CACHEVAR=yes"
  12320. else $as_nop
  12321. eval "$as_CACHEVAR=no"
  12322. fi
  12323. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12324. CFLAGS=$ax_check_save_flags
  12325. fi
  12326. eval ac_res=\$$as_CACHEVAR
  12327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12328. printf "%s\n" "$ac_res" >&6; }
  12329. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12330. then :
  12331. if test ${AM_CFLAGS+y}
  12332. then :
  12333. case " $AM_CFLAGS " in #(
  12334. *" $flag "*) :
  12335. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12336. (: AM_CFLAGS already contains $flag) 2>&5
  12337. ac_status=$?
  12338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12339. test $ac_status = 0; } ;; #(
  12340. *) :
  12341. as_fn_append AM_CFLAGS " $flag"
  12342. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12343. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12344. ac_status=$?
  12345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12346. test $ac_status = 0; }
  12347. ;;
  12348. esac
  12349. else $as_nop
  12350. AM_CFLAGS=$flag
  12351. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12352. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12353. ac_status=$?
  12354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12355. test $ac_status = 0; }
  12356. fi
  12357. else $as_nop
  12358. :
  12359. fi
  12360. done
  12361. fi
  12362. ac_ext=cpp
  12363. ac_cpp='$CXXCPP $CPPFLAGS'
  12364. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12365. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12366. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12367. ac_ext=cpp
  12368. ac_cpp='$CXXCPP $CPPFLAGS'
  12369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12372. if test -z "$CXX"; then
  12373. if test -n "$CCC"; then
  12374. CXX=$CCC
  12375. else
  12376. if test -n "$ac_tool_prefix"; then
  12377. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12378. do
  12379. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12380. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12382. printf %s "checking for $ac_word... " >&6; }
  12383. if test ${ac_cv_prog_CXX+y}
  12384. then :
  12385. printf %s "(cached) " >&6
  12386. else $as_nop
  12387. if test -n "$CXX"; then
  12388. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12389. else
  12390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12391. for as_dir in $PATH
  12392. do
  12393. IFS=$as_save_IFS
  12394. case $as_dir in #(((
  12395. '') as_dir=./ ;;
  12396. */) ;;
  12397. *) as_dir=$as_dir/ ;;
  12398. esac
  12399. for ac_exec_ext in '' $ac_executable_extensions; do
  12400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12401. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12403. break 2
  12404. fi
  12405. done
  12406. done
  12407. IFS=$as_save_IFS
  12408. fi
  12409. fi
  12410. CXX=$ac_cv_prog_CXX
  12411. if test -n "$CXX"; then
  12412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12413. printf "%s\n" "$CXX" >&6; }
  12414. else
  12415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12416. printf "%s\n" "no" >&6; }
  12417. fi
  12418. test -n "$CXX" && break
  12419. done
  12420. fi
  12421. if test -z "$CXX"; then
  12422. ac_ct_CXX=$CXX
  12423. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12424. do
  12425. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12426. set dummy $ac_prog; ac_word=$2
  12427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12428. printf %s "checking for $ac_word... " >&6; }
  12429. if test ${ac_cv_prog_ac_ct_CXX+y}
  12430. then :
  12431. printf %s "(cached) " >&6
  12432. else $as_nop
  12433. if test -n "$ac_ct_CXX"; then
  12434. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12435. else
  12436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12437. for as_dir in $PATH
  12438. do
  12439. IFS=$as_save_IFS
  12440. case $as_dir in #(((
  12441. '') as_dir=./ ;;
  12442. */) ;;
  12443. *) as_dir=$as_dir/ ;;
  12444. esac
  12445. for ac_exec_ext in '' $ac_executable_extensions; do
  12446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12447. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12449. break 2
  12450. fi
  12451. done
  12452. done
  12453. IFS=$as_save_IFS
  12454. fi
  12455. fi
  12456. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12457. if test -n "$ac_ct_CXX"; then
  12458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12459. printf "%s\n" "$ac_ct_CXX" >&6; }
  12460. else
  12461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12462. printf "%s\n" "no" >&6; }
  12463. fi
  12464. test -n "$ac_ct_CXX" && break
  12465. done
  12466. if test "x$ac_ct_CXX" = x; then
  12467. CXX="g++"
  12468. else
  12469. case $cross_compiling:$ac_tool_warned in
  12470. yes:)
  12471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12472. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12473. ac_tool_warned=yes ;;
  12474. esac
  12475. CXX=$ac_ct_CXX
  12476. fi
  12477. fi
  12478. fi
  12479. fi
  12480. # Provide some information about the compiler.
  12481. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12482. set X $ac_compile
  12483. ac_compiler=$2
  12484. for ac_option in --version -v -V -qversion; do
  12485. { { ac_try="$ac_compiler $ac_option >&5"
  12486. case "(($ac_try" in
  12487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12488. *) ac_try_echo=$ac_try;;
  12489. esac
  12490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12491. printf "%s\n" "$ac_try_echo"; } >&5
  12492. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12493. ac_status=$?
  12494. if test -s conftest.err; then
  12495. sed '10a\
  12496. ... rest of stderr output deleted ...
  12497. 10q' conftest.err >conftest.er1
  12498. cat conftest.er1 >&5
  12499. fi
  12500. rm -f conftest.er1 conftest.err
  12501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12502. test $ac_status = 0; }
  12503. done
  12504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12505. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12506. if test ${ac_cv_cxx_compiler_gnu+y}
  12507. then :
  12508. printf %s "(cached) " >&6
  12509. else $as_nop
  12510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12511. /* end confdefs.h. */
  12512. int
  12513. main (void)
  12514. {
  12515. #ifndef __GNUC__
  12516. choke me
  12517. #endif
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. if ac_fn_cxx_try_compile "$LINENO"
  12523. then :
  12524. ac_compiler_gnu=yes
  12525. else $as_nop
  12526. ac_compiler_gnu=no
  12527. fi
  12528. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12529. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12530. fi
  12531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12532. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12533. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12534. if test $ac_compiler_gnu = yes; then
  12535. GXX=yes
  12536. else
  12537. GXX=
  12538. fi
  12539. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12540. ac_save_CXXFLAGS=$CXXFLAGS
  12541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12542. printf %s "checking whether $CXX accepts -g... " >&6; }
  12543. if test ${ac_cv_prog_cxx_g+y}
  12544. then :
  12545. printf %s "(cached) " >&6
  12546. else $as_nop
  12547. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12548. ac_cxx_werror_flag=yes
  12549. ac_cv_prog_cxx_g=no
  12550. CXXFLAGS="-g"
  12551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12552. /* end confdefs.h. */
  12553. int
  12554. main (void)
  12555. {
  12556. ;
  12557. return 0;
  12558. }
  12559. _ACEOF
  12560. if ac_fn_cxx_try_compile "$LINENO"
  12561. then :
  12562. ac_cv_prog_cxx_g=yes
  12563. else $as_nop
  12564. CXXFLAGS=""
  12565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12566. /* end confdefs.h. */
  12567. int
  12568. main (void)
  12569. {
  12570. ;
  12571. return 0;
  12572. }
  12573. _ACEOF
  12574. if ac_fn_cxx_try_compile "$LINENO"
  12575. then :
  12576. else $as_nop
  12577. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12578. CXXFLAGS="-g"
  12579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. /* end confdefs.h. */
  12581. int
  12582. main (void)
  12583. {
  12584. ;
  12585. return 0;
  12586. }
  12587. _ACEOF
  12588. if ac_fn_cxx_try_compile "$LINENO"
  12589. then :
  12590. ac_cv_prog_cxx_g=yes
  12591. fi
  12592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12593. fi
  12594. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12595. fi
  12596. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12597. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12598. fi
  12599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12600. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12601. if test $ac_test_CXXFLAGS; then
  12602. CXXFLAGS=$ac_save_CXXFLAGS
  12603. elif test $ac_cv_prog_cxx_g = yes; then
  12604. if test "$GXX" = yes; then
  12605. CXXFLAGS="-g -O2"
  12606. else
  12607. CXXFLAGS="-g"
  12608. fi
  12609. else
  12610. if test "$GXX" = yes; then
  12611. CXXFLAGS="-O2"
  12612. else
  12613. CXXFLAGS=
  12614. fi
  12615. fi
  12616. ac_prog_cxx_stdcxx=no
  12617. if test x$ac_prog_cxx_stdcxx = xno
  12618. then :
  12619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12620. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12621. if test ${ac_cv_prog_cxx_cxx11+y}
  12622. then :
  12623. printf %s "(cached) " >&6
  12624. else $as_nop
  12625. ac_cv_prog_cxx_cxx11=no
  12626. ac_save_CXX=$CXX
  12627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12628. /* end confdefs.h. */
  12629. $ac_cxx_conftest_cxx11_program
  12630. _ACEOF
  12631. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12632. do
  12633. CXX="$ac_save_CXX $ac_arg"
  12634. if ac_fn_cxx_try_compile "$LINENO"
  12635. then :
  12636. ac_cv_prog_cxx_cxx11=$ac_arg
  12637. fi
  12638. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12639. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12640. done
  12641. rm -f conftest.$ac_ext
  12642. CXX=$ac_save_CXX
  12643. fi
  12644. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12645. then :
  12646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12647. printf "%s\n" "unsupported" >&6; }
  12648. else $as_nop
  12649. if test "x$ac_cv_prog_cxx_cxx11" = x
  12650. then :
  12651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12652. printf "%s\n" "none needed" >&6; }
  12653. else $as_nop
  12654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12655. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12656. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12657. fi
  12658. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12659. ac_prog_cxx_stdcxx=cxx11
  12660. fi
  12661. fi
  12662. if test x$ac_prog_cxx_stdcxx = xno
  12663. then :
  12664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12665. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12666. if test ${ac_cv_prog_cxx_cxx98+y}
  12667. then :
  12668. printf %s "(cached) " >&6
  12669. else $as_nop
  12670. ac_cv_prog_cxx_cxx98=no
  12671. ac_save_CXX=$CXX
  12672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12673. /* end confdefs.h. */
  12674. $ac_cxx_conftest_cxx98_program
  12675. _ACEOF
  12676. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12677. do
  12678. CXX="$ac_save_CXX $ac_arg"
  12679. if ac_fn_cxx_try_compile "$LINENO"
  12680. then :
  12681. ac_cv_prog_cxx_cxx98=$ac_arg
  12682. fi
  12683. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12684. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12685. done
  12686. rm -f conftest.$ac_ext
  12687. CXX=$ac_save_CXX
  12688. fi
  12689. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12690. then :
  12691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12692. printf "%s\n" "unsupported" >&6; }
  12693. else $as_nop
  12694. if test "x$ac_cv_prog_cxx_cxx98" = x
  12695. then :
  12696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12697. printf "%s\n" "none needed" >&6; }
  12698. else $as_nop
  12699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12700. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12701. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12702. fi
  12703. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12704. ac_prog_cxx_stdcxx=cxx98
  12705. fi
  12706. fi
  12707. ac_ext=cpp
  12708. ac_cpp='$CXXCPP $CPPFLAGS'
  12709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12712. depcc="$CXX" am_compiler_list=
  12713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12714. printf %s "checking dependency style of $depcc... " >&6; }
  12715. if test ${am_cv_CXX_dependencies_compiler_type+y}
  12716. then :
  12717. printf %s "(cached) " >&6
  12718. else $as_nop
  12719. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12720. # We make a subdir and do the tests there. Otherwise we can end up
  12721. # making bogus files that we don't know about and never remove. For
  12722. # instance it was reported that on HP-UX the gcc test will end up
  12723. # making a dummy file named 'D' -- because '-MD' means "put the output
  12724. # in D".
  12725. rm -rf conftest.dir
  12726. mkdir conftest.dir
  12727. # Copy depcomp to subdir because otherwise we won't find it if we're
  12728. # using a relative directory.
  12729. cp "$am_depcomp" conftest.dir
  12730. cd conftest.dir
  12731. # We will build objects and dependencies in a subdirectory because
  12732. # it helps to detect inapplicable dependency modes. For instance
  12733. # both Tru64's cc and ICC support -MD to output dependencies as a
  12734. # side effect of compilation, but ICC will put the dependencies in
  12735. # the current directory while Tru64 will put them in the object
  12736. # directory.
  12737. mkdir sub
  12738. am_cv_CXX_dependencies_compiler_type=none
  12739. if test "$am_compiler_list" = ""; then
  12740. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12741. fi
  12742. am__universal=false
  12743. case " $depcc " in #(
  12744. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12745. esac
  12746. for depmode in $am_compiler_list; do
  12747. # Setup a source with many dependencies, because some compilers
  12748. # like to wrap large dependency lists on column 80 (with \), and
  12749. # we should not choose a depcomp mode which is confused by this.
  12750. #
  12751. # We need to recreate these files for each test, as the compiler may
  12752. # overwrite some of them when testing with obscure command lines.
  12753. # This happens at least with the AIX C compiler.
  12754. : > sub/conftest.c
  12755. for i in 1 2 3 4 5 6; do
  12756. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12757. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12758. # Solaris 10 /bin/sh.
  12759. echo '/* dummy */' > sub/conftst$i.h
  12760. done
  12761. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12762. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12763. # mode. It turns out that the SunPro C++ compiler does not properly
  12764. # handle '-M -o', and we need to detect this. Also, some Intel
  12765. # versions had trouble with output in subdirs.
  12766. am__obj=sub/conftest.${OBJEXT-o}
  12767. am__minus_obj="-o $am__obj"
  12768. case $depmode in
  12769. gcc)
  12770. # This depmode causes a compiler race in universal mode.
  12771. test "$am__universal" = false || continue
  12772. ;;
  12773. nosideeffect)
  12774. # After this tag, mechanisms are not by side-effect, so they'll
  12775. # only be used when explicitly requested.
  12776. if test "x$enable_dependency_tracking" = xyes; then
  12777. continue
  12778. else
  12779. break
  12780. fi
  12781. ;;
  12782. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12783. # This compiler won't grok '-c -o', but also, the minuso test has
  12784. # not run yet. These depmodes are late enough in the game, and
  12785. # so weak that their functioning should not be impacted.
  12786. am__obj=conftest.${OBJEXT-o}
  12787. am__minus_obj=
  12788. ;;
  12789. none) break ;;
  12790. esac
  12791. if depmode=$depmode \
  12792. source=sub/conftest.c object=$am__obj \
  12793. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12794. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12795. >/dev/null 2>conftest.err &&
  12796. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12797. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12798. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12799. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12800. # icc doesn't choke on unknown options, it will just issue warnings
  12801. # or remarks (even with -Werror). So we grep stderr for any message
  12802. # that says an option was ignored or not supported.
  12803. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12804. # icc: Command line warning: ignoring option '-M'; no argument required
  12805. # The diagnosis changed in icc 8.0:
  12806. # icc: Command line remark: option '-MP' not supported
  12807. if (grep 'ignoring option' conftest.err ||
  12808. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12809. am_cv_CXX_dependencies_compiler_type=$depmode
  12810. break
  12811. fi
  12812. fi
  12813. done
  12814. cd ..
  12815. rm -rf conftest.dir
  12816. else
  12817. am_cv_CXX_dependencies_compiler_type=none
  12818. fi
  12819. fi
  12820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12821. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12822. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12823. if
  12824. test "x$enable_dependency_tracking" != xno \
  12825. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12826. am__fastdepCXX_TRUE=
  12827. am__fastdepCXX_FALSE='#'
  12828. else
  12829. am__fastdepCXX_TRUE='#'
  12830. am__fastdepCXX_FALSE=
  12831. fi
  12832. func_stripname_cnf ()
  12833. {
  12834. case $2 in
  12835. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12836. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12837. esac
  12838. } # func_stripname_cnf
  12839. if test -n "$CXX" && ( test no != "$CXX" &&
  12840. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12841. (test g++ != "$CXX"))); then
  12842. ac_ext=cpp
  12843. ac_cpp='$CXXCPP $CPPFLAGS'
  12844. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12845. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12846. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12848. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12849. if test -z "$CXXCPP"; then
  12850. if test ${ac_cv_prog_CXXCPP+y}
  12851. then :
  12852. printf %s "(cached) " >&6
  12853. else $as_nop
  12854. # Double quotes because $CXX needs to be expanded
  12855. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12856. do
  12857. ac_preproc_ok=false
  12858. for ac_cxx_preproc_warn_flag in '' yes
  12859. do
  12860. # Use a header file that comes with gcc, so configuring glibc
  12861. # with a fresh cross-compiler works.
  12862. # On the NeXT, cc -E runs the code through the compiler's parser,
  12863. # not just through cpp. "Syntax error" is here to catch this case.
  12864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12865. /* end confdefs.h. */
  12866. #include <limits.h>
  12867. Syntax error
  12868. _ACEOF
  12869. if ac_fn_cxx_try_cpp "$LINENO"
  12870. then :
  12871. else $as_nop
  12872. # Broken: fails on valid input.
  12873. continue
  12874. fi
  12875. rm -f conftest.err conftest.i conftest.$ac_ext
  12876. # OK, works on sane cases. Now check whether nonexistent headers
  12877. # can be detected and how.
  12878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12879. /* end confdefs.h. */
  12880. #include <ac_nonexistent.h>
  12881. _ACEOF
  12882. if ac_fn_cxx_try_cpp "$LINENO"
  12883. then :
  12884. # Broken: success on invalid input.
  12885. continue
  12886. else $as_nop
  12887. # Passes both tests.
  12888. ac_preproc_ok=:
  12889. break
  12890. fi
  12891. rm -f conftest.err conftest.i conftest.$ac_ext
  12892. done
  12893. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12894. rm -f conftest.i conftest.err conftest.$ac_ext
  12895. if $ac_preproc_ok
  12896. then :
  12897. break
  12898. fi
  12899. done
  12900. ac_cv_prog_CXXCPP=$CXXCPP
  12901. fi
  12902. CXXCPP=$ac_cv_prog_CXXCPP
  12903. else
  12904. ac_cv_prog_CXXCPP=$CXXCPP
  12905. fi
  12906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12907. printf "%s\n" "$CXXCPP" >&6; }
  12908. ac_preproc_ok=false
  12909. for ac_cxx_preproc_warn_flag in '' yes
  12910. do
  12911. # Use a header file that comes with gcc, so configuring glibc
  12912. # with a fresh cross-compiler works.
  12913. # On the NeXT, cc -E runs the code through the compiler's parser,
  12914. # not just through cpp. "Syntax error" is here to catch this case.
  12915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12916. /* end confdefs.h. */
  12917. #include <limits.h>
  12918. Syntax error
  12919. _ACEOF
  12920. if ac_fn_cxx_try_cpp "$LINENO"
  12921. then :
  12922. else $as_nop
  12923. # Broken: fails on valid input.
  12924. continue
  12925. fi
  12926. rm -f conftest.err conftest.i conftest.$ac_ext
  12927. # OK, works on sane cases. Now check whether nonexistent headers
  12928. # can be detected and how.
  12929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12930. /* end confdefs.h. */
  12931. #include <ac_nonexistent.h>
  12932. _ACEOF
  12933. if ac_fn_cxx_try_cpp "$LINENO"
  12934. then :
  12935. # Broken: success on invalid input.
  12936. continue
  12937. else $as_nop
  12938. # Passes both tests.
  12939. ac_preproc_ok=:
  12940. break
  12941. fi
  12942. rm -f conftest.err conftest.i conftest.$ac_ext
  12943. done
  12944. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12945. rm -f conftest.i conftest.err conftest.$ac_ext
  12946. if $ac_preproc_ok
  12947. then :
  12948. else $as_nop
  12949. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12950. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12951. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12952. See \`config.log' for more details" "$LINENO" 5; }
  12953. fi
  12954. ac_ext=cpp
  12955. ac_cpp='$CXXCPP $CPPFLAGS'
  12956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12959. else
  12960. _lt_caught_CXX_error=yes
  12961. fi
  12962. ac_ext=cpp
  12963. ac_cpp='$CXXCPP $CPPFLAGS'
  12964. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12965. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12966. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12967. archive_cmds_need_lc_CXX=no
  12968. allow_undefined_flag_CXX=
  12969. always_export_symbols_CXX=no
  12970. archive_expsym_cmds_CXX=
  12971. compiler_needs_object_CXX=no
  12972. export_dynamic_flag_spec_CXX=
  12973. hardcode_direct_CXX=no
  12974. hardcode_direct_absolute_CXX=no
  12975. hardcode_libdir_flag_spec_CXX=
  12976. hardcode_libdir_separator_CXX=
  12977. hardcode_minus_L_CXX=no
  12978. hardcode_shlibpath_var_CXX=unsupported
  12979. hardcode_automatic_CXX=no
  12980. inherit_rpath_CXX=no
  12981. module_cmds_CXX=
  12982. module_expsym_cmds_CXX=
  12983. link_all_deplibs_CXX=unknown
  12984. old_archive_cmds_CXX=$old_archive_cmds
  12985. reload_flag_CXX=$reload_flag
  12986. reload_cmds_CXX=$reload_cmds
  12987. no_undefined_flag_CXX=
  12988. whole_archive_flag_spec_CXX=
  12989. enable_shared_with_static_runtimes_CXX=no
  12990. # Source file extension for C++ test sources.
  12991. ac_ext=cpp
  12992. # Object file extension for compiled C++ test sources.
  12993. objext=o
  12994. objext_CXX=$objext
  12995. # No sense in running all these tests if we already determined that
  12996. # the CXX compiler isn't working. Some variables (like enable_shared)
  12997. # are currently assumed to apply to all compilers on this platform,
  12998. # and will be corrupted by setting them based on a non-working compiler.
  12999. if test yes != "$_lt_caught_CXX_error"; then
  13000. # Code to be used in simple compile tests
  13001. lt_simple_compile_test_code="int some_variable = 0;"
  13002. # Code to be used in simple link tests
  13003. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13004. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13005. # If no C compiler was specified, use CC.
  13006. LTCC=${LTCC-"$CC"}
  13007. # If no C compiler flags were specified, use CFLAGS.
  13008. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13009. # Allow CC to be a program name with arguments.
  13010. compiler=$CC
  13011. # save warnings/boilerplate of simple test code
  13012. ac_outfile=conftest.$ac_objext
  13013. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13014. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13015. _lt_compiler_boilerplate=`cat conftest.err`
  13016. $RM conftest*
  13017. ac_outfile=conftest.$ac_objext
  13018. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13019. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13020. _lt_linker_boilerplate=`cat conftest.err`
  13021. $RM -r conftest*
  13022. # Allow CC to be a program name with arguments.
  13023. lt_save_CC=$CC
  13024. lt_save_CFLAGS=$CFLAGS
  13025. lt_save_LD=$LD
  13026. lt_save_GCC=$GCC
  13027. GCC=$GXX
  13028. lt_save_with_gnu_ld=$with_gnu_ld
  13029. lt_save_path_LD=$lt_cv_path_LD
  13030. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13031. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13032. else
  13033. $as_unset lt_cv_prog_gnu_ld
  13034. fi
  13035. if test -n "${lt_cv_path_LDCXX+set}"; then
  13036. lt_cv_path_LD=$lt_cv_path_LDCXX
  13037. else
  13038. $as_unset lt_cv_path_LD
  13039. fi
  13040. test -z "${LDCXX+set}" || LD=$LDCXX
  13041. CC=${CXX-"c++"}
  13042. CFLAGS=$CXXFLAGS
  13043. compiler=$CC
  13044. compiler_CXX=$CC
  13045. func_cc_basename $compiler
  13046. cc_basename=$func_cc_basename_result
  13047. if test -n "$compiler"; then
  13048. # We don't want -fno-exception when compiling C++ code, so set the
  13049. # no_builtin_flag separately
  13050. if test yes = "$GXX"; then
  13051. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13052. else
  13053. lt_prog_compiler_no_builtin_flag_CXX=
  13054. fi
  13055. if test yes = "$GXX"; then
  13056. # Set up default GNU C++ configuration
  13057. # Check whether --with-gnu-ld was given.
  13058. if test ${with_gnu_ld+y}
  13059. then :
  13060. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  13061. else $as_nop
  13062. with_gnu_ld=no
  13063. fi
  13064. ac_prog=ld
  13065. if test yes = "$GCC"; then
  13066. # Check if gcc -print-prog-name=ld gives a path.
  13067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13068. printf %s "checking for ld used by $CC... " >&6; }
  13069. case $host in
  13070. *-*-mingw*)
  13071. # gcc leaves a trailing carriage return, which upsets mingw
  13072. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13073. *)
  13074. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13075. esac
  13076. case $ac_prog in
  13077. # Accept absolute paths.
  13078. [\\/]* | ?:[\\/]*)
  13079. re_direlt='/[^/][^/]*/\.\./'
  13080. # Canonicalize the pathname of ld
  13081. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13082. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13083. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13084. done
  13085. test -z "$LD" && LD=$ac_prog
  13086. ;;
  13087. "")
  13088. # If it fails, then pretend we aren't using GCC.
  13089. ac_prog=ld
  13090. ;;
  13091. *)
  13092. # If it is relative, then search for the first ld in PATH.
  13093. with_gnu_ld=unknown
  13094. ;;
  13095. esac
  13096. elif test yes = "$with_gnu_ld"; then
  13097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13098. printf %s "checking for GNU ld... " >&6; }
  13099. else
  13100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13101. printf %s "checking for non-GNU ld... " >&6; }
  13102. fi
  13103. if test ${lt_cv_path_LD+y}
  13104. then :
  13105. printf %s "(cached) " >&6
  13106. else $as_nop
  13107. if test -z "$LD"; then
  13108. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  13109. for ac_dir in $PATH; do
  13110. IFS=$lt_save_ifs
  13111. test -z "$ac_dir" && ac_dir=.
  13112. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13113. lt_cv_path_LD=$ac_dir/$ac_prog
  13114. # Check to see if the program is GNU ld. I'd rather use --version,
  13115. # but apparently some variants of GNU ld only accept -v.
  13116. # Break only if it was the GNU/non-GNU ld that we prefer.
  13117. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13118. *GNU* | *'with BFD'*)
  13119. test no != "$with_gnu_ld" && break
  13120. ;;
  13121. *)
  13122. test yes != "$with_gnu_ld" && break
  13123. ;;
  13124. esac
  13125. fi
  13126. done
  13127. IFS=$lt_save_ifs
  13128. else
  13129. lt_cv_path_LD=$LD # Let the user override the test with a path.
  13130. fi
  13131. fi
  13132. LD=$lt_cv_path_LD
  13133. if test -n "$LD"; then
  13134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13135. printf "%s\n" "$LD" >&6; }
  13136. else
  13137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13138. printf "%s\n" "no" >&6; }
  13139. fi
  13140. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13142. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  13143. if test ${lt_cv_prog_gnu_ld+y}
  13144. then :
  13145. printf %s "(cached) " >&6
  13146. else $as_nop
  13147. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13148. case `$LD -v 2>&1 </dev/null` in
  13149. *GNU* | *'with BFD'*)
  13150. lt_cv_prog_gnu_ld=yes
  13151. ;;
  13152. *)
  13153. lt_cv_prog_gnu_ld=no
  13154. ;;
  13155. esac
  13156. fi
  13157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13158. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  13159. with_gnu_ld=$lt_cv_prog_gnu_ld
  13160. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13161. # archiving commands below assume that GNU ld is being used.
  13162. if test yes = "$with_gnu_ld"; then
  13163. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13164. 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'
  13165. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13166. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13167. # If archive_cmds runs LD, not CC, wlarc should be empty
  13168. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13169. # investigate it a little bit more. (MM)
  13170. wlarc='$wl'
  13171. # ancient GNU ld didn't support --whole-archive et. al.
  13172. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13173. $GREP 'no-whole-archive' > /dev/null; then
  13174. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13175. else
  13176. whole_archive_flag_spec_CXX=
  13177. fi
  13178. else
  13179. with_gnu_ld=no
  13180. wlarc=
  13181. # A generic and very simple default shared library creation
  13182. # command for GNU C++ for the case where it uses the native
  13183. # linker, instead of GNU ld. If possible, this setting should
  13184. # overridden to take advantage of the native linker features on
  13185. # the platform it is being used on.
  13186. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13187. fi
  13188. # Commands to make compiler produce verbose output that lists
  13189. # what "hidden" libraries, object files and flags are used when
  13190. # linking a shared library.
  13191. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13192. else
  13193. GXX=no
  13194. with_gnu_ld=no
  13195. wlarc=
  13196. fi
  13197. # PORTME: fill in a description of your system's C++ link characteristics
  13198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13199. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13200. ld_shlibs_CXX=yes
  13201. case $host_os in
  13202. aix3*)
  13203. # FIXME: insert proper C++ library support
  13204. ld_shlibs_CXX=no
  13205. ;;
  13206. aix[4-9]*)
  13207. if test ia64 = "$host_cpu"; then
  13208. # On IA64, the linker does run time linking by default, so we don't
  13209. # have to do anything special.
  13210. aix_use_runtimelinking=no
  13211. exp_sym_flag='-Bexport'
  13212. no_entry_flag=
  13213. else
  13214. aix_use_runtimelinking=no
  13215. # Test if we are trying to use run time linking or normal
  13216. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13217. # have runtime linking enabled, and use it for executables.
  13218. # For shared libraries, we enable/disable runtime linking
  13219. # depending on the kind of the shared library created -
  13220. # when "with_aix_soname,aix_use_runtimelinking" is:
  13221. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13222. # "aix,yes" lib.so shared, rtl:yes, for executables
  13223. # lib.a static archive
  13224. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13225. # lib.a(lib.so.V) shared, rtl:no, for executables
  13226. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13227. # lib.a(lib.so.V) shared, rtl:no
  13228. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13229. # lib.a static archive
  13230. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13231. for ld_flag in $LDFLAGS; do
  13232. case $ld_flag in
  13233. *-brtl*)
  13234. aix_use_runtimelinking=yes
  13235. break
  13236. ;;
  13237. esac
  13238. done
  13239. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13240. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13241. # so we don't have lib.a shared libs to link our executables.
  13242. # We have to force runtime linking in this case.
  13243. aix_use_runtimelinking=yes
  13244. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13245. fi
  13246. ;;
  13247. esac
  13248. exp_sym_flag='-bexport'
  13249. no_entry_flag='-bnoentry'
  13250. fi
  13251. # When large executables or shared objects are built, AIX ld can
  13252. # have problems creating the table of contents. If linking a library
  13253. # or program results in "error TOC overflow" add -mminimal-toc to
  13254. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13255. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13256. archive_cmds_CXX=''
  13257. hardcode_direct_CXX=yes
  13258. hardcode_direct_absolute_CXX=yes
  13259. hardcode_libdir_separator_CXX=':'
  13260. link_all_deplibs_CXX=yes
  13261. file_list_spec_CXX='$wl-f,'
  13262. case $with_aix_soname,$aix_use_runtimelinking in
  13263. aix,*) ;; # no import file
  13264. svr4,* | *,yes) # use import file
  13265. # The Import File defines what to hardcode.
  13266. hardcode_direct_CXX=no
  13267. hardcode_direct_absolute_CXX=no
  13268. ;;
  13269. esac
  13270. if test yes = "$GXX"; then
  13271. case $host_os in aix4.[012]|aix4.[012].*)
  13272. # We only want to do this on AIX 4.2 and lower, the check
  13273. # below for broken collect2 doesn't work under 4.3+
  13274. collect2name=`$CC -print-prog-name=collect2`
  13275. if test -f "$collect2name" &&
  13276. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13277. then
  13278. # We have reworked collect2
  13279. :
  13280. else
  13281. # We have old collect2
  13282. hardcode_direct_CXX=unsupported
  13283. # It fails to find uninstalled libraries when the uninstalled
  13284. # path is not listed in the libpath. Setting hardcode_minus_L
  13285. # to unsupported forces relinking
  13286. hardcode_minus_L_CXX=yes
  13287. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13288. hardcode_libdir_separator_CXX=
  13289. fi
  13290. esac
  13291. shared_flag='-shared'
  13292. if test yes = "$aix_use_runtimelinking"; then
  13293. shared_flag=$shared_flag' $wl-G'
  13294. fi
  13295. # Need to ensure runtime linking is disabled for the traditional
  13296. # shared library, or the linker may eventually find shared libraries
  13297. # /with/ Import File - we do not want to mix them.
  13298. shared_flag_aix='-shared'
  13299. shared_flag_svr4='-shared $wl-G'
  13300. else
  13301. # not using gcc
  13302. if test ia64 = "$host_cpu"; then
  13303. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13304. # chokes on -Wl,-G. The following line is correct:
  13305. shared_flag='-G'
  13306. else
  13307. if test yes = "$aix_use_runtimelinking"; then
  13308. shared_flag='$wl-G'
  13309. else
  13310. shared_flag='$wl-bM:SRE'
  13311. fi
  13312. shared_flag_aix='$wl-bM:SRE'
  13313. shared_flag_svr4='$wl-G'
  13314. fi
  13315. fi
  13316. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13317. # It seems that -bexpall does not export symbols beginning with
  13318. # underscore (_), so it is better to generate a list of symbols to
  13319. # export.
  13320. always_export_symbols_CXX=yes
  13321. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13322. # Warning - without using the other runtime loading flags (-brtl),
  13323. # -berok will link without error, but may produce a broken library.
  13324. # The "-G" linker flag allows undefined symbols.
  13325. no_undefined_flag_CXX='-bernotok'
  13326. # Determine the default libpath from the value encoded in an empty
  13327. # executable.
  13328. if test set = "${lt_cv_aix_libpath+set}"; then
  13329. aix_libpath=$lt_cv_aix_libpath
  13330. else
  13331. if test ${lt_cv_aix_libpath__CXX+y}
  13332. then :
  13333. printf %s "(cached) " >&6
  13334. else $as_nop
  13335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13336. /* end confdefs.h. */
  13337. int
  13338. main (void)
  13339. {
  13340. ;
  13341. return 0;
  13342. }
  13343. _ACEOF
  13344. if ac_fn_cxx_try_link "$LINENO"
  13345. then :
  13346. lt_aix_libpath_sed='
  13347. /Import File Strings/,/^$/ {
  13348. /^0/ {
  13349. s/^0 *\([^ ]*\) *$/\1/
  13350. p
  13351. }
  13352. }'
  13353. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13354. # Check for a 64-bit object if we didn't find anything.
  13355. if test -z "$lt_cv_aix_libpath__CXX"; then
  13356. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13357. fi
  13358. fi
  13359. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13360. conftest$ac_exeext conftest.$ac_ext
  13361. if test -z "$lt_cv_aix_libpath__CXX"; then
  13362. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13363. fi
  13364. fi
  13365. aix_libpath=$lt_cv_aix_libpath__CXX
  13366. fi
  13367. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13368. 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
  13369. else
  13370. if test ia64 = "$host_cpu"; then
  13371. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13372. allow_undefined_flag_CXX="-z nodefs"
  13373. 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"
  13374. else
  13375. # Determine the default libpath from the value encoded in an
  13376. # empty executable.
  13377. if test set = "${lt_cv_aix_libpath+set}"; then
  13378. aix_libpath=$lt_cv_aix_libpath
  13379. else
  13380. if test ${lt_cv_aix_libpath__CXX+y}
  13381. then :
  13382. printf %s "(cached) " >&6
  13383. else $as_nop
  13384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13385. /* end confdefs.h. */
  13386. int
  13387. main (void)
  13388. {
  13389. ;
  13390. return 0;
  13391. }
  13392. _ACEOF
  13393. if ac_fn_cxx_try_link "$LINENO"
  13394. then :
  13395. lt_aix_libpath_sed='
  13396. /Import File Strings/,/^$/ {
  13397. /^0/ {
  13398. s/^0 *\([^ ]*\) *$/\1/
  13399. p
  13400. }
  13401. }'
  13402. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13403. # Check for a 64-bit object if we didn't find anything.
  13404. if test -z "$lt_cv_aix_libpath__CXX"; then
  13405. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13406. fi
  13407. fi
  13408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13409. conftest$ac_exeext conftest.$ac_ext
  13410. if test -z "$lt_cv_aix_libpath__CXX"; then
  13411. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13412. fi
  13413. fi
  13414. aix_libpath=$lt_cv_aix_libpath__CXX
  13415. fi
  13416. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13417. # Warning - without using the other run time loading flags,
  13418. # -berok will link without error, but may produce a broken library.
  13419. no_undefined_flag_CXX=' $wl-bernotok'
  13420. allow_undefined_flag_CXX=' $wl-berok'
  13421. if test yes = "$with_gnu_ld"; then
  13422. # We only use this code for GNU lds that support --whole-archive.
  13423. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13424. else
  13425. # Exported symbols can be pulled into shared objects from archives
  13426. whole_archive_flag_spec_CXX='$convenience'
  13427. fi
  13428. archive_cmds_need_lc_CXX=yes
  13429. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13430. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13431. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13432. if test svr4 != "$with_aix_soname"; then
  13433. # This is similar to how AIX traditionally builds its shared
  13434. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13435. 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'
  13436. fi
  13437. if test aix != "$with_aix_soname"; then
  13438. 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'
  13439. else
  13440. # used by -dlpreopen to get the symbols
  13441. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13442. fi
  13443. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13444. fi
  13445. fi
  13446. ;;
  13447. beos*)
  13448. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13449. allow_undefined_flag_CXX=unsupported
  13450. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13451. # support --undefined. This deserves some investigation. FIXME
  13452. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13453. else
  13454. ld_shlibs_CXX=no
  13455. fi
  13456. ;;
  13457. chorus*)
  13458. case $cc_basename in
  13459. *)
  13460. # FIXME: insert proper C++ library support
  13461. ld_shlibs_CXX=no
  13462. ;;
  13463. esac
  13464. ;;
  13465. cygwin* | mingw* | pw32* | cegcc*)
  13466. case $GXX,$cc_basename in
  13467. ,cl* | no,cl* | ,icl* | no,icl*)
  13468. # Native MSVC or ICC
  13469. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13470. # no search path for DLLs.
  13471. hardcode_libdir_flag_spec_CXX=' '
  13472. allow_undefined_flag_CXX=unsupported
  13473. always_export_symbols_CXX=yes
  13474. file_list_spec_CXX='@'
  13475. # Tell ltmain to make .lib files, not .a files.
  13476. libext=lib
  13477. # Tell ltmain to make .dll files, not .so files.
  13478. shrext_cmds=.dll
  13479. # FIXME: Setting linknames here is a bad hack.
  13480. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13481. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13482. cp "$export_symbols" "$output_objdir/$soname.def";
  13483. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13484. else
  13485. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13486. fi~
  13487. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13488. linknames='
  13489. # The linker will not automatically build a static lib if we build a DLL.
  13490. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13491. enable_shared_with_static_runtimes_CXX=yes
  13492. # Don't use ranlib
  13493. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13494. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13495. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13496. case $lt_outputfile in
  13497. *.exe|*.EXE) ;;
  13498. *)
  13499. lt_outputfile=$lt_outputfile.exe
  13500. lt_tool_outputfile=$lt_tool_outputfile.exe
  13501. ;;
  13502. esac~
  13503. func_to_tool_file "$lt_outputfile"~
  13504. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13505. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13506. $RM "$lt_outputfile.manifest";
  13507. fi'
  13508. ;;
  13509. *)
  13510. # g++
  13511. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13512. # as there is no search path for DLLs.
  13513. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13514. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13515. allow_undefined_flag_CXX=unsupported
  13516. always_export_symbols_CXX=no
  13517. enable_shared_with_static_runtimes_CXX=yes
  13518. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13519. 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'
  13520. # If the export-symbols file already is a .def file, use it as
  13521. # is; otherwise, prepend EXPORTS...
  13522. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13523. cp $export_symbols $output_objdir/$soname.def;
  13524. else
  13525. echo EXPORTS > $output_objdir/$soname.def;
  13526. cat $export_symbols >> $output_objdir/$soname.def;
  13527. fi~
  13528. $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'
  13529. else
  13530. ld_shlibs_CXX=no
  13531. fi
  13532. ;;
  13533. esac
  13534. ;;
  13535. darwin* | rhapsody*)
  13536. archive_cmds_need_lc_CXX=no
  13537. hardcode_direct_CXX=no
  13538. hardcode_automatic_CXX=yes
  13539. hardcode_shlibpath_var_CXX=unsupported
  13540. if test yes = "$lt_cv_ld_force_load"; then
  13541. 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\"`'
  13542. else
  13543. whole_archive_flag_spec_CXX=''
  13544. fi
  13545. link_all_deplibs_CXX=yes
  13546. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13547. case $cc_basename in
  13548. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13549. *) _lt_dar_can_shared=$GCC ;;
  13550. esac
  13551. if test yes = "$_lt_dar_can_shared"; then
  13552. output_verbose_link_cmd=func_echo_all
  13553. 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"
  13554. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13555. 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"
  13556. 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"
  13557. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13558. 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"
  13559. 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"
  13560. fi
  13561. else
  13562. ld_shlibs_CXX=no
  13563. fi
  13564. ;;
  13565. os2*)
  13566. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13567. hardcode_minus_L_CXX=yes
  13568. allow_undefined_flag_CXX=unsupported
  13569. shrext_cmds=.dll
  13570. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13571. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13572. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13573. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13574. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13575. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13576. emximp -o $lib $output_objdir/$libname.def'
  13577. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13578. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13579. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13580. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13581. prefix_cmds="$SED"~
  13582. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13583. prefix_cmds="$prefix_cmds -e 1d";
  13584. fi~
  13585. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13586. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13587. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13588. emximp -o $lib $output_objdir/$libname.def'
  13589. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13590. enable_shared_with_static_runtimes_CXX=yes
  13591. file_list_spec_CXX='@'
  13592. ;;
  13593. dgux*)
  13594. case $cc_basename in
  13595. ec++*)
  13596. # FIXME: insert proper C++ library support
  13597. ld_shlibs_CXX=no
  13598. ;;
  13599. ghcx*)
  13600. # Green Hills C++ Compiler
  13601. # FIXME: insert proper C++ library support
  13602. ld_shlibs_CXX=no
  13603. ;;
  13604. *)
  13605. # FIXME: insert proper C++ library support
  13606. ld_shlibs_CXX=no
  13607. ;;
  13608. esac
  13609. ;;
  13610. freebsd2.*)
  13611. # C++ shared libraries reported to be fairly broken before
  13612. # switch to ELF
  13613. ld_shlibs_CXX=no
  13614. ;;
  13615. freebsd-elf*)
  13616. archive_cmds_need_lc_CXX=no
  13617. ;;
  13618. freebsd* | dragonfly* | midnightbsd*)
  13619. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13620. # conventions
  13621. ld_shlibs_CXX=yes
  13622. ;;
  13623. haiku*)
  13624. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13625. link_all_deplibs_CXX=yes
  13626. ;;
  13627. hpux9*)
  13628. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13629. hardcode_libdir_separator_CXX=:
  13630. export_dynamic_flag_spec_CXX='$wl-E'
  13631. hardcode_direct_CXX=yes
  13632. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13633. # but as the default
  13634. # location of the library.
  13635. case $cc_basename in
  13636. CC*)
  13637. # FIXME: insert proper C++ library support
  13638. ld_shlibs_CXX=no
  13639. ;;
  13640. aCC*)
  13641. 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'
  13642. # Commands to make compiler produce verbose output that lists
  13643. # what "hidden" libraries, object files and flags are used when
  13644. # linking a shared library.
  13645. #
  13646. # There doesn't appear to be a way to prevent this compiler from
  13647. # explicitly linking system object files so we need to strip them
  13648. # from the output so that they don't get included in the library
  13649. # dependencies.
  13650. 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"'
  13651. ;;
  13652. *)
  13653. if test yes = "$GXX"; then
  13654. 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'
  13655. else
  13656. # FIXME: insert proper C++ library support
  13657. ld_shlibs_CXX=no
  13658. fi
  13659. ;;
  13660. esac
  13661. ;;
  13662. hpux10*|hpux11*)
  13663. if test no = "$with_gnu_ld"; then
  13664. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13665. hardcode_libdir_separator_CXX=:
  13666. case $host_cpu in
  13667. hppa*64*|ia64*)
  13668. ;;
  13669. *)
  13670. export_dynamic_flag_spec_CXX='$wl-E'
  13671. ;;
  13672. esac
  13673. fi
  13674. case $host_cpu in
  13675. hppa*64*|ia64*)
  13676. hardcode_direct_CXX=no
  13677. hardcode_shlibpath_var_CXX=no
  13678. ;;
  13679. *)
  13680. hardcode_direct_CXX=yes
  13681. hardcode_direct_absolute_CXX=yes
  13682. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13683. # but as the default
  13684. # location of the library.
  13685. ;;
  13686. esac
  13687. case $cc_basename in
  13688. CC*)
  13689. # FIXME: insert proper C++ library support
  13690. ld_shlibs_CXX=no
  13691. ;;
  13692. aCC*)
  13693. case $host_cpu in
  13694. hppa*64*)
  13695. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13696. ;;
  13697. ia64*)
  13698. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13699. ;;
  13700. *)
  13701. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13702. ;;
  13703. esac
  13704. # Commands to make compiler produce verbose output that lists
  13705. # what "hidden" libraries, object files and flags are used when
  13706. # linking a shared library.
  13707. #
  13708. # There doesn't appear to be a way to prevent this compiler from
  13709. # explicitly linking system object files so we need to strip them
  13710. # from the output so that they don't get included in the library
  13711. # dependencies.
  13712. 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"'
  13713. ;;
  13714. *)
  13715. if test yes = "$GXX"; then
  13716. if test no = "$with_gnu_ld"; then
  13717. case $host_cpu in
  13718. hppa*64*)
  13719. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13720. ;;
  13721. ia64*)
  13722. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13723. ;;
  13724. *)
  13725. 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'
  13726. ;;
  13727. esac
  13728. fi
  13729. else
  13730. # FIXME: insert proper C++ library support
  13731. ld_shlibs_CXX=no
  13732. fi
  13733. ;;
  13734. esac
  13735. ;;
  13736. interix[3-9]*)
  13737. hardcode_direct_CXX=no
  13738. hardcode_shlibpath_var_CXX=no
  13739. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13740. export_dynamic_flag_spec_CXX='$wl-E'
  13741. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13742. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13743. # default) and relocated if they conflict, which is a slow very memory
  13744. # consuming and fragmenting process. To avoid this, we pick a random,
  13745. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13746. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13747. 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'
  13748. 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'
  13749. ;;
  13750. irix5* | irix6*)
  13751. case $cc_basename in
  13752. CC*)
  13753. # SGI C++
  13754. 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'
  13755. # Archives containing C++ object files must be created using
  13756. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13757. # necessary to make sure instantiated templates are included
  13758. # in the archive.
  13759. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13760. ;;
  13761. *)
  13762. if test yes = "$GXX"; then
  13763. if test no = "$with_gnu_ld"; then
  13764. 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'
  13765. else
  13766. 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'
  13767. fi
  13768. fi
  13769. link_all_deplibs_CXX=yes
  13770. ;;
  13771. esac
  13772. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13773. hardcode_libdir_separator_CXX=:
  13774. inherit_rpath_CXX=yes
  13775. ;;
  13776. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13777. case $cc_basename in
  13778. KCC*)
  13779. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13780. # KCC will only create a shared library if the output file
  13781. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13782. # to its proper name (with version) after linking.
  13783. 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'
  13784. 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'
  13785. # Commands to make compiler produce verbose output that lists
  13786. # what "hidden" libraries, object files and flags are used when
  13787. # linking a shared library.
  13788. #
  13789. # There doesn't appear to be a way to prevent this compiler from
  13790. # explicitly linking system object files so we need to strip them
  13791. # from the output so that they don't get included in the library
  13792. # dependencies.
  13793. 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"'
  13794. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13795. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13796. # Archives containing C++ object files must be created using
  13797. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13798. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13799. ;;
  13800. icpc* | ecpc* )
  13801. # Intel C++
  13802. with_gnu_ld=yes
  13803. # version 8.0 and above of icpc choke on multiply defined symbols
  13804. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13805. # earlier do not add the objects themselves.
  13806. case `$CC -V 2>&1` in
  13807. *"Version 7."*)
  13808. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13809. 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'
  13810. ;;
  13811. *) # Version 8.0 or newer
  13812. tmp_idyn=
  13813. case $host_cpu in
  13814. ia64*) tmp_idyn=' -i_dynamic';;
  13815. esac
  13816. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13817. 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'
  13818. ;;
  13819. esac
  13820. archive_cmds_need_lc_CXX=no
  13821. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13822. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13823. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13824. ;;
  13825. pgCC* | pgcpp*)
  13826. # Portland Group C++ compiler
  13827. case `$CC -V` in
  13828. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13829. prelink_cmds_CXX='tpldir=Template.dir~
  13830. rm -rf $tpldir~
  13831. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13832. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13833. old_archive_cmds_CXX='tpldir=Template.dir~
  13834. rm -rf $tpldir~
  13835. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13836. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13837. $RANLIB $oldlib'
  13838. archive_cmds_CXX='tpldir=Template.dir~
  13839. rm -rf $tpldir~
  13840. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13841. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13842. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13843. rm -rf $tpldir~
  13844. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13845. $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'
  13846. ;;
  13847. *) # Version 6 and above use weak symbols
  13848. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13849. 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'
  13850. ;;
  13851. esac
  13852. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13853. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13854. 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'
  13855. ;;
  13856. cxx*)
  13857. # Compaq C++
  13858. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13859. 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'
  13860. runpath_var=LD_RUN_PATH
  13861. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13862. hardcode_libdir_separator_CXX=:
  13863. # Commands to make compiler produce verbose output that lists
  13864. # what "hidden" libraries, object files and flags are used when
  13865. # linking a shared library.
  13866. #
  13867. # There doesn't appear to be a way to prevent this compiler from
  13868. # explicitly linking system object files so we need to strip them
  13869. # from the output so that they don't get included in the library
  13870. # dependencies.
  13871. 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'
  13872. ;;
  13873. xl* | mpixl* | bgxl*)
  13874. # IBM XL 8.0 on PPC, with GNU ld
  13875. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13876. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13877. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13878. if test yes = "$supports_anon_versioning"; then
  13879. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13880. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13881. echo "local: *; };" >> $output_objdir/$libname.ver~
  13882. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13883. fi
  13884. ;;
  13885. *)
  13886. case `$CC -V 2>&1 | $SED 5q` in
  13887. *Sun\ C*)
  13888. # Sun C++ 5.9
  13889. no_undefined_flag_CXX=' -zdefs'
  13890. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13891. 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'
  13892. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13893. 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'
  13894. compiler_needs_object_CXX=yes
  13895. # Not sure whether something based on
  13896. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13897. # would be better.
  13898. output_verbose_link_cmd='func_echo_all'
  13899. # Archives containing C++ object files must be created using
  13900. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13901. # necessary to make sure instantiated templates are included
  13902. # in the archive.
  13903. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13904. ;;
  13905. esac
  13906. ;;
  13907. esac
  13908. ;;
  13909. lynxos*)
  13910. # FIXME: insert proper C++ library support
  13911. ld_shlibs_CXX=no
  13912. ;;
  13913. m88k*)
  13914. # FIXME: insert proper C++ library support
  13915. ld_shlibs_CXX=no
  13916. ;;
  13917. mvs*)
  13918. case $cc_basename in
  13919. cxx*)
  13920. # FIXME: insert proper C++ library support
  13921. ld_shlibs_CXX=no
  13922. ;;
  13923. *)
  13924. # FIXME: insert proper C++ library support
  13925. ld_shlibs_CXX=no
  13926. ;;
  13927. esac
  13928. ;;
  13929. netbsd*)
  13930. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13931. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13932. wlarc=
  13933. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13934. hardcode_direct_CXX=yes
  13935. hardcode_shlibpath_var_CXX=no
  13936. fi
  13937. # Workaround some broken pre-1.5 toolchains
  13938. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13939. ;;
  13940. *nto* | *qnx*)
  13941. ld_shlibs_CXX=yes
  13942. ;;
  13943. openbsd* | bitrig*)
  13944. if test -f /usr/libexec/ld.so; then
  13945. hardcode_direct_CXX=yes
  13946. hardcode_shlibpath_var_CXX=no
  13947. hardcode_direct_absolute_CXX=yes
  13948. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13949. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13950. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13951. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13952. export_dynamic_flag_spec_CXX='$wl-E'
  13953. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13954. fi
  13955. output_verbose_link_cmd=func_echo_all
  13956. else
  13957. ld_shlibs_CXX=no
  13958. fi
  13959. ;;
  13960. osf3* | osf4* | osf5*)
  13961. case $cc_basename in
  13962. KCC*)
  13963. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13964. # KCC will only create a shared library if the output file
  13965. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13966. # to its proper name (with version) after linking.
  13967. 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'
  13968. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13969. hardcode_libdir_separator_CXX=:
  13970. # Archives containing C++ object files must be created using
  13971. # the KAI C++ compiler.
  13972. case $host in
  13973. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13974. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13975. esac
  13976. ;;
  13977. RCC*)
  13978. # Rational C++ 2.4.1
  13979. # FIXME: insert proper C++ library support
  13980. ld_shlibs_CXX=no
  13981. ;;
  13982. cxx*)
  13983. case $host in
  13984. osf3*)
  13985. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13986. 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'
  13987. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13988. ;;
  13989. *)
  13990. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13991. 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'
  13992. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13993. echo "-hidden">> $lib.exp~
  13994. $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~
  13995. $RM $lib.exp'
  13996. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13997. ;;
  13998. esac
  13999. hardcode_libdir_separator_CXX=:
  14000. # Commands to make compiler produce verbose output that lists
  14001. # what "hidden" libraries, object files and flags are used when
  14002. # linking a shared library.
  14003. #
  14004. # There doesn't appear to be a way to prevent this compiler from
  14005. # explicitly linking system object files so we need to strip them
  14006. # from the output so that they don't get included in the library
  14007. # dependencies.
  14008. 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"'
  14009. ;;
  14010. *)
  14011. if test yes,no = "$GXX,$with_gnu_ld"; then
  14012. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14013. case $host in
  14014. osf3*)
  14015. 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'
  14016. ;;
  14017. *)
  14018. 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'
  14019. ;;
  14020. esac
  14021. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14022. hardcode_libdir_separator_CXX=:
  14023. # Commands to make compiler produce verbose output that lists
  14024. # what "hidden" libraries, object files and flags are used when
  14025. # linking a shared library.
  14026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14027. else
  14028. # FIXME: insert proper C++ library support
  14029. ld_shlibs_CXX=no
  14030. fi
  14031. ;;
  14032. esac
  14033. ;;
  14034. psos*)
  14035. # FIXME: insert proper C++ library support
  14036. ld_shlibs_CXX=no
  14037. ;;
  14038. sunos4*)
  14039. case $cc_basename in
  14040. CC*)
  14041. # Sun C++ 4.x
  14042. # FIXME: insert proper C++ library support
  14043. ld_shlibs_CXX=no
  14044. ;;
  14045. lcc*)
  14046. # Lucid
  14047. # FIXME: insert proper C++ library support
  14048. ld_shlibs_CXX=no
  14049. ;;
  14050. *)
  14051. # FIXME: insert proper C++ library support
  14052. ld_shlibs_CXX=no
  14053. ;;
  14054. esac
  14055. ;;
  14056. solaris*)
  14057. case $cc_basename in
  14058. CC* | sunCC*)
  14059. # Sun C++ 4.2, 5.x and Centerline C++
  14060. archive_cmds_need_lc_CXX=yes
  14061. no_undefined_flag_CXX=' -zdefs'
  14062. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14063. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14064. $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'
  14065. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14066. hardcode_shlibpath_var_CXX=no
  14067. case $host_os in
  14068. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14069. *)
  14070. # The compiler driver will combine and reorder linker options,
  14071. # but understands '-z linker_flag'.
  14072. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14073. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14074. ;;
  14075. esac
  14076. link_all_deplibs_CXX=yes
  14077. output_verbose_link_cmd='func_echo_all'
  14078. # Archives containing C++ object files must be created using
  14079. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14080. # necessary to make sure instantiated templates are included
  14081. # in the archive.
  14082. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14083. ;;
  14084. gcx*)
  14085. # Green Hills C++ Compiler
  14086. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14087. # The C++ compiler must be used to create the archive.
  14088. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14089. ;;
  14090. *)
  14091. # GNU C++ compiler with Solaris linker
  14092. if test yes,no = "$GXX,$with_gnu_ld"; then
  14093. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  14094. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14095. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14096. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14097. $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'
  14098. # Commands to make compiler produce verbose output that lists
  14099. # what "hidden" libraries, object files and flags are used when
  14100. # linking a shared library.
  14101. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14102. else
  14103. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  14104. # platform.
  14105. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14106. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14107. $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'
  14108. # Commands to make compiler produce verbose output that lists
  14109. # what "hidden" libraries, object files and flags are used when
  14110. # linking a shared library.
  14111. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14112. fi
  14113. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  14114. case $host_os in
  14115. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14116. *)
  14117. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  14118. ;;
  14119. esac
  14120. fi
  14121. ;;
  14122. esac
  14123. ;;
  14124. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14125. no_undefined_flag_CXX='$wl-z,text'
  14126. archive_cmds_need_lc_CXX=no
  14127. hardcode_shlibpath_var_CXX=no
  14128. runpath_var='LD_RUN_PATH'
  14129. case $cc_basename in
  14130. CC*)
  14131. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14132. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14133. ;;
  14134. *)
  14135. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14136. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14137. ;;
  14138. esac
  14139. ;;
  14140. sysv5* | sco3.2v5* | sco5v6*)
  14141. # Note: We CANNOT use -z defs as we might desire, because we do not
  14142. # link with -lc, and that would cause any symbols used from libc to
  14143. # always be unresolved, which means just about no library would
  14144. # ever link correctly. If we're not using GNU ld we use -z text
  14145. # though, which does catch some bad symbols but isn't as heavy-handed
  14146. # as -z defs.
  14147. no_undefined_flag_CXX='$wl-z,text'
  14148. allow_undefined_flag_CXX='$wl-z,nodefs'
  14149. archive_cmds_need_lc_CXX=no
  14150. hardcode_shlibpath_var_CXX=no
  14151. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  14152. hardcode_libdir_separator_CXX=':'
  14153. link_all_deplibs_CXX=yes
  14154. export_dynamic_flag_spec_CXX='$wl-Bexport'
  14155. runpath_var='LD_RUN_PATH'
  14156. case $cc_basename in
  14157. CC*)
  14158. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14159. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14160. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14161. '"$old_archive_cmds_CXX"
  14162. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14163. '"$reload_cmds_CXX"
  14164. ;;
  14165. *)
  14166. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14167. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14168. ;;
  14169. esac
  14170. ;;
  14171. tandem*)
  14172. case $cc_basename in
  14173. NCC*)
  14174. # NonStop-UX NCC 3.20
  14175. # FIXME: insert proper C++ library support
  14176. ld_shlibs_CXX=no
  14177. ;;
  14178. *)
  14179. # FIXME: insert proper C++ library support
  14180. ld_shlibs_CXX=no
  14181. ;;
  14182. esac
  14183. ;;
  14184. vxworks*)
  14185. # FIXME: insert proper C++ library support
  14186. ld_shlibs_CXX=no
  14187. ;;
  14188. *)
  14189. # FIXME: insert proper C++ library support
  14190. ld_shlibs_CXX=no
  14191. ;;
  14192. esac
  14193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14194. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14195. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14196. GCC_CXX=$GXX
  14197. LD_CXX=$LD
  14198. ## CAVEAT EMPTOR:
  14199. ## There is no encapsulation within the following macros, do not change
  14200. ## the running order or otherwise move them around unless you know exactly
  14201. ## what you are doing...
  14202. # Dependencies to place before and after the object being linked:
  14203. predep_objects_CXX=
  14204. postdep_objects_CXX=
  14205. predeps_CXX=
  14206. postdeps_CXX=
  14207. compiler_lib_search_path_CXX=
  14208. cat > conftest.$ac_ext <<_LT_EOF
  14209. class Foo
  14210. {
  14211. public:
  14212. Foo (void) { a = 0; }
  14213. private:
  14214. int a;
  14215. };
  14216. _LT_EOF
  14217. _lt_libdeps_save_CFLAGS=$CFLAGS
  14218. case "$CC $CFLAGS " in #(
  14219. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14220. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14221. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14222. esac
  14223. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14224. (eval $ac_compile) 2>&5
  14225. ac_status=$?
  14226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14227. test $ac_status = 0; }; then
  14228. # Parse the compiler output and extract the necessary
  14229. # objects, libraries and library flags.
  14230. # Sentinel used to keep track of whether or not we are before
  14231. # the conftest object file.
  14232. pre_test_object_deps_done=no
  14233. for p in `eval "$output_verbose_link_cmd"`; do
  14234. case $prev$p in
  14235. -L* | -R* | -l*)
  14236. # Some compilers place space between "-{L,R}" and the path.
  14237. # Remove the space.
  14238. if test x-L = "$p" ||
  14239. test x-R = "$p"; then
  14240. prev=$p
  14241. continue
  14242. fi
  14243. # Expand the sysroot to ease extracting the directories later.
  14244. if test -z "$prev"; then
  14245. case $p in
  14246. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14247. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14248. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14249. esac
  14250. fi
  14251. case $p in
  14252. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14253. esac
  14254. if test no = "$pre_test_object_deps_done"; then
  14255. case $prev in
  14256. -L | -R)
  14257. # Internal compiler library paths should come after those
  14258. # provided the user. The postdeps already come after the
  14259. # user supplied libs so there is no need to process them.
  14260. if test -z "$compiler_lib_search_path_CXX"; then
  14261. compiler_lib_search_path_CXX=$prev$p
  14262. else
  14263. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14264. fi
  14265. ;;
  14266. # The "-l" case would never come before the object being
  14267. # linked, so don't bother handling this case.
  14268. esac
  14269. else
  14270. if test -z "$postdeps_CXX"; then
  14271. postdeps_CXX=$prev$p
  14272. else
  14273. postdeps_CXX="${postdeps_CXX} $prev$p"
  14274. fi
  14275. fi
  14276. prev=
  14277. ;;
  14278. *.lto.$objext) ;; # Ignore GCC LTO objects
  14279. *.$objext)
  14280. # This assumes that the test object file only shows up
  14281. # once in the compiler output.
  14282. if test "$p" = "conftest.$objext"; then
  14283. pre_test_object_deps_done=yes
  14284. continue
  14285. fi
  14286. if test no = "$pre_test_object_deps_done"; then
  14287. if test -z "$predep_objects_CXX"; then
  14288. predep_objects_CXX=$p
  14289. else
  14290. predep_objects_CXX="$predep_objects_CXX $p"
  14291. fi
  14292. else
  14293. if test -z "$postdep_objects_CXX"; then
  14294. postdep_objects_CXX=$p
  14295. else
  14296. postdep_objects_CXX="$postdep_objects_CXX $p"
  14297. fi
  14298. fi
  14299. ;;
  14300. *) ;; # Ignore the rest.
  14301. esac
  14302. done
  14303. # Clean up.
  14304. rm -f a.out a.exe
  14305. else
  14306. echo "libtool.m4: error: problem compiling CXX test program"
  14307. fi
  14308. $RM -f confest.$objext
  14309. CFLAGS=$_lt_libdeps_save_CFLAGS
  14310. # PORTME: override above test on systems where it is broken
  14311. case $host_os in
  14312. interix[3-9]*)
  14313. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14314. # hack all around it, let's just trust "g++" to DTRT.
  14315. predep_objects_CXX=
  14316. postdep_objects_CXX=
  14317. postdeps_CXX=
  14318. ;;
  14319. esac
  14320. case " $postdeps_CXX " in
  14321. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14322. esac
  14323. compiler_lib_search_dirs_CXX=
  14324. if test -n "${compiler_lib_search_path_CXX}"; then
  14325. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14326. fi
  14327. lt_prog_compiler_wl_CXX=
  14328. lt_prog_compiler_pic_CXX=
  14329. lt_prog_compiler_static_CXX=
  14330. # C++ specific cases for pic, static, wl, etc.
  14331. if test yes = "$GXX"; then
  14332. lt_prog_compiler_wl_CXX='-Wl,'
  14333. lt_prog_compiler_static_CXX='-static'
  14334. case $host_os in
  14335. aix*)
  14336. # All AIX code is PIC.
  14337. if test ia64 = "$host_cpu"; then
  14338. # AIX 5 now supports IA64 processor
  14339. lt_prog_compiler_static_CXX='-Bstatic'
  14340. fi
  14341. lt_prog_compiler_pic_CXX='-fPIC'
  14342. ;;
  14343. amigaos*)
  14344. case $host_cpu in
  14345. powerpc)
  14346. # see comment about AmigaOS4 .so support
  14347. lt_prog_compiler_pic_CXX='-fPIC'
  14348. ;;
  14349. m68k)
  14350. # FIXME: we need at least 68020 code to build shared libraries, but
  14351. # adding the '-m68020' flag to GCC prevents building anything better,
  14352. # like '-m68040'.
  14353. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14354. ;;
  14355. esac
  14356. ;;
  14357. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14358. # PIC is the default for these OSes.
  14359. ;;
  14360. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14361. # This hack is so that the source file can tell whether it is being
  14362. # built for inclusion in a dll (and should export symbols for example).
  14363. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14364. # (--disable-auto-import) libraries
  14365. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14366. case $host_os in
  14367. os2*)
  14368. lt_prog_compiler_static_CXX='$wl-static'
  14369. ;;
  14370. esac
  14371. ;;
  14372. darwin* | rhapsody*)
  14373. # PIC is the default on this platform
  14374. # Common symbols not allowed in MH_DYLIB files
  14375. lt_prog_compiler_pic_CXX='-fno-common'
  14376. ;;
  14377. *djgpp*)
  14378. # DJGPP does not support shared libraries at all
  14379. lt_prog_compiler_pic_CXX=
  14380. ;;
  14381. haiku*)
  14382. # PIC is the default for Haiku.
  14383. # The "-static" flag exists, but is broken.
  14384. lt_prog_compiler_static_CXX=
  14385. ;;
  14386. interix[3-9]*)
  14387. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14388. # Instead, we relocate shared libraries at runtime.
  14389. ;;
  14390. sysv4*MP*)
  14391. if test -d /usr/nec; then
  14392. lt_prog_compiler_pic_CXX=-Kconform_pic
  14393. fi
  14394. ;;
  14395. hpux*)
  14396. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14397. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14398. # sets the default TLS model and affects inlining.
  14399. case $host_cpu in
  14400. hppa*64*)
  14401. ;;
  14402. *)
  14403. lt_prog_compiler_pic_CXX='-fPIC'
  14404. ;;
  14405. esac
  14406. ;;
  14407. *qnx* | *nto*)
  14408. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14409. # it will coredump.
  14410. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14411. ;;
  14412. *)
  14413. lt_prog_compiler_pic_CXX='-fPIC'
  14414. ;;
  14415. esac
  14416. else
  14417. case $host_os in
  14418. aix[4-9]*)
  14419. # All AIX code is PIC.
  14420. if test ia64 = "$host_cpu"; then
  14421. # AIX 5 now supports IA64 processor
  14422. lt_prog_compiler_static_CXX='-Bstatic'
  14423. else
  14424. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14425. fi
  14426. ;;
  14427. chorus*)
  14428. case $cc_basename in
  14429. cxch68*)
  14430. # Green Hills C++ Compiler
  14431. # _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"
  14432. ;;
  14433. esac
  14434. ;;
  14435. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14436. # This hack is so that the source file can tell whether it is being
  14437. # built for inclusion in a dll (and should export symbols for example).
  14438. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14439. ;;
  14440. dgux*)
  14441. case $cc_basename in
  14442. ec++*)
  14443. lt_prog_compiler_pic_CXX='-KPIC'
  14444. ;;
  14445. ghcx*)
  14446. # Green Hills C++ Compiler
  14447. lt_prog_compiler_pic_CXX='-pic'
  14448. ;;
  14449. *)
  14450. ;;
  14451. esac
  14452. ;;
  14453. freebsd* | dragonfly* | midnightbsd*)
  14454. # FreeBSD uses GNU C++
  14455. ;;
  14456. hpux9* | hpux10* | hpux11*)
  14457. case $cc_basename in
  14458. CC*)
  14459. lt_prog_compiler_wl_CXX='-Wl,'
  14460. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14461. if test ia64 != "$host_cpu"; then
  14462. lt_prog_compiler_pic_CXX='+Z'
  14463. fi
  14464. ;;
  14465. aCC*)
  14466. lt_prog_compiler_wl_CXX='-Wl,'
  14467. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14468. case $host_cpu in
  14469. hppa*64*|ia64*)
  14470. # +Z the default
  14471. ;;
  14472. *)
  14473. lt_prog_compiler_pic_CXX='+Z'
  14474. ;;
  14475. esac
  14476. ;;
  14477. *)
  14478. ;;
  14479. esac
  14480. ;;
  14481. interix*)
  14482. # This is c89, which is MS Visual C++ (no shared libs)
  14483. # Anyone wants to do a port?
  14484. ;;
  14485. irix5* | irix6* | nonstopux*)
  14486. case $cc_basename in
  14487. CC*)
  14488. lt_prog_compiler_wl_CXX='-Wl,'
  14489. lt_prog_compiler_static_CXX='-non_shared'
  14490. # CC pic flag -KPIC is the default.
  14491. ;;
  14492. *)
  14493. ;;
  14494. esac
  14495. ;;
  14496. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14497. case $cc_basename in
  14498. KCC*)
  14499. # KAI C++ Compiler
  14500. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14501. lt_prog_compiler_pic_CXX='-fPIC'
  14502. ;;
  14503. ecpc* )
  14504. # old Intel C++ for x86_64, which still supported -KPIC.
  14505. lt_prog_compiler_wl_CXX='-Wl,'
  14506. lt_prog_compiler_pic_CXX='-KPIC'
  14507. lt_prog_compiler_static_CXX='-static'
  14508. ;;
  14509. icpc* )
  14510. # Intel C++, used to be incompatible with GCC.
  14511. # ICC 10 doesn't accept -KPIC any more.
  14512. lt_prog_compiler_wl_CXX='-Wl,'
  14513. lt_prog_compiler_pic_CXX='-fPIC'
  14514. lt_prog_compiler_static_CXX='-static'
  14515. ;;
  14516. pgCC* | pgcpp*)
  14517. # Portland Group C++ compiler
  14518. lt_prog_compiler_wl_CXX='-Wl,'
  14519. lt_prog_compiler_pic_CXX='-fpic'
  14520. lt_prog_compiler_static_CXX='-Bstatic'
  14521. ;;
  14522. cxx*)
  14523. # Compaq C++
  14524. # Make sure the PIC flag is empty. It appears that all Alpha
  14525. # Linux and Compaq Tru64 Unix objects are PIC.
  14526. lt_prog_compiler_pic_CXX=
  14527. lt_prog_compiler_static_CXX='-non_shared'
  14528. ;;
  14529. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14530. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14531. lt_prog_compiler_wl_CXX='-Wl,'
  14532. lt_prog_compiler_pic_CXX='-qpic'
  14533. lt_prog_compiler_static_CXX='-qstaticlink'
  14534. ;;
  14535. *)
  14536. case `$CC -V 2>&1 | $SED 5q` in
  14537. *Sun\ C*)
  14538. # Sun C++ 5.9
  14539. lt_prog_compiler_pic_CXX='-KPIC'
  14540. lt_prog_compiler_static_CXX='-Bstatic'
  14541. lt_prog_compiler_wl_CXX='-Qoption ld '
  14542. ;;
  14543. esac
  14544. ;;
  14545. esac
  14546. ;;
  14547. lynxos*)
  14548. ;;
  14549. m88k*)
  14550. ;;
  14551. mvs*)
  14552. case $cc_basename in
  14553. cxx*)
  14554. lt_prog_compiler_pic_CXX='-W c,exportall'
  14555. ;;
  14556. *)
  14557. ;;
  14558. esac
  14559. ;;
  14560. netbsd*)
  14561. ;;
  14562. *qnx* | *nto*)
  14563. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14564. # it will coredump.
  14565. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14566. ;;
  14567. osf3* | osf4* | osf5*)
  14568. case $cc_basename in
  14569. KCC*)
  14570. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14571. ;;
  14572. RCC*)
  14573. # Rational C++ 2.4.1
  14574. lt_prog_compiler_pic_CXX='-pic'
  14575. ;;
  14576. cxx*)
  14577. # Digital/Compaq C++
  14578. lt_prog_compiler_wl_CXX='-Wl,'
  14579. # Make sure the PIC flag is empty. It appears that all Alpha
  14580. # Linux and Compaq Tru64 Unix objects are PIC.
  14581. lt_prog_compiler_pic_CXX=
  14582. lt_prog_compiler_static_CXX='-non_shared'
  14583. ;;
  14584. *)
  14585. ;;
  14586. esac
  14587. ;;
  14588. psos*)
  14589. ;;
  14590. solaris*)
  14591. case $cc_basename in
  14592. CC* | sunCC*)
  14593. # Sun C++ 4.2, 5.x and Centerline C++
  14594. lt_prog_compiler_pic_CXX='-KPIC'
  14595. lt_prog_compiler_static_CXX='-Bstatic'
  14596. lt_prog_compiler_wl_CXX='-Qoption ld '
  14597. ;;
  14598. gcx*)
  14599. # Green Hills C++ Compiler
  14600. lt_prog_compiler_pic_CXX='-PIC'
  14601. ;;
  14602. *)
  14603. ;;
  14604. esac
  14605. ;;
  14606. sunos4*)
  14607. case $cc_basename in
  14608. CC*)
  14609. # Sun C++ 4.x
  14610. lt_prog_compiler_pic_CXX='-pic'
  14611. lt_prog_compiler_static_CXX='-Bstatic'
  14612. ;;
  14613. lcc*)
  14614. # Lucid
  14615. lt_prog_compiler_pic_CXX='-pic'
  14616. ;;
  14617. *)
  14618. ;;
  14619. esac
  14620. ;;
  14621. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14622. case $cc_basename in
  14623. CC*)
  14624. lt_prog_compiler_wl_CXX='-Wl,'
  14625. lt_prog_compiler_pic_CXX='-KPIC'
  14626. lt_prog_compiler_static_CXX='-Bstatic'
  14627. ;;
  14628. esac
  14629. ;;
  14630. tandem*)
  14631. case $cc_basename in
  14632. NCC*)
  14633. # NonStop-UX NCC 3.20
  14634. lt_prog_compiler_pic_CXX='-KPIC'
  14635. ;;
  14636. *)
  14637. ;;
  14638. esac
  14639. ;;
  14640. vxworks*)
  14641. ;;
  14642. *)
  14643. lt_prog_compiler_can_build_shared_CXX=no
  14644. ;;
  14645. esac
  14646. fi
  14647. case $host_os in
  14648. # For platforms that do not support PIC, -DPIC is meaningless:
  14649. *djgpp*)
  14650. lt_prog_compiler_pic_CXX=
  14651. ;;
  14652. *)
  14653. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14654. ;;
  14655. esac
  14656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14657. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14658. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14659. then :
  14660. printf %s "(cached) " >&6
  14661. else $as_nop
  14662. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14663. fi
  14664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14665. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14666. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14667. #
  14668. # Check to make sure the PIC flag actually works.
  14669. #
  14670. if test -n "$lt_prog_compiler_pic_CXX"; then
  14671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14672. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14673. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14674. then :
  14675. printf %s "(cached) " >&6
  14676. else $as_nop
  14677. lt_cv_prog_compiler_pic_works_CXX=no
  14678. ac_outfile=conftest.$ac_objext
  14679. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14680. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14681. # Insert the option either (1) after the last *FLAGS variable, or
  14682. # (2) before a word containing "conftest.", or (3) at the end.
  14683. # Note that $ac_compile itself does not contain backslashes and begins
  14684. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14685. # The option is referenced via a variable to avoid confusing sed.
  14686. lt_compile=`echo "$ac_compile" | $SED \
  14687. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14688. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14689. -e 's:$: $lt_compiler_flag:'`
  14690. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14691. (eval "$lt_compile" 2>conftest.err)
  14692. ac_status=$?
  14693. cat conftest.err >&5
  14694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14695. if (exit $ac_status) && test -s "$ac_outfile"; then
  14696. # The compiler can only warn and ignore the option if not recognized
  14697. # So say no if there are warnings other than the usual output.
  14698. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14699. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14700. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14701. lt_cv_prog_compiler_pic_works_CXX=yes
  14702. fi
  14703. fi
  14704. $RM conftest*
  14705. fi
  14706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14707. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14708. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14709. case $lt_prog_compiler_pic_CXX in
  14710. "" | " "*) ;;
  14711. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14712. esac
  14713. else
  14714. lt_prog_compiler_pic_CXX=
  14715. lt_prog_compiler_can_build_shared_CXX=no
  14716. fi
  14717. fi
  14718. #
  14719. # Check to make sure the static flag actually works.
  14720. #
  14721. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14723. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14724. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14725. then :
  14726. printf %s "(cached) " >&6
  14727. else $as_nop
  14728. lt_cv_prog_compiler_static_works_CXX=no
  14729. save_LDFLAGS=$LDFLAGS
  14730. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14731. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14732. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14733. # The linker can only warn and ignore the option if not recognized
  14734. # So say no if there are warnings
  14735. if test -s conftest.err; then
  14736. # Append any errors to the config.log.
  14737. cat conftest.err 1>&5
  14738. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14739. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14740. if diff conftest.exp conftest.er2 >/dev/null; then
  14741. lt_cv_prog_compiler_static_works_CXX=yes
  14742. fi
  14743. else
  14744. lt_cv_prog_compiler_static_works_CXX=yes
  14745. fi
  14746. fi
  14747. $RM -r conftest*
  14748. LDFLAGS=$save_LDFLAGS
  14749. fi
  14750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14751. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14752. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14753. :
  14754. else
  14755. lt_prog_compiler_static_CXX=
  14756. fi
  14757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14758. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14759. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14760. then :
  14761. printf %s "(cached) " >&6
  14762. else $as_nop
  14763. lt_cv_prog_compiler_c_o_CXX=no
  14764. $RM -r conftest 2>/dev/null
  14765. mkdir conftest
  14766. cd conftest
  14767. mkdir out
  14768. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14769. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14770. # Insert the option either (1) after the last *FLAGS variable, or
  14771. # (2) before a word containing "conftest.", or (3) at the end.
  14772. # Note that $ac_compile itself does not contain backslashes and begins
  14773. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14774. lt_compile=`echo "$ac_compile" | $SED \
  14775. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14776. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14777. -e 's:$: $lt_compiler_flag:'`
  14778. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14779. (eval "$lt_compile" 2>out/conftest.err)
  14780. ac_status=$?
  14781. cat out/conftest.err >&5
  14782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14783. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14784. then
  14785. # The compiler can only warn and ignore the option if not recognized
  14786. # So say no if there are warnings
  14787. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14788. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14789. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14790. lt_cv_prog_compiler_c_o_CXX=yes
  14791. fi
  14792. fi
  14793. chmod u+w . 2>&5
  14794. $RM conftest*
  14795. # SGI C++ compiler will create directory out/ii_files/ for
  14796. # template instantiation
  14797. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14798. $RM out/* && rmdir out
  14799. cd ..
  14800. $RM -r conftest
  14801. $RM conftest*
  14802. fi
  14803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14804. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14806. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14807. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14808. then :
  14809. printf %s "(cached) " >&6
  14810. else $as_nop
  14811. lt_cv_prog_compiler_c_o_CXX=no
  14812. $RM -r conftest 2>/dev/null
  14813. mkdir conftest
  14814. cd conftest
  14815. mkdir out
  14816. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14817. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14818. # Insert the option either (1) after the last *FLAGS variable, or
  14819. # (2) before a word containing "conftest.", or (3) at the end.
  14820. # Note that $ac_compile itself does not contain backslashes and begins
  14821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14822. lt_compile=`echo "$ac_compile" | $SED \
  14823. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14824. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14825. -e 's:$: $lt_compiler_flag:'`
  14826. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14827. (eval "$lt_compile" 2>out/conftest.err)
  14828. ac_status=$?
  14829. cat out/conftest.err >&5
  14830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14831. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14832. then
  14833. # The compiler can only warn and ignore the option if not recognized
  14834. # So say no if there are warnings
  14835. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14836. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14837. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14838. lt_cv_prog_compiler_c_o_CXX=yes
  14839. fi
  14840. fi
  14841. chmod u+w . 2>&5
  14842. $RM conftest*
  14843. # SGI C++ compiler will create directory out/ii_files/ for
  14844. # template instantiation
  14845. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14846. $RM out/* && rmdir out
  14847. cd ..
  14848. $RM -r conftest
  14849. $RM conftest*
  14850. fi
  14851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14852. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14853. hard_links=nottested
  14854. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14855. # do not overwrite the value of need_locks provided by the user
  14856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14857. printf %s "checking if we can lock with hard links... " >&6; }
  14858. hard_links=yes
  14859. $RM conftest*
  14860. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14861. touch conftest.a
  14862. ln conftest.a conftest.b 2>&5 || hard_links=no
  14863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14865. printf "%s\n" "$hard_links" >&6; }
  14866. if test no = "$hard_links"; then
  14867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14868. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14869. need_locks=warn
  14870. fi
  14871. else
  14872. need_locks=no
  14873. fi
  14874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14875. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14876. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14877. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14878. case $host_os in
  14879. aix[4-9]*)
  14880. # If we're using GNU nm, then we don't want the "-C" option.
  14881. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14882. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14883. # weak defined symbols like other global defined symbols, whereas
  14884. # GNU nm marks them as "W".
  14885. # While the 'weak' keyword is ignored in the Export File, we need
  14886. # it in the Import File for the 'aix-soname' feature, so we have
  14887. # to replace the "-B" option with "-P" for AIX nm.
  14888. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14889. 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'
  14890. else
  14891. 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 == "L") || (\$ 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'
  14892. fi
  14893. ;;
  14894. pw32*)
  14895. export_symbols_cmds_CXX=$ltdll_cmds
  14896. ;;
  14897. cygwin* | mingw* | cegcc*)
  14898. case $cc_basename in
  14899. cl* | icl*)
  14900. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14901. ;;
  14902. *)
  14903. 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'
  14904. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14905. ;;
  14906. esac
  14907. ;;
  14908. *)
  14909. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14910. ;;
  14911. esac
  14912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14913. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14914. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14915. with_gnu_ld_CXX=$with_gnu_ld
  14916. #
  14917. # Do we need to explicitly link libc?
  14918. #
  14919. case "x$archive_cmds_need_lc_CXX" in
  14920. x|xyes)
  14921. # Assume -lc should be added
  14922. archive_cmds_need_lc_CXX=yes
  14923. if test yes,yes = "$GCC,$enable_shared"; then
  14924. case $archive_cmds_CXX in
  14925. *'~'*)
  14926. # FIXME: we may have to deal with multi-command sequences.
  14927. ;;
  14928. '$CC '*)
  14929. # Test whether the compiler implicitly links with -lc since on some
  14930. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14931. # to ld, don't add -lc before -lgcc.
  14932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14933. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14934. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14935. then :
  14936. printf %s "(cached) " >&6
  14937. else $as_nop
  14938. $RM conftest*
  14939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14940. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14941. (eval $ac_compile) 2>&5
  14942. ac_status=$?
  14943. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14944. test $ac_status = 0; } 2>conftest.err; then
  14945. soname=conftest
  14946. lib=conftest
  14947. libobjs=conftest.$ac_objext
  14948. deplibs=
  14949. wl=$lt_prog_compiler_wl_CXX
  14950. pic_flag=$lt_prog_compiler_pic_CXX
  14951. compiler_flags=-v
  14952. linker_flags=-v
  14953. verstring=
  14954. output_objdir=.
  14955. libname=conftest
  14956. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14957. allow_undefined_flag_CXX=
  14958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14959. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14960. ac_status=$?
  14961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14962. test $ac_status = 0; }
  14963. then
  14964. lt_cv_archive_cmds_need_lc_CXX=no
  14965. else
  14966. lt_cv_archive_cmds_need_lc_CXX=yes
  14967. fi
  14968. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14969. else
  14970. cat conftest.err 1>&5
  14971. fi
  14972. $RM conftest*
  14973. fi
  14974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14975. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14976. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14977. ;;
  14978. esac
  14979. fi
  14980. ;;
  14981. esac
  14982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14983. printf %s "checking dynamic linker characteristics... " >&6; }
  14984. library_names_spec=
  14985. libname_spec='lib$name'
  14986. soname_spec=
  14987. shrext_cmds=.so
  14988. postinstall_cmds=
  14989. postuninstall_cmds=
  14990. finish_cmds=
  14991. finish_eval=
  14992. shlibpath_var=
  14993. shlibpath_overrides_runpath=unknown
  14994. version_type=none
  14995. dynamic_linker="$host_os ld.so"
  14996. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14997. need_lib_prefix=unknown
  14998. hardcode_into_libs=no
  14999. # when you set need_version to no, make sure it does not cause -set_version
  15000. # flags to be left without arguments
  15001. need_version=unknown
  15002. case $host_os in
  15003. aix3*)
  15004. version_type=linux # correct to gnu/linux during the next big refactor
  15005. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  15006. shlibpath_var=LIBPATH
  15007. # AIX 3 has no versioning support, so we append a major version to the name.
  15008. soname_spec='$libname$release$shared_ext$major'
  15009. ;;
  15010. aix[4-9]*)
  15011. version_type=linux # correct to gnu/linux during the next big refactor
  15012. need_lib_prefix=no
  15013. need_version=no
  15014. hardcode_into_libs=yes
  15015. if test ia64 = "$host_cpu"; then
  15016. # AIX 5 supports IA64
  15017. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  15018. shlibpath_var=LD_LIBRARY_PATH
  15019. else
  15020. # With GCC up to 2.95.x, collect2 would create an import file
  15021. # for dependence libraries. The import file would start with
  15022. # the line '#! .'. This would cause the generated library to
  15023. # depend on '.', always an invalid library. This was fixed in
  15024. # development snapshots of GCC prior to 3.0.
  15025. case $host_os in
  15026. aix4 | aix4.[01] | aix4.[01].*)
  15027. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15028. echo ' yes '
  15029. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  15030. :
  15031. else
  15032. can_build_shared=no
  15033. fi
  15034. ;;
  15035. esac
  15036. # Using Import Files as archive members, it is possible to support
  15037. # filename-based versioning of shared library archives on AIX. While
  15038. # this would work for both with and without runtime linking, it will
  15039. # prevent static linking of such archives. So we do filename-based
  15040. # shared library versioning with .so extension only, which is used
  15041. # when both runtime linking and shared linking is enabled.
  15042. # Unfortunately, runtime linking may impact performance, so we do
  15043. # not want this to be the default eventually. Also, we use the
  15044. # versioned .so libs for executables only if there is the -brtl
  15045. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  15046. # To allow for filename-based versioning support, we need to create
  15047. # libNAME.so.V as an archive file, containing:
  15048. # *) an Import File, referring to the versioned filename of the
  15049. # archive as well as the shared archive member, telling the
  15050. # bitwidth (32 or 64) of that shared object, and providing the
  15051. # list of exported symbols of that shared object, eventually
  15052. # decorated with the 'weak' keyword
  15053. # *) the shared object with the F_LOADONLY flag set, to really avoid
  15054. # it being seen by the linker.
  15055. # At run time we better use the real file rather than another symlink,
  15056. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  15057. case $with_aix_soname,$aix_use_runtimelinking in
  15058. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  15059. # soname into executable. Probably we can add versioning support to
  15060. # collect2, so additional links can be useful in future.
  15061. aix,yes) # traditional libtool
  15062. dynamic_linker='AIX unversionable lib.so'
  15063. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15064. # instead of lib<name>.a to let people know that these are not
  15065. # typical AIX shared libraries.
  15066. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15067. ;;
  15068. aix,no) # traditional AIX only
  15069. dynamic_linker='AIX lib.a(lib.so.V)'
  15070. # We preserve .a as extension for shared libraries through AIX4.2
  15071. # and later when we are not doing run time linking.
  15072. library_names_spec='$libname$release.a $libname.a'
  15073. soname_spec='$libname$release$shared_ext$major'
  15074. ;;
  15075. svr4,*) # full svr4 only
  15076. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  15077. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15078. # We do not specify a path in Import Files, so LIBPATH fires.
  15079. shlibpath_overrides_runpath=yes
  15080. ;;
  15081. *,yes) # both, prefer svr4
  15082. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  15083. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15084. # unpreferred sharedlib libNAME.a needs extra handling
  15085. 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"'
  15086. 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"'
  15087. # We do not specify a path in Import Files, so LIBPATH fires.
  15088. shlibpath_overrides_runpath=yes
  15089. ;;
  15090. *,no) # both, prefer aix
  15091. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  15092. library_names_spec='$libname$release.a $libname.a'
  15093. soname_spec='$libname$release$shared_ext$major'
  15094. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  15095. 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)'
  15096. 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"'
  15097. ;;
  15098. esac
  15099. shlibpath_var=LIBPATH
  15100. fi
  15101. ;;
  15102. amigaos*)
  15103. case $host_cpu in
  15104. powerpc)
  15105. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15106. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15108. ;;
  15109. m68k)
  15110. library_names_spec='$libname.ixlibrary $libname.a'
  15111. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15112. 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'
  15113. ;;
  15114. esac
  15115. ;;
  15116. beos*)
  15117. library_names_spec='$libname$shared_ext'
  15118. dynamic_linker="$host_os ld.so"
  15119. shlibpath_var=LIBRARY_PATH
  15120. ;;
  15121. bsdi[45]*)
  15122. version_type=linux # correct to gnu/linux during the next big refactor
  15123. need_version=no
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15125. soname_spec='$libname$release$shared_ext$major'
  15126. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15129. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15130. # the default ld.so.conf also contains /usr/contrib/lib and
  15131. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15132. # libtool to hard-code these into programs
  15133. ;;
  15134. cygwin* | mingw* | pw32* | cegcc*)
  15135. version_type=windows
  15136. shrext_cmds=.dll
  15137. need_version=no
  15138. need_lib_prefix=no
  15139. case $GCC,$cc_basename in
  15140. yes,*)
  15141. # gcc
  15142. library_names_spec='$libname.dll.a'
  15143. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15144. postinstall_cmds='base_file=`basename \$file`~
  15145. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15146. dldir=$destdir/`dirname \$dlpath`~
  15147. test -d \$dldir || mkdir -p \$dldir~
  15148. $install_prog $dir/$dlname \$dldir/$dlname~
  15149. chmod a+x \$dldir/$dlname~
  15150. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15151. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15152. fi'
  15153. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15154. dlpath=$dir/\$dldll~
  15155. $RM \$dlpath'
  15156. shlibpath_overrides_runpath=yes
  15157. case $host_os in
  15158. cygwin*)
  15159. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15160. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15161. ;;
  15162. mingw* | cegcc*)
  15163. # MinGW DLLs use traditional 'lib' prefix
  15164. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15165. ;;
  15166. pw32*)
  15167. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15168. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15169. ;;
  15170. esac
  15171. dynamic_linker='Win32 ld.exe'
  15172. ;;
  15173. *,cl* | *,icl*)
  15174. # Native MSVC or ICC
  15175. libname_spec='$name'
  15176. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15177. library_names_spec='$libname.dll.lib'
  15178. case $build_os in
  15179. mingw*)
  15180. sys_lib_search_path_spec=
  15181. lt_save_ifs=$IFS
  15182. IFS=';'
  15183. for lt_path in $LIB
  15184. do
  15185. IFS=$lt_save_ifs
  15186. # Let DOS variable expansion print the short 8.3 style file name.
  15187. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15188. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15189. done
  15190. IFS=$lt_save_ifs
  15191. # Convert to MSYS style.
  15192. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15193. ;;
  15194. cygwin*)
  15195. # Convert to unix form, then to dos form, then back to unix form
  15196. # but this time dos style (no spaces!) so that the unix form looks
  15197. # like /cygdrive/c/PROGRA~1:/cygdr...
  15198. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15199. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15200. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15201. ;;
  15202. *)
  15203. sys_lib_search_path_spec=$LIB
  15204. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15205. # It is most probably a Windows format PATH.
  15206. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15207. else
  15208. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15209. fi
  15210. # FIXME: find the short name or the path components, as spaces are
  15211. # common. (e.g. "Program Files" -> "PROGRA~1")
  15212. ;;
  15213. esac
  15214. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15215. postinstall_cmds='base_file=`basename \$file`~
  15216. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15217. dldir=$destdir/`dirname \$dlpath`~
  15218. test -d \$dldir || mkdir -p \$dldir~
  15219. $install_prog $dir/$dlname \$dldir/$dlname'
  15220. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15221. dlpath=$dir/\$dldll~
  15222. $RM \$dlpath'
  15223. shlibpath_overrides_runpath=yes
  15224. dynamic_linker='Win32 link.exe'
  15225. ;;
  15226. *)
  15227. # Assume MSVC and ICC wrapper
  15228. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15229. dynamic_linker='Win32 ld.exe'
  15230. ;;
  15231. esac
  15232. # FIXME: first we should search . and the directory the executable is in
  15233. shlibpath_var=PATH
  15234. ;;
  15235. darwin* | rhapsody*)
  15236. dynamic_linker="$host_os dyld"
  15237. version_type=darwin
  15238. need_lib_prefix=no
  15239. need_version=no
  15240. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  15241. soname_spec='$libname$release$major$shared_ext'
  15242. shlibpath_overrides_runpath=yes
  15243. shlibpath_var=DYLD_LIBRARY_PATH
  15244. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  15245. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15246. ;;
  15247. dgux*)
  15248. version_type=linux # correct to gnu/linux during the next big refactor
  15249. need_lib_prefix=no
  15250. need_version=no
  15251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15252. soname_spec='$libname$release$shared_ext$major'
  15253. shlibpath_var=LD_LIBRARY_PATH
  15254. ;;
  15255. freebsd* | dragonfly* | midnightbsd*)
  15256. # DragonFly does not have aout. When/if they implement a new
  15257. # versioning mechanism, adjust this.
  15258. if test -x /usr/bin/objformat; then
  15259. objformat=`/usr/bin/objformat`
  15260. else
  15261. case $host_os in
  15262. freebsd[23].*) objformat=aout ;;
  15263. *) objformat=elf ;;
  15264. esac
  15265. fi
  15266. # Handle Gentoo/FreeBSD as it was Linux
  15267. case $host_vendor in
  15268. gentoo)
  15269. version_type=linux ;;
  15270. *)
  15271. version_type=freebsd-$objformat ;;
  15272. esac
  15273. case $version_type in
  15274. freebsd-elf*)
  15275. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15276. soname_spec='$libname$release$shared_ext$major'
  15277. need_version=no
  15278. need_lib_prefix=no
  15279. ;;
  15280. freebsd-*)
  15281. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15282. need_version=yes
  15283. ;;
  15284. linux)
  15285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15286. soname_spec='${libname}${release}${shared_ext}$major'
  15287. need_lib_prefix=no
  15288. need_version=no
  15289. ;;
  15290. esac
  15291. shlibpath_var=LD_LIBRARY_PATH
  15292. case $host_os in
  15293. freebsd2.*)
  15294. shlibpath_overrides_runpath=yes
  15295. ;;
  15296. freebsd3.[01]* | freebsdelf3.[01]*)
  15297. shlibpath_overrides_runpath=yes
  15298. hardcode_into_libs=yes
  15299. ;;
  15300. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15301. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15302. shlibpath_overrides_runpath=no
  15303. hardcode_into_libs=yes
  15304. ;;
  15305. *) # from 4.6 on, and DragonFly
  15306. shlibpath_overrides_runpath=yes
  15307. hardcode_into_libs=yes
  15308. ;;
  15309. esac
  15310. ;;
  15311. haiku*)
  15312. version_type=linux # correct to gnu/linux during the next big refactor
  15313. need_lib_prefix=no
  15314. need_version=no
  15315. dynamic_linker="$host_os runtime_loader"
  15316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15317. soname_spec='$libname$release$shared_ext$major'
  15318. shlibpath_var=LIBRARY_PATH
  15319. shlibpath_overrides_runpath=no
  15320. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15321. hardcode_into_libs=yes
  15322. ;;
  15323. hpux9* | hpux10* | hpux11*)
  15324. # Give a soname corresponding to the major version so that dld.sl refuses to
  15325. # link against other versions.
  15326. version_type=sunos
  15327. need_lib_prefix=no
  15328. need_version=no
  15329. case $host_cpu in
  15330. ia64*)
  15331. shrext_cmds='.so'
  15332. hardcode_into_libs=yes
  15333. dynamic_linker="$host_os dld.so"
  15334. shlibpath_var=LD_LIBRARY_PATH
  15335. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15336. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15337. soname_spec='$libname$release$shared_ext$major'
  15338. if test 32 = "$HPUX_IA64_MODE"; then
  15339. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15340. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15341. else
  15342. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15343. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15344. fi
  15345. ;;
  15346. hppa*64*)
  15347. shrext_cmds='.sl'
  15348. hardcode_into_libs=yes
  15349. dynamic_linker="$host_os dld.sl"
  15350. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15351. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15353. soname_spec='$libname$release$shared_ext$major'
  15354. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15355. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15356. ;;
  15357. *)
  15358. shrext_cmds='.sl'
  15359. dynamic_linker="$host_os dld.sl"
  15360. shlibpath_var=SHLIB_PATH
  15361. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15362. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15363. soname_spec='$libname$release$shared_ext$major'
  15364. ;;
  15365. esac
  15366. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15367. postinstall_cmds='chmod 555 $lib'
  15368. # or fails outright, so override atomically:
  15369. install_override_mode=555
  15370. ;;
  15371. interix[3-9]*)
  15372. version_type=linux # correct to gnu/linux during the next big refactor
  15373. need_lib_prefix=no
  15374. need_version=no
  15375. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15376. soname_spec='$libname$release$shared_ext$major'
  15377. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15378. shlibpath_var=LD_LIBRARY_PATH
  15379. shlibpath_overrides_runpath=no
  15380. hardcode_into_libs=yes
  15381. ;;
  15382. irix5* | irix6* | nonstopux*)
  15383. case $host_os in
  15384. nonstopux*) version_type=nonstopux ;;
  15385. *)
  15386. if test yes = "$lt_cv_prog_gnu_ld"; then
  15387. version_type=linux # correct to gnu/linux during the next big refactor
  15388. else
  15389. version_type=irix
  15390. fi ;;
  15391. esac
  15392. need_lib_prefix=no
  15393. need_version=no
  15394. soname_spec='$libname$release$shared_ext$major'
  15395. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15396. case $host_os in
  15397. irix5* | nonstopux*)
  15398. libsuff= shlibsuff=
  15399. ;;
  15400. *)
  15401. case $LD in # libtool.m4 will add one of these switches to LD
  15402. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15403. libsuff= shlibsuff= libmagic=32-bit;;
  15404. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15405. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15406. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15407. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15408. *) libsuff= shlibsuff= libmagic=never-match;;
  15409. esac
  15410. ;;
  15411. esac
  15412. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15413. shlibpath_overrides_runpath=no
  15414. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15415. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15416. hardcode_into_libs=yes
  15417. ;;
  15418. # No shared lib support for Linux oldld, aout, or coff.
  15419. linux*oldld* | linux*aout* | linux*coff*)
  15420. dynamic_linker=no
  15421. ;;
  15422. linux*android*)
  15423. version_type=none # Android doesn't support versioned libraries.
  15424. need_lib_prefix=no
  15425. need_version=no
  15426. library_names_spec='$libname$release$shared_ext'
  15427. soname_spec='$libname$release$shared_ext'
  15428. finish_cmds=
  15429. shlibpath_var=LD_LIBRARY_PATH
  15430. shlibpath_overrides_runpath=yes
  15431. # This implies no fast_install, which is unacceptable.
  15432. # Some rework will be needed to allow for fast_install
  15433. # before this can be enabled.
  15434. hardcode_into_libs=yes
  15435. dynamic_linker='Android linker'
  15436. # Don't embed -rpath directories since the linker doesn't support them.
  15437. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15438. ;;
  15439. # This must be glibc/ELF.
  15440. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15441. version_type=linux # correct to gnu/linux during the next big refactor
  15442. need_lib_prefix=no
  15443. need_version=no
  15444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15445. soname_spec='$libname$release$shared_ext$major'
  15446. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15447. shlibpath_var=LD_LIBRARY_PATH
  15448. shlibpath_overrides_runpath=no
  15449. # Some binutils ld are patched to set DT_RUNPATH
  15450. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15451. then :
  15452. printf %s "(cached) " >&6
  15453. else $as_nop
  15454. lt_cv_shlibpath_overrides_runpath=no
  15455. save_LDFLAGS=$LDFLAGS
  15456. save_libdir=$libdir
  15457. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15458. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15460. /* end confdefs.h. */
  15461. int
  15462. main (void)
  15463. {
  15464. ;
  15465. return 0;
  15466. }
  15467. _ACEOF
  15468. if ac_fn_cxx_try_link "$LINENO"
  15469. then :
  15470. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15471. then :
  15472. lt_cv_shlibpath_overrides_runpath=yes
  15473. fi
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15476. conftest$ac_exeext conftest.$ac_ext
  15477. LDFLAGS=$save_LDFLAGS
  15478. libdir=$save_libdir
  15479. fi
  15480. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15481. # This implies no fast_install, which is unacceptable.
  15482. # Some rework will be needed to allow for fast_install
  15483. # before this can be enabled.
  15484. hardcode_into_libs=yes
  15485. # Ideally, we could use ldconfig to report *all* directores which are
  15486. # searched for libraries, however this is still not possible. Aside from not
  15487. # being certain /sbin/ldconfig is available, command
  15488. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15489. # even though it is searched at run-time. Try to do the best guess by
  15490. # appending ld.so.conf contents (and includes) to the search path.
  15491. if test -f /etc/ld.so.conf; then
  15492. 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' ' '`
  15493. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15494. fi
  15495. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15496. # powerpc, because MkLinux only supported shared libraries with the
  15497. # GNU dynamic linker. Since this was broken with cross compilers,
  15498. # most powerpc-linux boxes support dynamic linking these days and
  15499. # people can always --disable-shared, the test was removed, and we
  15500. # assume the GNU/Linux dynamic linker is in use.
  15501. dynamic_linker='GNU/Linux ld.so'
  15502. ;;
  15503. netbsd*)
  15504. version_type=sunos
  15505. need_lib_prefix=no
  15506. need_version=no
  15507. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15508. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15509. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15510. dynamic_linker='NetBSD (a.out) ld.so'
  15511. else
  15512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15513. soname_spec='$libname$release$shared_ext$major'
  15514. dynamic_linker='NetBSD ld.elf_so'
  15515. fi
  15516. shlibpath_var=LD_LIBRARY_PATH
  15517. shlibpath_overrides_runpath=yes
  15518. hardcode_into_libs=yes
  15519. ;;
  15520. newsos6)
  15521. version_type=linux # correct to gnu/linux during the next big refactor
  15522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15523. shlibpath_var=LD_LIBRARY_PATH
  15524. shlibpath_overrides_runpath=yes
  15525. ;;
  15526. *nto* | *qnx*)
  15527. version_type=qnx
  15528. need_lib_prefix=no
  15529. need_version=no
  15530. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15531. soname_spec='$libname$release$shared_ext$major'
  15532. shlibpath_var=LD_LIBRARY_PATH
  15533. shlibpath_overrides_runpath=no
  15534. hardcode_into_libs=yes
  15535. dynamic_linker='ldqnx.so'
  15536. ;;
  15537. openbsd* | bitrig*)
  15538. version_type=sunos
  15539. sys_lib_dlsearch_path_spec=/usr/lib
  15540. need_lib_prefix=no
  15541. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15542. need_version=no
  15543. else
  15544. need_version=yes
  15545. fi
  15546. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15547. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15548. shlibpath_var=LD_LIBRARY_PATH
  15549. shlibpath_overrides_runpath=yes
  15550. ;;
  15551. os2*)
  15552. libname_spec='$name'
  15553. version_type=windows
  15554. shrext_cmds=.dll
  15555. need_version=no
  15556. need_lib_prefix=no
  15557. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15558. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15559. v=$($ECHO $release$versuffix | tr -d .-);
  15560. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15561. $ECHO $n$v`$shared_ext'
  15562. library_names_spec='${libname}_dll.$libext'
  15563. dynamic_linker='OS/2 ld.exe'
  15564. shlibpath_var=BEGINLIBPATH
  15565. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15566. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15567. postinstall_cmds='base_file=`basename \$file`~
  15568. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15569. dldir=$destdir/`dirname \$dlpath`~
  15570. test -d \$dldir || mkdir -p \$dldir~
  15571. $install_prog $dir/$dlname \$dldir/$dlname~
  15572. chmod a+x \$dldir/$dlname~
  15573. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15574. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15575. fi'
  15576. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15577. dlpath=$dir/\$dldll~
  15578. $RM \$dlpath'
  15579. ;;
  15580. osf3* | osf4* | osf5*)
  15581. version_type=osf
  15582. need_lib_prefix=no
  15583. need_version=no
  15584. soname_spec='$libname$release$shared_ext$major'
  15585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15586. shlibpath_var=LD_LIBRARY_PATH
  15587. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15588. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15589. ;;
  15590. rdos*)
  15591. dynamic_linker=no
  15592. ;;
  15593. solaris*)
  15594. version_type=linux # correct to gnu/linux during the next big refactor
  15595. need_lib_prefix=no
  15596. need_version=no
  15597. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15598. soname_spec='$libname$release$shared_ext$major'
  15599. shlibpath_var=LD_LIBRARY_PATH
  15600. shlibpath_overrides_runpath=yes
  15601. hardcode_into_libs=yes
  15602. # ldd complains unless libraries are executable
  15603. postinstall_cmds='chmod +x $lib'
  15604. ;;
  15605. sunos4*)
  15606. version_type=sunos
  15607. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15608. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15609. shlibpath_var=LD_LIBRARY_PATH
  15610. shlibpath_overrides_runpath=yes
  15611. if test yes = "$with_gnu_ld"; then
  15612. need_lib_prefix=no
  15613. fi
  15614. need_version=yes
  15615. ;;
  15616. sysv4 | sysv4.3*)
  15617. version_type=linux # correct to gnu/linux during the next big refactor
  15618. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15619. soname_spec='$libname$release$shared_ext$major'
  15620. shlibpath_var=LD_LIBRARY_PATH
  15621. case $host_vendor in
  15622. sni)
  15623. shlibpath_overrides_runpath=no
  15624. need_lib_prefix=no
  15625. runpath_var=LD_RUN_PATH
  15626. ;;
  15627. siemens)
  15628. need_lib_prefix=no
  15629. ;;
  15630. motorola)
  15631. need_lib_prefix=no
  15632. need_version=no
  15633. shlibpath_overrides_runpath=no
  15634. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15635. ;;
  15636. esac
  15637. ;;
  15638. sysv4*MP*)
  15639. if test -d /usr/nec; then
  15640. version_type=linux # correct to gnu/linux during the next big refactor
  15641. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15642. soname_spec='$libname$shared_ext.$major'
  15643. shlibpath_var=LD_LIBRARY_PATH
  15644. fi
  15645. ;;
  15646. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15647. version_type=sco
  15648. need_lib_prefix=no
  15649. need_version=no
  15650. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15651. soname_spec='$libname$release$shared_ext$major'
  15652. shlibpath_var=LD_LIBRARY_PATH
  15653. shlibpath_overrides_runpath=yes
  15654. hardcode_into_libs=yes
  15655. if test yes = "$with_gnu_ld"; then
  15656. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15657. else
  15658. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15659. case $host_os in
  15660. sco3.2v5*)
  15661. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15662. ;;
  15663. esac
  15664. fi
  15665. sys_lib_dlsearch_path_spec='/usr/lib'
  15666. ;;
  15667. tpf*)
  15668. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15669. version_type=linux # correct to gnu/linux during the next big refactor
  15670. need_lib_prefix=no
  15671. need_version=no
  15672. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15673. shlibpath_var=LD_LIBRARY_PATH
  15674. shlibpath_overrides_runpath=no
  15675. hardcode_into_libs=yes
  15676. ;;
  15677. uts4*)
  15678. version_type=linux # correct to gnu/linux during the next big refactor
  15679. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15680. soname_spec='$libname$release$shared_ext$major'
  15681. shlibpath_var=LD_LIBRARY_PATH
  15682. ;;
  15683. *)
  15684. dynamic_linker=no
  15685. ;;
  15686. esac
  15687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15688. printf "%s\n" "$dynamic_linker" >&6; }
  15689. test no = "$dynamic_linker" && can_build_shared=no
  15690. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15691. if test yes = "$GCC"; then
  15692. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15693. fi
  15694. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15695. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15696. fi
  15697. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15698. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15699. fi
  15700. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15701. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15702. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15703. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15704. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15705. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15707. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15708. hardcode_action_CXX=
  15709. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15710. test -n "$runpath_var_CXX" ||
  15711. test yes = "$hardcode_automatic_CXX"; then
  15712. # We can hardcode non-existent directories.
  15713. if test no != "$hardcode_direct_CXX" &&
  15714. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15715. # have to relink, otherwise we might link with an installed library
  15716. # when we should be linking with a yet-to-be-installed one
  15717. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15718. test no != "$hardcode_minus_L_CXX"; then
  15719. # Linking always hardcodes the temporary library directory.
  15720. hardcode_action_CXX=relink
  15721. else
  15722. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15723. hardcode_action_CXX=immediate
  15724. fi
  15725. else
  15726. # We cannot hardcode anything, or else we can only hardcode existing
  15727. # directories.
  15728. hardcode_action_CXX=unsupported
  15729. fi
  15730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15731. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15732. if test relink = "$hardcode_action_CXX" ||
  15733. test yes = "$inherit_rpath_CXX"; then
  15734. # Fast installation is not supported
  15735. enable_fast_install=no
  15736. elif test yes = "$shlibpath_overrides_runpath" ||
  15737. test no = "$enable_shared"; then
  15738. # Fast installation is not necessary
  15739. enable_fast_install=needless
  15740. fi
  15741. fi # test -n "$compiler"
  15742. CC=$lt_save_CC
  15743. CFLAGS=$lt_save_CFLAGS
  15744. LDCXX=$LD
  15745. LD=$lt_save_LD
  15746. GCC=$lt_save_GCC
  15747. with_gnu_ld=$lt_save_with_gnu_ld
  15748. lt_cv_path_LDCXX=$lt_cv_path_LD
  15749. lt_cv_path_LD=$lt_save_path_LD
  15750. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15751. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15752. fi # test yes != "$_lt_caught_CXX_error"
  15753. ac_ext=cpp
  15754. ac_cpp='$CXXCPP $CPPFLAGS'
  15755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15758. if test "$GCC" = yes
  15759. then :
  15760. for flag in -Wall -Wextra; do
  15761. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15763. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15764. if eval test \${$as_CACHEVAR+y}
  15765. then :
  15766. printf %s "(cached) " >&6
  15767. else $as_nop
  15768. ax_check_save_flags=$CXXFLAGS
  15769. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15771. /* end confdefs.h. */
  15772. int main(void) { return 0; }
  15773. _ACEOF
  15774. if ac_fn_cxx_try_compile "$LINENO"
  15775. then :
  15776. eval "$as_CACHEVAR=yes"
  15777. else $as_nop
  15778. eval "$as_CACHEVAR=no"
  15779. fi
  15780. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15781. CXXFLAGS=$ax_check_save_flags
  15782. fi
  15783. eval ac_res=\$$as_CACHEVAR
  15784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15785. printf "%s\n" "$ac_res" >&6; }
  15786. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15787. then :
  15788. if test ${AM_CXXFLAGS+y}
  15789. then :
  15790. case " $AM_CXXFLAGS " in #(
  15791. *" $flag "*) :
  15792. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15793. (: AM_CXXFLAGS already contains $flag) 2>&5
  15794. ac_status=$?
  15795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15796. test $ac_status = 0; } ;; #(
  15797. *) :
  15798. as_fn_append AM_CXXFLAGS " $flag"
  15799. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15800. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15801. ac_status=$?
  15802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15803. test $ac_status = 0; }
  15804. ;;
  15805. esac
  15806. else $as_nop
  15807. AM_CXXFLAGS=$flag
  15808. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15809. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15810. ac_status=$?
  15811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15812. test $ac_status = 0; }
  15813. fi
  15814. else $as_nop
  15815. :
  15816. fi
  15817. done
  15818. for flag in -fexceptions; do
  15819. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15821. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15822. if eval test \${$as_CACHEVAR+y}
  15823. then :
  15824. printf %s "(cached) " >&6
  15825. else $as_nop
  15826. ax_check_save_flags=$CXXFLAGS
  15827. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15829. /* end confdefs.h. */
  15830. int main(void) { return 0; }
  15831. _ACEOF
  15832. if ac_fn_cxx_try_compile "$LINENO"
  15833. then :
  15834. eval "$as_CACHEVAR=yes"
  15835. else $as_nop
  15836. eval "$as_CACHEVAR=no"
  15837. fi
  15838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15839. CXXFLAGS=$ax_check_save_flags
  15840. fi
  15841. eval ac_res=\$$as_CACHEVAR
  15842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15843. printf "%s\n" "$ac_res" >&6; }
  15844. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15845. then :
  15846. if test ${AM_CXXFLAGS+y}
  15847. then :
  15848. case " $AM_CXXFLAGS " in #(
  15849. *" $flag "*) :
  15850. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15851. (: AM_CXXFLAGS already contains $flag) 2>&5
  15852. ac_status=$?
  15853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15854. test $ac_status = 0; } ;; #(
  15855. *) :
  15856. as_fn_append AM_CXXFLAGS " $flag"
  15857. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15858. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15859. ac_status=$?
  15860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15861. test $ac_status = 0; }
  15862. ;;
  15863. esac
  15864. else $as_nop
  15865. AM_CXXFLAGS=$flag
  15866. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15867. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15868. ac_status=$?
  15869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15870. test $ac_status = 0; }
  15871. fi
  15872. else $as_nop
  15873. :
  15874. fi
  15875. done
  15876. for flag in -fno-strict-aliasing; do
  15877. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15879. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15880. if eval test \${$as_CACHEVAR+y}
  15881. then :
  15882. printf %s "(cached) " >&6
  15883. else $as_nop
  15884. ax_check_save_flags=$CXXFLAGS
  15885. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15887. /* end confdefs.h. */
  15888. int main(void) { return 0; }
  15889. _ACEOF
  15890. if ac_fn_cxx_try_compile "$LINENO"
  15891. then :
  15892. eval "$as_CACHEVAR=yes"
  15893. else $as_nop
  15894. eval "$as_CACHEVAR=no"
  15895. fi
  15896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15897. CXXFLAGS=$ax_check_save_flags
  15898. fi
  15899. eval ac_res=\$$as_CACHEVAR
  15900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15901. printf "%s\n" "$ac_res" >&6; }
  15902. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15903. then :
  15904. if test ${AM_CXXFLAGS+y}
  15905. then :
  15906. case " $AM_CXXFLAGS " in #(
  15907. *" $flag "*) :
  15908. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15909. (: AM_CXXFLAGS already contains $flag) 2>&5
  15910. ac_status=$?
  15911. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15912. test $ac_status = 0; } ;; #(
  15913. *) :
  15914. as_fn_append AM_CXXFLAGS " $flag"
  15915. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15916. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15917. ac_status=$?
  15918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15919. test $ac_status = 0; }
  15920. ;;
  15921. esac
  15922. else $as_nop
  15923. AM_CXXFLAGS=$flag
  15924. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15925. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15926. ac_status=$?
  15927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15928. test $ac_status = 0; }
  15929. fi
  15930. else $as_nop
  15931. :
  15932. fi
  15933. done
  15934. fi
  15935. ac_ext=c
  15936. ac_cpp='$CPP $CPPFLAGS'
  15937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15940. if test "$GCC" = yes
  15941. then :
  15942. for flag in -fno-strict-aliasing; do
  15943. as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  15944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  15945. printf %s "checking whether the linker accepts $flag... " >&6; }
  15946. if eval test \${$as_CACHEVAR+y}
  15947. then :
  15948. printf %s "(cached) " >&6
  15949. else $as_nop
  15950. ax_check_save_flags=$LDFLAGS
  15951. LDFLAGS="$LDFLAGS $flag"
  15952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15953. /* end confdefs.h. */
  15954. int
  15955. main (void)
  15956. {
  15957. ;
  15958. return 0;
  15959. }
  15960. _ACEOF
  15961. if ac_fn_c_try_link "$LINENO"
  15962. then :
  15963. eval "$as_CACHEVAR=yes"
  15964. else $as_nop
  15965. eval "$as_CACHEVAR=no"
  15966. fi
  15967. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15968. conftest$ac_exeext conftest.$ac_ext
  15969. LDFLAGS=$ax_check_save_flags
  15970. fi
  15971. eval ac_res=\$$as_CACHEVAR
  15972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15973. printf "%s\n" "$ac_res" >&6; }
  15974. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15975. then :
  15976. if test ${AM_LDFLAGS+y}
  15977. then :
  15978. case " $AM_LDFLAGS " in #(
  15979. *" $flag "*) :
  15980. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  15981. (: AM_LDFLAGS already contains $flag) 2>&5
  15982. ac_status=$?
  15983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15984. test $ac_status = 0; } ;; #(
  15985. *) :
  15986. as_fn_append AM_LDFLAGS " $flag"
  15987. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  15988. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  15989. ac_status=$?
  15990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15991. test $ac_status = 0; }
  15992. ;;
  15993. esac
  15994. else $as_nop
  15995. AM_LDFLAGS=$flag
  15996. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  15997. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  15998. ac_status=$?
  15999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16000. test $ac_status = 0; }
  16001. fi
  16002. else $as_nop
  16003. :
  16004. fi
  16005. done
  16006. fi
  16007. case "$LD" in #(
  16008. *clang*) :
  16009. case "${host_os}" in #(
  16010. *linux*) :
  16011. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  16012. *) :
  16013. ;;
  16014. esac ;; #(
  16015. *) :
  16016. ;;
  16017. esac
  16018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  16019. printf %s "checking whether compiler supports visibility... " >&6; }
  16020. if test ${expatcfg_cv_compiler_supports_visibility+y}
  16021. then :
  16022. printf %s "(cached) " >&6
  16023. else $as_nop
  16024. expatcfg_cv_compiler_supports_visibility=no
  16025. OLDFLAGS=$CFLAGS
  16026. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  16027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16028. /* end confdefs.h. */
  16029. void __attribute__((visibility("default"))) foo(void);
  16030. void foo(void) {}
  16031. _ACEOF
  16032. if ac_fn_c_try_compile "$LINENO"
  16033. then :
  16034. expatcfg_cv_compiler_supports_visibility=yes
  16035. fi
  16036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16037. CFLAGS=$OLDFLAGS
  16038. fi
  16039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  16040. printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
  16041. if test "$expatcfg_cv_compiler_supports_visibility" = yes
  16042. then :
  16043. if test ${AM_CFLAGS+y}
  16044. then :
  16045. case " $AM_CFLAGS " in #(
  16046. *" -fvisibility=hidden "*) :
  16047. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  16048. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  16049. ac_status=$?
  16050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16051. test $ac_status = 0; } ;; #(
  16052. *) :
  16053. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  16054. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  16055. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  16056. ac_status=$?
  16057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16058. test $ac_status = 0; }
  16059. ;;
  16060. esac
  16061. else $as_nop
  16062. AM_CFLAGS=-fvisibility=hidden
  16063. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  16064. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  16065. ac_status=$?
  16066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16067. test $ac_status = 0; }
  16068. fi
  16069. if test "${enable_shared}" = yes
  16070. then :
  16071. if test ${AM_CPPFLAGS+y}
  16072. then :
  16073. case " $AM_CPPFLAGS " in #(
  16074. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  16075. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  16076. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  16077. ac_status=$?
  16078. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16079. test $ac_status = 0; } ;; #(
  16080. *) :
  16081. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  16082. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  16083. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  16084. ac_status=$?
  16085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16086. test $ac_status = 0; }
  16087. ;;
  16088. esac
  16089. else $as_nop
  16090. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  16091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  16092. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  16093. ac_status=$?
  16094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16095. test $ac_status = 0; }
  16096. fi
  16097. fi
  16098. fi
  16099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16100. printf %s "checking whether byte ordering is bigendian... " >&6; }
  16101. if test ${ac_cv_c_bigendian+y}
  16102. then :
  16103. printf %s "(cached) " >&6
  16104. else $as_nop
  16105. ac_cv_c_bigendian=unknown
  16106. # See if we're dealing with a universal compiler.
  16107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16108. /* end confdefs.h. */
  16109. #ifndef __APPLE_CC__
  16110. not a universal capable compiler
  16111. #endif
  16112. typedef int dummy;
  16113. _ACEOF
  16114. if ac_fn_c_try_compile "$LINENO"
  16115. then :
  16116. # Check for potential -arch flags. It is not universal unless
  16117. # there are at least two -arch flags with different values.
  16118. ac_arch=
  16119. ac_prev=
  16120. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16121. if test -n "$ac_prev"; then
  16122. case $ac_word in
  16123. i?86 | x86_64 | ppc | ppc64)
  16124. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16125. ac_arch=$ac_word
  16126. else
  16127. ac_cv_c_bigendian=universal
  16128. break
  16129. fi
  16130. ;;
  16131. esac
  16132. ac_prev=
  16133. elif test "x$ac_word" = "x-arch"; then
  16134. ac_prev=arch
  16135. fi
  16136. done
  16137. fi
  16138. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16139. if test $ac_cv_c_bigendian = unknown; then
  16140. # See if sys/param.h defines the BYTE_ORDER macro.
  16141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16142. /* end confdefs.h. */
  16143. #include <sys/types.h>
  16144. #include <sys/param.h>
  16145. int
  16146. main (void)
  16147. {
  16148. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16149. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16150. && LITTLE_ENDIAN)
  16151. bogus endian macros
  16152. #endif
  16153. ;
  16154. return 0;
  16155. }
  16156. _ACEOF
  16157. if ac_fn_c_try_compile "$LINENO"
  16158. then :
  16159. # It does; now see whether it defined to BIG_ENDIAN or not.
  16160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16161. /* end confdefs.h. */
  16162. #include <sys/types.h>
  16163. #include <sys/param.h>
  16164. int
  16165. main (void)
  16166. {
  16167. #if BYTE_ORDER != BIG_ENDIAN
  16168. not big endian
  16169. #endif
  16170. ;
  16171. return 0;
  16172. }
  16173. _ACEOF
  16174. if ac_fn_c_try_compile "$LINENO"
  16175. then :
  16176. ac_cv_c_bigendian=yes
  16177. else $as_nop
  16178. ac_cv_c_bigendian=no
  16179. fi
  16180. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16181. fi
  16182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16183. fi
  16184. if test $ac_cv_c_bigendian = unknown; then
  16185. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16187. /* end confdefs.h. */
  16188. #include <limits.h>
  16189. int
  16190. main (void)
  16191. {
  16192. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16193. bogus endian macros
  16194. #endif
  16195. ;
  16196. return 0;
  16197. }
  16198. _ACEOF
  16199. if ac_fn_c_try_compile "$LINENO"
  16200. then :
  16201. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16203. /* end confdefs.h. */
  16204. #include <limits.h>
  16205. int
  16206. main (void)
  16207. {
  16208. #ifndef _BIG_ENDIAN
  16209. not big endian
  16210. #endif
  16211. ;
  16212. return 0;
  16213. }
  16214. _ACEOF
  16215. if ac_fn_c_try_compile "$LINENO"
  16216. then :
  16217. ac_cv_c_bigendian=yes
  16218. else $as_nop
  16219. ac_cv_c_bigendian=no
  16220. fi
  16221. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16222. fi
  16223. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16224. fi
  16225. if test $ac_cv_c_bigendian = unknown; then
  16226. # Compile a test program.
  16227. if test "$cross_compiling" = yes
  16228. then :
  16229. # Try to guess by grepping values from an object file.
  16230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16231. /* end confdefs.h. */
  16232. unsigned short int ascii_mm[] =
  16233. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16234. unsigned short int ascii_ii[] =
  16235. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16236. int use_ascii (int i) {
  16237. return ascii_mm[i] + ascii_ii[i];
  16238. }
  16239. unsigned short int ebcdic_ii[] =
  16240. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16241. unsigned short int ebcdic_mm[] =
  16242. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16243. int use_ebcdic (int i) {
  16244. return ebcdic_mm[i] + ebcdic_ii[i];
  16245. }
  16246. int
  16247. main (int argc, char **argv)
  16248. {
  16249. /* Intimidate the compiler so that it does not
  16250. optimize the arrays away. */
  16251. char *p = argv[0];
  16252. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  16253. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  16254. return use_ascii (argc) == use_ebcdic (*p);
  16255. }
  16256. _ACEOF
  16257. if ac_fn_c_try_link "$LINENO"
  16258. then :
  16259. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  16260. ac_cv_c_bigendian=yes
  16261. fi
  16262. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  16263. if test "$ac_cv_c_bigendian" = unknown; then
  16264. ac_cv_c_bigendian=no
  16265. else
  16266. # finding both strings is unlikely to happen, but who knows?
  16267. ac_cv_c_bigendian=unknown
  16268. fi
  16269. fi
  16270. fi
  16271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16272. conftest$ac_exeext conftest.$ac_ext
  16273. else $as_nop
  16274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h. */
  16276. $ac_includes_default
  16277. int
  16278. main (void)
  16279. {
  16280. /* Are we little or big endian? From Harbison&Steele. */
  16281. union
  16282. {
  16283. long int l;
  16284. char c[sizeof (long int)];
  16285. } u;
  16286. u.l = 1;
  16287. return u.c[sizeof (long int) - 1] == 1;
  16288. ;
  16289. return 0;
  16290. }
  16291. _ACEOF
  16292. if ac_fn_c_try_run "$LINENO"
  16293. then :
  16294. ac_cv_c_bigendian=no
  16295. else $as_nop
  16296. ac_cv_c_bigendian=yes
  16297. fi
  16298. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16299. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16300. fi
  16301. fi
  16302. fi
  16303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16304. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  16305. case $ac_cv_c_bigendian in #(
  16306. yes)
  16307. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16308. BYTEORDER=4321;; #(
  16309. no)
  16310. BYTEORDER=1234 ;; #(
  16311. universal)
  16312. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16313. ;; #(
  16314. *)
  16315. as_fn_error $? "unknown endianness
  16316. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16317. esac
  16318. printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
  16319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16320. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16321. if test ${ac_cv_c_const+y}
  16322. then :
  16323. printf %s "(cached) " >&6
  16324. else $as_nop
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. int
  16328. main (void)
  16329. {
  16330. #ifndef __cplusplus
  16331. /* Ultrix mips cc rejects this sort of thing. */
  16332. typedef int charset[2];
  16333. const charset cs = { 0, 0 };
  16334. /* SunOS 4.1.1 cc rejects this. */
  16335. char const *const *pcpcc;
  16336. char **ppc;
  16337. /* NEC SVR4.0.2 mips cc rejects this. */
  16338. struct point {int x, y;};
  16339. static struct point const zero = {0,0};
  16340. /* IBM XL C 1.02.0.0 rejects this.
  16341. It does not let you subtract one const X* pointer from another in
  16342. an arm of an if-expression whose if-part is not a constant
  16343. expression */
  16344. const char *g = "string";
  16345. pcpcc = &g + (g ? g-g : 0);
  16346. /* HPUX 7.0 cc rejects these. */
  16347. ++pcpcc;
  16348. ppc = (char**) pcpcc;
  16349. pcpcc = (char const *const *) ppc;
  16350. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16351. char tx;
  16352. char *t = &tx;
  16353. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16354. *t++ = 0;
  16355. if (s) return 0;
  16356. }
  16357. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16358. int x[] = {25, 17};
  16359. const int *foo = &x[0];
  16360. ++foo;
  16361. }
  16362. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16363. typedef const int *iptr;
  16364. iptr p = 0;
  16365. ++p;
  16366. }
  16367. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16368. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16369. struct s { int j; const int *ap[3]; } bx;
  16370. struct s *b = &bx; b->j = 5;
  16371. }
  16372. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16373. const int foo = 10;
  16374. if (!foo) return 0;
  16375. }
  16376. return !cs[0] && !zero.x;
  16377. #endif
  16378. ;
  16379. return 0;
  16380. }
  16381. _ACEOF
  16382. if ac_fn_c_try_compile "$LINENO"
  16383. then :
  16384. ac_cv_c_const=yes
  16385. else $as_nop
  16386. ac_cv_c_const=no
  16387. fi
  16388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16389. fi
  16390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16391. printf "%s\n" "$ac_cv_c_const" >&6; }
  16392. if test $ac_cv_c_const = no; then
  16393. printf "%s\n" "#define const /**/" >>confdefs.h
  16394. fi
  16395. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16396. if test "x$ac_cv_type_size_t" = xyes
  16397. then :
  16398. else $as_nop
  16399. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16400. fi
  16401. # Check whether --with-xmlwf was given.
  16402. if test ${with_xmlwf+y}
  16403. then :
  16404. withval=$with_xmlwf;
  16405. else $as_nop
  16406. with_xmlwf=yes
  16407. fi
  16408. if test x${with_xmlwf} = xyes; then
  16409. WITH_XMLWF_TRUE=
  16410. WITH_XMLWF_FALSE='#'
  16411. else
  16412. WITH_XMLWF_TRUE='#'
  16413. WITH_XMLWF_FALSE=
  16414. fi
  16415. # Check whether --with-examples was given.
  16416. if test ${with_examples+y}
  16417. then :
  16418. withval=$with_examples;
  16419. else $as_nop
  16420. with_examples=yes
  16421. fi
  16422. if test x${with_examples} = xyes; then
  16423. WITH_EXAMPLES_TRUE=
  16424. WITH_EXAMPLES_FALSE='#'
  16425. else
  16426. WITH_EXAMPLES_TRUE='#'
  16427. WITH_EXAMPLES_FALSE=
  16428. fi
  16429. # Check whether --with-tests was given.
  16430. if test ${with_tests+y}
  16431. then :
  16432. withval=$with_tests;
  16433. else $as_nop
  16434. with_tests=yes
  16435. fi
  16436. if test x${with_tests} = xyes; then
  16437. WITH_TESTS_TRUE=
  16438. WITH_TESTS_FALSE='#'
  16439. else
  16440. WITH_TESTS_TRUE='#'
  16441. WITH_TESTS_FALSE=
  16442. fi
  16443. if test x${with_tests} = xyes
  16444. then :
  16445. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  16446. ac_ext=cpp
  16447. ac_cpp='$CXXCPP $CPPFLAGS'
  16448. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16449. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16450. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16451. ac_success=no
  16452. if test x$ac_success = xno; then
  16453. for alternative in ${ax_cxx_compile_alternatives}; do
  16454. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
  16455. if test x"$switch" = xMSVC; then
  16456. switch=-std:c++${alternative}
  16457. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | $as_tr_sh`
  16458. else
  16459. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  16460. fi
  16461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  16462. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  16463. if eval test \${$cachevar+y}
  16464. then :
  16465. printf %s "(cached) " >&6
  16466. else $as_nop
  16467. ac_save_CXX="$CXX"
  16468. CXX="$CXX $switch"
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. // If the compiler admits that it is not ready for C++11, why torture it?
  16472. // Hopefully, this will speed up the test.
  16473. #ifndef __cplusplus
  16474. #error "This is not a C++ compiler"
  16475. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  16476. // only set it correctly if /Zc:__cplusplus is specified as well as a
  16477. // /std:c++NN switch:
  16478. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  16479. #elif __cplusplus < 201103L && !defined _MSC_VER
  16480. #error "This is not a C++11 compiler"
  16481. #else
  16482. namespace cxx11
  16483. {
  16484. namespace test_static_assert
  16485. {
  16486. template <typename T>
  16487. struct check
  16488. {
  16489. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  16490. };
  16491. }
  16492. namespace test_final_override
  16493. {
  16494. struct Base
  16495. {
  16496. virtual ~Base() {}
  16497. virtual void f() {}
  16498. };
  16499. struct Derived : public Base
  16500. {
  16501. virtual ~Derived() override {}
  16502. virtual void f() override {}
  16503. };
  16504. }
  16505. namespace test_double_right_angle_brackets
  16506. {
  16507. template < typename T >
  16508. struct check {};
  16509. typedef check<void> single_type;
  16510. typedef check<check<void>> double_type;
  16511. typedef check<check<check<void>>> triple_type;
  16512. typedef check<check<check<check<void>>>> quadruple_type;
  16513. }
  16514. namespace test_decltype
  16515. {
  16516. int
  16517. f()
  16518. {
  16519. int a = 1;
  16520. decltype(a) b = 2;
  16521. return a + b;
  16522. }
  16523. }
  16524. namespace test_type_deduction
  16525. {
  16526. template < typename T1, typename T2 >
  16527. struct is_same
  16528. {
  16529. static const bool value = false;
  16530. };
  16531. template < typename T >
  16532. struct is_same<T, T>
  16533. {
  16534. static const bool value = true;
  16535. };
  16536. template < typename T1, typename T2 >
  16537. auto
  16538. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  16539. {
  16540. return a1 + a2;
  16541. }
  16542. int
  16543. test(const int c, volatile int v)
  16544. {
  16545. static_assert(is_same<int, decltype(0)>::value == true, "");
  16546. static_assert(is_same<int, decltype(c)>::value == false, "");
  16547. static_assert(is_same<int, decltype(v)>::value == false, "");
  16548. auto ac = c;
  16549. auto av = v;
  16550. auto sumi = ac + av + 'x';
  16551. auto sumf = ac + av + 1.0;
  16552. static_assert(is_same<int, decltype(ac)>::value == true, "");
  16553. static_assert(is_same<int, decltype(av)>::value == true, "");
  16554. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  16555. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  16556. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  16557. return (sumf > 0.0) ? sumi : add(c, v);
  16558. }
  16559. }
  16560. namespace test_noexcept
  16561. {
  16562. int f() { return 0; }
  16563. int g() noexcept { return 0; }
  16564. static_assert(noexcept(f()) == false, "");
  16565. static_assert(noexcept(g()) == true, "");
  16566. }
  16567. namespace test_constexpr
  16568. {
  16569. template < typename CharT >
  16570. unsigned long constexpr
  16571. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  16572. {
  16573. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  16574. }
  16575. template < typename CharT >
  16576. unsigned long constexpr
  16577. strlen_c(const CharT *const s) noexcept
  16578. {
  16579. return strlen_c_r(s, 0UL);
  16580. }
  16581. static_assert(strlen_c("") == 0UL, "");
  16582. static_assert(strlen_c("1") == 1UL, "");
  16583. static_assert(strlen_c("example") == 7UL, "");
  16584. static_assert(strlen_c("another\0example") == 7UL, "");
  16585. }
  16586. namespace test_rvalue_references
  16587. {
  16588. template < int N >
  16589. struct answer
  16590. {
  16591. static constexpr int value = N;
  16592. };
  16593. answer<1> f(int&) { return answer<1>(); }
  16594. answer<2> f(const int&) { return answer<2>(); }
  16595. answer<3> f(int&&) { return answer<3>(); }
  16596. void
  16597. test()
  16598. {
  16599. int i = 0;
  16600. const int c = 0;
  16601. static_assert(decltype(f(i))::value == 1, "");
  16602. static_assert(decltype(f(c))::value == 2, "");
  16603. static_assert(decltype(f(0))::value == 3, "");
  16604. }
  16605. }
  16606. namespace test_uniform_initialization
  16607. {
  16608. struct test
  16609. {
  16610. static const int zero {};
  16611. static const int one {1};
  16612. };
  16613. static_assert(test::zero == 0, "");
  16614. static_assert(test::one == 1, "");
  16615. }
  16616. namespace test_lambdas
  16617. {
  16618. void
  16619. test1()
  16620. {
  16621. auto lambda1 = [](){};
  16622. auto lambda2 = lambda1;
  16623. lambda1();
  16624. lambda2();
  16625. }
  16626. int
  16627. test2()
  16628. {
  16629. auto a = [](int i, int j){ return i + j; }(1, 2);
  16630. auto b = []() -> int { return '0'; }();
  16631. auto c = [=](){ return a + b; }();
  16632. auto d = [&](){ return c; }();
  16633. auto e = [a, &b](int x) mutable {
  16634. const auto identity = [](int y){ return y; };
  16635. for (auto i = 0; i < a; ++i)
  16636. a += b--;
  16637. return x + identity(a + b);
  16638. }(0);
  16639. return a + b + c + d + e;
  16640. }
  16641. int
  16642. test3()
  16643. {
  16644. const auto nullary = [](){ return 0; };
  16645. const auto unary = [](int x){ return x; };
  16646. using nullary_t = decltype(nullary);
  16647. using unary_t = decltype(unary);
  16648. const auto higher1st = [](nullary_t f){ return f(); };
  16649. const auto higher2nd = [unary](nullary_t f1){
  16650. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  16651. };
  16652. return higher1st(nullary) + higher2nd(nullary)(unary);
  16653. }
  16654. }
  16655. namespace test_variadic_templates
  16656. {
  16657. template <int...>
  16658. struct sum;
  16659. template <int N0, int... N1toN>
  16660. struct sum<N0, N1toN...>
  16661. {
  16662. static constexpr auto value = N0 + sum<N1toN...>::value;
  16663. };
  16664. template <>
  16665. struct sum<>
  16666. {
  16667. static constexpr auto value = 0;
  16668. };
  16669. static_assert(sum<>::value == 0, "");
  16670. static_assert(sum<1>::value == 1, "");
  16671. static_assert(sum<23>::value == 23, "");
  16672. static_assert(sum<1, 2>::value == 3, "");
  16673. static_assert(sum<5, 5, 11>::value == 21, "");
  16674. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  16675. }
  16676. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  16677. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  16678. // because of this.
  16679. namespace test_template_alias_sfinae
  16680. {
  16681. struct foo {};
  16682. template<typename T>
  16683. using member = typename T::member_type;
  16684. template<typename T>
  16685. void func(...) {}
  16686. template<typename T>
  16687. void func(member<T>*) {}
  16688. void test();
  16689. void test() { func<foo>(0); }
  16690. }
  16691. } // namespace cxx11
  16692. #endif // __cplusplus >= 201103L
  16693. _ACEOF
  16694. if ac_fn_cxx_try_compile "$LINENO"
  16695. then :
  16696. eval $cachevar=yes
  16697. else $as_nop
  16698. eval $cachevar=no
  16699. fi
  16700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16701. CXX="$ac_save_CXX"
  16702. fi
  16703. eval ac_res=\$$cachevar
  16704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16705. printf "%s\n" "$ac_res" >&6; }
  16706. if eval test x\$$cachevar = xyes; then
  16707. CXX="$CXX $switch"
  16708. if test -n "$CXXCPP" ; then
  16709. CXXCPP="$CXXCPP $switch"
  16710. fi
  16711. ac_success=yes
  16712. break
  16713. fi
  16714. done
  16715. if test x$ac_success = xyes; then
  16716. break
  16717. fi
  16718. done
  16719. fi
  16720. ac_ext=c
  16721. ac_cpp='$CPP $CPPFLAGS'
  16722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16725. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  16726. if test x$ac_success = xno; then
  16727. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  16728. fi
  16729. fi
  16730. if test x$ac_success = xno; then
  16731. HAVE_CXX11=0
  16732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  16733. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  16734. else
  16735. HAVE_CXX11=1
  16736. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  16737. fi
  16738. fi
  16739. EXPATCFG_ON_MINGW=no
  16740. case "${host_os}" in #(
  16741. mingw*) :
  16742. EXPATCFG_ON_MINGW=yes
  16743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  16744. printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
  16745. *) :
  16746. ;;
  16747. esac
  16748. if test x${EXPATCFG_ON_MINGW} = xyes; then
  16749. MINGW_TRUE=
  16750. MINGW_FALSE='#'
  16751. else
  16752. MINGW_TRUE='#'
  16753. MINGW_FALSE=
  16754. fi
  16755. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  16756. UNICODE_TRUE=
  16757. UNICODE_FALSE='#'
  16758. else
  16759. UNICODE_TRUE='#'
  16760. UNICODE_FALSE=
  16761. fi
  16762. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
  16763. _INTERNAL_UNICODE_WCHAR_T_TRUE=
  16764. _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
  16765. else
  16766. _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
  16767. _INTERNAL_UNICODE_WCHAR_T_FALSE=
  16768. fi
  16769. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
  16770. _INTERNAL_MIN_SIZE_TRUE=
  16771. _INTERNAL_MIN_SIZE_FALSE='#'
  16772. else
  16773. _INTERNAL_MIN_SIZE_TRUE='#'
  16774. _INTERNAL_MIN_SIZE_FALSE=
  16775. fi
  16776. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
  16777. _INTERNAL_LARGE_SIZE_TRUE=
  16778. _INTERNAL_LARGE_SIZE_FALSE='#'
  16779. else
  16780. _INTERNAL_LARGE_SIZE_TRUE='#'
  16781. _INTERNAL_LARGE_SIZE_FALSE=
  16782. fi
  16783. LIBM=
  16784. case $host in
  16785. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  16786. # These system don't have libm, or don't need it
  16787. ;;
  16788. *-ncr-sysv4.3*)
  16789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  16790. printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
  16791. if test ${ac_cv_lib_mw__mwvalidcheckl+y}
  16792. then :
  16793. printf %s "(cached) " >&6
  16794. else $as_nop
  16795. ac_check_lib_save_LIBS=$LIBS
  16796. LIBS="-lmw $LIBS"
  16797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16798. /* end confdefs.h. */
  16799. /* Override any GCC internal prototype to avoid an error.
  16800. Use char because int might match the return type of a GCC
  16801. builtin and then its argument prototype would still apply.
  16802. The 'extern "C"' is for builds by C++ compilers;
  16803. although this is not generally supported in C code supporting it here
  16804. has little cost and some practical benefit (sr 110532). */
  16805. #ifdef __cplusplus
  16806. extern "C"
  16807. #endif
  16808. char _mwvalidcheckl (void);
  16809. int
  16810. main (void)
  16811. {
  16812. return _mwvalidcheckl ();
  16813. ;
  16814. return 0;
  16815. }
  16816. _ACEOF
  16817. if ac_fn_c_try_link "$LINENO"
  16818. then :
  16819. ac_cv_lib_mw__mwvalidcheckl=yes
  16820. else $as_nop
  16821. ac_cv_lib_mw__mwvalidcheckl=no
  16822. fi
  16823. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16824. conftest$ac_exeext conftest.$ac_ext
  16825. LIBS=$ac_check_lib_save_LIBS
  16826. fi
  16827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  16828. printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  16829. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
  16830. then :
  16831. LIBM=-lmw
  16832. fi
  16833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16834. printf %s "checking for cos in -lm... " >&6; }
  16835. if test ${ac_cv_lib_m_cos+y}
  16836. then :
  16837. printf %s "(cached) " >&6
  16838. else $as_nop
  16839. ac_check_lib_save_LIBS=$LIBS
  16840. LIBS="-lm $LIBS"
  16841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16842. /* end confdefs.h. */
  16843. /* Override any GCC internal prototype to avoid an error.
  16844. Use char because int might match the return type of a GCC
  16845. builtin and then its argument prototype would still apply.
  16846. The 'extern "C"' is for builds by C++ compilers;
  16847. although this is not generally supported in C code supporting it here
  16848. has little cost and some practical benefit (sr 110532). */
  16849. #ifdef __cplusplus
  16850. extern "C"
  16851. #endif
  16852. char cos (void);
  16853. int
  16854. main (void)
  16855. {
  16856. return cos ();
  16857. ;
  16858. return 0;
  16859. }
  16860. _ACEOF
  16861. if ac_fn_c_try_link "$LINENO"
  16862. then :
  16863. ac_cv_lib_m_cos=yes
  16864. else $as_nop
  16865. ac_cv_lib_m_cos=no
  16866. fi
  16867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16868. conftest$ac_exeext conftest.$ac_ext
  16869. LIBS=$ac_check_lib_save_LIBS
  16870. fi
  16871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16872. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16873. if test "x$ac_cv_lib_m_cos" = xyes
  16874. then :
  16875. LIBM="$LIBM -lm"
  16876. fi
  16877. ;;
  16878. *)
  16879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16880. printf %s "checking for cos in -lm... " >&6; }
  16881. if test ${ac_cv_lib_m_cos+y}
  16882. then :
  16883. printf %s "(cached) " >&6
  16884. else $as_nop
  16885. ac_check_lib_save_LIBS=$LIBS
  16886. LIBS="-lm $LIBS"
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. /* Override any GCC internal prototype to avoid an error.
  16890. Use char because int might match the return type of a GCC
  16891. builtin and then its argument prototype would still apply.
  16892. The 'extern "C"' is for builds by C++ compilers;
  16893. although this is not generally supported in C code supporting it here
  16894. has little cost and some practical benefit (sr 110532). */
  16895. #ifdef __cplusplus
  16896. extern "C"
  16897. #endif
  16898. char cos (void);
  16899. int
  16900. main (void)
  16901. {
  16902. return cos ();
  16903. ;
  16904. return 0;
  16905. }
  16906. _ACEOF
  16907. if ac_fn_c_try_link "$LINENO"
  16908. then :
  16909. ac_cv_lib_m_cos=yes
  16910. else $as_nop
  16911. ac_cv_lib_m_cos=no
  16912. fi
  16913. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16914. conftest$ac_exeext conftest.$ac_ext
  16915. LIBS=$ac_check_lib_save_LIBS
  16916. fi
  16917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16918. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16919. if test "x$ac_cv_lib_m_cos" = xyes
  16920. then :
  16921. LIBM=-lm
  16922. fi
  16923. ;;
  16924. esac
  16925. # Check whether --with-libbsd was given.
  16926. if test ${with_libbsd+y}
  16927. then :
  16928. withval=$with_libbsd;
  16929. else $as_nop
  16930. with_libbsd=no
  16931. fi
  16932. if test "x${with_libbsd}" != xno
  16933. then :
  16934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  16935. printf %s "checking for arc4random_buf in -lbsd... " >&6; }
  16936. if test ${ac_cv_lib_bsd_arc4random_buf+y}
  16937. then :
  16938. printf %s "(cached) " >&6
  16939. else $as_nop
  16940. ac_check_lib_save_LIBS=$LIBS
  16941. LIBS="-lbsd $LIBS"
  16942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16943. /* end confdefs.h. */
  16944. /* Override any GCC internal prototype to avoid an error.
  16945. Use char because int might match the return type of a GCC
  16946. builtin and then its argument prototype would still apply.
  16947. The 'extern "C"' is for builds by C++ compilers;
  16948. although this is not generally supported in C code supporting it here
  16949. has little cost and some practical benefit (sr 110532). */
  16950. #ifdef __cplusplus
  16951. extern "C"
  16952. #endif
  16953. char arc4random_buf (void);
  16954. int
  16955. main (void)
  16956. {
  16957. return arc4random_buf ();
  16958. ;
  16959. return 0;
  16960. }
  16961. _ACEOF
  16962. if ac_fn_c_try_link "$LINENO"
  16963. then :
  16964. ac_cv_lib_bsd_arc4random_buf=yes
  16965. else $as_nop
  16966. ac_cv_lib_bsd_arc4random_buf=no
  16967. fi
  16968. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16969. conftest$ac_exeext conftest.$ac_ext
  16970. LIBS=$ac_check_lib_save_LIBS
  16971. fi
  16972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  16973. printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  16974. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  16977. LIBS="-lbsd $LIBS"
  16978. else $as_nop
  16979. if test "x${with_libbsd}" = xyes
  16980. then :
  16981. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  16982. fi
  16983. fi
  16984. fi
  16985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD, libbsd or glibc 2.36+)" >&5
  16986. printf %s "checking for arc4random_buf (BSD, libbsd or glibc 2.36+)... " >&6; }
  16987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16988. /* end confdefs.h. */
  16989. #if defined(HAVE_LIBBSD)
  16990. # include <bsd/stdlib.h>
  16991. #else
  16992. # include <stdlib.h> /* for arc4random_buf on BSD */
  16993. #endif
  16994. int main() {
  16995. char dummy[123]; // double brackets for m4
  16996. arc4random_buf(dummy, 0U);
  16997. return 0;
  16998. }
  16999. _ACEOF
  17000. if ac_fn_c_try_link "$LINENO"
  17001. then :
  17002. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  17003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17004. printf "%s\n" "yes" >&6; }
  17005. else $as_nop
  17006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17007. printf "%s\n" "no" >&6; }
  17008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)" >&5
  17009. printf %s "checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)... " >&6; }
  17010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17011. /* end confdefs.h. */
  17012. #if defined(HAVE_LIBBSD)
  17013. # include <bsd/stdlib.h>
  17014. #else
  17015. # include <stdlib.h>
  17016. #endif
  17017. int main() {
  17018. arc4random();
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_link "$LINENO"
  17023. then :
  17024. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  17025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17026. printf "%s\n" "yes" >&6; }
  17027. else $as_nop
  17028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17029. printf "%s\n" "no" >&6; }
  17030. fi
  17031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17032. conftest$ac_exeext conftest.$ac_ext
  17033. fi
  17034. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17035. conftest$ac_exeext conftest.$ac_ext
  17036. # Check whether --with-getrandom was given.
  17037. if test ${with_getrandom+y}
  17038. then :
  17039. withval=$with_getrandom;
  17040. else $as_nop
  17041. with_getrandom=check
  17042. fi
  17043. if test "x$with_getrandom" != xno
  17044. then :
  17045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  17046. printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  17047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17048. /* end confdefs.h. */
  17049. #include <stdlib.h> /* for NULL */
  17050. #include <sys/random.h>
  17051. int main() {
  17052. return getrandom(NULL, 0U, 0U);
  17053. }
  17054. _ACEOF
  17055. if ac_fn_c_try_link "$LINENO"
  17056. then :
  17057. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  17058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17059. printf "%s\n" "yes" >&6; }
  17060. else $as_nop
  17061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17062. printf "%s\n" "no" >&6; }
  17063. if test "x$with_getrandom" = xyes
  17064. then :
  17065. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  17066. fi
  17067. fi
  17068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17069. conftest$ac_exeext conftest.$ac_ext
  17070. fi
  17071. # Check whether --with-sys_getrandom was given.
  17072. if test ${with_sys_getrandom+y}
  17073. then :
  17074. withval=$with_sys_getrandom;
  17075. else $as_nop
  17076. with_sys_getrandom=check
  17077. fi
  17078. if test "x$with_sys_getrandom" != xno
  17079. then :
  17080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  17081. printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  17082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17083. /* end confdefs.h. */
  17084. #include <stdlib.h> /* for NULL */
  17085. #include <unistd.h> /* for syscall */
  17086. #include <sys/syscall.h> /* for SYS_getrandom */
  17087. int main() {
  17088. syscall(SYS_getrandom, NULL, 0, 0);
  17089. return 0;
  17090. }
  17091. _ACEOF
  17092. if ac_fn_c_try_link "$LINENO"
  17093. then :
  17094. printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  17095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17096. printf "%s\n" "yes" >&6; }
  17097. else $as_nop
  17098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17099. printf "%s\n" "no" >&6; }
  17100. if test "x$with_sys_getrandom" = xyes
  17101. then :
  17102. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  17103. fi
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. fi
  17108. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  17109. if test "x$ac_cv_header_fcntl_h" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  17114. if test "x$ac_cv_header_unistd_h" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  17119. if test "x$ac_cv_type_off_t" = xyes
  17120. then :
  17121. else $as_nop
  17122. printf "%s\n" "#define off_t long int" >>confdefs.h
  17123. fi
  17124. ac_func=
  17125. for ac_item in $ac_func_c_list
  17126. do
  17127. if test $ac_func; then
  17128. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  17129. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  17130. echo "#define $ac_item 1" >> confdefs.h
  17131. fi
  17132. ac_func=
  17133. else
  17134. ac_func=$ac_item
  17135. fi
  17136. done
  17137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17138. printf %s "checking for working mmap... " >&6; }
  17139. if test ${ac_cv_func_mmap_fixed_mapped+y}
  17140. then :
  17141. printf %s "(cached) " >&6
  17142. else $as_nop
  17143. if test "$cross_compiling" = yes
  17144. then :
  17145. case "$host_os" in # ((
  17146. # Guess yes on platforms where we know the result.
  17147. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  17148. # If we don't know, assume the worst.
  17149. *) ac_cv_func_mmap_fixed_mapped=no ;;
  17150. esac
  17151. else $as_nop
  17152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17153. /* end confdefs.h. */
  17154. $ac_includes_default
  17155. /* malloc might have been renamed as rpl_malloc. */
  17156. #undef malloc
  17157. /* Thanks to Mike Haertel and Jim Avera for this test.
  17158. Here is a matrix of mmap possibilities:
  17159. mmap private not fixed
  17160. mmap private fixed at somewhere currently unmapped
  17161. mmap private fixed at somewhere already mapped
  17162. mmap shared not fixed
  17163. mmap shared fixed at somewhere currently unmapped
  17164. mmap shared fixed at somewhere already mapped
  17165. For private mappings, we should verify that changes cannot be read()
  17166. back from the file, nor mmap's back from the file at a different
  17167. address. (There have been systems where private was not correctly
  17168. implemented like the infamous i386 svr4.0, and systems where the
  17169. VM page cache was not coherent with the file system buffer cache
  17170. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17171. For shared mappings, we should conversely verify that changes get
  17172. propagated back to all the places they're supposed to be.
  17173. Grep wants private fixed already mapped.
  17174. The main things grep needs to know about mmap are:
  17175. * does it exist and is it safe to write into the mmap'd area
  17176. * how to use it (BSD variants) */
  17177. #include <fcntl.h>
  17178. #include <sys/mman.h>
  17179. /* This mess was copied from the GNU getpagesize.h. */
  17180. #ifndef HAVE_GETPAGESIZE
  17181. # ifdef _SC_PAGESIZE
  17182. # define getpagesize() sysconf(_SC_PAGESIZE)
  17183. # else /* no _SC_PAGESIZE */
  17184. # ifdef HAVE_SYS_PARAM_H
  17185. # include <sys/param.h>
  17186. # ifdef EXEC_PAGESIZE
  17187. # define getpagesize() EXEC_PAGESIZE
  17188. # else /* no EXEC_PAGESIZE */
  17189. # ifdef NBPG
  17190. # define getpagesize() NBPG * CLSIZE
  17191. # ifndef CLSIZE
  17192. # define CLSIZE 1
  17193. # endif /* no CLSIZE */
  17194. # else /* no NBPG */
  17195. # ifdef NBPC
  17196. # define getpagesize() NBPC
  17197. # else /* no NBPC */
  17198. # ifdef PAGESIZE
  17199. # define getpagesize() PAGESIZE
  17200. # endif /* PAGESIZE */
  17201. # endif /* no NBPC */
  17202. # endif /* no NBPG */
  17203. # endif /* no EXEC_PAGESIZE */
  17204. # else /* no HAVE_SYS_PARAM_H */
  17205. # define getpagesize() 8192 /* punt totally */
  17206. # endif /* no HAVE_SYS_PARAM_H */
  17207. # endif /* no _SC_PAGESIZE */
  17208. #endif /* no HAVE_GETPAGESIZE */
  17209. int
  17210. main (void)
  17211. {
  17212. char *data, *data2, *data3;
  17213. const char *cdata2;
  17214. int i, pagesize;
  17215. int fd, fd2;
  17216. pagesize = getpagesize ();
  17217. /* First, make a file with some known garbage in it. */
  17218. data = (char *) malloc (pagesize);
  17219. if (!data)
  17220. return 1;
  17221. for (i = 0; i < pagesize; ++i)
  17222. *(data + i) = rand ();
  17223. umask (0);
  17224. fd = creat ("conftest.mmap", 0600);
  17225. if (fd < 0)
  17226. return 2;
  17227. if (write (fd, data, pagesize) != pagesize)
  17228. return 3;
  17229. close (fd);
  17230. /* Next, check that the tail of a page is zero-filled. File must have
  17231. non-zero length, otherwise we risk SIGBUS for entire page. */
  17232. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17233. if (fd2 < 0)
  17234. return 4;
  17235. cdata2 = "";
  17236. if (write (fd2, cdata2, 1) != 1)
  17237. return 5;
  17238. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17239. if (data2 == MAP_FAILED)
  17240. return 6;
  17241. for (i = 0; i < pagesize; ++i)
  17242. if (*(data2 + i))
  17243. return 7;
  17244. close (fd2);
  17245. if (munmap (data2, pagesize))
  17246. return 8;
  17247. /* Next, try to mmap the file at a fixed address which already has
  17248. something else allocated at it. If we can, also make sure that
  17249. we see the same garbage. */
  17250. fd = open ("conftest.mmap", O_RDWR);
  17251. if (fd < 0)
  17252. return 9;
  17253. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17254. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17255. return 10;
  17256. for (i = 0; i < pagesize; ++i)
  17257. if (*(data + i) != *(data2 + i))
  17258. return 11;
  17259. /* Finally, make sure that changes to the mapped area do not
  17260. percolate back to the file as seen by read(). (This is a bug on
  17261. some variants of i386 svr4.0.) */
  17262. for (i = 0; i < pagesize; ++i)
  17263. *(data2 + i) = *(data2 + i) + 1;
  17264. data3 = (char *) malloc (pagesize);
  17265. if (!data3)
  17266. return 12;
  17267. if (read (fd, data3, pagesize) != pagesize)
  17268. return 13;
  17269. for (i = 0; i < pagesize; ++i)
  17270. if (*(data + i) != *(data3 + i))
  17271. return 14;
  17272. close (fd);
  17273. free (data);
  17274. free (data3);
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_run "$LINENO"
  17279. then :
  17280. ac_cv_func_mmap_fixed_mapped=yes
  17281. else $as_nop
  17282. ac_cv_func_mmap_fixed_mapped=no
  17283. fi
  17284. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17285. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17286. fi
  17287. fi
  17288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17289. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17290. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17291. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  17292. fi
  17293. rm -f conftest.mmap conftest.txt
  17294. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
  17295. then :
  17296. FILEMAP=unixfilemap
  17297. else $as_nop
  17298. FILEMAP=readfilemap
  17299. fi
  17300. printf "%s\n" "#define XML_NS 1" >>confdefs.h
  17301. printf "%s\n" "#define XML_GE 1" >>confdefs.h
  17302. printf "%s\n" "#define XML_DTD 1" >>confdefs.h
  17303. printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
  17304. # Check whether --enable-xml-attr-info was given.
  17305. if test ${enable_xml_attr_info+y}
  17306. then :
  17307. enableval=$enable_xml_attr_info;
  17308. else $as_nop
  17309. enable_xml_attr_info=no
  17310. fi
  17311. if test "x${enable_xml_attr_info}" = "xyes"
  17312. then :
  17313. printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
  17314. fi
  17315. # Check whether --enable-xml-context was given.
  17316. if test ${enable_xml_context+y}
  17317. then :
  17318. enableval=$enable_xml_context; enable_xml_context=${enableval}
  17319. fi
  17320. if test "x${enable_xml_context}" != "xno"
  17321. then :
  17322. if test "x${enable_xml_context}" = "xyes" \
  17323. -o "x${enable_xml_context}" = "x"
  17324. then :
  17325. enable_xml_context=1024
  17326. fi
  17327. else $as_nop
  17328. enable_xml_context=0
  17329. fi
  17330. printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
  17331. # Check whether --with-docbook was given.
  17332. if test ${with_docbook+y}
  17333. then :
  17334. withval=$with_docbook;
  17335. else $as_nop
  17336. with_docbook=check
  17337. fi
  17338. if test "x$with_docbook" != xno
  17339. then :
  17340. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  17341. do
  17342. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17343. set dummy $ac_prog; ac_word=$2
  17344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17345. printf %s "checking for $ac_word... " >&6; }
  17346. if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
  17347. then :
  17348. printf %s "(cached) " >&6
  17349. else $as_nop
  17350. if test -n "$DOCBOOK_TO_MAN"; then
  17351. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  17352. else
  17353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17354. for as_dir in $PATH
  17355. do
  17356. IFS=$as_save_IFS
  17357. case $as_dir in #(((
  17358. '') as_dir=./ ;;
  17359. */) ;;
  17360. *) as_dir=$as_dir/ ;;
  17361. esac
  17362. for ac_exec_ext in '' $ac_executable_extensions; do
  17363. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17364. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  17365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17366. break 2
  17367. fi
  17368. done
  17369. done
  17370. IFS=$as_save_IFS
  17371. fi
  17372. fi
  17373. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  17374. if test -n "$DOCBOOK_TO_MAN"; then
  17375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  17376. printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
  17377. else
  17378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17379. printf "%s\n" "no" >&6; }
  17380. fi
  17381. test -n "$DOCBOOK_TO_MAN" && break
  17382. done
  17383. fi
  17384. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
  17385. then :
  17386. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  17387. fi
  17388. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
  17389. then :
  17390. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
  17391. then :
  17392. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  17393. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  17394. configure to command docbook2x-man of docbook2X.
  17395. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  17396. You can also configure using --without-docbook if you can do without a man
  17397. page for xmlwf." "$LINENO" 5
  17398. fi
  17399. fi
  17400. if test -f "${srcdir}"/doc/xmlwf.1
  17401. then :
  17402. if true; then
  17403. WITH_MANPAGE_TRUE=
  17404. WITH_MANPAGE_FALSE='#'
  17405. else
  17406. WITH_MANPAGE_TRUE='#'
  17407. WITH_MANPAGE_FALSE=
  17408. fi
  17409. if test "x$with_docbook" = xno -o "x${DOCBOOK_TO_MAN}" = x
  17410. then :
  17411. if true; then
  17412. WITH_PREBUILT_MANPAGE_TRUE=
  17413. WITH_PREBUILT_MANPAGE_FALSE='#'
  17414. else
  17415. WITH_PREBUILT_MANPAGE_TRUE='#'
  17416. WITH_PREBUILT_MANPAGE_FALSE=
  17417. fi
  17418. if false; then
  17419. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17420. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17421. else
  17422. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17423. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17424. fi
  17425. else $as_nop
  17426. if false; then
  17427. WITH_PREBUILT_MANPAGE_TRUE=
  17428. WITH_PREBUILT_MANPAGE_FALSE='#'
  17429. else
  17430. WITH_PREBUILT_MANPAGE_TRUE='#'
  17431. WITH_PREBUILT_MANPAGE_FALSE=
  17432. fi
  17433. if true; then
  17434. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17435. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17436. else
  17437. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17438. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17439. fi
  17440. fi
  17441. else $as_nop
  17442. if test "x$with_docbook" != xno -a "x${DOCBOOK_TO_MAN}" != x
  17443. then :
  17444. if true; then
  17445. WITH_MANPAGE_TRUE=
  17446. WITH_MANPAGE_FALSE='#'
  17447. else
  17448. WITH_MANPAGE_TRUE='#'
  17449. WITH_MANPAGE_FALSE=
  17450. fi
  17451. if true; then
  17452. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17453. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17454. else
  17455. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17456. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17457. fi
  17458. else $as_nop
  17459. if false; then
  17460. WITH_MANPAGE_TRUE=
  17461. WITH_MANPAGE_FALSE='#'
  17462. else
  17463. WITH_MANPAGE_TRUE='#'
  17464. WITH_MANPAGE_FALSE=
  17465. fi
  17466. if false; then
  17467. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17468. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17469. else
  17470. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17471. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17472. fi
  17473. fi
  17474. if false; then
  17475. WITH_PREBUILT_MANPAGE_TRUE=
  17476. WITH_PREBUILT_MANPAGE_FALSE='#'
  17477. else
  17478. WITH_PREBUILT_MANPAGE_TRUE='#'
  17479. WITH_PREBUILT_MANPAGE_FALSE=
  17480. fi
  17481. fi
  17482. if test "x${enable_xml_attr_info}" = xyes
  17483. then :
  17484. EXPAT_ATTR_INFO=ON
  17485. else $as_nop
  17486. EXPAT_ATTR_INFO=OFF
  17487. fi
  17488. EXPAT_DTD=ON
  17489. if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
  17490. then :
  17491. EXPAT_LARGE_SIZE=ON
  17492. else $as_nop
  17493. EXPAT_LARGE_SIZE=OFF
  17494. fi
  17495. if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
  17496. then :
  17497. EXPAT_MIN_SIZE=ON
  17498. else $as_nop
  17499. EXPAT_MIN_SIZE=OFF
  17500. fi
  17501. EXPAT_NS=ON
  17502. if test "x${enable_xml_context}" != xno
  17503. then :
  17504. EXPAT_CONTEXT_BYTES=${enable_xml_context}
  17505. else $as_nop
  17506. EXPAT_CONTEXT_BYTES=OFF
  17507. fi
  17508. if test "x${UNICODE_TRUE}" = x
  17509. then :
  17510. if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
  17511. then :
  17512. EXPAT_CHAR_TYPE=wchar_t
  17513. else $as_nop
  17514. EXPAT_CHAR_TYPE=ushort
  17515. fi
  17516. else $as_nop
  17517. EXPAT_CHAR_TYPE=char
  17518. fi
  17519. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  17520. LIBDIR_BASENAME="$(basename "${libdir}")"
  17521. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  17522. SO_MINOR="${LIBAGE}"
  17523. SO_PATCH="${LIBREVISION}"
  17524. # The cast to long int works around a bug in the HP C Compiler
  17525. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17526. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17527. # This bug is HP SR number 8606223364.
  17528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  17529. printf %s "checking size of void *... " >&6; }
  17530. if test ${ac_cv_sizeof_void_p+y}
  17531. then :
  17532. printf %s "(cached) " >&6
  17533. else $as_nop
  17534. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
  17535. then :
  17536. else $as_nop
  17537. if test "$ac_cv_type_void_p" = yes; then
  17538. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17539. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  17540. as_fn_error 77 "cannot compute sizeof (void *)
  17541. See \`config.log' for more details" "$LINENO" 5; }
  17542. else
  17543. ac_cv_sizeof_void_p=0
  17544. fi
  17545. fi
  17546. fi
  17547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  17548. printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
  17549. printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
  17550. # sets ac_cv_sizeof_void_p
  17551. if grep -F -q SIZEOF_VOID_P "${srcdir}"/expat_config.h.in
  17552. then :
  17553. as_fn_error $? "Plain autoreconf/autoheader does not cut it,
  17554. please use ./buildconf.sh or imitate its effect
  17555. through other means, so that file expat_config.h.in
  17556. no longer defines macro SIZEOF_VOID_P, as that would
  17557. break multilib support. Thank you." "$LINENO" 5
  17558. fi
  17559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library name prefix" >&5
  17560. printf %s "checking for shared library name prefix... " >&6; }
  17561. case "${host_os}" in #(
  17562. cygwin*) :
  17563. CMAKE_SHARED_LIBRARY_PREFIX=cyg ;; #(
  17564. *) :
  17565. CMAKE_SHARED_LIBRARY_PREFIX=lib ;;
  17566. esac
  17567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CMAKE_SHARED_LIBRARY_PREFIX}" >&5
  17568. printf "%s\n" "${CMAKE_SHARED_LIBRARY_PREFIX}" >&6; }
  17569. case "${host_os}" in #(
  17570. darwin*) :
  17571. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in ;; #(
  17572. mingw*|cygwin*) :
  17573. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in ;; #(
  17574. *) :
  17575. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in ;;
  17576. esac
  17577. ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat-config-version.cmake cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE} doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
  17578. ac_config_files="$ac_config_files run.sh"
  17579. cat >confcache <<\_ACEOF
  17580. # This file is a shell script that caches the results of configure
  17581. # tests run on this system so they can be shared between configure
  17582. # scripts and configure runs, see configure's option --config-cache.
  17583. # It is not useful on other systems. If it contains results you don't
  17584. # want to keep, you may remove or edit it.
  17585. #
  17586. # config.status only pays attention to the cache file if you give it
  17587. # the --recheck option to rerun configure.
  17588. #
  17589. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17590. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17591. # following values.
  17592. _ACEOF
  17593. # The following way of writing the cache mishandles newlines in values,
  17594. # but we know of no workaround that is simple, portable, and efficient.
  17595. # So, we kill variables containing newlines.
  17596. # Ultrix sh set writes to stderr and can't be redirected directly,
  17597. # and sets the high bit in the cache file unless we assign to the vars.
  17598. (
  17599. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17600. eval ac_val=\$$ac_var
  17601. case $ac_val in #(
  17602. *${as_nl}*)
  17603. case $ac_var in #(
  17604. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17605. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17606. esac
  17607. case $ac_var in #(
  17608. _ | IFS | as_nl) ;; #(
  17609. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17610. *) { eval $ac_var=; unset $ac_var;} ;;
  17611. esac ;;
  17612. esac
  17613. done
  17614. (set) 2>&1 |
  17615. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17616. *${as_nl}ac_space=\ *)
  17617. # `set' does not quote correctly, so add quotes: double-quote
  17618. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17619. sed -n \
  17620. "s/'/'\\\\''/g;
  17621. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17622. ;; #(
  17623. *)
  17624. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17625. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17626. ;;
  17627. esac |
  17628. sort
  17629. ) |
  17630. sed '
  17631. /^ac_cv_env_/b end
  17632. t clear
  17633. :clear
  17634. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  17635. t end
  17636. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17637. :end' >>confcache
  17638. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17639. if test -w "$cache_file"; then
  17640. if test "x$cache_file" != "x/dev/null"; then
  17641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17642. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  17643. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17644. cat confcache >"$cache_file"
  17645. else
  17646. case $cache_file in #(
  17647. */* | ?:*)
  17648. mv -f confcache "$cache_file"$$ &&
  17649. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17650. *)
  17651. mv -f confcache "$cache_file" ;;
  17652. esac
  17653. fi
  17654. fi
  17655. else
  17656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17657. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  17658. fi
  17659. fi
  17660. rm -f confcache
  17661. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17662. # Let make expand exec_prefix.
  17663. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17664. DEFS=-DHAVE_CONFIG_H
  17665. ac_libobjs=
  17666. ac_ltlibobjs=
  17667. U=
  17668. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17669. # 1. Remove the extension, and $U if already installed.
  17670. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17671. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  17672. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17673. # will be set to the directory where LIBOBJS objects are built.
  17674. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17675. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17676. done
  17677. LIBOBJS=$ac_libobjs
  17678. LTLIBOBJS=$ac_ltlibobjs
  17679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17680. printf %s "checking that generated files are newer than configure... " >&6; }
  17681. if test -n "$am_sleep_pid"; then
  17682. # Hide warnings about reused PIDs.
  17683. wait $am_sleep_pid 2>/dev/null
  17684. fi
  17685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17686. printf "%s\n" "done" >&6; }
  17687. if test -n "$EXEEXT"; then
  17688. am__EXEEXT_TRUE=
  17689. am__EXEEXT_FALSE='#'
  17690. else
  17691. am__EXEEXT_TRUE='#'
  17692. am__EXEEXT_FALSE=
  17693. fi
  17694. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17695. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17696. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17697. fi
  17698. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17699. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17700. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17701. fi
  17702. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17703. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17704. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17705. fi
  17706. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17707. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17708. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17709. fi
  17710. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  17711. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  17712. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17713. fi
  17714. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  17715. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  17716. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17717. fi
  17718. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  17719. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  17720. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17721. fi
  17722. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17723. as_fn_error $? "conditional \"MINGW\" was never defined.
  17724. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17725. fi
  17726. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  17727. as_fn_error $? "conditional \"UNICODE\" was never defined.
  17728. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17729. fi
  17730. if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
  17731. as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
  17732. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17733. fi
  17734. if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
  17735. as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
  17736. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17737. fi
  17738. if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
  17739. as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
  17740. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17741. fi
  17742. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17743. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17744. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17745. fi
  17746. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17747. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17749. fi
  17750. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17751. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17753. fi
  17754. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17755. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17757. fi
  17758. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17759. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17761. fi
  17762. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17763. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17765. fi
  17766. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17767. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17769. fi
  17770. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17771. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17773. fi
  17774. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17775. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17777. fi
  17778. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17779. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17781. fi
  17782. : "${CONFIG_STATUS=./config.status}"
  17783. ac_write_fail=0
  17784. ac_clean_files_save=$ac_clean_files
  17785. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17787. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  17788. as_write_fail=0
  17789. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17790. #! $SHELL
  17791. # Generated by $as_me.
  17792. # Run this file to recreate the current configuration.
  17793. # Compiler output produced by configure, useful for debugging
  17794. # configure, is in config.log if it exists.
  17795. debug=false
  17796. ac_cs_recheck=false
  17797. ac_cs_silent=false
  17798. SHELL=\${CONFIG_SHELL-$SHELL}
  17799. export SHELL
  17800. _ASEOF
  17801. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17802. ## -------------------- ##
  17803. ## M4sh Initialization. ##
  17804. ## -------------------- ##
  17805. # Be more Bourne compatible
  17806. DUALCASE=1; export DUALCASE # for MKS sh
  17807. as_nop=:
  17808. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  17809. then :
  17810. emulate sh
  17811. NULLCMD=:
  17812. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17813. # is contrary to our usage. Disable this feature.
  17814. alias -g '${1+"$@"}'='"$@"'
  17815. setopt NO_GLOB_SUBST
  17816. else $as_nop
  17817. case `(set -o) 2>/dev/null` in #(
  17818. *posix*) :
  17819. set -o posix ;; #(
  17820. *) :
  17821. ;;
  17822. esac
  17823. fi
  17824. # Reset variables that may have inherited troublesome values from
  17825. # the environment.
  17826. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  17827. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  17828. # side effect of setting IFS to empty, thus disabling word splitting.)
  17829. # Quoting is to prevent editors from complaining about space-tab.
  17830. as_nl='
  17831. '
  17832. export as_nl
  17833. IFS=" "" $as_nl"
  17834. PS1='$ '
  17835. PS2='> '
  17836. PS4='+ '
  17837. # Ensure predictable behavior from utilities with locale-dependent output.
  17838. LC_ALL=C
  17839. export LC_ALL
  17840. LANGUAGE=C
  17841. export LANGUAGE
  17842. # We cannot yet rely on "unset" to work, but we need these variables
  17843. # to be unset--not just set to an empty or harmless value--now, to
  17844. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  17845. # also avoids known problems related to "unset" and subshell syntax
  17846. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  17847. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  17848. do eval test \${$as_var+y} \
  17849. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17850. done
  17851. # Ensure that fds 0, 1, and 2 are open.
  17852. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  17853. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  17854. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  17855. # The user is always right.
  17856. if ${PATH_SEPARATOR+false} :; then
  17857. PATH_SEPARATOR=:
  17858. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17859. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17860. PATH_SEPARATOR=';'
  17861. }
  17862. fi
  17863. # Find who we are. Look in the path if we contain no directory separator.
  17864. as_myself=
  17865. case $0 in #((
  17866. *[\\/]* ) as_myself=$0 ;;
  17867. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17868. for as_dir in $PATH
  17869. do
  17870. IFS=$as_save_IFS
  17871. case $as_dir in #(((
  17872. '') as_dir=./ ;;
  17873. */) ;;
  17874. *) as_dir=$as_dir/ ;;
  17875. esac
  17876. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  17877. done
  17878. IFS=$as_save_IFS
  17879. ;;
  17880. esac
  17881. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17882. # in which case we are not to be found in the path.
  17883. if test "x$as_myself" = x; then
  17884. as_myself=$0
  17885. fi
  17886. if test ! -f "$as_myself"; then
  17887. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17888. exit 1
  17889. fi
  17890. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17891. # ----------------------------------------
  17892. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17893. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17894. # script with STATUS, using 1 if that was 0.
  17895. as_fn_error ()
  17896. {
  17897. as_status=$1; test $as_status -eq 0 && as_status=1
  17898. if test "$4"; then
  17899. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17901. fi
  17902. printf "%s\n" "$as_me: error: $2" >&2
  17903. as_fn_exit $as_status
  17904. } # as_fn_error
  17905. # as_fn_set_status STATUS
  17906. # -----------------------
  17907. # Set $? to STATUS, without forking.
  17908. as_fn_set_status ()
  17909. {
  17910. return $1
  17911. } # as_fn_set_status
  17912. # as_fn_exit STATUS
  17913. # -----------------
  17914. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17915. as_fn_exit ()
  17916. {
  17917. set +e
  17918. as_fn_set_status $1
  17919. exit $1
  17920. } # as_fn_exit
  17921. # as_fn_unset VAR
  17922. # ---------------
  17923. # Portably unset VAR.
  17924. as_fn_unset ()
  17925. {
  17926. { eval $1=; unset $1;}
  17927. }
  17928. as_unset=as_fn_unset
  17929. # as_fn_append VAR VALUE
  17930. # ----------------------
  17931. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17932. # advantage of any shell optimizations that allow amortized linear growth over
  17933. # repeated appends, instead of the typical quadratic growth present in naive
  17934. # implementations.
  17935. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  17936. then :
  17937. eval 'as_fn_append ()
  17938. {
  17939. eval $1+=\$2
  17940. }'
  17941. else $as_nop
  17942. as_fn_append ()
  17943. {
  17944. eval $1=\$$1\$2
  17945. }
  17946. fi # as_fn_append
  17947. # as_fn_arith ARG...
  17948. # ------------------
  17949. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17950. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17951. # must be portable across $(()) and expr.
  17952. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  17953. then :
  17954. eval 'as_fn_arith ()
  17955. {
  17956. as_val=$(( $* ))
  17957. }'
  17958. else $as_nop
  17959. as_fn_arith ()
  17960. {
  17961. as_val=`expr "$@" || test $? -eq 1`
  17962. }
  17963. fi # as_fn_arith
  17964. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17965. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17966. as_expr=expr
  17967. else
  17968. as_expr=false
  17969. fi
  17970. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17971. as_basename=basename
  17972. else
  17973. as_basename=false
  17974. fi
  17975. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17976. as_dirname=dirname
  17977. else
  17978. as_dirname=false
  17979. fi
  17980. as_me=`$as_basename -- "$0" ||
  17981. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17982. X"$0" : 'X\(//\)$' \| \
  17983. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17984. printf "%s\n" X/"$0" |
  17985. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17986. s//\1/
  17987. q
  17988. }
  17989. /^X\/\(\/\/\)$/{
  17990. s//\1/
  17991. q
  17992. }
  17993. /^X\/\(\/\).*/{
  17994. s//\1/
  17995. q
  17996. }
  17997. s/.*/./; q'`
  17998. # Avoid depending upon Character Ranges.
  17999. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18000. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18001. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18002. as_cr_digits='0123456789'
  18003. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18004. # Determine whether it's possible to make 'echo' print without a newline.
  18005. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  18006. # for compatibility with existing Makefiles.
  18007. ECHO_C= ECHO_N= ECHO_T=
  18008. case `echo -n x` in #(((((
  18009. -n*)
  18010. case `echo 'xy\c'` in
  18011. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18012. xy) ECHO_C='\c';;
  18013. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18014. ECHO_T=' ';;
  18015. esac;;
  18016. *)
  18017. ECHO_N='-n';;
  18018. esac
  18019. # For backward compatibility with old third-party macros, we provide
  18020. # the shell variables $as_echo and $as_echo_n. New code should use
  18021. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  18022. as_echo='printf %s\n'
  18023. as_echo_n='printf %s'
  18024. rm -f conf$$ conf$$.exe conf$$.file
  18025. if test -d conf$$.dir; then
  18026. rm -f conf$$.dir/conf$$.file
  18027. else
  18028. rm -f conf$$.dir
  18029. mkdir conf$$.dir 2>/dev/null
  18030. fi
  18031. if (echo >conf$$.file) 2>/dev/null; then
  18032. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18033. as_ln_s='ln -s'
  18034. # ... but there are two gotchas:
  18035. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18036. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18037. # In both cases, we have to default to `cp -pR'.
  18038. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18039. as_ln_s='cp -pR'
  18040. elif ln conf$$.file conf$$ 2>/dev/null; then
  18041. as_ln_s=ln
  18042. else
  18043. as_ln_s='cp -pR'
  18044. fi
  18045. else
  18046. as_ln_s='cp -pR'
  18047. fi
  18048. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18049. rmdir conf$$.dir 2>/dev/null
  18050. # as_fn_mkdir_p
  18051. # -------------
  18052. # Create "$as_dir" as a directory, including parents if necessary.
  18053. as_fn_mkdir_p ()
  18054. {
  18055. case $as_dir in #(
  18056. -*) as_dir=./$as_dir;;
  18057. esac
  18058. test -d "$as_dir" || eval $as_mkdir_p || {
  18059. as_dirs=
  18060. while :; do
  18061. case $as_dir in #(
  18062. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18063. *) as_qdir=$as_dir;;
  18064. esac
  18065. as_dirs="'$as_qdir' $as_dirs"
  18066. as_dir=`$as_dirname -- "$as_dir" ||
  18067. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18068. X"$as_dir" : 'X\(//\)[^/]' \| \
  18069. X"$as_dir" : 'X\(//\)$' \| \
  18070. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18071. printf "%s\n" X"$as_dir" |
  18072. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18073. s//\1/
  18074. q
  18075. }
  18076. /^X\(\/\/\)[^/].*/{
  18077. s//\1/
  18078. q
  18079. }
  18080. /^X\(\/\/\)$/{
  18081. s//\1/
  18082. q
  18083. }
  18084. /^X\(\/\).*/{
  18085. s//\1/
  18086. q
  18087. }
  18088. s/.*/./; q'`
  18089. test -d "$as_dir" && break
  18090. done
  18091. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18092. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18093. } # as_fn_mkdir_p
  18094. if mkdir -p . 2>/dev/null; then
  18095. as_mkdir_p='mkdir -p "$as_dir"'
  18096. else
  18097. test -d ./-p && rmdir ./-p
  18098. as_mkdir_p=false
  18099. fi
  18100. # as_fn_executable_p FILE
  18101. # -----------------------
  18102. # Test if FILE is an executable regular file.
  18103. as_fn_executable_p ()
  18104. {
  18105. test -f "$1" && test -x "$1"
  18106. } # as_fn_executable_p
  18107. as_test_x='test -x'
  18108. as_executable_p=as_fn_executable_p
  18109. # Sed expression to map a string onto a valid CPP name.
  18110. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18111. # Sed expression to map a string onto a valid variable name.
  18112. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18113. exec 6>&1
  18114. ## ----------------------------------- ##
  18115. ## Main body of $CONFIG_STATUS script. ##
  18116. ## ----------------------------------- ##
  18117. _ASEOF
  18118. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18120. # Save the log message, to keep $0 and so on meaningful, and to
  18121. # report actual input values of CONFIG_FILES etc. instead of their
  18122. # values after options handling.
  18123. ac_log="
  18124. This file was extended by expat $as_me 2.6.1, which was
  18125. generated by GNU Autoconf 2.71. Invocation command line was
  18126. CONFIG_FILES = $CONFIG_FILES
  18127. CONFIG_HEADERS = $CONFIG_HEADERS
  18128. CONFIG_LINKS = $CONFIG_LINKS
  18129. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18130. $ $0 $@
  18131. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18132. "
  18133. _ACEOF
  18134. case $ac_config_files in *"
  18135. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18136. esac
  18137. case $ac_config_headers in *"
  18138. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18139. esac
  18140. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18141. # Files that config.status was made for.
  18142. config_files="$ac_config_files"
  18143. config_headers="$ac_config_headers"
  18144. config_commands="$ac_config_commands"
  18145. _ACEOF
  18146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18147. ac_cs_usage="\
  18148. \`$as_me' instantiates files and other configuration actions
  18149. from templates according to the current configuration. Unless the files
  18150. and actions are specified as TAGs, all are instantiated by default.
  18151. Usage: $0 [OPTION]... [TAG]...
  18152. -h, --help print this help, then exit
  18153. -V, --version print version number and configuration settings, then exit
  18154. --config print configuration, then exit
  18155. -q, --quiet, --silent
  18156. do not print progress messages
  18157. -d, --debug don't remove temporary files
  18158. --recheck update $as_me by reconfiguring in the same conditions
  18159. --file=FILE[:TEMPLATE]
  18160. instantiate the configuration file FILE
  18161. --header=FILE[:TEMPLATE]
  18162. instantiate the configuration header FILE
  18163. Configuration files:
  18164. $config_files
  18165. Configuration headers:
  18166. $config_headers
  18167. Configuration commands:
  18168. $config_commands
  18169. Report bugs to <https://github.com/libexpat/libexpat/issues>."
  18170. _ACEOF
  18171. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  18172. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  18173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18174. ac_cs_config='$ac_cs_config_escaped'
  18175. ac_cs_version="\\
  18176. expat config.status 2.6.1
  18177. configured by $0, generated by GNU Autoconf 2.71,
  18178. with options \\"\$ac_cs_config\\"
  18179. Copyright (C) 2021 Free Software Foundation, Inc.
  18180. This config.status script is free software; the Free Software Foundation
  18181. gives unlimited permission to copy, distribute and modify it."
  18182. ac_pwd='$ac_pwd'
  18183. srcdir='$srcdir'
  18184. INSTALL='$INSTALL'
  18185. MKDIR_P='$MKDIR_P'
  18186. AWK='$AWK'
  18187. test -n "\$AWK" || AWK=awk
  18188. _ACEOF
  18189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18190. # The default lists apply if the user does not specify any file.
  18191. ac_need_defaults=:
  18192. while test $# != 0
  18193. do
  18194. case $1 in
  18195. --*=?*)
  18196. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18197. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18198. ac_shift=:
  18199. ;;
  18200. --*=)
  18201. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18202. ac_optarg=
  18203. ac_shift=:
  18204. ;;
  18205. *)
  18206. ac_option=$1
  18207. ac_optarg=$2
  18208. ac_shift=shift
  18209. ;;
  18210. esac
  18211. case $ac_option in
  18212. # Handling of the options.
  18213. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18214. ac_cs_recheck=: ;;
  18215. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18216. printf "%s\n" "$ac_cs_version"; exit ;;
  18217. --config | --confi | --conf | --con | --co | --c )
  18218. printf "%s\n" "$ac_cs_config"; exit ;;
  18219. --debug | --debu | --deb | --de | --d | -d )
  18220. debug=: ;;
  18221. --file | --fil | --fi | --f )
  18222. $ac_shift
  18223. case $ac_optarg in
  18224. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18225. '') as_fn_error $? "missing file argument" ;;
  18226. esac
  18227. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18228. ac_need_defaults=false;;
  18229. --header | --heade | --head | --hea )
  18230. $ac_shift
  18231. case $ac_optarg in
  18232. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18233. esac
  18234. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18235. ac_need_defaults=false;;
  18236. --he | --h)
  18237. # Conflict between --help and --header
  18238. as_fn_error $? "ambiguous option: \`$1'
  18239. Try \`$0 --help' for more information.";;
  18240. --help | --hel | -h )
  18241. printf "%s\n" "$ac_cs_usage"; exit ;;
  18242. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18243. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18244. ac_cs_silent=: ;;
  18245. # This is an error.
  18246. -*) as_fn_error $? "unrecognized option: \`$1'
  18247. Try \`$0 --help' for more information." ;;
  18248. *) as_fn_append ac_config_targets " $1"
  18249. ac_need_defaults=false ;;
  18250. esac
  18251. shift
  18252. done
  18253. ac_configure_extra_args=
  18254. if $ac_cs_silent; then
  18255. exec 6>/dev/null
  18256. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18257. fi
  18258. _ACEOF
  18259. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18260. if \$ac_cs_recheck; then
  18261. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18262. shift
  18263. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  18264. CONFIG_SHELL='$SHELL'
  18265. export CONFIG_SHELL
  18266. exec "\$@"
  18267. fi
  18268. _ACEOF
  18269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18270. exec 5>>config.log
  18271. {
  18272. echo
  18273. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18274. ## Running $as_me. ##
  18275. _ASBOX
  18276. printf "%s\n" "$ac_log"
  18277. } >&5
  18278. _ACEOF
  18279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18280. #
  18281. # INIT-COMMANDS
  18282. #
  18283. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18284. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18285. # if CDPATH is set.
  18286. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18287. sed_quote_subst='$sed_quote_subst'
  18288. double_quote_subst='$double_quote_subst'
  18289. delay_variable_subst='$delay_variable_subst'
  18290. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18291. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18292. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18293. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18294. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18295. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18296. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18297. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18298. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18299. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18300. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18301. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18302. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18303. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18304. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18305. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18306. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18307. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18308. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18309. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18310. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18311. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18312. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18313. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18314. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18315. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18316. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18317. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18318. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18319. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18320. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18321. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18322. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18323. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18324. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18325. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18326. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18327. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  18328. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18329. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18330. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18331. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18332. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18333. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18334. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  18335. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18336. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18337. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18338. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18339. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18340. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18341. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18342. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18343. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18344. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18345. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18346. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18347. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18348. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18349. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18350. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18351. 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"`'
  18352. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18353. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18354. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18355. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18356. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18357. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18358. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18359. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18360. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18361. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18362. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18363. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18364. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18365. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18366. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18367. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18368. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18369. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18370. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18371. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18372. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18373. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18374. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18375. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18376. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18377. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18378. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18379. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18380. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18381. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18382. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18383. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18384. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18385. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18386. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18387. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18388. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18389. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18390. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18391. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18392. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18393. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18394. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18395. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18396. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18397. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18398. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18399. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18400. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18401. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18402. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18403. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18404. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18405. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18406. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18407. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18408. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18409. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18410. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18411. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18412. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18413. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18414. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18415. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18416. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18417. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18418. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18419. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18420. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18421. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18422. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18423. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18424. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18425. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18426. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18427. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18428. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18429. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18430. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18431. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18432. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18433. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18434. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18435. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18436. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18437. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18438. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18439. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18440. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18441. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18442. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18443. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18444. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18445. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18446. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18447. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18448. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18449. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18450. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18451. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18452. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18453. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18454. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18455. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18456. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18457. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18458. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18459. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18460. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18461. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18462. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18463. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18464. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18465. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18466. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18467. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18468. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18469. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18470. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18471. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18472. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18473. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18474. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18475. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18476. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18477. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18478. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18479. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18480. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18481. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18482. LTCC='$LTCC'
  18483. LTCFLAGS='$LTCFLAGS'
  18484. compiler='$compiler_DEFAULT'
  18485. # A function that is used when there is no print builtin or printf.
  18486. func_fallback_echo ()
  18487. {
  18488. eval 'cat <<_LTECHO_EOF
  18489. \$1
  18490. _LTECHO_EOF'
  18491. }
  18492. # Quote evaled strings.
  18493. for var in AS \
  18494. DLLTOOL \
  18495. OBJDUMP \
  18496. SHELL \
  18497. ECHO \
  18498. PATH_SEPARATOR \
  18499. SED \
  18500. GREP \
  18501. EGREP \
  18502. FGREP \
  18503. LD \
  18504. NM \
  18505. LN_S \
  18506. lt_SP2NL \
  18507. lt_NL2SP \
  18508. reload_flag \
  18509. FILECMD \
  18510. deplibs_check_method \
  18511. file_magic_cmd \
  18512. file_magic_glob \
  18513. want_nocaseglob \
  18514. sharedlib_from_linklib_cmd \
  18515. AR \
  18516. archiver_list_spec \
  18517. STRIP \
  18518. RANLIB \
  18519. CC \
  18520. CFLAGS \
  18521. compiler \
  18522. lt_cv_sys_global_symbol_pipe \
  18523. lt_cv_sys_global_symbol_to_cdecl \
  18524. lt_cv_sys_global_symbol_to_import \
  18525. lt_cv_sys_global_symbol_to_c_name_address \
  18526. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18527. lt_cv_nm_interface \
  18528. nm_file_list_spec \
  18529. lt_cv_truncate_bin \
  18530. lt_prog_compiler_no_builtin_flag \
  18531. lt_prog_compiler_pic \
  18532. lt_prog_compiler_wl \
  18533. lt_prog_compiler_static \
  18534. lt_cv_prog_compiler_c_o \
  18535. need_locks \
  18536. MANIFEST_TOOL \
  18537. DSYMUTIL \
  18538. NMEDIT \
  18539. LIPO \
  18540. OTOOL \
  18541. OTOOL64 \
  18542. shrext_cmds \
  18543. export_dynamic_flag_spec \
  18544. whole_archive_flag_spec \
  18545. compiler_needs_object \
  18546. with_gnu_ld \
  18547. allow_undefined_flag \
  18548. no_undefined_flag \
  18549. hardcode_libdir_flag_spec \
  18550. hardcode_libdir_separator \
  18551. exclude_expsyms \
  18552. include_expsyms \
  18553. file_list_spec \
  18554. variables_saved_for_relink \
  18555. libname_spec \
  18556. library_names_spec \
  18557. soname_spec \
  18558. install_override_mode \
  18559. finish_eval \
  18560. old_striplib \
  18561. striplib \
  18562. compiler_lib_search_dirs \
  18563. predep_objects \
  18564. postdep_objects \
  18565. predeps \
  18566. postdeps \
  18567. compiler_lib_search_path \
  18568. LD_CXX \
  18569. reload_flag_CXX \
  18570. compiler_CXX \
  18571. lt_prog_compiler_no_builtin_flag_CXX \
  18572. lt_prog_compiler_pic_CXX \
  18573. lt_prog_compiler_wl_CXX \
  18574. lt_prog_compiler_static_CXX \
  18575. lt_cv_prog_compiler_c_o_CXX \
  18576. export_dynamic_flag_spec_CXX \
  18577. whole_archive_flag_spec_CXX \
  18578. compiler_needs_object_CXX \
  18579. with_gnu_ld_CXX \
  18580. allow_undefined_flag_CXX \
  18581. no_undefined_flag_CXX \
  18582. hardcode_libdir_flag_spec_CXX \
  18583. hardcode_libdir_separator_CXX \
  18584. exclude_expsyms_CXX \
  18585. include_expsyms_CXX \
  18586. file_list_spec_CXX \
  18587. compiler_lib_search_dirs_CXX \
  18588. predep_objects_CXX \
  18589. postdep_objects_CXX \
  18590. predeps_CXX \
  18591. postdeps_CXX \
  18592. compiler_lib_search_path_CXX; do
  18593. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18594. *[\\\\\\\`\\"\\\$]*)
  18595. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18596. ;;
  18597. *)
  18598. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18599. ;;
  18600. esac
  18601. done
  18602. # Double-quote double-evaled strings.
  18603. for var in reload_cmds \
  18604. old_postinstall_cmds \
  18605. old_postuninstall_cmds \
  18606. old_archive_cmds \
  18607. extract_expsyms_cmds \
  18608. old_archive_from_new_cmds \
  18609. old_archive_from_expsyms_cmds \
  18610. archive_cmds \
  18611. archive_expsym_cmds \
  18612. module_cmds \
  18613. module_expsym_cmds \
  18614. export_symbols_cmds \
  18615. prelink_cmds \
  18616. postlink_cmds \
  18617. postinstall_cmds \
  18618. postuninstall_cmds \
  18619. finish_cmds \
  18620. sys_lib_search_path_spec \
  18621. configure_time_dlsearch_path \
  18622. configure_time_lt_sys_library_path \
  18623. reload_cmds_CXX \
  18624. old_archive_cmds_CXX \
  18625. old_archive_from_new_cmds_CXX \
  18626. old_archive_from_expsyms_cmds_CXX \
  18627. archive_cmds_CXX \
  18628. archive_expsym_cmds_CXX \
  18629. module_cmds_CXX \
  18630. module_expsym_cmds_CXX \
  18631. export_symbols_cmds_CXX \
  18632. prelink_cmds_CXX \
  18633. postlink_cmds_CXX; do
  18634. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18635. *[\\\\\\\`\\"\\\$]*)
  18636. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18637. ;;
  18638. *)
  18639. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18640. ;;
  18641. esac
  18642. done
  18643. ac_aux_dir='$ac_aux_dir'
  18644. # See if we are running on zsh, and set the options that allow our
  18645. # commands through without removal of \ escapes INIT.
  18646. if test -n "\${ZSH_VERSION+set}"; then
  18647. setopt NO_GLOB_SUBST
  18648. fi
  18649. PACKAGE='$PACKAGE'
  18650. VERSION='$VERSION'
  18651. RM='$RM'
  18652. ofile='$ofile'
  18653. _ACEOF
  18654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18655. # Handling of arguments.
  18656. for ac_config_target in $ac_config_targets
  18657. do
  18658. case $ac_config_target in
  18659. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  18660. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18661. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18662. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18663. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  18664. "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
  18665. "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
  18666. "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
  18667. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18668. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  18669. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  18670. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18671. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  18672. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  18673. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  18674. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18675. esac
  18676. done
  18677. # If the user did not use the arguments to specify the items to instantiate,
  18678. # then the envvar interface is used. Set only those that are not.
  18679. # We use the long form for the default assignment because of an extremely
  18680. # bizarre bug on SunOS 4.1.3.
  18681. if $ac_need_defaults; then
  18682. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  18683. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  18684. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  18685. fi
  18686. # Have a temporary directory for convenience. Make it in the build tree
  18687. # simply because there is no reason against having it here, and in addition,
  18688. # creating and moving files from /tmp can sometimes cause problems.
  18689. # Hook for its removal unless debugging.
  18690. # Note that there is a small window in which the directory will not be cleaned:
  18691. # after its creation but before its name has been assigned to `$tmp'.
  18692. $debug ||
  18693. {
  18694. tmp= ac_tmp=
  18695. trap 'exit_status=$?
  18696. : "${ac_tmp:=$tmp}"
  18697. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18698. ' 0
  18699. trap 'as_fn_exit 1' 1 2 13 15
  18700. }
  18701. # Create a (secure) tmp directory for tmp files.
  18702. {
  18703. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18704. test -d "$tmp"
  18705. } ||
  18706. {
  18707. tmp=./conf$$-$RANDOM
  18708. (umask 077 && mkdir "$tmp")
  18709. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18710. ac_tmp=$tmp
  18711. # Set up the scripts for CONFIG_FILES section.
  18712. # No need to generate them if there are no CONFIG_FILES.
  18713. # This happens for instance with `./config.status config.h'.
  18714. if test -n "$CONFIG_FILES"; then
  18715. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  18716. ac_cs_awk_getline=:
  18717. ac_cs_awk_pipe_init=
  18718. ac_cs_awk_read_file='
  18719. while ((getline aline < (F[key])) > 0)
  18720. print(aline)
  18721. close(F[key])'
  18722. ac_cs_awk_pipe_fini=
  18723. else
  18724. ac_cs_awk_getline=false
  18725. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  18726. ac_cs_awk_read_file='
  18727. print "|#_!!_#|"
  18728. print "cat " F[key] " &&"
  18729. '$ac_cs_awk_pipe_init
  18730. # The final `:' finishes the AND list.
  18731. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  18732. fi
  18733. ac_cr=`echo X | tr X '\015'`
  18734. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18735. # But we know of no other shell where ac_cr would be empty at this
  18736. # point, so we can use a bashism as a fallback.
  18737. if test "x$ac_cr" = x; then
  18738. eval ac_cr=\$\'\\r\'
  18739. fi
  18740. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18741. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18742. ac_cs_awk_cr='\\r'
  18743. else
  18744. ac_cs_awk_cr=$ac_cr
  18745. fi
  18746. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18747. _ACEOF
  18748. # Create commands to substitute file output variables.
  18749. {
  18750. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  18751. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  18752. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  18753. echo "_ACAWK" &&
  18754. echo "_ACEOF"
  18755. } >conf$$files.sh &&
  18756. . ./conf$$files.sh ||
  18757. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18758. rm -f conf$$files.sh
  18759. {
  18760. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18761. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18762. echo "_ACEOF"
  18763. } >conf$$subs.sh ||
  18764. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18765. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18766. ac_delim='%!_!# '
  18767. for ac_last_try in false false false false false :; do
  18768. . ./conf$$subs.sh ||
  18769. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18770. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18771. if test $ac_delim_n = $ac_delim_num; then
  18772. break
  18773. elif $ac_last_try; then
  18774. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18775. else
  18776. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18777. fi
  18778. done
  18779. rm -f conf$$subs.sh
  18780. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18781. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18782. _ACEOF
  18783. sed -n '
  18784. h
  18785. s/^/S["/; s/!.*/"]=/
  18786. p
  18787. g
  18788. s/^[^!]*!//
  18789. :repl
  18790. t repl
  18791. s/'"$ac_delim"'$//
  18792. t delim
  18793. :nl
  18794. h
  18795. s/\(.\{148\}\)..*/\1/
  18796. t more1
  18797. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18798. p
  18799. n
  18800. b repl
  18801. :more1
  18802. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18803. p
  18804. g
  18805. s/.\{148\}//
  18806. t nl
  18807. :delim
  18808. h
  18809. s/\(.\{148\}\)..*/\1/
  18810. t more2
  18811. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18812. p
  18813. b
  18814. :more2
  18815. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18816. p
  18817. g
  18818. s/.\{148\}//
  18819. t delim
  18820. ' <conf$$subs.awk | sed '
  18821. /^[^""]/{
  18822. N
  18823. s/\n//
  18824. }
  18825. ' >>$CONFIG_STATUS || ac_write_fail=1
  18826. rm -f conf$$subs.awk
  18827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18828. _ACAWK
  18829. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18830. for (key in S) S_is_set[key] = 1
  18831. FS = ""
  18832. \$ac_cs_awk_pipe_init
  18833. }
  18834. {
  18835. line = $ 0
  18836. nfields = split(line, field, "@")
  18837. substed = 0
  18838. len = length(field[1])
  18839. for (i = 2; i < nfields; i++) {
  18840. key = field[i]
  18841. keylen = length(key)
  18842. if (S_is_set[key]) {
  18843. value = S[key]
  18844. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18845. len += length(value) + length(field[++i])
  18846. substed = 1
  18847. } else
  18848. len += 1 + keylen
  18849. }
  18850. if (nfields == 3 && !substed) {
  18851. key = field[2]
  18852. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  18853. \$ac_cs_awk_read_file
  18854. next
  18855. }
  18856. }
  18857. print line
  18858. }
  18859. \$ac_cs_awk_pipe_fini
  18860. _ACAWK
  18861. _ACEOF
  18862. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18863. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18864. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18865. else
  18866. cat
  18867. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18868. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18869. _ACEOF
  18870. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18871. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18872. # trailing colons and then remove the whole line if VPATH becomes empty
  18873. # (actually we leave an empty line to preserve line numbers).
  18874. if test "x$srcdir" = x.; then
  18875. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18876. h
  18877. s///
  18878. s/^/:/
  18879. s/[ ]*$/:/
  18880. s/:\$(srcdir):/:/g
  18881. s/:\${srcdir}:/:/g
  18882. s/:@srcdir@:/:/g
  18883. s/^:*//
  18884. s/:*$//
  18885. x
  18886. s/\(=[ ]*\).*/\1/
  18887. G
  18888. s/\n//
  18889. s/^[^=]*=[ ]*$//
  18890. }'
  18891. fi
  18892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18893. fi # test -n "$CONFIG_FILES"
  18894. # Set up the scripts for CONFIG_HEADERS section.
  18895. # No need to generate them if there are no CONFIG_HEADERS.
  18896. # This happens for instance with `./config.status Makefile'.
  18897. if test -n "$CONFIG_HEADERS"; then
  18898. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18899. BEGIN {
  18900. _ACEOF
  18901. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18902. # here-document in config.status, that substitutes the proper values into
  18903. # config.h.in to produce config.h.
  18904. # Create a delimiter string that does not exist in confdefs.h, to ease
  18905. # handling of long lines.
  18906. ac_delim='%!_!# '
  18907. for ac_last_try in false false :; do
  18908. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18909. if test -z "$ac_tt"; then
  18910. break
  18911. elif $ac_last_try; then
  18912. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18913. else
  18914. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18915. fi
  18916. done
  18917. # For the awk script, D is an array of macro values keyed by name,
  18918. # likewise P contains macro parameters if any. Preserve backslash
  18919. # newline sequences.
  18920. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18921. sed -n '
  18922. s/.\{148\}/&'"$ac_delim"'/g
  18923. t rset
  18924. :rset
  18925. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18926. t def
  18927. d
  18928. :def
  18929. s/\\$//
  18930. t bsnl
  18931. s/["\\]/\\&/g
  18932. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18933. D["\1"]=" \3"/p
  18934. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18935. d
  18936. :bsnl
  18937. s/["\\]/\\&/g
  18938. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18939. D["\1"]=" \3\\\\\\n"\\/p
  18940. t cont
  18941. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18942. t cont
  18943. d
  18944. :cont
  18945. n
  18946. s/.\{148\}/&'"$ac_delim"'/g
  18947. t clear
  18948. :clear
  18949. s/\\$//
  18950. t bsnlc
  18951. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18952. d
  18953. :bsnlc
  18954. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18955. b cont
  18956. ' <confdefs.h | sed '
  18957. s/'"$ac_delim"'/"\\\
  18958. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18960. for (key in D) D_is_set[key] = 1
  18961. FS = ""
  18962. }
  18963. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18964. line = \$ 0
  18965. split(line, arg, " ")
  18966. if (arg[1] == "#") {
  18967. defundef = arg[2]
  18968. mac1 = arg[3]
  18969. } else {
  18970. defundef = substr(arg[1], 2)
  18971. mac1 = arg[2]
  18972. }
  18973. split(mac1, mac2, "(") #)
  18974. macro = mac2[1]
  18975. prefix = substr(line, 1, index(line, defundef) - 1)
  18976. if (D_is_set[macro]) {
  18977. # Preserve the white space surrounding the "#".
  18978. print prefix "define", macro P[macro] D[macro]
  18979. next
  18980. } else {
  18981. # Replace #undef with comments. This is necessary, for example,
  18982. # in the case of _POSIX_SOURCE, which is predefined and required
  18983. # on some systems where configure will not decide to define it.
  18984. if (defundef == "undef") {
  18985. print "/*", prefix defundef, macro, "*/"
  18986. next
  18987. }
  18988. }
  18989. }
  18990. { print }
  18991. _ACAWK
  18992. _ACEOF
  18993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18994. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18995. fi # test -n "$CONFIG_HEADERS"
  18996. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18997. shift
  18998. for ac_tag
  18999. do
  19000. case $ac_tag in
  19001. :[FHLC]) ac_mode=$ac_tag; continue;;
  19002. esac
  19003. case $ac_mode$ac_tag in
  19004. :[FHL]*:*);;
  19005. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19006. :[FH]-) ac_tag=-:-;;
  19007. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19008. esac
  19009. ac_save_IFS=$IFS
  19010. IFS=:
  19011. set x $ac_tag
  19012. IFS=$ac_save_IFS
  19013. shift
  19014. ac_file=$1
  19015. shift
  19016. case $ac_mode in
  19017. :L) ac_source=$1;;
  19018. :[FH])
  19019. ac_file_inputs=
  19020. for ac_f
  19021. do
  19022. case $ac_f in
  19023. -) ac_f="$ac_tmp/stdin";;
  19024. *) # Look for the file first in the build tree, then in the source tree
  19025. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19026. # because $ac_f cannot contain `:'.
  19027. test -f "$ac_f" ||
  19028. case $ac_f in
  19029. [\\/$]*) false;;
  19030. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19031. esac ||
  19032. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19033. esac
  19034. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19035. as_fn_append ac_file_inputs " '$ac_f'"
  19036. done
  19037. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19038. # use $as_me), people would be surprised to read:
  19039. # /* config.h. Generated by config.status. */
  19040. configure_input='Generated from '`
  19041. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19042. `' by configure.'
  19043. if test x"$ac_file" != x-; then
  19044. configure_input="$ac_file. $configure_input"
  19045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19046. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  19047. fi
  19048. # Neutralize special characters interpreted by sed in replacement strings.
  19049. case $configure_input in #(
  19050. *\&* | *\|* | *\\* )
  19051. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  19052. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19053. *) ac_sed_conf_input=$configure_input;;
  19054. esac
  19055. case $ac_tag in
  19056. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19057. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19058. esac
  19059. ;;
  19060. esac
  19061. ac_dir=`$as_dirname -- "$ac_file" ||
  19062. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19063. X"$ac_file" : 'X\(//\)[^/]' \| \
  19064. X"$ac_file" : 'X\(//\)$' \| \
  19065. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19066. printf "%s\n" X"$ac_file" |
  19067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19068. s//\1/
  19069. q
  19070. }
  19071. /^X\(\/\/\)[^/].*/{
  19072. s//\1/
  19073. q
  19074. }
  19075. /^X\(\/\/\)$/{
  19076. s//\1/
  19077. q
  19078. }
  19079. /^X\(\/\).*/{
  19080. s//\1/
  19081. q
  19082. }
  19083. s/.*/./; q'`
  19084. as_dir="$ac_dir"; as_fn_mkdir_p
  19085. ac_builddir=.
  19086. case "$ac_dir" in
  19087. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19088. *)
  19089. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  19090. # A ".." for each directory in $ac_dir_suffix.
  19091. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19092. case $ac_top_builddir_sub in
  19093. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19094. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19095. esac ;;
  19096. esac
  19097. ac_abs_top_builddir=$ac_pwd
  19098. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19099. # for backward compatibility:
  19100. ac_top_builddir=$ac_top_build_prefix
  19101. case $srcdir in
  19102. .) # We are building in place.
  19103. ac_srcdir=.
  19104. ac_top_srcdir=$ac_top_builddir_sub
  19105. ac_abs_top_srcdir=$ac_pwd ;;
  19106. [\\/]* | ?:[\\/]* ) # Absolute name.
  19107. ac_srcdir=$srcdir$ac_dir_suffix;
  19108. ac_top_srcdir=$srcdir
  19109. ac_abs_top_srcdir=$srcdir ;;
  19110. *) # Relative name.
  19111. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19112. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19113. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19114. esac
  19115. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19116. case $ac_mode in
  19117. :F)
  19118. #
  19119. # CONFIG_FILE
  19120. #
  19121. case $INSTALL in
  19122. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19123. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19124. esac
  19125. ac_MKDIR_P=$MKDIR_P
  19126. case $MKDIR_P in
  19127. [\\/$]* | ?:[\\/]* ) ;;
  19128. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19129. esac
  19130. _ACEOF
  19131. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19132. # If the template does not know about datarootdir, expand it.
  19133. # FIXME: This hack should be removed a few years after 2.60.
  19134. ac_datarootdir_hack=; ac_datarootdir_seen=
  19135. ac_sed_dataroot='
  19136. /datarootdir/ {
  19137. p
  19138. q
  19139. }
  19140. /@datadir@/p
  19141. /@docdir@/p
  19142. /@infodir@/p
  19143. /@localedir@/p
  19144. /@mandir@/p'
  19145. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19146. *datarootdir*) ac_datarootdir_seen=yes;;
  19147. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19149. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19150. _ACEOF
  19151. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19152. ac_datarootdir_hack='
  19153. s&@datadir@&$datadir&g
  19154. s&@docdir@&$docdir&g
  19155. s&@infodir@&$infodir&g
  19156. s&@localedir@&$localedir&g
  19157. s&@mandir@&$mandir&g
  19158. s&\\\${datarootdir}&$datarootdir&g' ;;
  19159. esac
  19160. _ACEOF
  19161. # Neutralize VPATH when `$srcdir' = `.'.
  19162. # Shell code in configure.ac might set extrasub.
  19163. # FIXME: do we really want to maintain this feature?
  19164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19165. ac_sed_extra="$ac_vpsub
  19166. $extrasub
  19167. _ACEOF
  19168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19169. :t
  19170. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19171. s|@configure_input@|$ac_sed_conf_input|;t t
  19172. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19173. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19174. s&@srcdir@&$ac_srcdir&;t t
  19175. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19176. s&@top_srcdir@&$ac_top_srcdir&;t t
  19177. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19178. s&@builddir@&$ac_builddir&;t t
  19179. s&@abs_builddir@&$ac_abs_builddir&;t t
  19180. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19181. s&@INSTALL@&$ac_INSTALL&;t t
  19182. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19183. $ac_datarootdir_hack
  19184. "
  19185. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  19186. if $ac_cs_awk_getline; then
  19187. $AWK -f "$ac_tmp/subs.awk"
  19188. else
  19189. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  19190. fi \
  19191. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19192. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19193. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19194. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19195. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19197. which seems to be undefined. Please make sure it is defined" >&5
  19198. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19199. which seems to be undefined. Please make sure it is defined" >&2;}
  19200. rm -f "$ac_tmp/stdin"
  19201. case $ac_file in
  19202. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19203. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19204. esac \
  19205. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19206. ;;
  19207. :H)
  19208. #
  19209. # CONFIG_HEADER
  19210. #
  19211. if test x"$ac_file" != x-; then
  19212. {
  19213. printf "%s\n" "/* $configure_input */" >&1 \
  19214. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19215. } >"$ac_tmp/config.h" \
  19216. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19217. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19219. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  19220. else
  19221. rm -f "$ac_file"
  19222. mv "$ac_tmp/config.h" "$ac_file" \
  19223. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19224. fi
  19225. else
  19226. printf "%s\n" "/* $configure_input */" >&1 \
  19227. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19228. || as_fn_error $? "could not create -" "$LINENO" 5
  19229. fi
  19230. # Compute "$ac_file"'s index in $config_headers.
  19231. _am_arg="$ac_file"
  19232. _am_stamp_count=1
  19233. for _am_header in $config_headers :; do
  19234. case $_am_header in
  19235. $_am_arg | $_am_arg:* )
  19236. break ;;
  19237. * )
  19238. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19239. esac
  19240. done
  19241. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19242. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19243. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19244. X"$_am_arg" : 'X\(//\)$' \| \
  19245. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19246. printf "%s\n" X"$_am_arg" |
  19247. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19248. s//\1/
  19249. q
  19250. }
  19251. /^X\(\/\/\)[^/].*/{
  19252. s//\1/
  19253. q
  19254. }
  19255. /^X\(\/\/\)$/{
  19256. s//\1/
  19257. q
  19258. }
  19259. /^X\(\/\).*/{
  19260. s//\1/
  19261. q
  19262. }
  19263. s/.*/./; q'`/stamp-h$_am_stamp_count
  19264. ;;
  19265. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19266. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  19267. ;;
  19268. esac
  19269. case $ac_file$ac_mode in
  19270. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19271. # Older Autoconf quotes --file arguments for eval, but not when files
  19272. # are listed without --file. Let's play safe and only enable the eval
  19273. # if we detect the quoting.
  19274. # TODO: see whether this extra hack can be removed once we start
  19275. # requiring Autoconf 2.70 or later.
  19276. case $CONFIG_FILES in #(
  19277. *\'*) :
  19278. eval set x "$CONFIG_FILES" ;; #(
  19279. *) :
  19280. set x $CONFIG_FILES ;; #(
  19281. *) :
  19282. ;;
  19283. esac
  19284. shift
  19285. # Used to flag and report bootstrapping failures.
  19286. am_rc=0
  19287. for am_mf
  19288. do
  19289. # Strip MF so we end up with the name of the file.
  19290. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  19291. # Check whether this is an Automake generated Makefile which includes
  19292. # dependency-tracking related rules and includes.
  19293. # Grep'ing the whole file directly is not great: AIX grep has a line
  19294. # limit of 2048, but all sed's we know have understand at least 4000.
  19295. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  19296. || continue
  19297. am_dirpart=`$as_dirname -- "$am_mf" ||
  19298. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19299. X"$am_mf" : 'X\(//\)[^/]' \| \
  19300. X"$am_mf" : 'X\(//\)$' \| \
  19301. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19302. printf "%s\n" X"$am_mf" |
  19303. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19304. s//\1/
  19305. q
  19306. }
  19307. /^X\(\/\/\)[^/].*/{
  19308. s//\1/
  19309. q
  19310. }
  19311. /^X\(\/\/\)$/{
  19312. s//\1/
  19313. q
  19314. }
  19315. /^X\(\/\).*/{
  19316. s//\1/
  19317. q
  19318. }
  19319. s/.*/./; q'`
  19320. am_filepart=`$as_basename -- "$am_mf" ||
  19321. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19322. X"$am_mf" : 'X\(//\)$' \| \
  19323. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19324. printf "%s\n" X/"$am_mf" |
  19325. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19326. s//\1/
  19327. q
  19328. }
  19329. /^X\/\(\/\/\)$/{
  19330. s//\1/
  19331. q
  19332. }
  19333. /^X\/\(\/\).*/{
  19334. s//\1/
  19335. q
  19336. }
  19337. s/.*/./; q'`
  19338. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19339. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19340. | $MAKE -f - am--depfiles" >&5
  19341. (cd "$am_dirpart" \
  19342. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19343. | $MAKE -f - am--depfiles) >&5 2>&5
  19344. ac_status=$?
  19345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19346. (exit $ac_status); } || am_rc=$?
  19347. done
  19348. if test $am_rc -ne 0; then
  19349. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19350. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19351. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19352. for automatic dependency tracking. If GNU make was not used, consider
  19353. re-running the configure script with MAKE=\"gmake\" (or whatever is
  19354. necessary). You can also try re-running configure with the
  19355. '--disable-dependency-tracking' option to at least be able to build
  19356. the package (albeit without support for automatic dependency tracking).
  19357. See \`config.log' for more details" "$LINENO" 5; }
  19358. fi
  19359. { am_dirpart=; unset am_dirpart;}
  19360. { am_filepart=; unset am_filepart;}
  19361. { am_mf=; unset am_mf;}
  19362. { am_rc=; unset am_rc;}
  19363. rm -f conftest-deps.mk
  19364. }
  19365. ;;
  19366. "libtool":C)
  19367. # See if we are running on zsh, and set the options that allow our
  19368. # commands through without removal of \ escapes.
  19369. if test -n "${ZSH_VERSION+set}"; then
  19370. setopt NO_GLOB_SUBST
  19371. fi
  19372. cfgfile=${ofile}T
  19373. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19374. $RM "$cfgfile"
  19375. cat <<_LT_EOF >> "$cfgfile"
  19376. #! $SHELL
  19377. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19378. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19379. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19380. # Provide generalized library-building support services.
  19381. # Written by Gordon Matzigkeit, 1996
  19382. # Copyright (C) 2014 Free Software Foundation, Inc.
  19383. # This is free software; see the source for copying conditions. There is NO
  19384. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19385. # GNU Libtool is free software; you can redistribute it and/or modify
  19386. # it under the terms of the GNU General Public License as published by
  19387. # the Free Software Foundation; either version 2 of of the License, or
  19388. # (at your option) any later version.
  19389. #
  19390. # As a special exception to the GNU General Public License, if you
  19391. # distribute this file as part of a program or library that is built
  19392. # using GNU Libtool, you may include this file under the same
  19393. # distribution terms that you use for the rest of that program.
  19394. #
  19395. # GNU Libtool is distributed in the hope that it will be useful, but
  19396. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19397. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19398. # GNU General Public License for more details.
  19399. #
  19400. # You should have received a copy of the GNU General Public License
  19401. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19402. # The names of the tagged configurations supported by this script.
  19403. available_tags='CXX '
  19404. # Configured defaults for sys_lib_dlsearch_path munging.
  19405. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19406. # ### BEGIN LIBTOOL CONFIG
  19407. # Which release of libtool.m4 was used?
  19408. macro_version=$macro_version
  19409. macro_revision=$macro_revision
  19410. # Assembler program.
  19411. AS=$lt_AS
  19412. # DLL creation program.
  19413. DLLTOOL=$lt_DLLTOOL
  19414. # Object dumper program.
  19415. OBJDUMP=$lt_OBJDUMP
  19416. # Whether or not to build shared libraries.
  19417. build_libtool_libs=$enable_shared
  19418. # Whether or not to build static libraries.
  19419. build_old_libs=$enable_static
  19420. # What type of objects to build.
  19421. pic_mode=$pic_mode
  19422. # Whether or not to optimize for fast installation.
  19423. fast_install=$enable_fast_install
  19424. # Shared archive member basename,for filename based shared library versioning on AIX.
  19425. shared_archive_member_spec=$shared_archive_member_spec
  19426. # Shell to use when invoking shell scripts.
  19427. SHELL=$lt_SHELL
  19428. # An echo program that protects backslashes.
  19429. ECHO=$lt_ECHO
  19430. # The PATH separator for the build system.
  19431. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19432. # The host system.
  19433. host_alias=$host_alias
  19434. host=$host
  19435. host_os=$host_os
  19436. # The build system.
  19437. build_alias=$build_alias
  19438. build=$build
  19439. build_os=$build_os
  19440. # A sed program that does not truncate output.
  19441. SED=$lt_SED
  19442. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19443. Xsed="\$SED -e 1s/^X//"
  19444. # A grep program that handles long lines.
  19445. GREP=$lt_GREP
  19446. # An ERE matcher.
  19447. EGREP=$lt_EGREP
  19448. # A literal string matcher.
  19449. FGREP=$lt_FGREP
  19450. # A BSD- or MS-compatible name lister.
  19451. NM=$lt_NM
  19452. # Whether we need soft or hard links.
  19453. LN_S=$lt_LN_S
  19454. # What is the maximum length of a command?
  19455. max_cmd_len=$max_cmd_len
  19456. # Object file suffix (normally "o").
  19457. objext=$ac_objext
  19458. # Executable file suffix (normally "").
  19459. exeext=$exeext
  19460. # whether the shell understands "unset".
  19461. lt_unset=$lt_unset
  19462. # turn spaces into newlines.
  19463. SP2NL=$lt_lt_SP2NL
  19464. # turn newlines into spaces.
  19465. NL2SP=$lt_lt_NL2SP
  19466. # convert \$build file names to \$host format.
  19467. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19468. # convert \$build files to toolchain format.
  19469. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19470. # A file(cmd) program that detects file types.
  19471. FILECMD=$lt_FILECMD
  19472. # Method to check whether dependent libraries are shared objects.
  19473. deplibs_check_method=$lt_deplibs_check_method
  19474. # Command to use when deplibs_check_method = "file_magic".
  19475. file_magic_cmd=$lt_file_magic_cmd
  19476. # How to find potential files when deplibs_check_method = "file_magic".
  19477. file_magic_glob=$lt_file_magic_glob
  19478. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19479. want_nocaseglob=$lt_want_nocaseglob
  19480. # Command to associate shared and link libraries.
  19481. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19482. # The archiver.
  19483. AR=$lt_AR
  19484. # Flags to create an archive (by configure).
  19485. lt_ar_flags=$lt_ar_flags
  19486. # Flags to create an archive.
  19487. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  19488. # How to feed a file listing to the archiver.
  19489. archiver_list_spec=$lt_archiver_list_spec
  19490. # A symbol stripping program.
  19491. STRIP=$lt_STRIP
  19492. # Commands used to install an old-style archive.
  19493. RANLIB=$lt_RANLIB
  19494. old_postinstall_cmds=$lt_old_postinstall_cmds
  19495. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19496. # Whether to use a lock for old archive extraction.
  19497. lock_old_archive_extraction=$lock_old_archive_extraction
  19498. # A C compiler.
  19499. LTCC=$lt_CC
  19500. # LTCC compiler flags.
  19501. LTCFLAGS=$lt_CFLAGS
  19502. # Take the output of nm and produce a listing of raw symbols and C names.
  19503. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19504. # Transform the output of nm in a proper C declaration.
  19505. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19506. # Transform the output of nm into a list of symbols to manually relocate.
  19507. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19508. # Transform the output of nm in a C name address pair.
  19509. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19510. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19511. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19512. # The name lister interface.
  19513. nm_interface=$lt_lt_cv_nm_interface
  19514. # Specify filename containing input files for \$NM.
  19515. nm_file_list_spec=$lt_nm_file_list_spec
  19516. # The root where to search for dependent libraries,and where our libraries should be installed.
  19517. lt_sysroot=$lt_sysroot
  19518. # Command to truncate a binary pipe.
  19519. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19520. # The name of the directory that contains temporary libtool files.
  19521. objdir=$objdir
  19522. # Used to examine libraries when file_magic_cmd begins with "file".
  19523. MAGIC_CMD=$MAGIC_CMD
  19524. # Must we lock files when doing compilation?
  19525. need_locks=$lt_need_locks
  19526. # Manifest tool.
  19527. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19528. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19529. DSYMUTIL=$lt_DSYMUTIL
  19530. # Tool to change global to local symbols on Mac OS X.
  19531. NMEDIT=$lt_NMEDIT
  19532. # Tool to manipulate fat objects and archives on Mac OS X.
  19533. LIPO=$lt_LIPO
  19534. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19535. OTOOL=$lt_OTOOL
  19536. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19537. OTOOL64=$lt_OTOOL64
  19538. # Old archive suffix (normally "a").
  19539. libext=$libext
  19540. # Shared library suffix (normally ".so").
  19541. shrext_cmds=$lt_shrext_cmds
  19542. # The commands to extract the exported symbol list from a shared archive.
  19543. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19544. # Variables whose values should be saved in libtool wrapper scripts and
  19545. # restored at link time.
  19546. variables_saved_for_relink=$lt_variables_saved_for_relink
  19547. # Do we need the "lib" prefix for modules?
  19548. need_lib_prefix=$need_lib_prefix
  19549. # Do we need a version for libraries?
  19550. need_version=$need_version
  19551. # Library versioning type.
  19552. version_type=$version_type
  19553. # Shared library runtime path variable.
  19554. runpath_var=$runpath_var
  19555. # Shared library path variable.
  19556. shlibpath_var=$shlibpath_var
  19557. # Is shlibpath searched before the hard-coded library search path?
  19558. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19559. # Format of library name prefix.
  19560. libname_spec=$lt_libname_spec
  19561. # List of archive names. First name is the real one, the rest are links.
  19562. # The last name is the one that the linker finds with -lNAME
  19563. library_names_spec=$lt_library_names_spec
  19564. # The coded name of the library, if different from the real name.
  19565. soname_spec=$lt_soname_spec
  19566. # Permission mode override for installation of shared libraries.
  19567. install_override_mode=$lt_install_override_mode
  19568. # Command to use after installation of a shared archive.
  19569. postinstall_cmds=$lt_postinstall_cmds
  19570. # Command to use after uninstallation of a shared archive.
  19571. postuninstall_cmds=$lt_postuninstall_cmds
  19572. # Commands used to finish a libtool library installation in a directory.
  19573. finish_cmds=$lt_finish_cmds
  19574. # As "finish_cmds", except a single script fragment to be evaled but
  19575. # not shown.
  19576. finish_eval=$lt_finish_eval
  19577. # Whether we should hardcode library paths into libraries.
  19578. hardcode_into_libs=$hardcode_into_libs
  19579. # Compile-time system search path for libraries.
  19580. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19581. # Detected run-time system search path for libraries.
  19582. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19583. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19584. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19585. # Whether dlopen is supported.
  19586. dlopen_support=$enable_dlopen
  19587. # Whether dlopen of programs is supported.
  19588. dlopen_self=$enable_dlopen_self
  19589. # Whether dlopen of statically linked programs is supported.
  19590. dlopen_self_static=$enable_dlopen_self_static
  19591. # Commands to strip libraries.
  19592. old_striplib=$lt_old_striplib
  19593. striplib=$lt_striplib
  19594. # The linker used to build libraries.
  19595. LD=$lt_LD
  19596. # How to create reloadable object files.
  19597. reload_flag=$lt_reload_flag
  19598. reload_cmds=$lt_reload_cmds
  19599. # Commands used to build an old-style archive.
  19600. old_archive_cmds=$lt_old_archive_cmds
  19601. # A language specific compiler.
  19602. CC=$lt_compiler
  19603. # Is the compiler the GNU compiler?
  19604. with_gcc=$GCC
  19605. # Compiler flag to turn off builtin functions.
  19606. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19607. # Additional compiler flags for building library objects.
  19608. pic_flag=$lt_lt_prog_compiler_pic
  19609. # How to pass a linker flag through the compiler.
  19610. wl=$lt_lt_prog_compiler_wl
  19611. # Compiler flag to prevent dynamic linking.
  19612. link_static_flag=$lt_lt_prog_compiler_static
  19613. # Does compiler simultaneously support -c and -o options?
  19614. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19615. # Whether or not to add -lc for building shared libraries.
  19616. build_libtool_need_lc=$archive_cmds_need_lc
  19617. # Whether or not to disallow shared libs when runtime libs are static.
  19618. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19619. # Compiler flag to allow reflexive dlopens.
  19620. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19621. # Compiler flag to generate shared objects directly from archives.
  19622. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19623. # Whether the compiler copes with passing no objects directly.
  19624. compiler_needs_object=$lt_compiler_needs_object
  19625. # Create an old-style archive from a shared archive.
  19626. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19627. # Create a temporary old-style archive to link instead of a shared archive.
  19628. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19629. # Commands used to build a shared archive.
  19630. archive_cmds=$lt_archive_cmds
  19631. archive_expsym_cmds=$lt_archive_expsym_cmds
  19632. # Commands used to build a loadable module if different from building
  19633. # a shared archive.
  19634. module_cmds=$lt_module_cmds
  19635. module_expsym_cmds=$lt_module_expsym_cmds
  19636. # Whether we are building with GNU ld or not.
  19637. with_gnu_ld=$lt_with_gnu_ld
  19638. # Flag that allows shared libraries with undefined symbols to be built.
  19639. allow_undefined_flag=$lt_allow_undefined_flag
  19640. # Flag that enforces no undefined symbols.
  19641. no_undefined_flag=$lt_no_undefined_flag
  19642. # Flag to hardcode \$libdir into a binary during linking.
  19643. # This must work even if \$libdir does not exist
  19644. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19645. # Whether we need a single "-rpath" flag with a separated argument.
  19646. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19647. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19648. # DIR into the resulting binary.
  19649. hardcode_direct=$hardcode_direct
  19650. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19651. # DIR into the resulting binary and the resulting library dependency is
  19652. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19653. # library is relocated.
  19654. hardcode_direct_absolute=$hardcode_direct_absolute
  19655. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19656. # into the resulting binary.
  19657. hardcode_minus_L=$hardcode_minus_L
  19658. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19659. # into the resulting binary.
  19660. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19661. # Set to "yes" if building a shared library automatically hardcodes DIR
  19662. # into the library and all subsequent libraries and executables linked
  19663. # against it.
  19664. hardcode_automatic=$hardcode_automatic
  19665. # Set to yes if linker adds runtime paths of dependent libraries
  19666. # to runtime path list.
  19667. inherit_rpath=$inherit_rpath
  19668. # Whether libtool must link a program against all its dependency libraries.
  19669. link_all_deplibs=$link_all_deplibs
  19670. # Set to "yes" if exported symbols are required.
  19671. always_export_symbols=$always_export_symbols
  19672. # The commands to list exported symbols.
  19673. export_symbols_cmds=$lt_export_symbols_cmds
  19674. # Symbols that should not be listed in the preloaded symbols.
  19675. exclude_expsyms=$lt_exclude_expsyms
  19676. # Symbols that must always be exported.
  19677. include_expsyms=$lt_include_expsyms
  19678. # Commands necessary for linking programs (against libraries) with templates.
  19679. prelink_cmds=$lt_prelink_cmds
  19680. # Commands necessary for finishing linking programs.
  19681. postlink_cmds=$lt_postlink_cmds
  19682. # Specify filename containing input files.
  19683. file_list_spec=$lt_file_list_spec
  19684. # How to hardcode a shared library path into an executable.
  19685. hardcode_action=$hardcode_action
  19686. # The directories searched by this compiler when creating a shared library.
  19687. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19688. # Dependencies to place before and after the objects being linked to
  19689. # create a shared library.
  19690. predep_objects=$lt_predep_objects
  19691. postdep_objects=$lt_postdep_objects
  19692. predeps=$lt_predeps
  19693. postdeps=$lt_postdeps
  19694. # The library search path used internally by the compiler when linking
  19695. # a shared library.
  19696. compiler_lib_search_path=$lt_compiler_lib_search_path
  19697. # ### END LIBTOOL CONFIG
  19698. _LT_EOF
  19699. cat <<'_LT_EOF' >> "$cfgfile"
  19700. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19701. # func_munge_path_list VARIABLE PATH
  19702. # -----------------------------------
  19703. # VARIABLE is name of variable containing _space_ separated list of
  19704. # directories to be munged by the contents of PATH, which is string
  19705. # having a format:
  19706. # "DIR[:DIR]:"
  19707. # string "DIR[ DIR]" will be prepended to VARIABLE
  19708. # ":DIR[:DIR]"
  19709. # string "DIR[ DIR]" will be appended to VARIABLE
  19710. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19711. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19712. # "DIRA[ DIRA]" will be appended to VARIABLE
  19713. # "DIR[:DIR]"
  19714. # VARIABLE will be replaced by "DIR[ DIR]"
  19715. func_munge_path_list ()
  19716. {
  19717. case x$2 in
  19718. x)
  19719. ;;
  19720. *:)
  19721. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19722. ;;
  19723. x:*)
  19724. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19725. ;;
  19726. *::*)
  19727. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19728. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19729. ;;
  19730. *)
  19731. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19732. ;;
  19733. esac
  19734. }
  19735. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19736. func_cc_basename ()
  19737. {
  19738. for cc_temp in $*""; do
  19739. case $cc_temp in
  19740. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19741. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19742. \-*) ;;
  19743. *) break;;
  19744. esac
  19745. done
  19746. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19747. }
  19748. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19749. _LT_EOF
  19750. case $host_os in
  19751. aix3*)
  19752. cat <<\_LT_EOF >> "$cfgfile"
  19753. # AIX sometimes has problems with the GCC collect2 program. For some
  19754. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19755. # vanish in a puff of smoke.
  19756. if test set != "${COLLECT_NAMES+set}"; then
  19757. COLLECT_NAMES=
  19758. export COLLECT_NAMES
  19759. fi
  19760. _LT_EOF
  19761. ;;
  19762. esac
  19763. ltmain=$ac_aux_dir/ltmain.sh
  19764. # We use sed instead of cat because bash on DJGPP gets confused if
  19765. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19766. # text mode, it properly converts lines to CR/LF. This bash problem
  19767. # is reportedly fixed, but why not run on old versions too?
  19768. $SED '$q' "$ltmain" >> "$cfgfile" \
  19769. || (rm -f "$cfgfile"; exit 1)
  19770. mv -f "$cfgfile" "$ofile" ||
  19771. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19772. chmod +x "$ofile"
  19773. cat <<_LT_EOF >> "$ofile"
  19774. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19775. # The linker used to build libraries.
  19776. LD=$lt_LD_CXX
  19777. # How to create reloadable object files.
  19778. reload_flag=$lt_reload_flag_CXX
  19779. reload_cmds=$lt_reload_cmds_CXX
  19780. # Commands used to build an old-style archive.
  19781. old_archive_cmds=$lt_old_archive_cmds_CXX
  19782. # A language specific compiler.
  19783. CC=$lt_compiler_CXX
  19784. # Is the compiler the GNU compiler?
  19785. with_gcc=$GCC_CXX
  19786. # Compiler flag to turn off builtin functions.
  19787. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19788. # Additional compiler flags for building library objects.
  19789. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19790. # How to pass a linker flag through the compiler.
  19791. wl=$lt_lt_prog_compiler_wl_CXX
  19792. # Compiler flag to prevent dynamic linking.
  19793. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19794. # Does compiler simultaneously support -c and -o options?
  19795. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19796. # Whether or not to add -lc for building shared libraries.
  19797. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19798. # Whether or not to disallow shared libs when runtime libs are static.
  19799. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19800. # Compiler flag to allow reflexive dlopens.
  19801. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19802. # Compiler flag to generate shared objects directly from archives.
  19803. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19804. # Whether the compiler copes with passing no objects directly.
  19805. compiler_needs_object=$lt_compiler_needs_object_CXX
  19806. # Create an old-style archive from a shared archive.
  19807. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19808. # Create a temporary old-style archive to link instead of a shared archive.
  19809. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19810. # Commands used to build a shared archive.
  19811. archive_cmds=$lt_archive_cmds_CXX
  19812. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19813. # Commands used to build a loadable module if different from building
  19814. # a shared archive.
  19815. module_cmds=$lt_module_cmds_CXX
  19816. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19817. # Whether we are building with GNU ld or not.
  19818. with_gnu_ld=$lt_with_gnu_ld_CXX
  19819. # Flag that allows shared libraries with undefined symbols to be built.
  19820. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19821. # Flag that enforces no undefined symbols.
  19822. no_undefined_flag=$lt_no_undefined_flag_CXX
  19823. # Flag to hardcode \$libdir into a binary during linking.
  19824. # This must work even if \$libdir does not exist
  19825. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19826. # Whether we need a single "-rpath" flag with a separated argument.
  19827. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19828. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19829. # DIR into the resulting binary.
  19830. hardcode_direct=$hardcode_direct_CXX
  19831. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19832. # DIR into the resulting binary and the resulting library dependency is
  19833. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19834. # library is relocated.
  19835. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19836. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19837. # into the resulting binary.
  19838. hardcode_minus_L=$hardcode_minus_L_CXX
  19839. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19840. # into the resulting binary.
  19841. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19842. # Set to "yes" if building a shared library automatically hardcodes DIR
  19843. # into the library and all subsequent libraries and executables linked
  19844. # against it.
  19845. hardcode_automatic=$hardcode_automatic_CXX
  19846. # Set to yes if linker adds runtime paths of dependent libraries
  19847. # to runtime path list.
  19848. inherit_rpath=$inherit_rpath_CXX
  19849. # Whether libtool must link a program against all its dependency libraries.
  19850. link_all_deplibs=$link_all_deplibs_CXX
  19851. # Set to "yes" if exported symbols are required.
  19852. always_export_symbols=$always_export_symbols_CXX
  19853. # The commands to list exported symbols.
  19854. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19855. # Symbols that should not be listed in the preloaded symbols.
  19856. exclude_expsyms=$lt_exclude_expsyms_CXX
  19857. # Symbols that must always be exported.
  19858. include_expsyms=$lt_include_expsyms_CXX
  19859. # Commands necessary for linking programs (against libraries) with templates.
  19860. prelink_cmds=$lt_prelink_cmds_CXX
  19861. # Commands necessary for finishing linking programs.
  19862. postlink_cmds=$lt_postlink_cmds_CXX
  19863. # Specify filename containing input files.
  19864. file_list_spec=$lt_file_list_spec_CXX
  19865. # How to hardcode a shared library path into an executable.
  19866. hardcode_action=$hardcode_action_CXX
  19867. # The directories searched by this compiler when creating a shared library.
  19868. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19869. # Dependencies to place before and after the objects being linked to
  19870. # create a shared library.
  19871. predep_objects=$lt_predep_objects_CXX
  19872. postdep_objects=$lt_postdep_objects_CXX
  19873. predeps=$lt_predeps_CXX
  19874. postdeps=$lt_postdeps_CXX
  19875. # The library search path used internally by the compiler when linking
  19876. # a shared library.
  19877. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19878. # ### END LIBTOOL TAG CONFIG: CXX
  19879. _LT_EOF
  19880. ;;
  19881. "run.sh":F) chmod +x run.sh ;;
  19882. esac
  19883. done # for ac_tag
  19884. as_fn_exit 0
  19885. _ACEOF
  19886. ac_clean_files=$ac_clean_files_save
  19887. test $ac_write_fail = 0 ||
  19888. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19889. # configure is writing to config.log, and then calls config.status.
  19890. # config.status does its own redirection, appending to config.log.
  19891. # Unfortunately, on DOS this fails, as config.log is still kept open
  19892. # by configure, so config.status won't be able to write to it; its
  19893. # output is simply discarded. So we exec the FD to /dev/null,
  19894. # effectively closing config.log, so it can be properly (re)opened and
  19895. # appended to by config.status. When coming back to configure, we
  19896. # need to make the FD available again.
  19897. if test "$no_create" != yes; then
  19898. ac_cs_success=:
  19899. ac_config_status_args=
  19900. test "$silent" = yes &&
  19901. ac_config_status_args="$ac_config_status_args --quiet"
  19902. exec 5>/dev/null
  19903. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19904. exec 5>>config.log
  19905. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19906. # would make configure fail if this is the last instruction.
  19907. $ac_cs_success || as_fn_exit 1
  19908. fi
  19909. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19911. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19912. fi
  19913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
  19914. Automake flags (can be overridden by user flags):
  19915. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19916. AM_CFLAGS: ${AM_CFLAGS}
  19917. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19918. AM_LDFLAGS: ${AM_LDFLAGS}
  19919. User flags (override Automake flags on conflict):
  19920. CPPFLAGS: ${CPPFLAGS}
  19921. CFLAGS: ${CFLAGS}
  19922. CXXFLAGS: ${CXXFLAGS}
  19923. LDFLAGS: ${LDFLAGS}" >&5
  19924. printf "%s\n" "$as_me:
  19925. Automake flags (can be overridden by user flags):
  19926. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19927. AM_CFLAGS: ${AM_CFLAGS}
  19928. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19929. AM_LDFLAGS: ${AM_LDFLAGS}
  19930. User flags (override Automake flags on conflict):
  19931. CPPFLAGS: ${CPPFLAGS}
  19932. CFLAGS: ${CFLAGS}
  19933. CXXFLAGS: ${CXXFLAGS}
  19934. LDFLAGS: ${LDFLAGS}" >&6;}