configure 729 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for expat 2.7.3.
  4. #
  5. # Report bugs to <https://github.com/libexpat/libexpat/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20. then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else case e in #(
  28. e) case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac ;;
  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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  129. then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else case e in #(
  137. e) case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac ;;
  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 case e in #(
  159. e) exitcode=1; echo positional parameters were not saved. ;;
  160. esac
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  171. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  174. PATH=/empty FPATH=/empty; export PATH FPATH
  175. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  176. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  177. test \$(( 1 + 1 )) = 2 || exit 1"
  178. if (eval "$as_required") 2>/dev/null
  179. then :
  180. as_have_required=yes
  181. else case e in #(
  182. e) as_have_required=no ;;
  183. esac
  184. fi
  185. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  186. then :
  187. else case e in #(
  188. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  189. as_found=false
  190. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  191. do
  192. IFS=$as_save_IFS
  193. case $as_dir in #(((
  194. '') as_dir=./ ;;
  195. */) ;;
  196. *) as_dir=$as_dir/ ;;
  197. esac
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  206. then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  209. then :
  210. break 2
  211. fi
  212. fi
  213. done;;
  214. esac
  215. as_found=false
  216. done
  217. IFS=$as_save_IFS
  218. if $as_found
  219. then :
  220. else case e in #(
  221. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  223. then :
  224. CONFIG_SHELL=$SHELL as_have_required=yes
  225. fi ;;
  226. esac
  227. fi
  228. if test "x$CONFIG_SHELL" != x
  229. then :
  230. export CONFIG_SHELL
  231. # We cannot yet assume a decent shell, so we have to provide a
  232. # neutralization value for shells without unset; and this also
  233. # works around shells that cannot unset nonexistent variables.
  234. # Preserve -v and -x to the replacement shell.
  235. BASH_ENV=/dev/null
  236. ENV=/dev/null
  237. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  238. case $- in # ((((
  239. *v*x* | *x*v* ) as_opts=-vx ;;
  240. *v* ) as_opts=-v ;;
  241. *x* ) as_opts=-x ;;
  242. * ) as_opts= ;;
  243. esac
  244. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  245. # Admittedly, this is quite paranoid, since all the known shells bail
  246. # out after a failed 'exec'.
  247. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  248. exit 255
  249. fi
  250. if test x$as_have_required = xno
  251. then :
  252. printf "%s\n" "$0: This script requires a shell more modern than all"
  253. printf "%s\n" "$0: the shells that I found on your system."
  254. if test ${ZSH_VERSION+y} ; then
  255. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. printf "%s\n" "$0: Please tell [email protected] and
  259. $0: https://github.com/libexpat/libexpat/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi ;;
  266. esac
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. printf "%s\n" X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  359. then :
  360. eval 'as_fn_append ()
  361. {
  362. eval $1+=\$2
  363. }'
  364. else case e in #(
  365. e) as_fn_append ()
  366. {
  367. eval $1=\$$1\$2
  368. } ;;
  369. esac
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else case e in #(
  383. e) as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. } ;;
  387. esac
  388. fi # as_fn_arith
  389. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  390. # ----------------------------------------
  391. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  392. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  393. # script with STATUS, using 1 if that was 0.
  394. as_fn_error ()
  395. {
  396. as_status=$1; test $as_status -eq 0 && as_status=1
  397. if test "$4"; then
  398. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  400. fi
  401. printf "%s\n" "$as_me: error: $2" >&2
  402. as_fn_exit $as_status
  403. } # as_fn_error
  404. if expr a : '\(a\)' >/dev/null 2>&1 &&
  405. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  406. as_expr=expr
  407. else
  408. as_expr=false
  409. fi
  410. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  411. as_basename=basename
  412. else
  413. as_basename=false
  414. fi
  415. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  416. as_dirname=dirname
  417. else
  418. as_dirname=false
  419. fi
  420. as_me=`$as_basename -- "$0" ||
  421. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  422. X"$0" : 'X\(//\)$' \| \
  423. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  424. printf "%s\n" X/"$0" |
  425. sed '/^.*\/\([^/][^/]*\)\/*$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\/\)$/{
  430. s//\1/
  431. q
  432. }
  433. /^X\/\(\/\).*/{
  434. s//\1/
  435. q
  436. }
  437. s/.*/./; q'`
  438. # Avoid depending upon Character Ranges.
  439. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  440. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  441. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  442. as_cr_digits='0123456789'
  443. as_cr_alnum=$as_cr_Letters$as_cr_digits
  444. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  445. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  446. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  447. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  448. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  449. sed -n '
  450. p
  451. /[$]LINENO/=
  452. ' <$as_myself |
  453. sed '
  454. t clear
  455. :clear
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to 'cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  535. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  536. # Sed expression to map a string onto a valid variable name.
  537. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  538. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  539. SHELL=${CONFIG_SHELL-/bin/sh}
  540. test -n "$DJDIR" || exec 7<&0 </dev/null
  541. exec 6>&1
  542. # Name of the host.
  543. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  544. # so uname gets run too.
  545. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  546. #
  547. # Initializations.
  548. #
  549. ac_default_prefix=/usr/local
  550. ac_clean_files=
  551. ac_config_libobj_dir=.
  552. LIBOBJS=
  553. cross_compiling=no
  554. subdirs=
  555. MFLAGS=
  556. MAKEFLAGS=
  557. # Identity of this package.
  558. PACKAGE_NAME='expat'
  559. PACKAGE_TARNAME='expat'
  560. PACKAGE_VERSION='2.7.3'
  561. PACKAGE_STRING='expat 2.7.3'
  562. PACKAGE_BUGREPORT='https://github.com/libexpat/libexpat/issues'
  563. PACKAGE_URL=''
  564. ac_unique_file="Makefile.in"
  565. # Factoring default headers for most tests.
  566. ac_includes_default="\
  567. #include <stddef.h>
  568. #ifdef HAVE_STDIO_H
  569. # include <stdio.h>
  570. #endif
  571. #ifdef HAVE_STDLIB_H
  572. # include <stdlib.h>
  573. #endif
  574. #ifdef HAVE_STRING_H
  575. # include <string.h>
  576. #endif
  577. #ifdef HAVE_INTTYPES_H
  578. # include <inttypes.h>
  579. #endif
  580. #ifdef HAVE_STDINT_H
  581. # include <stdint.h>
  582. #endif
  583. #ifdef HAVE_STRINGS_H
  584. # include <strings.h>
  585. #endif
  586. #ifdef HAVE_SYS_TYPES_H
  587. # include <sys/types.h>
  588. #endif
  589. #ifdef HAVE_SYS_STAT_H
  590. # include <sys/stat.h>
  591. #endif
  592. #ifdef HAVE_UNISTD_H
  593. # include <unistd.h>
  594. #endif"
  595. ac_header_c_list=
  596. ac_func_c_list=
  597. ac_subst_vars='am__EXEEXT_FALSE
  598. am__EXEEXT_TRUE
  599. LTLIBOBJS
  600. LIBOBJS
  601. CMAKE_SHARED_LIBRARY_PREFIX
  602. AM_LDFLAGS
  603. AM_CXXFLAGS
  604. AM_CFLAGS
  605. AM_CPPFLAGS
  606. SIZEOF_VOID_P
  607. SO_PATCH
  608. SO_MINOR
  609. SO_MAJOR
  610. LIBDIR_BASENAME
  611. EXPAT_CHAR_TYPE
  612. EXPAT_CONTEXT_BYTES
  613. EXPAT_NS
  614. EXPAT_MIN_SIZE
  615. EXPAT_LARGE_SIZE
  616. EXPAT_DTD
  617. EXPAT_ATTR_INFO
  618. WITH_DISTRIBUTABLE_MANPAGE_FALSE
  619. WITH_DISTRIBUTABLE_MANPAGE_TRUE
  620. WITH_PREBUILT_MANPAGE_FALSE
  621. WITH_PREBUILT_MANPAGE_TRUE
  622. WITH_MANPAGE_FALSE
  623. WITH_MANPAGE_TRUE
  624. DOCBOOK_TO_MAN
  625. FILEMAP
  626. LIBM
  627. _INTERNAL_LARGE_SIZE_FALSE
  628. _INTERNAL_LARGE_SIZE_TRUE
  629. _INTERNAL_MIN_SIZE_FALSE
  630. _INTERNAL_MIN_SIZE_TRUE
  631. _INTERNAL_UNICODE_WCHAR_T_FALSE
  632. _INTERNAL_UNICODE_WCHAR_T_TRUE
  633. UNICODE_FALSE
  634. UNICODE_TRUE
  635. MINGW_FALSE
  636. MINGW_TRUE
  637. HAVE_CXX11
  638. WITH_TESTS_FALSE
  639. WITH_TESTS_TRUE
  640. WITH_EXAMPLES_FALSE
  641. WITH_EXAMPLES_TRUE
  642. WITH_XMLWF_FALSE
  643. WITH_XMLWF_TRUE
  644. CXXCPP
  645. am__fastdepCXX_FALSE
  646. am__fastdepCXX_TRUE
  647. CXXDEPMODE
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LIBAGE
  652. LIBREVISION
  653. LIBCURRENT
  654. LT_SYS_LIBRARY_PATH
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. RANLIB
  662. FILECMD
  663. LN_S
  664. NM
  665. ac_ct_DUMPBIN
  666. DUMPBIN
  667. LD
  668. FGREP
  669. EGREP
  670. GREP
  671. SED
  672. LIBTOOL
  673. OBJDUMP
  674. DLLTOOL
  675. AS
  676. am__fastdepCC_FALSE
  677. am__fastdepCC_TRUE
  678. CCDEPMODE
  679. am__nodep
  680. AMDEPBACKSLASH
  681. AMDEP_FALSE
  682. AMDEP_TRUE
  683. am__include
  684. DEPDIR
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. ac_ct_AR
  693. AR
  694. MAINT
  695. MAINTAINER_MODE_FALSE
  696. MAINTAINER_MODE_TRUE
  697. am__xargs_n
  698. am__rm_f_notfound
  699. AM_BACKSLASH
  700. AM_DEFAULT_VERBOSITY
  701. AM_DEFAULT_V
  702. AM_V
  703. CSCOPE
  704. ETAGS
  705. CTAGS
  706. am__untar
  707. am__tar
  708. AMTAR
  709. am__leading_dot
  710. SET_MAKE
  711. AWK
  712. mkdir_p
  713. MKDIR_P
  714. INSTALL_STRIP_PROGRAM
  715. STRIP
  716. install_sh
  717. MAKEINFO
  718. AUTOHEADER
  719. AUTOMAKE
  720. AUTOCONF
  721. ACLOCAL
  722. VERSION
  723. PACKAGE
  724. CYGPATH_W
  725. am__isrc
  726. INSTALL_DATA
  727. INSTALL_SCRIPT
  728. INSTALL_PROGRAM
  729. host_os
  730. host_vendor
  731. host_cpu
  732. host
  733. build_os
  734. build_vendor
  735. build_cpu
  736. build
  737. target_alias
  738. host_alias
  739. build_alias
  740. LIBS
  741. ECHO_T
  742. ECHO_N
  743. ECHO_C
  744. DEFS
  745. mandir
  746. localedir
  747. libdir
  748. psdir
  749. pdfdir
  750. dvidir
  751. htmldir
  752. infodir
  753. docdir
  754. oldincludedir
  755. includedir
  756. runstatedir
  757. localstatedir
  758. sharedstatedir
  759. sysconfdir
  760. datadir
  761. datarootdir
  762. libexecdir
  763. sbindir
  764. bindir
  765. program_transform_name
  766. prefix
  767. exec_prefix
  768. PACKAGE_URL
  769. PACKAGE_BUGREPORT
  770. PACKAGE_STRING
  771. PACKAGE_VERSION
  772. PACKAGE_TARNAME
  773. PACKAGE_NAME
  774. PATH_SEPARATOR
  775. SHELL
  776. am__quote'
  777. ac_subst_files='PACKAGE_INIT'
  778. ac_user_opts='
  779. enable_option_checking
  780. enable_silent_rules
  781. enable_maintainer_mode
  782. enable_dependency_tracking
  783. enable_shared
  784. enable_static
  785. enable_pic
  786. with_pic
  787. enable_fast_install
  788. enable_aix_soname
  789. with_aix_soname
  790. with_gnu_ld
  791. with_sysroot
  792. enable_libtool_lock
  793. with_xmlwf
  794. with_examples
  795. with_tests
  796. with_libbsd
  797. with_getrandom
  798. with_sys_getrandom
  799. enable_xml_attr_info
  800. enable_xml_context
  801. with_docbook
  802. '
  803. ac_precious_vars='build_alias
  804. host_alias
  805. target_alias
  806. CC
  807. CFLAGS
  808. LDFLAGS
  809. LIBS
  810. CPPFLAGS
  811. LT_SYS_LIBRARY_PATH
  812. CXX
  813. CXXFLAGS
  814. CCC
  815. CXXCPP
  816. DOCBOOK_TO_MAN'
  817. # Initialize some variables set by options.
  818. ac_init_help=
  819. ac_init_version=false
  820. ac_unrecognized_opts=
  821. ac_unrecognized_sep=
  822. # The variables have the same names as the options, with
  823. # dashes changed to underlines.
  824. cache_file=/dev/null
  825. exec_prefix=NONE
  826. no_create=
  827. no_recursion=
  828. prefix=NONE
  829. program_prefix=NONE
  830. program_suffix=NONE
  831. program_transform_name=s,x,x,
  832. silent=
  833. site=
  834. srcdir=
  835. verbose=
  836. x_includes=NONE
  837. x_libraries=NONE
  838. # Installation directory options.
  839. # These are left unexpanded so users can "make install exec_prefix=/foo"
  840. # and all the variables that are supposed to be based on exec_prefix
  841. # by default will actually change.
  842. # Use braces instead of parens because sh, perl, etc. also accept them.
  843. # (The list follows the same order as the GNU Coding Standards.)
  844. bindir='${exec_prefix}/bin'
  845. sbindir='${exec_prefix}/sbin'
  846. libexecdir='${exec_prefix}/libexec'
  847. datarootdir='${prefix}/share'
  848. datadir='${datarootdir}'
  849. sysconfdir='${prefix}/etc'
  850. sharedstatedir='${prefix}/com'
  851. localstatedir='${prefix}/var'
  852. runstatedir='${localstatedir}/run'
  853. includedir='${prefix}/include'
  854. oldincludedir='/usr/include'
  855. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  856. infodir='${datarootdir}/info'
  857. htmldir='${docdir}'
  858. dvidir='${docdir}'
  859. pdfdir='${docdir}'
  860. psdir='${docdir}'
  861. libdir='${exec_prefix}/lib'
  862. localedir='${datarootdir}/locale'
  863. mandir='${datarootdir}/man'
  864. ac_prev=
  865. ac_dashdash=
  866. for ac_option
  867. do
  868. # If the previous option needs an argument, assign it.
  869. if test -n "$ac_prev"; then
  870. eval $ac_prev=\$ac_option
  871. ac_prev=
  872. continue
  873. fi
  874. case $ac_option in
  875. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  876. *=) ac_optarg= ;;
  877. *) ac_optarg=yes ;;
  878. esac
  879. case $ac_dashdash$ac_option in
  880. --)
  881. ac_dashdash=yes ;;
  882. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  883. ac_prev=bindir ;;
  884. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  885. bindir=$ac_optarg ;;
  886. -build | --build | --buil | --bui | --bu)
  887. ac_prev=build_alias ;;
  888. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  889. build_alias=$ac_optarg ;;
  890. -cache-file | --cache-file | --cache-fil | --cache-fi \
  891. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  892. ac_prev=cache_file ;;
  893. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  894. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  895. cache_file=$ac_optarg ;;
  896. --config-cache | -C)
  897. cache_file=config.cache ;;
  898. -datadir | --datadir | --datadi | --datad)
  899. ac_prev=datadir ;;
  900. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  901. datadir=$ac_optarg ;;
  902. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  903. | --dataroo | --dataro | --datar)
  904. ac_prev=datarootdir ;;
  905. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  906. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  907. datarootdir=$ac_optarg ;;
  908. -disable-* | --disable-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. as_fn_error $? "invalid feature name: '$ac_useropt'"
  913. ac_useropt_orig=$ac_useropt
  914. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  915. case $ac_user_opts in
  916. *"
  917. "enable_$ac_useropt"
  918. "*) ;;
  919. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  920. ac_unrecognized_sep=', ';;
  921. esac
  922. eval enable_$ac_useropt=no ;;
  923. -docdir | --docdir | --docdi | --doc | --do)
  924. ac_prev=docdir ;;
  925. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  926. docdir=$ac_optarg ;;
  927. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  928. ac_prev=dvidir ;;
  929. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  930. dvidir=$ac_optarg ;;
  931. -enable-* | --enable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: '$ac_useropt'"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=\$ac_optarg ;;
  946. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  947. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  948. | --exec | --exe | --ex)
  949. ac_prev=exec_prefix ;;
  950. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  951. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  952. | --exec=* | --exe=* | --ex=*)
  953. exec_prefix=$ac_optarg ;;
  954. -gas | --gas | --ga | --g)
  955. # Obsolete; use --with-gas.
  956. with_gas=yes ;;
  957. -help | --help | --hel | --he | -h)
  958. ac_init_help=long ;;
  959. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  960. ac_init_help=recursive ;;
  961. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  962. ac_init_help=short ;;
  963. -host | --host | --hos | --ho)
  964. ac_prev=host_alias ;;
  965. -host=* | --host=* | --hos=* | --ho=*)
  966. host_alias=$ac_optarg ;;
  967. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  968. ac_prev=htmldir ;;
  969. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  970. | --ht=*)
  971. htmldir=$ac_optarg ;;
  972. -includedir | --includedir | --includedi | --included | --include \
  973. | --includ | --inclu | --incl | --inc)
  974. ac_prev=includedir ;;
  975. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  976. | --includ=* | --inclu=* | --incl=* | --inc=*)
  977. includedir=$ac_optarg ;;
  978. -infodir | --infodir | --infodi | --infod | --info | --inf)
  979. ac_prev=infodir ;;
  980. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  981. infodir=$ac_optarg ;;
  982. -libdir | --libdir | --libdi | --libd)
  983. ac_prev=libdir ;;
  984. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  985. libdir=$ac_optarg ;;
  986. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  987. | --libexe | --libex | --libe)
  988. ac_prev=libexecdir ;;
  989. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  990. | --libexe=* | --libex=* | --libe=*)
  991. libexecdir=$ac_optarg ;;
  992. -localedir | --localedir | --localedi | --localed | --locale)
  993. ac_prev=localedir ;;
  994. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  995. localedir=$ac_optarg ;;
  996. -localstatedir | --localstatedir | --localstatedi | --localstated \
  997. | --localstate | --localstat | --localsta | --localst | --locals)
  998. ac_prev=localstatedir ;;
  999. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1000. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1001. localstatedir=$ac_optarg ;;
  1002. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1003. ac_prev=mandir ;;
  1004. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1005. mandir=$ac_optarg ;;
  1006. -nfp | --nfp | --nf)
  1007. # Obsolete; use --without-fp.
  1008. with_fp=no ;;
  1009. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1010. | --no-cr | --no-c | -n)
  1011. no_create=yes ;;
  1012. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1013. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1014. no_recursion=yes ;;
  1015. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1016. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1017. | --oldin | --oldi | --old | --ol | --o)
  1018. ac_prev=oldincludedir ;;
  1019. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1020. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1021. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1022. oldincludedir=$ac_optarg ;;
  1023. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1024. ac_prev=prefix ;;
  1025. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1026. prefix=$ac_optarg ;;
  1027. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1028. | --program-pre | --program-pr | --program-p)
  1029. ac_prev=program_prefix ;;
  1030. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1031. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1032. program_prefix=$ac_optarg ;;
  1033. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1034. | --program-suf | --program-su | --program-s)
  1035. ac_prev=program_suffix ;;
  1036. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1037. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1038. program_suffix=$ac_optarg ;;
  1039. -program-transform-name | --program-transform-name \
  1040. | --program-transform-nam | --program-transform-na \
  1041. | --program-transform-n | --program-transform- \
  1042. | --program-transform | --program-transfor \
  1043. | --program-transfo | --program-transf \
  1044. | --program-trans | --program-tran \
  1045. | --progr-tra | --program-tr | --program-t)
  1046. ac_prev=program_transform_name ;;
  1047. -program-transform-name=* | --program-transform-name=* \
  1048. | --program-transform-nam=* | --program-transform-na=* \
  1049. | --program-transform-n=* | --program-transform-=* \
  1050. | --program-transform=* | --program-transfor=* \
  1051. | --program-transfo=* | --program-transf=* \
  1052. | --program-trans=* | --program-tran=* \
  1053. | --progr-tra=* | --program-tr=* | --program-t=*)
  1054. program_transform_name=$ac_optarg ;;
  1055. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1056. ac_prev=pdfdir ;;
  1057. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1058. pdfdir=$ac_optarg ;;
  1059. -psdir | --psdir | --psdi | --psd | --ps)
  1060. ac_prev=psdir ;;
  1061. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1062. psdir=$ac_optarg ;;
  1063. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1064. | -silent | --silent | --silen | --sile | --sil)
  1065. silent=yes ;;
  1066. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1067. | --runstate | --runstat | --runsta | --runst | --runs \
  1068. | --run | --ru | --r)
  1069. ac_prev=runstatedir ;;
  1070. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1071. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1072. | --run=* | --ru=* | --r=*)
  1073. runstatedir=$ac_optarg ;;
  1074. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1075. ac_prev=sbindir ;;
  1076. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1077. | --sbi=* | --sb=*)
  1078. sbindir=$ac_optarg ;;
  1079. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1080. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1081. | --sharedst | --shareds | --shared | --share | --shar \
  1082. | --sha | --sh)
  1083. ac_prev=sharedstatedir ;;
  1084. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1085. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1086. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1087. | --sha=* | --sh=*)
  1088. sharedstatedir=$ac_optarg ;;
  1089. -site | --site | --sit)
  1090. ac_prev=site ;;
  1091. -site=* | --site=* | --sit=*)
  1092. site=$ac_optarg ;;
  1093. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1094. ac_prev=srcdir ;;
  1095. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1096. srcdir=$ac_optarg ;;
  1097. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1098. | --syscon | --sysco | --sysc | --sys | --sy)
  1099. ac_prev=sysconfdir ;;
  1100. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1101. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1102. sysconfdir=$ac_optarg ;;
  1103. -target | --target | --targe | --targ | --tar | --ta | --t)
  1104. ac_prev=target_alias ;;
  1105. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1106. target_alias=$ac_optarg ;;
  1107. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1108. verbose=yes ;;
  1109. -version | --version | --versio | --versi | --vers | -V)
  1110. ac_init_version=: ;;
  1111. -with-* | --with-*)
  1112. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1113. # Reject names that are not valid shell variable names.
  1114. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1115. as_fn_error $? "invalid package name: '$ac_useropt'"
  1116. ac_useropt_orig=$ac_useropt
  1117. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1118. case $ac_user_opts in
  1119. *"
  1120. "with_$ac_useropt"
  1121. "*) ;;
  1122. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1123. ac_unrecognized_sep=', ';;
  1124. esac
  1125. eval with_$ac_useropt=\$ac_optarg ;;
  1126. -without-* | --without-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error $? "invalid package name: '$ac_useropt'"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=no ;;
  1141. --x)
  1142. # Obsolete; use --with-x.
  1143. with_x=yes ;;
  1144. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1145. | --x-incl | --x-inc | --x-in | --x-i)
  1146. ac_prev=x_includes ;;
  1147. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1148. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1149. x_includes=$ac_optarg ;;
  1150. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1151. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1152. ac_prev=x_libraries ;;
  1153. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1154. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1155. x_libraries=$ac_optarg ;;
  1156. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1157. Try '$0 --help' for more information"
  1158. ;;
  1159. *=*)
  1160. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1161. # Reject names that are not valid shell variable names.
  1162. case $ac_envvar in #(
  1163. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1164. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1165. esac
  1166. eval $ac_envvar=\$ac_optarg
  1167. export $ac_envvar ;;
  1168. *)
  1169. # FIXME: should be removed in autoconf 3.0.
  1170. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1171. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1172. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1173. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1174. ;;
  1175. esac
  1176. done
  1177. if test -n "$ac_prev"; then
  1178. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1179. as_fn_error $? "missing argument to $ac_option"
  1180. fi
  1181. if test -n "$ac_unrecognized_opts"; then
  1182. case $enable_option_checking in
  1183. no) ;;
  1184. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1185. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1186. esac
  1187. fi
  1188. # Check all directory arguments for consistency.
  1189. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1190. datadir sysconfdir sharedstatedir localstatedir includedir \
  1191. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1192. libdir localedir mandir runstatedir
  1193. do
  1194. eval ac_val=\$$ac_var
  1195. # Remove trailing slashes.
  1196. case $ac_val in
  1197. */ )
  1198. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1199. eval $ac_var=\$ac_val;;
  1200. esac
  1201. # Be sure to have absolute directory names.
  1202. case $ac_val in
  1203. [\\/$]* | ?:[\\/]* ) continue;;
  1204. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1205. esac
  1206. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1207. done
  1208. # There might be people who depend on the old broken behavior: '$host'
  1209. # used to hold the argument of --host etc.
  1210. # FIXME: To remove some day.
  1211. build=$build_alias
  1212. host=$host_alias
  1213. target=$target_alias
  1214. # FIXME: To remove some day.
  1215. if test "x$host_alias" != x; then
  1216. if test "x$build_alias" = x; then
  1217. cross_compiling=maybe
  1218. elif test "x$build_alias" != "x$host_alias"; then
  1219. cross_compiling=yes
  1220. fi
  1221. fi
  1222. ac_tool_prefix=
  1223. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1224. test "$silent" = yes && exec 6>/dev/null
  1225. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1226. ac_ls_di=`ls -di .` &&
  1227. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1228. as_fn_error $? "working directory cannot be determined"
  1229. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1230. as_fn_error $? "pwd does not report name of working directory"
  1231. # Find the source files, if location was not specified.
  1232. if test -z "$srcdir"; then
  1233. ac_srcdir_defaulted=yes
  1234. # Try the directory containing this script, then the parent directory.
  1235. ac_confdir=`$as_dirname -- "$as_myself" ||
  1236. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1237. X"$as_myself" : 'X\(//\)[^/]' \| \
  1238. X"$as_myself" : 'X\(//\)$' \| \
  1239. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1240. printf "%s\n" X"$as_myself" |
  1241. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\/\)[^/].*/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\/\)$/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\).*/{
  1254. s//\1/
  1255. q
  1256. }
  1257. s/.*/./; q'`
  1258. srcdir=$ac_confdir
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. srcdir=..
  1261. fi
  1262. else
  1263. ac_srcdir_defaulted=no
  1264. fi
  1265. if test ! -r "$srcdir/$ac_unique_file"; then
  1266. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1267. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1268. fi
  1269. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1270. ac_abs_confdir=`(
  1271. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1272. pwd)`
  1273. # When building in place, set srcdir=.
  1274. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1275. srcdir=.
  1276. fi
  1277. # Remove unnecessary trailing slashes from srcdir.
  1278. # Double slashes in file names in object file debugging info
  1279. # mess up M-x gdb in Emacs.
  1280. case $srcdir in
  1281. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1282. esac
  1283. for ac_var in $ac_precious_vars; do
  1284. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1285. eval ac_env_${ac_var}_value=\$${ac_var}
  1286. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1287. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1288. done
  1289. #
  1290. # Report the --help message.
  1291. #
  1292. if test "$ac_init_help" = "long"; then
  1293. # Omit some internal or obsolete options to make the list less imposing.
  1294. # This message is too long to be a string in the A/UX 3.1 sh.
  1295. cat <<_ACEOF
  1296. 'configure' configures expat 2.7.3 to adapt to many kinds of systems.
  1297. Usage: $0 [OPTION]... [VAR=VALUE]...
  1298. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1299. VAR=VALUE. See below for descriptions of some of the useful variables.
  1300. Defaults for the options are specified in brackets.
  1301. Configuration:
  1302. -h, --help display this help and exit
  1303. --help=short display options specific to this package
  1304. --help=recursive display the short help of all the included packages
  1305. -V, --version display version information and exit
  1306. -q, --quiet, --silent do not print 'checking ...' messages
  1307. --cache-file=FILE cache test results in FILE [disabled]
  1308. -C, --config-cache alias for '--cache-file=config.cache'
  1309. -n, --no-create do not create output files
  1310. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1311. Installation directories:
  1312. --prefix=PREFIX install architecture-independent files in PREFIX
  1313. [$ac_default_prefix]
  1314. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1315. [PREFIX]
  1316. By default, 'make install' will install all the files in
  1317. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1318. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1319. for instance '--prefix=\$HOME'.
  1320. For better control, use the options below.
  1321. Fine tuning of the installation directories:
  1322. --bindir=DIR user executables [EPREFIX/bin]
  1323. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1324. --libexecdir=DIR program executables [EPREFIX/libexec]
  1325. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1326. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1327. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1328. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1329. --libdir=DIR object code libraries [EPREFIX/lib]
  1330. --includedir=DIR C header files [PREFIX/include]
  1331. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1332. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1333. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1334. --infodir=DIR info documentation [DATAROOTDIR/info]
  1335. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1336. --mandir=DIR man documentation [DATAROOTDIR/man]
  1337. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1338. --htmldir=DIR html documentation [DOCDIR]
  1339. --dvidir=DIR dvi documentation [DOCDIR]
  1340. --pdfdir=DIR pdf documentation [DOCDIR]
  1341. --psdir=DIR ps documentation [DOCDIR]
  1342. _ACEOF
  1343. cat <<\_ACEOF
  1344. Program names:
  1345. --program-prefix=PREFIX prepend PREFIX to installed program names
  1346. --program-suffix=SUFFIX append SUFFIX to installed program names
  1347. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1348. System types:
  1349. --build=BUILD configure for building on BUILD [guessed]
  1350. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1351. _ACEOF
  1352. fi
  1353. if test -n "$ac_init_help"; then
  1354. case $ac_init_help in
  1355. short | recursive ) echo "Configuration of expat 2.7.3:";;
  1356. esac
  1357. cat <<\_ACEOF
  1358. Optional Features:
  1359. --disable-option-checking ignore unrecognized --enable/--with options
  1360. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1361. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1362. --enable-silent-rules less verbose build output (undo: "make V=1")
  1363. --disable-silent-rules verbose build output (undo: "make V=0")
  1364. --disable-maintainer-mode
  1365. disable make rules and dependencies not useful (and
  1366. sometimes confusing) to the casual installer
  1367. --enable-dependency-tracking
  1368. do not reject slow dependency extractors
  1369. --disable-dependency-tracking
  1370. speeds up one-time build
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=yes]
  1373. --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1374. both]
  1375. --enable-fast-install[=PKGS]
  1376. optimize for fast installation [default=yes]
  1377. --enable-aix-soname=aix|svr4|both
  1378. shared library versioning (aka "SONAME") variant to
  1379. provide on AIX, [default=aix].
  1380. --disable-libtool-lock avoid locking (might break parallel builds)
  1381. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1382. names and values [default=no]
  1383. --enable-xml-context [COUNT]
  1384. Retain context around the current parse point;
  1385. default is enabled and a size of 1024 bytes
  1386. --disable-xml-context Do not retain context around the current parse point
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1391. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1392. compiler's sysroot if not specified).
  1393. --without-xmlwf do not build xmlwf
  1394. --without-examples do not build examples [default=included]
  1395. --without-tests do not build tests [default=included]
  1396. --with-libbsd utilize libbsd (for arc4random_buf)
  1397. --with-getrandom enforce the use of getrandom function in the system
  1398. [default=check]
  1399. --without-getrandom skip auto detect of getrandom [default=check]
  1400. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1401. the system [default=check]
  1402. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1403. [default=check]
  1404. --with-docbook enforce XML to man page compilation [default=check]
  1405. --without-docbook skip XML to man page compilation [default=check]
  1406. Some influential environment variables:
  1407. CC C compiler command
  1408. CFLAGS C compiler flags
  1409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1410. nonstandard directory <lib dir>
  1411. LIBS libraries to pass to the linker, e.g. -l<library>
  1412. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1413. you have headers in a nonstandard directory <include dir>
  1414. LT_SYS_LIBRARY_PATH
  1415. User-defined run-time library search path.
  1416. CXX C++ compiler command
  1417. CXXFLAGS C++ compiler flags
  1418. CXXCPP C++ preprocessor
  1419. DOCBOOK_TO_MAN
  1420. docbook2x-man command
  1421. Use these variables to override the choices made by 'configure' or to help
  1422. it to find libraries and programs with nonstandard names/locations.
  1423. Report bugs to <https://github.com/libexpat/libexpat/issues>.
  1424. _ACEOF
  1425. ac_status=$?
  1426. fi
  1427. if test "$ac_init_help" = "recursive"; then
  1428. # If there are subdirs, report their specific --help.
  1429. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1430. test -d "$ac_dir" ||
  1431. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1432. continue
  1433. ac_builddir=.
  1434. case "$ac_dir" in
  1435. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1436. *)
  1437. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1438. # A ".." for each directory in $ac_dir_suffix.
  1439. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1440. case $ac_top_builddir_sub in
  1441. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1442. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1443. esac ;;
  1444. esac
  1445. ac_abs_top_builddir=$ac_pwd
  1446. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1447. # for backward compatibility:
  1448. ac_top_builddir=$ac_top_build_prefix
  1449. case $srcdir in
  1450. .) # We are building in place.
  1451. ac_srcdir=.
  1452. ac_top_srcdir=$ac_top_builddir_sub
  1453. ac_abs_top_srcdir=$ac_pwd ;;
  1454. [\\/]* | ?:[\\/]* ) # Absolute name.
  1455. ac_srcdir=$srcdir$ac_dir_suffix;
  1456. ac_top_srcdir=$srcdir
  1457. ac_abs_top_srcdir=$srcdir ;;
  1458. *) # Relative name.
  1459. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1460. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1461. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1462. esac
  1463. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1464. cd "$ac_dir" || { ac_status=$?; continue; }
  1465. # Check for configure.gnu first; this name is used for a wrapper for
  1466. # Metaconfig's "Configure" on case-insensitive file systems.
  1467. if test -f "$ac_srcdir/configure.gnu"; then
  1468. echo &&
  1469. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1470. elif test -f "$ac_srcdir/configure"; then
  1471. echo &&
  1472. $SHELL "$ac_srcdir/configure" --help=recursive
  1473. else
  1474. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1475. fi || ac_status=$?
  1476. cd "$ac_pwd" || { ac_status=$?; break; }
  1477. done
  1478. fi
  1479. test -n "$ac_init_help" && exit $ac_status
  1480. if $ac_init_version; then
  1481. cat <<\_ACEOF
  1482. expat configure 2.7.3
  1483. generated by GNU Autoconf 2.72
  1484. Copyright (C) 2023 Free Software Foundation, Inc.
  1485. This configure script is free software; the Free Software Foundation
  1486. gives unlimited permission to copy, distribute and modify it.
  1487. _ACEOF
  1488. exit
  1489. fi
  1490. ## ------------------------ ##
  1491. ## Autoconf initialization. ##
  1492. ## ------------------------ ##
  1493. # ac_fn_c_try_compile LINENO
  1494. # --------------------------
  1495. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_c_try_compile ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. rm -f conftest.$ac_objext conftest.beam
  1500. if { { ac_try="$ac_compile"
  1501. case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. printf "%s\n" "$ac_try_echo"; } >&5
  1507. (eval "$ac_compile") 2>conftest.err
  1508. ac_status=$?
  1509. if test -s conftest.err; then
  1510. grep -v '^ *+' conftest.err >conftest.er1
  1511. cat conftest.er1 >&5
  1512. mv -f conftest.er1 conftest.err
  1513. fi
  1514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1515. test $ac_status = 0; } && {
  1516. test -z "$ac_c_werror_flag" ||
  1517. test ! -s conftest.err
  1518. } && test -s conftest.$ac_objext
  1519. then :
  1520. ac_retval=0
  1521. else case e in #(
  1522. e) printf "%s\n" "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1 ;;
  1525. esac
  1526. fi
  1527. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1528. as_fn_set_status $ac_retval
  1529. } # ac_fn_c_try_compile
  1530. # ac_fn_c_try_link LINENO
  1531. # -----------------------
  1532. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_c_try_link ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1537. if { { ac_try="$ac_link"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. printf "%s\n" "$ac_try_echo"; } >&5
  1544. (eval "$ac_link") 2>conftest.err
  1545. ac_status=$?
  1546. if test -s conftest.err; then
  1547. grep -v '^ *+' conftest.err >conftest.er1
  1548. cat conftest.er1 >&5
  1549. mv -f conftest.er1 conftest.err
  1550. fi
  1551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && {
  1553. test -z "$ac_c_werror_flag" ||
  1554. test ! -s conftest.err
  1555. } && test -s conftest$ac_exeext && {
  1556. test "$cross_compiling" = yes ||
  1557. test -x conftest$ac_exeext
  1558. }
  1559. then :
  1560. ac_retval=0
  1561. else case e in #(
  1562. e) printf "%s\n" "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1 ;;
  1565. esac
  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 case e in #(
  1588. e) 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 case e in #(
  1597. e) eval "$3=no" ;;
  1598. esac
  1599. fi
  1600. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1601. esac
  1602. fi
  1603. eval ac_res=\$$3
  1604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1605. printf "%s\n" "$ac_res" >&6; }
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. } # ac_fn_c_check_header_compile
  1608. # ac_fn_c_check_func LINENO FUNC VAR
  1609. # ----------------------------------
  1610. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1611. ac_fn_c_check_func ()
  1612. {
  1613. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1615. printf %s "checking for $2... " >&6; }
  1616. if eval test \${$3+y}
  1617. then :
  1618. printf %s "(cached) " >&6
  1619. else case e in #(
  1620. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1624. #define $2 innocuous_$2
  1625. /* System header to define __stub macros and hopefully few prototypes,
  1626. which can conflict with char $2 (void); below. */
  1627. #include <limits.h>
  1628. #undef $2
  1629. /* Override any GCC internal prototype to avoid an error.
  1630. Use char because int might match the return type of a GCC
  1631. builtin and then its argument prototype would still apply. */
  1632. #ifdef __cplusplus
  1633. extern "C"
  1634. #endif
  1635. char $2 (void);
  1636. /* The GNU C library defines this for functions which it implements
  1637. to always fail with ENOSYS. Some functions are actually named
  1638. something starting with __ and the normal name is an alias. */
  1639. #if defined __stub_$2 || defined __stub___$2
  1640. choke me
  1641. #endif
  1642. int
  1643. main (void)
  1644. {
  1645. return $2 ();
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. if ac_fn_c_try_link "$LINENO"
  1651. then :
  1652. eval "$3=yes"
  1653. else case e in #(
  1654. e) eval "$3=no" ;;
  1655. esac
  1656. fi
  1657. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1658. conftest$ac_exeext conftest.$ac_ext ;;
  1659. esac
  1660. fi
  1661. eval ac_res=\$$3
  1662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. printf "%s\n" "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } # ac_fn_c_check_func
  1666. # ac_fn_cxx_try_compile LINENO
  1667. # ----------------------------
  1668. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1669. ac_fn_cxx_try_compile ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. rm -f conftest.$ac_objext conftest.beam
  1673. if { { ac_try="$ac_compile"
  1674. case "(($ac_try" in
  1675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1676. *) ac_try_echo=$ac_try;;
  1677. esac
  1678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1679. printf "%s\n" "$ac_try_echo"; } >&5
  1680. (eval "$ac_compile") 2>conftest.err
  1681. ac_status=$?
  1682. if test -s conftest.err; then
  1683. grep -v '^ *+' conftest.err >conftest.er1
  1684. cat conftest.er1 >&5
  1685. mv -f conftest.er1 conftest.err
  1686. fi
  1687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1688. test $ac_status = 0; } && {
  1689. test -z "$ac_cxx_werror_flag" ||
  1690. test ! -s conftest.err
  1691. } && test -s conftest.$ac_objext
  1692. then :
  1693. ac_retval=0
  1694. else case e in #(
  1695. e) printf "%s\n" "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_retval=1 ;;
  1698. esac
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_cxx_try_compile
  1703. # ac_fn_cxx_try_cpp LINENO
  1704. # ------------------------
  1705. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_cxx_try_cpp ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. printf "%s\n" "$ac_try_echo"; } >&5
  1716. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1717. ac_status=$?
  1718. if test -s conftest.err; then
  1719. grep -v '^ *+' conftest.err >conftest.er1
  1720. cat conftest.er1 >&5
  1721. mv -f conftest.er1 conftest.err
  1722. fi
  1723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } > conftest.i && {
  1725. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1726. test ! -s conftest.err
  1727. }
  1728. then :
  1729. ac_retval=0
  1730. else case e in #(
  1731. e) printf "%s\n" "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1 ;;
  1734. esac
  1735. fi
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_cxx_try_cpp
  1739. # ac_fn_cxx_try_link LINENO
  1740. # -------------------------
  1741. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1742. ac_fn_cxx_try_link ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1746. if { { ac_try="$ac_link"
  1747. case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1752. printf "%s\n" "$ac_try_echo"; } >&5
  1753. (eval "$ac_link") 2>conftest.err
  1754. ac_status=$?
  1755. if test -s conftest.err; then
  1756. grep -v '^ *+' conftest.err >conftest.er1
  1757. cat conftest.er1 >&5
  1758. mv -f conftest.er1 conftest.err
  1759. fi
  1760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; } && {
  1762. test -z "$ac_cxx_werror_flag" ||
  1763. test ! -s conftest.err
  1764. } && test -s conftest$ac_exeext && {
  1765. test "$cross_compiling" = yes ||
  1766. test -x conftest$ac_exeext
  1767. }
  1768. then :
  1769. ac_retval=0
  1770. else case e in #(
  1771. e) printf "%s\n" "$as_me: failed program was:" >&5
  1772. sed 's/^/| /' conftest.$ac_ext >&5
  1773. ac_retval=1 ;;
  1774. esac
  1775. fi
  1776. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1777. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1778. # interfere with the next link command; also delete a directory that is
  1779. # left behind by Apple's compiler. We do this before executing the actions.
  1780. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_cxx_try_link
  1784. # ac_fn_c_try_run LINENO
  1785. # ----------------------
  1786. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1787. # executables *can* be run.
  1788. ac_fn_c_try_run ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. if { { ac_try="$ac_link"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. printf "%s\n" "$ac_try_echo"; } >&5
  1798. (eval "$ac_link") 2>&5
  1799. ac_status=$?
  1800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1801. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1802. { { case "(($ac_try" in
  1803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1804. *) ac_try_echo=$ac_try;;
  1805. esac
  1806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1807. printf "%s\n" "$ac_try_echo"; } >&5
  1808. (eval "$ac_try") 2>&5
  1809. ac_status=$?
  1810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1811. test $ac_status = 0; }; }
  1812. then :
  1813. ac_retval=0
  1814. else case e in #(
  1815. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1816. printf "%s\n" "$as_me: failed program was:" >&5
  1817. sed 's/^/| /' conftest.$ac_ext >&5
  1818. ac_retval=$ac_status ;;
  1819. esac
  1820. fi
  1821. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. as_fn_set_status $ac_retval
  1824. } # ac_fn_c_try_run
  1825. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1826. # -------------------------------------------
  1827. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1828. # variable VAR accordingly.
  1829. ac_fn_c_check_type ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1833. printf %s "checking for $2... " >&6; }
  1834. if eval test \${$3+y}
  1835. then :
  1836. printf %s "(cached) " >&6
  1837. else case e in #(
  1838. e) eval "$3=no"
  1839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1840. /* end confdefs.h. */
  1841. $4
  1842. int
  1843. main (void)
  1844. {
  1845. if (sizeof ($2))
  1846. return 0;
  1847. ;
  1848. return 0;
  1849. }
  1850. _ACEOF
  1851. if ac_fn_c_try_compile "$LINENO"
  1852. then :
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. $4
  1856. int
  1857. main (void)
  1858. {
  1859. if (sizeof (($2)))
  1860. return 0;
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_compile "$LINENO"
  1866. then :
  1867. else case e in #(
  1868. e) eval "$3=yes" ;;
  1869. esac
  1870. fi
  1871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1872. fi
  1873. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1874. esac
  1875. fi
  1876. eval ac_res=\$$3
  1877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1878. printf "%s\n" "$ac_res" >&6; }
  1879. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1880. } # ac_fn_c_check_type
  1881. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1882. # --------------------------------------------
  1883. # Tries to find the compile-time value of EXPR in a program that includes
  1884. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1885. # computed
  1886. ac_fn_c_compute_int ()
  1887. {
  1888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889. if test "$cross_compiling" = yes; then
  1890. # Depending upon the size, compute the lo and hi bounds.
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. int
  1895. main (void)
  1896. {
  1897. static int test_array [1 - 2 * !(($2) >= 0)];
  1898. test_array [0] = 0;
  1899. return test_array [0];
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_c_try_compile "$LINENO"
  1905. then :
  1906. ac_lo=0 ac_mid=0
  1907. while :; do
  1908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1909. /* end confdefs.h. */
  1910. $4
  1911. int
  1912. main (void)
  1913. {
  1914. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1915. test_array [0] = 0;
  1916. return test_array [0];
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_c_try_compile "$LINENO"
  1922. then :
  1923. ac_hi=$ac_mid; break
  1924. else case e in #(
  1925. e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1926. if test $ac_lo -le $ac_mid; then
  1927. ac_lo= ac_hi=
  1928. break
  1929. fi
  1930. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
  1931. esac
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1934. done
  1935. else case e in #(
  1936. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. $4
  1939. int
  1940. main (void)
  1941. {
  1942. static int test_array [1 - 2 * !(($2) < 0)];
  1943. test_array [0] = 0;
  1944. return test_array [0];
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_compile "$LINENO"
  1950. then :
  1951. ac_hi=-1 ac_mid=-1
  1952. while :; do
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $4
  1956. int
  1957. main (void)
  1958. {
  1959. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1960. test_array [0] = 0;
  1961. return test_array [0];
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"
  1967. then :
  1968. ac_lo=$ac_mid; break
  1969. else case e in #(
  1970. e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1971. if test $ac_mid -le $ac_hi; then
  1972. ac_lo= ac_hi=
  1973. break
  1974. fi
  1975. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
  1976. esac
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1979. done
  1980. else case e in #(
  1981. e) ac_lo= ac_hi= ;;
  1982. esac
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1985. esac
  1986. fi
  1987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1988. # Binary search between lo and hi bounds.
  1989. while test "x$ac_lo" != "x$ac_hi"; do
  1990. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1992. /* end confdefs.h. */
  1993. $4
  1994. int
  1995. main (void)
  1996. {
  1997. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1998. test_array [0] = 0;
  1999. return test_array [0];
  2000. ;
  2001. return 0;
  2002. }
  2003. _ACEOF
  2004. if ac_fn_c_try_compile "$LINENO"
  2005. then :
  2006. ac_hi=$ac_mid
  2007. else case e in #(
  2008. e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
  2009. esac
  2010. fi
  2011. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2012. done
  2013. case $ac_lo in #((
  2014. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2015. '') ac_retval=1 ;;
  2016. esac
  2017. else
  2018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2019. /* end confdefs.h. */
  2020. $4
  2021. static long int longval (void) { return $2; }
  2022. static unsigned long int ulongval (void) { return $2; }
  2023. #include <stdio.h>
  2024. #include <stdlib.h>
  2025. int
  2026. main (void)
  2027. {
  2028. FILE *f = fopen ("conftest.val", "w");
  2029. if (! f)
  2030. return 1;
  2031. if (($2) < 0)
  2032. {
  2033. long int i = longval ();
  2034. if (i != ($2))
  2035. return 1;
  2036. fprintf (f, "%ld", i);
  2037. }
  2038. else
  2039. {
  2040. unsigned long int i = ulongval ();
  2041. if (i != ($2))
  2042. return 1;
  2043. fprintf (f, "%lu", i);
  2044. }
  2045. /* Do not output a trailing newline, as this causes \r\n confusion
  2046. on some platforms. */
  2047. return ferror (f) || fclose (f) != 0;
  2048. ;
  2049. return 0;
  2050. }
  2051. _ACEOF
  2052. if ac_fn_c_try_run "$LINENO"
  2053. then :
  2054. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2055. else case e in #(
  2056. e) ac_retval=1 ;;
  2057. esac
  2058. fi
  2059. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2060. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2061. rm -f conftest.val
  2062. fi
  2063. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2064. as_fn_set_status $ac_retval
  2065. } # ac_fn_c_compute_int
  2066. ac_configure_args_raw=
  2067. for ac_arg
  2068. do
  2069. case $ac_arg in
  2070. *\'*)
  2071. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2072. esac
  2073. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2074. done
  2075. case $ac_configure_args_raw in
  2076. *$as_nl*)
  2077. ac_safe_unquote= ;;
  2078. *)
  2079. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2080. ac_unsafe_a="$ac_unsafe_z#~"
  2081. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2082. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2083. esac
  2084. cat >config.log <<_ACEOF
  2085. This file contains any messages produced by compilers while
  2086. running configure, to aid debugging if configure makes a mistake.
  2087. It was created by expat $as_me 2.7.3, which was
  2088. generated by GNU Autoconf 2.72. Invocation command line was
  2089. $ $0$ac_configure_args_raw
  2090. _ACEOF
  2091. exec 5>>config.log
  2092. {
  2093. cat <<_ASUNAME
  2094. ## --------- ##
  2095. ## Platform. ##
  2096. ## --------- ##
  2097. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2098. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2099. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2100. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2101. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2102. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2103. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2104. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2105. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2106. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2107. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2108. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2109. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2110. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2111. _ASUNAME
  2112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2113. for as_dir in $PATH
  2114. do
  2115. IFS=$as_save_IFS
  2116. case $as_dir in #(((
  2117. '') as_dir=./ ;;
  2118. */) ;;
  2119. *) as_dir=$as_dir/ ;;
  2120. esac
  2121. printf "%s\n" "PATH: $as_dir"
  2122. done
  2123. IFS=$as_save_IFS
  2124. } >&5
  2125. cat >&5 <<_ACEOF
  2126. ## ----------- ##
  2127. ## Core tests. ##
  2128. ## ----------- ##
  2129. _ACEOF
  2130. # Keep a trace of the command line.
  2131. # Strip out --no-create and --no-recursion so they do not pile up.
  2132. # Strip out --silent because we don't want to record it for future runs.
  2133. # Also quote any args containing shell meta-characters.
  2134. # Make two passes to allow for proper duplicate-argument suppression.
  2135. ac_configure_args=
  2136. ac_configure_args0=
  2137. ac_configure_args1=
  2138. ac_must_keep_next=false
  2139. for ac_pass in 1 2
  2140. do
  2141. for ac_arg
  2142. do
  2143. case $ac_arg in
  2144. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2146. | -silent | --silent | --silen | --sile | --sil)
  2147. continue ;;
  2148. *\'*)
  2149. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2150. esac
  2151. case $ac_pass in
  2152. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2153. 2)
  2154. as_fn_append ac_configure_args1 " '$ac_arg'"
  2155. if test $ac_must_keep_next = true; then
  2156. ac_must_keep_next=false # Got value, back to normal.
  2157. else
  2158. case $ac_arg in
  2159. *=* | --config-cache | -C | -disable-* | --disable-* \
  2160. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2161. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2162. | -with-* | --with-* | -without-* | --without-* | --x)
  2163. case "$ac_configure_args0 " in
  2164. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2165. esac
  2166. ;;
  2167. -* ) ac_must_keep_next=true ;;
  2168. esac
  2169. fi
  2170. as_fn_append ac_configure_args " '$ac_arg'"
  2171. ;;
  2172. esac
  2173. done
  2174. done
  2175. { ac_configure_args0=; unset ac_configure_args0;}
  2176. { ac_configure_args1=; unset ac_configure_args1;}
  2177. # When interrupted or exit'd, cleanup temporary files, and complete
  2178. # config.log. We remove comments because anyway the quotes in there
  2179. # would cause problems or look ugly.
  2180. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2181. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2182. trap 'exit_status=$?
  2183. # Sanitize IFS.
  2184. IFS=" "" $as_nl"
  2185. # Save into config.log some information that might help in debugging.
  2186. {
  2187. echo
  2188. printf "%s\n" "## ---------------- ##
  2189. ## Cache variables. ##
  2190. ## ---------------- ##"
  2191. echo
  2192. # The following way of writing the cache mishandles newlines in values,
  2193. (
  2194. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in #(
  2197. *${as_nl}*)
  2198. case $ac_var in #(
  2199. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2200. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2201. esac
  2202. case $ac_var in #(
  2203. _ | IFS | as_nl) ;; #(
  2204. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2205. *) { eval $ac_var=; unset $ac_var;} ;;
  2206. esac ;;
  2207. esac
  2208. done
  2209. (set) 2>&1 |
  2210. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2211. *${as_nl}ac_space=\ *)
  2212. sed -n \
  2213. "s/'\''/'\''\\\\'\'''\''/g;
  2214. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2215. ;; #(
  2216. *)
  2217. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2218. ;;
  2219. esac |
  2220. sort
  2221. )
  2222. echo
  2223. printf "%s\n" "## ----------------- ##
  2224. ## Output variables. ##
  2225. ## ----------------- ##"
  2226. echo
  2227. for ac_var in $ac_subst_vars
  2228. do
  2229. eval ac_val=\$$ac_var
  2230. case $ac_val in
  2231. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2232. esac
  2233. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2234. done | sort
  2235. echo
  2236. if test -n "$ac_subst_files"; then
  2237. printf "%s\n" "## ------------------- ##
  2238. ## File substitutions. ##
  2239. ## ------------------- ##"
  2240. echo
  2241. for ac_var in $ac_subst_files
  2242. do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in
  2245. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2246. esac
  2247. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2248. done | sort
  2249. echo
  2250. fi
  2251. if test -s confdefs.h; then
  2252. printf "%s\n" "## ----------- ##
  2253. ## confdefs.h. ##
  2254. ## ----------- ##"
  2255. echo
  2256. cat confdefs.h
  2257. echo
  2258. fi
  2259. test "$ac_signal" != 0 &&
  2260. printf "%s\n" "$as_me: caught signal $ac_signal"
  2261. printf "%s\n" "$as_me: exit $exit_status"
  2262. } >&5
  2263. rm -f core *.core core.conftest.* &&
  2264. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2265. exit $exit_status
  2266. ' 0
  2267. for ac_signal in 1 2 13 15; do
  2268. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2269. done
  2270. ac_signal=0
  2271. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2272. rm -f -r conftest* confdefs.h
  2273. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2274. # Predefined preprocessor variables.
  2275. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2276. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2277. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2278. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2279. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2280. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2281. # Let the site file select an alternate cache file if it wants to.
  2282. # Prefer an explicitly selected file to automatically selected ones.
  2283. if test -n "$CONFIG_SITE"; then
  2284. ac_site_files="$CONFIG_SITE"
  2285. elif test "x$prefix" != xNONE; then
  2286. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2287. else
  2288. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2289. fi
  2290. for ac_site_file in $ac_site_files
  2291. do
  2292. case $ac_site_file in #(
  2293. */*) :
  2294. ;; #(
  2295. *) :
  2296. ac_site_file=./$ac_site_file ;;
  2297. esac
  2298. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2300. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2301. sed 's/^/| /' "$ac_site_file" >&5
  2302. . "$ac_site_file" \
  2303. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2304. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2305. as_fn_error $? "failed to load site script $ac_site_file
  2306. See 'config.log' for more details" "$LINENO" 5; }
  2307. fi
  2308. done
  2309. if test -r "$cache_file"; then
  2310. # Some versions of bash will fail to source /dev/null (special files
  2311. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2312. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2314. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2315. case $cache_file in
  2316. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2317. *) . "./$cache_file";;
  2318. esac
  2319. fi
  2320. else
  2321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2322. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2323. >$cache_file
  2324. fi
  2325. # Test code for whether the C compiler supports C89 (global declarations)
  2326. ac_c_conftest_c89_globals='
  2327. /* Does the compiler advertise C89 conformance?
  2328. Do not test the value of __STDC__, because some compilers set it to 0
  2329. while being otherwise adequately conformant. */
  2330. #if !defined __STDC__
  2331. # error "Compiler does not advertise C89 conformance"
  2332. #endif
  2333. #include <stddef.h>
  2334. #include <stdarg.h>
  2335. struct stat;
  2336. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2337. struct buf { int x; };
  2338. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2339. static char *e (char **p, int i)
  2340. {
  2341. return p[i];
  2342. }
  2343. static char *f (char * (*g) (char **, int), char **p, ...)
  2344. {
  2345. char *s;
  2346. va_list v;
  2347. va_start (v,p);
  2348. s = g (p, va_arg (v,int));
  2349. va_end (v);
  2350. return s;
  2351. }
  2352. /* C89 style stringification. */
  2353. #define noexpand_stringify(a) #a
  2354. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2355. /* C89 style token pasting. Exercises some of the corner cases that
  2356. e.g. old MSVC gets wrong, but not very hard. */
  2357. #define noexpand_concat(a,b) a##b
  2358. #define expand_concat(a,b) noexpand_concat(a,b)
  2359. extern int vA;
  2360. extern int vbee;
  2361. #define aye A
  2362. #define bee B
  2363. int *pvA = &expand_concat(v,aye);
  2364. int *pvbee = &noexpand_concat(v,bee);
  2365. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2366. function prototypes and stuff, but not \xHH hex character constants.
  2367. These do not provoke an error unfortunately, instead are silently treated
  2368. as an "x". The following induces an error, until -std is added to get
  2369. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2370. array size at least. It is necessary to write \x00 == 0 to get something
  2371. that is true only with -std. */
  2372. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2373. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2374. inside strings and character constants. */
  2375. #define FOO(x) '\''x'\''
  2376. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2377. int test (int i, double x);
  2378. struct s1 {int (*f) (int a);};
  2379. struct s2 {int (*f) (double a);};
  2380. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2381. int, int);'
  2382. # Test code for whether the C compiler supports C89 (body of main).
  2383. ac_c_conftest_c89_main='
  2384. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2385. '
  2386. # Test code for whether the C compiler supports C99 (global declarations)
  2387. ac_c_conftest_c99_globals='
  2388. /* Does the compiler advertise C99 conformance? */
  2389. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2390. # error "Compiler does not advertise C99 conformance"
  2391. #endif
  2392. // See if C++-style comments work.
  2393. #include <stdbool.h>
  2394. extern int puts (const char *);
  2395. extern int printf (const char *, ...);
  2396. extern int dprintf (int, const char *, ...);
  2397. extern void *malloc (size_t);
  2398. extern void free (void *);
  2399. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2400. // dprintf is used instead of fprintf to avoid needing to declare
  2401. // FILE and stderr.
  2402. #define debug(...) dprintf (2, __VA_ARGS__)
  2403. #define showlist(...) puts (#__VA_ARGS__)
  2404. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2405. static void
  2406. test_varargs_macros (void)
  2407. {
  2408. int x = 1234;
  2409. int y = 5678;
  2410. debug ("Flag");
  2411. debug ("X = %d\n", x);
  2412. showlist (The first, second, and third items.);
  2413. report (x>y, "x is %d but y is %d", x, y);
  2414. }
  2415. // Check long long types.
  2416. #define BIG64 18446744073709551615ull
  2417. #define BIG32 4294967295ul
  2418. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2419. #if !BIG_OK
  2420. #error "your preprocessor is broken"
  2421. #endif
  2422. #if BIG_OK
  2423. #else
  2424. #error "your preprocessor is broken"
  2425. #endif
  2426. static long long int bignum = -9223372036854775807LL;
  2427. static unsigned long long int ubignum = BIG64;
  2428. struct incomplete_array
  2429. {
  2430. int datasize;
  2431. double data[];
  2432. };
  2433. struct named_init {
  2434. int number;
  2435. const wchar_t *name;
  2436. double average;
  2437. };
  2438. typedef const char *ccp;
  2439. static inline int
  2440. test_restrict (ccp restrict text)
  2441. {
  2442. // Iterate through items via the restricted pointer.
  2443. // Also check for declarations in for loops.
  2444. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2445. continue;
  2446. return 0;
  2447. }
  2448. // Check varargs and va_copy.
  2449. static bool
  2450. test_varargs (const char *format, ...)
  2451. {
  2452. va_list args;
  2453. va_start (args, format);
  2454. va_list args_copy;
  2455. va_copy (args_copy, args);
  2456. const char *str = "";
  2457. int number = 0;
  2458. float fnumber = 0;
  2459. while (*format)
  2460. {
  2461. switch (*format++)
  2462. {
  2463. case '\''s'\'': // string
  2464. str = va_arg (args_copy, const char *);
  2465. break;
  2466. case '\''d'\'': // int
  2467. number = va_arg (args_copy, int);
  2468. break;
  2469. case '\''f'\'': // float
  2470. fnumber = va_arg (args_copy, double);
  2471. break;
  2472. default:
  2473. break;
  2474. }
  2475. }
  2476. va_end (args_copy);
  2477. va_end (args);
  2478. return *str && number && fnumber;
  2479. }
  2480. '
  2481. # Test code for whether the C compiler supports C99 (body of main).
  2482. ac_c_conftest_c99_main='
  2483. // Check bool.
  2484. _Bool success = false;
  2485. success |= (argc != 0);
  2486. // Check restrict.
  2487. if (test_restrict ("String literal") == 0)
  2488. success = true;
  2489. char *restrict newvar = "Another string";
  2490. // Check varargs.
  2491. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2492. test_varargs_macros ();
  2493. // Check flexible array members.
  2494. struct incomplete_array *ia =
  2495. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2496. ia->datasize = 10;
  2497. for (int i = 0; i < ia->datasize; ++i)
  2498. ia->data[i] = i * 1.234;
  2499. // Work around memory leak warnings.
  2500. free (ia);
  2501. // Check named initializers.
  2502. struct named_init ni = {
  2503. .number = 34,
  2504. .name = L"Test wide string",
  2505. .average = 543.34343,
  2506. };
  2507. ni.number = 58;
  2508. int dynamic_array[ni.number];
  2509. dynamic_array[0] = argv[0][0];
  2510. dynamic_array[ni.number - 1] = 543;
  2511. // work around unused variable warnings
  2512. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2513. || dynamic_array[ni.number - 1] != 543);
  2514. '
  2515. # Test code for whether the C compiler supports C11 (global declarations)
  2516. ac_c_conftest_c11_globals='
  2517. /* Does the compiler advertise C11 conformance? */
  2518. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2519. # error "Compiler does not advertise C11 conformance"
  2520. #endif
  2521. // Check _Alignas.
  2522. char _Alignas (double) aligned_as_double;
  2523. char _Alignas (0) no_special_alignment;
  2524. extern char aligned_as_int;
  2525. char _Alignas (0) _Alignas (int) aligned_as_int;
  2526. // Check _Alignof.
  2527. enum
  2528. {
  2529. int_alignment = _Alignof (int),
  2530. int_array_alignment = _Alignof (int[100]),
  2531. char_alignment = _Alignof (char)
  2532. };
  2533. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2534. // Check _Noreturn.
  2535. int _Noreturn does_not_return (void) { for (;;) continue; }
  2536. // Check _Static_assert.
  2537. struct test_static_assert
  2538. {
  2539. int x;
  2540. _Static_assert (sizeof (int) <= sizeof (long int),
  2541. "_Static_assert does not work in struct");
  2542. long int y;
  2543. };
  2544. // Check UTF-8 literals.
  2545. #define u8 syntax error!
  2546. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2547. // Check duplicate typedefs.
  2548. typedef long *long_ptr;
  2549. typedef long int *long_ptr;
  2550. typedef long_ptr long_ptr;
  2551. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2552. struct anonymous
  2553. {
  2554. union {
  2555. struct { int i; int j; };
  2556. struct { int k; long int l; } w;
  2557. };
  2558. int m;
  2559. } v1;
  2560. '
  2561. # Test code for whether the C compiler supports C11 (body of main).
  2562. ac_c_conftest_c11_main='
  2563. _Static_assert ((offsetof (struct anonymous, i)
  2564. == offsetof (struct anonymous, w.k)),
  2565. "Anonymous union alignment botch");
  2566. v1.i = 2;
  2567. v1.w.k = 5;
  2568. ok |= v1.i != 5;
  2569. '
  2570. # Test code for whether the C compiler supports C11 (complete).
  2571. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2572. ${ac_c_conftest_c99_globals}
  2573. ${ac_c_conftest_c11_globals}
  2574. int
  2575. main (int argc, char **argv)
  2576. {
  2577. int ok = 0;
  2578. ${ac_c_conftest_c89_main}
  2579. ${ac_c_conftest_c99_main}
  2580. ${ac_c_conftest_c11_main}
  2581. return ok;
  2582. }
  2583. "
  2584. # Test code for whether the C compiler supports C99 (complete).
  2585. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2586. ${ac_c_conftest_c99_globals}
  2587. int
  2588. main (int argc, char **argv)
  2589. {
  2590. int ok = 0;
  2591. ${ac_c_conftest_c89_main}
  2592. ${ac_c_conftest_c99_main}
  2593. return ok;
  2594. }
  2595. "
  2596. # Test code for whether the C compiler supports C89 (complete).
  2597. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2598. int
  2599. main (int argc, char **argv)
  2600. {
  2601. int ok = 0;
  2602. ${ac_c_conftest_c89_main}
  2603. return ok;
  2604. }
  2605. "
  2606. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2607. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2608. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2609. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2610. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2611. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2612. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2613. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2614. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2615. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2616. ac_cxx_conftest_cxx98_globals='
  2617. // Does the compiler advertise C++98 conformance?
  2618. #if !defined __cplusplus || __cplusplus < 199711L
  2619. # error "Compiler does not advertise C++98 conformance"
  2620. #endif
  2621. // These inclusions are to reject old compilers that
  2622. // lack the unsuffixed header files.
  2623. #include <cstdlib>
  2624. #include <exception>
  2625. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2626. extern void assert (int);
  2627. namespace std {
  2628. extern int strcmp (const char *, const char *);
  2629. }
  2630. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2631. using std::exception;
  2632. using std::strcmp;
  2633. namespace {
  2634. void test_exception_syntax()
  2635. {
  2636. try {
  2637. throw "test";
  2638. } catch (const char *s) {
  2639. // Extra parentheses suppress a warning when building autoconf itself,
  2640. // due to lint rules shared with more typical C programs.
  2641. assert (!(strcmp) (s, "test"));
  2642. }
  2643. }
  2644. template <typename T> struct test_template
  2645. {
  2646. T const val;
  2647. explicit test_template(T t) : val(t) {}
  2648. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2649. };
  2650. } // anonymous namespace
  2651. '
  2652. # Test code for whether the C++ compiler supports C++98 (body of main)
  2653. ac_cxx_conftest_cxx98_main='
  2654. assert (argc);
  2655. assert (! argv[0]);
  2656. {
  2657. test_exception_syntax ();
  2658. test_template<double> tt (2.0);
  2659. assert (tt.add (4) == 6.0);
  2660. assert (true && !false);
  2661. }
  2662. '
  2663. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2664. ac_cxx_conftest_cxx11_globals='
  2665. // Does the compiler advertise C++ 2011 conformance?
  2666. #if !defined __cplusplus || __cplusplus < 201103L
  2667. # error "Compiler does not advertise C++11 conformance"
  2668. #endif
  2669. namespace cxx11test
  2670. {
  2671. constexpr int get_val() { return 20; }
  2672. struct testinit
  2673. {
  2674. int i;
  2675. double d;
  2676. };
  2677. class delegate
  2678. {
  2679. public:
  2680. delegate(int n) : n(n) {}
  2681. delegate(): delegate(2354) {}
  2682. virtual int getval() { return this->n; };
  2683. protected:
  2684. int n;
  2685. };
  2686. class overridden : public delegate
  2687. {
  2688. public:
  2689. overridden(int n): delegate(n) {}
  2690. virtual int getval() override final { return this->n * 2; }
  2691. };
  2692. class nocopy
  2693. {
  2694. public:
  2695. nocopy(int i): i(i) {}
  2696. nocopy() = default;
  2697. nocopy(const nocopy&) = delete;
  2698. nocopy & operator=(const nocopy&) = delete;
  2699. private:
  2700. int i;
  2701. };
  2702. // for testing lambda expressions
  2703. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2704. {
  2705. return f(v);
  2706. }
  2707. // for testing variadic templates and trailing return types
  2708. template <typename V> auto sum(V first) -> V
  2709. {
  2710. return first;
  2711. }
  2712. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2713. {
  2714. return first + sum(rest...);
  2715. }
  2716. }
  2717. '
  2718. # Test code for whether the C++ compiler supports C++11 (body of main)
  2719. ac_cxx_conftest_cxx11_main='
  2720. {
  2721. // Test auto and decltype
  2722. auto a1 = 6538;
  2723. auto a2 = 48573953.4;
  2724. auto a3 = "String literal";
  2725. int total = 0;
  2726. for (auto i = a3; *i; ++i) { total += *i; }
  2727. decltype(a2) a4 = 34895.034;
  2728. }
  2729. {
  2730. // Test constexpr
  2731. short sa[cxx11test::get_val()] = { 0 };
  2732. }
  2733. {
  2734. // Test initializer lists
  2735. cxx11test::testinit il = { 4323, 435234.23544 };
  2736. }
  2737. {
  2738. // Test range-based for
  2739. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2740. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2741. for (auto &x : array) { x += 23; }
  2742. }
  2743. {
  2744. // Test lambda expressions
  2745. using cxx11test::eval;
  2746. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2747. double d = 2.0;
  2748. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2749. assert (d == 5.0);
  2750. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2751. assert (d == 5.0);
  2752. }
  2753. {
  2754. // Test use of variadic templates
  2755. using cxx11test::sum;
  2756. auto a = sum(1);
  2757. auto b = sum(1, 2);
  2758. auto c = sum(1.0, 2.0, 3.0);
  2759. }
  2760. {
  2761. // Test constructor delegation
  2762. cxx11test::delegate d1;
  2763. cxx11test::delegate d2();
  2764. cxx11test::delegate d3(45);
  2765. }
  2766. {
  2767. // Test override and final
  2768. cxx11test::overridden o1(55464);
  2769. }
  2770. {
  2771. // Test nullptr
  2772. char *c = nullptr;
  2773. }
  2774. {
  2775. // Test template brackets
  2776. test_template<::test_template<int>> v(test_template<int>(12));
  2777. }
  2778. {
  2779. // Unicode literals
  2780. char const *utf8 = u8"UTF-8 string \u2500";
  2781. char16_t const *utf16 = u"UTF-8 string \u2500";
  2782. char32_t const *utf32 = U"UTF-32 string \u2500";
  2783. }
  2784. '
  2785. # Test code for whether the C compiler supports C++11 (complete).
  2786. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2787. ${ac_cxx_conftest_cxx11_globals}
  2788. int
  2789. main (int argc, char **argv)
  2790. {
  2791. int ok = 0;
  2792. ${ac_cxx_conftest_cxx98_main}
  2793. ${ac_cxx_conftest_cxx11_main}
  2794. return ok;
  2795. }
  2796. "
  2797. # Test code for whether the C compiler supports C++98 (complete).
  2798. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2799. int
  2800. main (int argc, char **argv)
  2801. {
  2802. int ok = 0;
  2803. ${ac_cxx_conftest_cxx98_main}
  2804. return ok;
  2805. }
  2806. "
  2807. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2808. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2809. # Auxiliary files required by this configure script.
  2810. ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
  2811. # Locations in which to look for auxiliary files.
  2812. ac_aux_dir_candidates="${srcdir}/conftools"
  2813. # Search for a directory containing all of the required auxiliary files,
  2814. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2815. # If we don't find one directory that contains all the files we need,
  2816. # we report the set of missing files from the *first* directory in
  2817. # $ac_aux_dir_candidates and give up.
  2818. ac_missing_aux_files=""
  2819. ac_first_candidate=:
  2820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. as_found=false
  2823. for as_dir in $ac_aux_dir_candidates
  2824. do
  2825. IFS=$as_save_IFS
  2826. case $as_dir in #(((
  2827. '') as_dir=./ ;;
  2828. */) ;;
  2829. *) as_dir=$as_dir/ ;;
  2830. esac
  2831. as_found=:
  2832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2833. ac_aux_dir_found=yes
  2834. ac_install_sh=
  2835. for ac_aux in $ac_aux_files
  2836. do
  2837. # As a special case, if "install-sh" is required, that requirement
  2838. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2839. # and $ac_install_sh is set appropriately for whichever one is found.
  2840. if test x"$ac_aux" = x"install-sh"
  2841. then
  2842. if test -f "${as_dir}install-sh"; then
  2843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2844. ac_install_sh="${as_dir}install-sh -c"
  2845. elif test -f "${as_dir}install.sh"; then
  2846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2847. ac_install_sh="${as_dir}install.sh -c"
  2848. elif test -f "${as_dir}shtool"; then
  2849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2850. ac_install_sh="${as_dir}shtool install -c"
  2851. else
  2852. ac_aux_dir_found=no
  2853. if $ac_first_candidate; then
  2854. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2855. else
  2856. break
  2857. fi
  2858. fi
  2859. else
  2860. if test -f "${as_dir}${ac_aux}"; then
  2861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2862. else
  2863. ac_aux_dir_found=no
  2864. if $ac_first_candidate; then
  2865. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2866. else
  2867. break
  2868. fi
  2869. fi
  2870. fi
  2871. done
  2872. if test "$ac_aux_dir_found" = yes; then
  2873. ac_aux_dir="$as_dir"
  2874. break
  2875. fi
  2876. ac_first_candidate=false
  2877. as_found=false
  2878. done
  2879. IFS=$as_save_IFS
  2880. if $as_found
  2881. then :
  2882. else case e in #(
  2883. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2884. esac
  2885. fi
  2886. # These three variables are undocumented and unsupported,
  2887. # and are intended to be withdrawn in a future Autoconf release.
  2888. # They can cause serious problems if a builder's source tree is in a directory
  2889. # whose full name contains unusual characters.
  2890. if test -f "${ac_aux_dir}config.guess"; then
  2891. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2892. fi
  2893. if test -f "${ac_aux_dir}config.sub"; then
  2894. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2895. fi
  2896. if test -f "$ac_aux_dir/configure"; then
  2897. ac_configure="$SHELL ${ac_aux_dir}configure"
  2898. fi
  2899. # Check that the precious variables saved in the cache have kept the same
  2900. # value.
  2901. ac_cache_corrupted=false
  2902. for ac_var in $ac_precious_vars; do
  2903. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2904. eval ac_new_set=\$ac_env_${ac_var}_set
  2905. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2906. eval ac_new_val=\$ac_env_${ac_var}_value
  2907. case $ac_old_set,$ac_new_set in
  2908. set,)
  2909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2910. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2911. ac_cache_corrupted=: ;;
  2912. ,set)
  2913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2914. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2915. ac_cache_corrupted=: ;;
  2916. ,);;
  2917. *)
  2918. if test "x$ac_old_val" != "x$ac_new_val"; then
  2919. # differences in whitespace do not lead to failure.
  2920. ac_old_val_w=`echo x $ac_old_val`
  2921. ac_new_val_w=`echo x $ac_new_val`
  2922. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2924. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2925. ac_cache_corrupted=:
  2926. else
  2927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2928. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2929. eval $ac_var=\$ac_old_val
  2930. fi
  2931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2932. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2934. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2935. fi;;
  2936. esac
  2937. # Pass precious variables to config.status.
  2938. if test "$ac_new_set" = set; then
  2939. case $ac_new_val in
  2940. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2941. *) ac_arg=$ac_var=$ac_new_val ;;
  2942. esac
  2943. case " $ac_configure_args " in
  2944. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2945. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2946. esac
  2947. fi
  2948. done
  2949. if $ac_cache_corrupted; then
  2950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2951. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2953. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2954. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2955. and start over" "$LINENO" 5
  2956. fi
  2957. ## -------------------- ##
  2958. ## Main body of script. ##
  2959. ## -------------------- ##
  2960. ac_ext=c
  2961. ac_cpp='$CPP $CPPFLAGS'
  2962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2965. # Make sure we can run config.sub.
  2966. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2967. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2969. printf %s "checking build system type... " >&6; }
  2970. if test ${ac_cv_build+y}
  2971. then :
  2972. printf %s "(cached) " >&6
  2973. else case e in #(
  2974. e) ac_build_alias=$build_alias
  2975. test "x$ac_build_alias" = x &&
  2976. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2977. test "x$ac_build_alias" = x &&
  2978. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2979. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2980. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2981. ;;
  2982. esac
  2983. fi
  2984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2985. printf "%s\n" "$ac_cv_build" >&6; }
  2986. case $ac_cv_build in
  2987. *-*-*) ;;
  2988. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2989. esac
  2990. build=$ac_cv_build
  2991. ac_save_IFS=$IFS; IFS='-'
  2992. set x $ac_cv_build
  2993. shift
  2994. build_cpu=$1
  2995. build_vendor=$2
  2996. shift; shift
  2997. # Remember, the first character of IFS is used to create $*,
  2998. # except with old shells:
  2999. build_os=$*
  3000. IFS=$ac_save_IFS
  3001. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3003. printf %s "checking host system type... " >&6; }
  3004. if test ${ac_cv_host+y}
  3005. then :
  3006. printf %s "(cached) " >&6
  3007. else case e in #(
  3008. e) if test "x$host_alias" = x; then
  3009. ac_cv_host=$ac_cv_build
  3010. else
  3011. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3012. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3013. fi
  3014. ;;
  3015. esac
  3016. fi
  3017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3018. printf "%s\n" "$ac_cv_host" >&6; }
  3019. case $ac_cv_host in
  3020. *-*-*) ;;
  3021. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3022. esac
  3023. host=$ac_cv_host
  3024. ac_save_IFS=$IFS; IFS='-'
  3025. set x $ac_cv_host
  3026. shift
  3027. host_cpu=$1
  3028. host_vendor=$2
  3029. shift; shift
  3030. # Remember, the first character of IFS is used to create $*,
  3031. # except with old shells:
  3032. host_os=$*
  3033. IFS=$ac_save_IFS
  3034. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3035. am__api_version='1.18'
  3036. # Find a good install program. We prefer a C program (faster),
  3037. # so one script is as good as another. But avoid the broken or
  3038. # incompatible versions:
  3039. # SysV /etc/install, /usr/sbin/install
  3040. # SunOS /usr/etc/install
  3041. # IRIX /sbin/install
  3042. # AIX /bin/install
  3043. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3044. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3045. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3046. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3047. # OS/2's system install, which has a completely different semantic
  3048. # ./install, which can be erroneously created by make from ./install.sh.
  3049. # Reject install programs that cannot install multiple files.
  3050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3051. printf %s "checking for a BSD-compatible install... " >&6; }
  3052. if test -z "$INSTALL"; then
  3053. if test ${ac_cv_path_install+y}
  3054. then :
  3055. printf %s "(cached) " >&6
  3056. else case e in #(
  3057. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3058. for as_dir in $PATH
  3059. do
  3060. IFS=$as_save_IFS
  3061. case $as_dir in #(((
  3062. '') as_dir=./ ;;
  3063. */) ;;
  3064. *) as_dir=$as_dir/ ;;
  3065. esac
  3066. # Account for fact that we put trailing slashes in our PATH walk.
  3067. case $as_dir in #((
  3068. ./ | /[cC]/* | \
  3069. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3070. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3071. /usr/ucb/* ) ;;
  3072. *)
  3073. # OSF1 and SCO ODT 3.0 have their own names for install.
  3074. # Don't use installbsd from OSF since it installs stuff as root
  3075. # by default.
  3076. for ac_prog in ginstall scoinst install; do
  3077. for ac_exec_ext in '' $ac_executable_extensions; do
  3078. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3079. if test $ac_prog = install &&
  3080. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3081. # AIX install. It has an incompatible calling convention.
  3082. :
  3083. elif test $ac_prog = install &&
  3084. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3085. # program-specific install script used by HP pwplus--don't use.
  3086. :
  3087. else
  3088. rm -rf conftest.one conftest.two conftest.dir
  3089. echo one > conftest.one
  3090. echo two > conftest.two
  3091. mkdir conftest.dir
  3092. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3093. test -s conftest.one && test -s conftest.two &&
  3094. test -s conftest.dir/conftest.one &&
  3095. test -s conftest.dir/conftest.two
  3096. then
  3097. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3098. break 3
  3099. fi
  3100. fi
  3101. fi
  3102. done
  3103. done
  3104. ;;
  3105. esac
  3106. done
  3107. IFS=$as_save_IFS
  3108. rm -rf conftest.one conftest.two conftest.dir
  3109. ;;
  3110. esac
  3111. fi
  3112. if test ${ac_cv_path_install+y}; then
  3113. INSTALL=$ac_cv_path_install
  3114. else
  3115. # As a last resort, use the slow shell script. Don't cache a
  3116. # value for INSTALL within a source directory, because that will
  3117. # break other packages using the cache if that directory is
  3118. # removed, or if the value is a relative name.
  3119. INSTALL=$ac_install_sh
  3120. fi
  3121. fi
  3122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3123. printf "%s\n" "$INSTALL" >&6; }
  3124. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3125. # It thinks the first close brace ends the variable substitution.
  3126. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3127. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3128. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
  3130. printf %s "checking whether sleep supports fractional seconds... " >&6; }
  3131. if test ${am_cv_sleep_fractional_seconds+y}
  3132. then :
  3133. printf %s "(cached) " >&6
  3134. else case e in #(
  3135. e) if sleep 0.001 2>/dev/null
  3136. then :
  3137. am_cv_sleep_fractional_seconds=yes
  3138. else case e in #(
  3139. e) am_cv_sleep_fractional_seconds=no ;;
  3140. esac
  3141. fi
  3142. ;;
  3143. esac
  3144. fi
  3145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
  3146. printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
  3148. printf %s "checking filesystem timestamp resolution... " >&6; }
  3149. if test ${am_cv_filesystem_timestamp_resolution+y}
  3150. then :
  3151. printf %s "(cached) " >&6
  3152. else case e in #(
  3153. e) # Default to the worst case.
  3154. am_cv_filesystem_timestamp_resolution=2
  3155. # Only try to go finer than 1 sec if sleep can do it.
  3156. # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
  3157. # - 1 sec is not much of a win compared to 2 sec, and
  3158. # - it takes 2 seconds to perform the test whether 1 sec works.
  3159. #
  3160. # Instead, just use the default 2s on platforms that have 1s resolution,
  3161. # accept the extra 1s delay when using $sleep in the Automake tests, in
  3162. # exchange for not incurring the 2s delay for running the test for all
  3163. # packages.
  3164. #
  3165. am_try_resolutions=
  3166. if test "$am_cv_sleep_fractional_seconds" = yes; then
  3167. # Even a millisecond often causes a bunch of false positives,
  3168. # so just try a hundredth of a second. The time saved between .001 and
  3169. # .01 is not terribly consequential.
  3170. am_try_resolutions="0.01 0.1 $am_try_resolutions"
  3171. fi
  3172. # In order to catch current-generation FAT out, we must *modify* files
  3173. # that already exist; the *creation* timestamp is finer. Use names
  3174. # that make ls -t sort them differently when they have equal
  3175. # timestamps than when they have distinct timestamps, keeping
  3176. # in mind that ls -t prints the *newest* file first.
  3177. rm -f conftest.ts?
  3178. : > conftest.ts1
  3179. : > conftest.ts2
  3180. : > conftest.ts3
  3181. # Make sure ls -t actually works. Do 'set' in a subshell so we don't
  3182. # clobber the current shell's arguments. (Outer-level square brackets
  3183. # are removed by m4; they're present so that m4 does not expand
  3184. # <dollar><star>; be careful, easy to get confused.)
  3185. if (
  3186. set X `ls -t conftest.ts[12]` &&
  3187. {
  3188. test "$*" != "X conftest.ts1 conftest.ts2" ||
  3189. test "$*" != "X conftest.ts2 conftest.ts1";
  3190. }
  3191. ); then :; else
  3192. # If neither matched, then we have a broken ls. This can happen
  3193. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3194. # broken ls alias from the environment. This has actually
  3195. # happened. Such a system could not be considered "sane".
  3196. printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
  3197. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3198. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3199. as_fn_error $? "ls -t produces unexpected output.
  3200. Make sure there is not a broken ls alias in your environment.
  3201. See 'config.log' for more details" "$LINENO" 5; }
  3202. fi
  3203. for am_try_res in $am_try_resolutions; do
  3204. # Any one fine-grained sleep might happen to cross the boundary
  3205. # between two values of a coarser actual resolution, but if we do
  3206. # two fine-grained sleeps in a row, at least one of them will fall
  3207. # entirely within a coarse interval.
  3208. echo alpha > conftest.ts1
  3209. sleep $am_try_res
  3210. echo beta > conftest.ts2
  3211. sleep $am_try_res
  3212. echo gamma > conftest.ts3
  3213. # We assume that 'ls -t' will make use of high-resolution
  3214. # timestamps if the operating system supports them at all.
  3215. if (set X `ls -t conftest.ts?` &&
  3216. test "$2" = conftest.ts3 &&
  3217. test "$3" = conftest.ts2 &&
  3218. test "$4" = conftest.ts1); then
  3219. #
  3220. # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
  3221. # because we don't need to test make.
  3222. make_ok=true
  3223. if test $am_try_res != 1; then
  3224. # But if we've succeeded so far with a subsecond resolution, we
  3225. # have one more thing to check: make. It can happen that
  3226. # everything else supports the subsecond mtimes, but make doesn't;
  3227. # notably on macOS, which ships make 3.81 from 2006 (the last one
  3228. # released under GPLv2). https://bugs.gnu.org/68808
  3229. #
  3230. # We test $MAKE if it is defined in the environment, else "make".
  3231. # It might get overridden later, but our hope is that in practice
  3232. # it does not matter: it is the system "make" which is (by far)
  3233. # the most likely to be broken, whereas if the user overrides it,
  3234. # probably they did so with a better, or at least not worse, make.
  3235. # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
  3236. #
  3237. # Create a Makefile (real tab character here):
  3238. rm -f conftest.mk
  3239. echo 'conftest.ts1: conftest.ts2' >conftest.mk
  3240. echo ' touch conftest.ts2' >>conftest.mk
  3241. #
  3242. # Now, running
  3243. # touch conftest.ts1; touch conftest.ts2; make
  3244. # should touch ts1 because ts2 is newer. This could happen by luck,
  3245. # but most often, it will fail if make's support is insufficient. So
  3246. # test for several consecutive successes.
  3247. #
  3248. # (We reuse conftest.ts[12] because we still want to modify existing
  3249. # files, not create new ones, per above.)
  3250. n=0
  3251. make=${MAKE-make}
  3252. until test $n -eq 3; do
  3253. echo one > conftest.ts1
  3254. sleep $am_try_res
  3255. echo two > conftest.ts2 # ts2 should now be newer than ts1
  3256. if $make -f conftest.mk | grep 'up to date' >/dev/null; then
  3257. make_ok=false
  3258. break # out of $n loop
  3259. fi
  3260. n=`expr $n + 1`
  3261. done
  3262. fi
  3263. #
  3264. if $make_ok; then
  3265. # Everything we know to check worked out, so call this resolution good.
  3266. am_cv_filesystem_timestamp_resolution=$am_try_res
  3267. break # out of $am_try_res loop
  3268. fi
  3269. # Otherwise, we'll go on to check the next resolution.
  3270. fi
  3271. done
  3272. rm -f conftest.ts?
  3273. # (end _am_filesystem_timestamp_resolution)
  3274. ;;
  3275. esac
  3276. fi
  3277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
  3278. printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
  3279. # This check should not be cached, as it may vary across builds of
  3280. # different projects.
  3281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3282. printf %s "checking whether build environment is sane... " >&6; }
  3283. # Reject unsafe characters in $srcdir or the absolute working directory
  3284. # name. Accept space and tab only in the latter.
  3285. am_lf='
  3286. '
  3287. case `pwd` in
  3288. *[\\\"\#\$\&\'\`$am_lf]*)
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3290. printf "%s\n" "no" >&6; }
  3291. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3292. esac
  3293. case $srcdir in
  3294. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3296. printf "%s\n" "no" >&6; }
  3297. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3298. esac
  3299. # Do 'set' in a subshell so we don't clobber the current shell's
  3300. # arguments. Must try -L first in case configure is actually a
  3301. # symlink; some systems play weird games with the mod time of symlinks
  3302. # (eg FreeBSD returns the mod time of the symlink's containing
  3303. # directory).
  3304. am_build_env_is_sane=no
  3305. am_has_slept=no
  3306. rm -f conftest.file
  3307. for am_try in 1 2; do
  3308. echo "timestamp, slept: $am_has_slept" > conftest.file
  3309. if (
  3310. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3311. if test "$*" = "X"; then
  3312. # -L didn't work.
  3313. set X `ls -t "$srcdir/configure" conftest.file`
  3314. fi
  3315. test "$2" = conftest.file
  3316. ); then
  3317. am_build_env_is_sane=yes
  3318. break
  3319. fi
  3320. # Just in case.
  3321. sleep "$am_cv_filesystem_timestamp_resolution"
  3322. am_has_slept=yes
  3323. done
  3324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
  3325. printf "%s\n" "$am_build_env_is_sane" >&6; }
  3326. if test "$am_build_env_is_sane" = no; then
  3327. as_fn_error $? "newly created file is older than distributed files!
  3328. Check your system clock" "$LINENO" 5
  3329. fi
  3330. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3331. # generated files are strictly newer.
  3332. am_sleep_pid=
  3333. if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
  3334. then :
  3335. else case e in #(
  3336. e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
  3337. am_sleep_pid=$!
  3338. ;;
  3339. esac
  3340. fi
  3341. rm -f conftest.file
  3342. test "$program_prefix" != NONE &&
  3343. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3344. # Use a double $ so make ignores it.
  3345. test "$program_suffix" != NONE &&
  3346. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3347. # Double any \ or $.
  3348. # By default was 's,x,x', remove it if useless.
  3349. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3350. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3351. # Expand $ac_aux_dir to an absolute path.
  3352. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3353. if test x"${MISSING+set}" != xset; then
  3354. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3355. fi
  3356. # Use eval to expand $SHELL
  3357. if eval "$MISSING --is-lightweight"; then
  3358. am_missing_run="$MISSING "
  3359. else
  3360. am_missing_run=
  3361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3362. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3363. fi
  3364. if test x"${install_sh+set}" != xset; then
  3365. case $am_aux_dir in
  3366. *\ * | *\ *)
  3367. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3368. *)
  3369. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3370. esac
  3371. fi
  3372. # Installed binaries are usually stripped using 'strip' when the user
  3373. # run "make install-strip". However 'strip' might not be the right
  3374. # tool to use in cross-compilation environments, therefore Automake
  3375. # will honor the 'STRIP' environment variable to overrule this program.
  3376. if test "$cross_compiling" != no; then
  3377. if test -n "$ac_tool_prefix"; then
  3378. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3379. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3381. printf %s "checking for $ac_word... " >&6; }
  3382. if test ${ac_cv_prog_STRIP+y}
  3383. then :
  3384. printf %s "(cached) " >&6
  3385. else case e in #(
  3386. e) if test -n "$STRIP"; then
  3387. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3388. else
  3389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3390. for as_dir in $PATH
  3391. do
  3392. IFS=$as_save_IFS
  3393. case $as_dir in #(((
  3394. '') as_dir=./ ;;
  3395. */) ;;
  3396. *) as_dir=$as_dir/ ;;
  3397. esac
  3398. for ac_exec_ext in '' $ac_executable_extensions; do
  3399. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3400. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3402. break 2
  3403. fi
  3404. done
  3405. done
  3406. IFS=$as_save_IFS
  3407. fi ;;
  3408. esac
  3409. fi
  3410. STRIP=$ac_cv_prog_STRIP
  3411. if test -n "$STRIP"; then
  3412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3413. printf "%s\n" "$STRIP" >&6; }
  3414. else
  3415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3416. printf "%s\n" "no" >&6; }
  3417. fi
  3418. fi
  3419. if test -z "$ac_cv_prog_STRIP"; then
  3420. ac_ct_STRIP=$STRIP
  3421. # Extract the first word of "strip", so it can be a program name with args.
  3422. set dummy strip; ac_word=$2
  3423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3424. printf %s "checking for $ac_word... " >&6; }
  3425. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3426. then :
  3427. printf %s "(cached) " >&6
  3428. else case e in #(
  3429. e) if test -n "$ac_ct_STRIP"; then
  3430. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3431. else
  3432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3433. for as_dir in $PATH
  3434. do
  3435. IFS=$as_save_IFS
  3436. case $as_dir in #(((
  3437. '') as_dir=./ ;;
  3438. */) ;;
  3439. *) as_dir=$as_dir/ ;;
  3440. esac
  3441. for ac_exec_ext in '' $ac_executable_extensions; do
  3442. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3443. ac_cv_prog_ac_ct_STRIP="strip"
  3444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3445. break 2
  3446. fi
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. fi ;;
  3451. esac
  3452. fi
  3453. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3454. if test -n "$ac_ct_STRIP"; then
  3455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3456. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3457. else
  3458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3459. printf "%s\n" "no" >&6; }
  3460. fi
  3461. if test "x$ac_ct_STRIP" = x; then
  3462. STRIP=":"
  3463. else
  3464. case $cross_compiling:$ac_tool_warned in
  3465. yes:)
  3466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3467. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3468. ac_tool_warned=yes ;;
  3469. esac
  3470. STRIP=$ac_ct_STRIP
  3471. fi
  3472. else
  3473. STRIP="$ac_cv_prog_STRIP"
  3474. fi
  3475. fi
  3476. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3478. printf %s "checking for a race-free mkdir -p... " >&6; }
  3479. if test -z "$MKDIR_P"; then
  3480. if test ${ac_cv_path_mkdir+y}
  3481. then :
  3482. printf %s "(cached) " >&6
  3483. else case e in #(
  3484. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3486. do
  3487. IFS=$as_save_IFS
  3488. case $as_dir in #(((
  3489. '') as_dir=./ ;;
  3490. */) ;;
  3491. *) as_dir=$as_dir/ ;;
  3492. esac
  3493. for ac_prog in mkdir gmkdir; do
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3496. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3497. 'mkdir ('*'coreutils) '* | \
  3498. *'BusyBox '* | \
  3499. 'mkdir (fileutils) '4.1*)
  3500. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3501. break 3;;
  3502. esac
  3503. done
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. ;;
  3508. esac
  3509. fi
  3510. test -d ./--version && rmdir ./--version
  3511. if test ${ac_cv_path_mkdir+y}; then
  3512. MKDIR_P="$ac_cv_path_mkdir -p"
  3513. else
  3514. # As a last resort, use plain mkdir -p,
  3515. # in the hope it doesn't have the bugs of ancient mkdir.
  3516. MKDIR_P='mkdir -p'
  3517. fi
  3518. fi
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3520. printf "%s\n" "$MKDIR_P" >&6; }
  3521. for ac_prog in gawk mawk nawk awk
  3522. do
  3523. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3524. set dummy $ac_prog; ac_word=$2
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3526. printf %s "checking for $ac_word... " >&6; }
  3527. if test ${ac_cv_prog_AWK+y}
  3528. then :
  3529. printf %s "(cached) " >&6
  3530. else case e in #(
  3531. e) if test -n "$AWK"; then
  3532. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3533. else
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH
  3536. do
  3537. IFS=$as_save_IFS
  3538. case $as_dir in #(((
  3539. '') as_dir=./ ;;
  3540. */) ;;
  3541. *) as_dir=$as_dir/ ;;
  3542. esac
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3545. ac_cv_prog_AWK="$ac_prog"
  3546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3547. break 2
  3548. fi
  3549. done
  3550. done
  3551. IFS=$as_save_IFS
  3552. fi ;;
  3553. esac
  3554. fi
  3555. AWK=$ac_cv_prog_AWK
  3556. if test -n "$AWK"; then
  3557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3558. printf "%s\n" "$AWK" >&6; }
  3559. else
  3560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. printf "%s\n" "no" >&6; }
  3562. fi
  3563. test -n "$AWK" && break
  3564. done
  3565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3566. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3567. set x ${MAKE-make}
  3568. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3569. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3570. then :
  3571. printf %s "(cached) " >&6
  3572. else case e in #(
  3573. e) cat >conftest.make <<\_ACEOF
  3574. SHELL = /bin/sh
  3575. all:
  3576. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3577. _ACEOF
  3578. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3579. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3580. *@@@%%%=?*=@@@%%%*)
  3581. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3582. *)
  3583. eval ac_cv_prog_make_${ac_make}_set=no;;
  3584. esac
  3585. rm -f conftest.make ;;
  3586. esac
  3587. fi
  3588. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3590. printf "%s\n" "yes" >&6; }
  3591. SET_MAKE=
  3592. else
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3594. printf "%s\n" "no" >&6; }
  3595. SET_MAKE="MAKE=${MAKE-make}"
  3596. fi
  3597. rm -rf .tst 2>/dev/null
  3598. mkdir .tst 2>/dev/null
  3599. if test -d .tst; then
  3600. am__leading_dot=.
  3601. else
  3602. am__leading_dot=_
  3603. fi
  3604. rmdir .tst 2>/dev/null
  3605. AM_DEFAULT_VERBOSITY=1
  3606. # Check whether --enable-silent-rules was given.
  3607. if test ${enable_silent_rules+y}
  3608. then :
  3609. enableval=$enable_silent_rules;
  3610. fi
  3611. am_make=${MAKE-make}
  3612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3613. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3614. if test ${am_cv_make_support_nested_variables+y}
  3615. then :
  3616. printf %s "(cached) " >&6
  3617. else case e in #(
  3618. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3619. BAR0=false
  3620. BAR1=true
  3621. V=1
  3622. am__doit:
  3623. @$(TRUE)
  3624. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3625. am_cv_make_support_nested_variables=yes
  3626. else
  3627. am_cv_make_support_nested_variables=no
  3628. fi ;;
  3629. esac
  3630. fi
  3631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3632. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3633. AM_BACKSLASH='\'
  3634. am__rm_f_notfound=
  3635. if (rm -f && rm -fr && rm -rf) 2>/dev/null
  3636. then :
  3637. else case e in #(
  3638. e) am__rm_f_notfound='""' ;;
  3639. esac
  3640. fi
  3641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
  3642. printf %s "checking xargs -n works... " >&6; }
  3643. if test ${am_cv_xargs_n_works+y}
  3644. then :
  3645. printf %s "(cached) " >&6
  3646. else case e in #(
  3647. e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
  3648. 3"
  3649. then :
  3650. am_cv_xargs_n_works=yes
  3651. else case e in #(
  3652. e) am_cv_xargs_n_works=no ;;
  3653. esac
  3654. fi ;;
  3655. esac
  3656. fi
  3657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
  3658. printf "%s\n" "$am_cv_xargs_n_works" >&6; }
  3659. if test "$am_cv_xargs_n_works" = yes
  3660. then :
  3661. am__xargs_n='xargs -n'
  3662. else case e in #(
  3663. e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
  3664. ;;
  3665. esac
  3666. fi
  3667. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3668. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3669. # is not polluted with repeated "-I."
  3670. am__isrc=' -I$(srcdir)'
  3671. # test to see if srcdir already configured
  3672. if test -f $srcdir/config.status; then
  3673. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3674. fi
  3675. fi
  3676. # test whether we have cygpath
  3677. if test -z "$CYGPATH_W"; then
  3678. if (cygpath --version) >/dev/null 2>/dev/null; then
  3679. CYGPATH_W='cygpath -w'
  3680. else
  3681. CYGPATH_W=echo
  3682. fi
  3683. fi
  3684. # Define the identity of the package.
  3685. PACKAGE='expat'
  3686. VERSION='2.7.3'
  3687. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3688. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3689. # Some tools Automake needs.
  3690. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3691. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3692. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3693. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3694. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3695. # For better backward compatibility. To be removed once Automake 1.9.x
  3696. # dies out for good. For more background, see:
  3697. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3698. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3699. mkdir_p='$(MKDIR_P)'
  3700. # We need awk for the "check" target (and possibly the TAP driver). The
  3701. # system "awk" is bad on some platforms.
  3702. # Always define AMTAR for backward compatibility. Yes, it's still used
  3703. # in the wild :-( We should find a proper way to deprecate it ...
  3704. AMTAR='$${TAR-tar}'
  3705. # We'll loop over all known methods to create a tar archive until one works.
  3706. _am_tools='gnutar plaintar pax cpio none'
  3707. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3708. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3709. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3710. # and bug#13588).
  3711. am_max_uid=2097151 # 2^21 - 1
  3712. am_max_gid=$am_max_uid
  3713. # The $UID and $GID variables are not portable, so we need to resort
  3714. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3715. # below are definitely unexpected, so allow the users to see them
  3716. # (that is, avoid stderr redirection).
  3717. am_uid=`id -u || echo unknown`
  3718. am_gid=`id -g || echo unknown`
  3719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3720. printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3721. if test x$am_uid = xunknown; then
  3722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
  3723. printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
  3724. elif test $am_uid -le $am_max_uid; then
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3726. printf "%s\n" "yes" >&6; }
  3727. else
  3728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3729. printf "%s\n" "no" >&6; }
  3730. _am_tools=none
  3731. fi
  3732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3733. printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3734. if test x$gm_gid = xunknown; then
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
  3736. printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
  3737. elif test $am_gid -le $am_max_gid; then
  3738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3739. printf "%s\n" "yes" >&6; }
  3740. else
  3741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3742. printf "%s\n" "no" >&6; }
  3743. _am_tools=none
  3744. fi
  3745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3746. printf %s "checking how to create a ustar tar archive... " >&6; }
  3747. # Go ahead even if we have the value already cached. We do so because we
  3748. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3749. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3750. for _am_tool in $_am_tools; do
  3751. case $_am_tool in
  3752. gnutar)
  3753. for _am_tar in tar gnutar gtar; do
  3754. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3755. ($_am_tar --version) >&5 2>&5
  3756. ac_status=$?
  3757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3758. (exit $ac_status); } && break
  3759. done
  3760. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3761. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3762. am__untar="$_am_tar -xf -"
  3763. ;;
  3764. plaintar)
  3765. # Must skip GNU tar: if it does not support --format= it doesn't create
  3766. # ustar tarball either.
  3767. (tar --version) >/dev/null 2>&1 && continue
  3768. am__tar='tar chf - "$$tardir"'
  3769. am__tar_='tar chf - "$tardir"'
  3770. am__untar='tar xf -'
  3771. ;;
  3772. pax)
  3773. am__tar='pax -L -x ustar -w "$$tardir"'
  3774. am__tar_='pax -L -x ustar -w "$tardir"'
  3775. am__untar='pax -r'
  3776. ;;
  3777. cpio)
  3778. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3779. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3780. am__untar='cpio -i -H ustar -d'
  3781. ;;
  3782. none)
  3783. am__tar=false
  3784. am__tar_=false
  3785. am__untar=false
  3786. ;;
  3787. esac
  3788. # If the value was cached, stop now. We just wanted to have am__tar
  3789. # and am__untar set.
  3790. test -n "${am_cv_prog_tar_ustar}" && break
  3791. # tar/untar a dummy directory, and stop if the command works.
  3792. rm -rf conftest.dir
  3793. mkdir conftest.dir
  3794. echo GrepMe > conftest.dir/file
  3795. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3796. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3797. ac_status=$?
  3798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); }
  3800. rm -rf conftest.dir
  3801. if test -s conftest.tar; then
  3802. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3803. ($am__untar <conftest.tar) >&5 2>&5
  3804. ac_status=$?
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); }
  3807. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3808. (cat conftest.dir/file) >&5 2>&5
  3809. ac_status=$?
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); }
  3812. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3813. fi
  3814. done
  3815. rm -rf conftest.dir
  3816. if test ${am_cv_prog_tar_ustar+y}
  3817. then :
  3818. printf %s "(cached) " >&6
  3819. else case e in #(
  3820. e) am_cv_prog_tar_ustar=$_am_tool ;;
  3821. esac
  3822. fi
  3823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3824. printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
  3825. # Variables for tags utilities; see am/tags.am
  3826. if test -z "$CTAGS"; then
  3827. CTAGS=ctags
  3828. fi
  3829. if test -z "$ETAGS"; then
  3830. ETAGS=etags
  3831. fi
  3832. if test -z "$CSCOPE"; then
  3833. CSCOPE=cscope
  3834. fi
  3835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3836. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3837. # Check whether --enable-maintainer-mode was given.
  3838. if test ${enable_maintainer_mode+y}
  3839. then :
  3840. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3841. else case e in #(
  3842. e) USE_MAINTAINER_MODE=yes ;;
  3843. esac
  3844. fi
  3845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3846. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3847. if test $USE_MAINTAINER_MODE = yes; then
  3848. MAINTAINER_MODE_TRUE=
  3849. MAINTAINER_MODE_FALSE='#'
  3850. else
  3851. MAINTAINER_MODE_TRUE='#'
  3852. MAINTAINER_MODE_FALSE=
  3853. fi
  3854. MAINT=$MAINTAINER_MODE_TRUE
  3855. # to allow argument --disable-maintainer-mode
  3856. LIBCURRENT=12 # sync
  3857. LIBREVISION=1 # with
  3858. LIBAGE=11 # CMakeLists.txt!
  3859. ac_config_headers="$ac_config_headers expat_config.h"
  3860. DEPDIR="${am__leading_dot}deps"
  3861. ac_config_commands="$ac_config_commands depfiles"
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3863. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3864. cat > confinc.mk << 'END'
  3865. am__doit:
  3866. @echo this is the am__doit target >confinc.out
  3867. .PHONY: am__doit
  3868. END
  3869. am__include="#"
  3870. am__quote=
  3871. # BSD make does it like this.
  3872. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3873. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3874. echo 'include confinc.mk # ignored' > confmf.GNU
  3875. _am_result=no
  3876. for s in GNU BSD; do
  3877. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3878. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3879. ac_status=$?
  3880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3881. (exit $ac_status); }
  3882. case $?:`cat confinc.out 2>/dev/null` in #(
  3883. '0:this is the am__doit target') :
  3884. case $s in #(
  3885. BSD) :
  3886. am__include='.include' am__quote='"' ;; #(
  3887. *) :
  3888. am__include='include' am__quote='' ;;
  3889. esac ;; #(
  3890. *) :
  3891. ;;
  3892. esac
  3893. if test "$am__include" != "#"; then
  3894. _am_result="yes ($s style)"
  3895. break
  3896. fi
  3897. done
  3898. rm -f confinc.* confmf.*
  3899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3900. printf "%s\n" "${_am_result}" >&6; }
  3901. # Check whether --enable-dependency-tracking was given.
  3902. if test ${enable_dependency_tracking+y}
  3903. then :
  3904. enableval=$enable_dependency_tracking;
  3905. fi
  3906. if test "x$enable_dependency_tracking" != xno; then
  3907. am_depcomp="$ac_aux_dir/depcomp"
  3908. AMDEPBACKSLASH='\'
  3909. am__nodep='_no'
  3910. fi
  3911. if test "x$enable_dependency_tracking" != xno; then
  3912. AMDEP_TRUE=
  3913. AMDEP_FALSE='#'
  3914. else
  3915. AMDEP_TRUE='#'
  3916. AMDEP_FALSE=
  3917. fi
  3918. ac_ext=c
  3919. ac_cpp='$CPP $CPPFLAGS'
  3920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3923. if test -n "$ac_tool_prefix"; then
  3924. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3925. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3927. printf %s "checking for $ac_word... " >&6; }
  3928. if test ${ac_cv_prog_CC+y}
  3929. then :
  3930. printf %s "(cached) " >&6
  3931. else case e in #(
  3932. e) if test -n "$CC"; then
  3933. ac_cv_prog_CC="$CC" # Let the user override the test.
  3934. else
  3935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3936. for as_dir in $PATH
  3937. do
  3938. IFS=$as_save_IFS
  3939. case $as_dir in #(((
  3940. '') as_dir=./ ;;
  3941. */) ;;
  3942. *) as_dir=$as_dir/ ;;
  3943. esac
  3944. for ac_exec_ext in '' $ac_executable_extensions; do
  3945. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3946. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3948. break 2
  3949. fi
  3950. done
  3951. done
  3952. IFS=$as_save_IFS
  3953. fi ;;
  3954. esac
  3955. fi
  3956. CC=$ac_cv_prog_CC
  3957. if test -n "$CC"; then
  3958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3959. printf "%s\n" "$CC" >&6; }
  3960. else
  3961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3962. printf "%s\n" "no" >&6; }
  3963. fi
  3964. fi
  3965. if test -z "$ac_cv_prog_CC"; then
  3966. ac_ct_CC=$CC
  3967. # Extract the first word of "gcc", so it can be a program name with args.
  3968. set dummy gcc; ac_word=$2
  3969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3970. printf %s "checking for $ac_word... " >&6; }
  3971. if test ${ac_cv_prog_ac_ct_CC+y}
  3972. then :
  3973. printf %s "(cached) " >&6
  3974. else case e in #(
  3975. e) if test -n "$ac_ct_CC"; then
  3976. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3977. else
  3978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3979. for as_dir in $PATH
  3980. do
  3981. IFS=$as_save_IFS
  3982. case $as_dir in #(((
  3983. '') as_dir=./ ;;
  3984. */) ;;
  3985. *) as_dir=$as_dir/ ;;
  3986. esac
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3989. ac_cv_prog_ac_ct_CC="gcc"
  3990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3991. break 2
  3992. fi
  3993. done
  3994. done
  3995. IFS=$as_save_IFS
  3996. fi ;;
  3997. esac
  3998. fi
  3999. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4000. if test -n "$ac_ct_CC"; then
  4001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4002. printf "%s\n" "$ac_ct_CC" >&6; }
  4003. else
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4005. printf "%s\n" "no" >&6; }
  4006. fi
  4007. if test "x$ac_ct_CC" = x; then
  4008. CC=""
  4009. else
  4010. case $cross_compiling:$ac_tool_warned in
  4011. yes:)
  4012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4013. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4014. ac_tool_warned=yes ;;
  4015. esac
  4016. CC=$ac_ct_CC
  4017. fi
  4018. else
  4019. CC="$ac_cv_prog_CC"
  4020. fi
  4021. if test -z "$CC"; then
  4022. if test -n "$ac_tool_prefix"; then
  4023. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4024. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4026. printf %s "checking for $ac_word... " >&6; }
  4027. if test ${ac_cv_prog_CC+y}
  4028. then :
  4029. printf %s "(cached) " >&6
  4030. else case e in #(
  4031. e) if test -n "$CC"; then
  4032. ac_cv_prog_CC="$CC" # Let the user override the test.
  4033. else
  4034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4035. for as_dir in $PATH
  4036. do
  4037. IFS=$as_save_IFS
  4038. case $as_dir in #(((
  4039. '') as_dir=./ ;;
  4040. */) ;;
  4041. *) as_dir=$as_dir/ ;;
  4042. esac
  4043. for ac_exec_ext in '' $ac_executable_extensions; do
  4044. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4045. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4046. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4047. break 2
  4048. fi
  4049. done
  4050. done
  4051. IFS=$as_save_IFS
  4052. fi ;;
  4053. esac
  4054. fi
  4055. CC=$ac_cv_prog_CC
  4056. if test -n "$CC"; then
  4057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4058. printf "%s\n" "$CC" >&6; }
  4059. else
  4060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4061. printf "%s\n" "no" >&6; }
  4062. fi
  4063. fi
  4064. fi
  4065. if test -z "$CC"; then
  4066. # Extract the first word of "cc", so it can be a program name with args.
  4067. set dummy cc; ac_word=$2
  4068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4069. printf %s "checking for $ac_word... " >&6; }
  4070. if test ${ac_cv_prog_CC+y}
  4071. then :
  4072. printf %s "(cached) " >&6
  4073. else case e in #(
  4074. e) if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. ac_prog_rejected=no
  4078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4079. for as_dir in $PATH
  4080. do
  4081. IFS=$as_save_IFS
  4082. case $as_dir in #(((
  4083. '') as_dir=./ ;;
  4084. */) ;;
  4085. *) as_dir=$as_dir/ ;;
  4086. esac
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4089. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4090. ac_prog_rejected=yes
  4091. continue
  4092. fi
  4093. ac_cv_prog_CC="cc"
  4094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4095. break 2
  4096. fi
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. if test $ac_prog_rejected = yes; then
  4101. # We found a bogon in the path, so make sure we never use it.
  4102. set dummy $ac_cv_prog_CC
  4103. shift
  4104. if test $# != 0; then
  4105. # We chose a different compiler from the bogus one.
  4106. # However, it has the same basename, so the bogon will be chosen
  4107. # first if we set CC to just the basename; use the full file name.
  4108. shift
  4109. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4110. fi
  4111. fi
  4112. fi ;;
  4113. esac
  4114. fi
  4115. CC=$ac_cv_prog_CC
  4116. if test -n "$CC"; then
  4117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4118. printf "%s\n" "$CC" >&6; }
  4119. else
  4120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4121. printf "%s\n" "no" >&6; }
  4122. fi
  4123. fi
  4124. if test -z "$CC"; then
  4125. if test -n "$ac_tool_prefix"; then
  4126. for ac_prog in cl.exe
  4127. do
  4128. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4129. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4131. printf %s "checking for $ac_word... " >&6; }
  4132. if test ${ac_cv_prog_CC+y}
  4133. then :
  4134. printf %s "(cached) " >&6
  4135. else case e in #(
  4136. e) if test -n "$CC"; then
  4137. ac_cv_prog_CC="$CC" # Let the user override the test.
  4138. else
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH
  4141. do
  4142. IFS=$as_save_IFS
  4143. case $as_dir in #(((
  4144. '') as_dir=./ ;;
  4145. */) ;;
  4146. *) as_dir=$as_dir/ ;;
  4147. esac
  4148. for ac_exec_ext in '' $ac_executable_extensions; do
  4149. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4150. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4152. break 2
  4153. fi
  4154. done
  4155. done
  4156. IFS=$as_save_IFS
  4157. fi ;;
  4158. esac
  4159. fi
  4160. CC=$ac_cv_prog_CC
  4161. if test -n "$CC"; then
  4162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4163. printf "%s\n" "$CC" >&6; }
  4164. else
  4165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4166. printf "%s\n" "no" >&6; }
  4167. fi
  4168. test -n "$CC" && break
  4169. done
  4170. fi
  4171. if test -z "$CC"; then
  4172. ac_ct_CC=$CC
  4173. for ac_prog in cl.exe
  4174. do
  4175. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4176. set dummy $ac_prog; ac_word=$2
  4177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4178. printf %s "checking for $ac_word... " >&6; }
  4179. if test ${ac_cv_prog_ac_ct_CC+y}
  4180. then :
  4181. printf %s "(cached) " >&6
  4182. else case e in #(
  4183. e) if test -n "$ac_ct_CC"; then
  4184. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4185. else
  4186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4187. for as_dir in $PATH
  4188. do
  4189. IFS=$as_save_IFS
  4190. case $as_dir in #(((
  4191. '') as_dir=./ ;;
  4192. */) ;;
  4193. *) as_dir=$as_dir/ ;;
  4194. esac
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4197. ac_cv_prog_ac_ct_CC="$ac_prog"
  4198. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4199. break 2
  4200. fi
  4201. done
  4202. done
  4203. IFS=$as_save_IFS
  4204. fi ;;
  4205. esac
  4206. fi
  4207. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4208. if test -n "$ac_ct_CC"; then
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4210. printf "%s\n" "$ac_ct_CC" >&6; }
  4211. else
  4212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4213. printf "%s\n" "no" >&6; }
  4214. fi
  4215. test -n "$ac_ct_CC" && break
  4216. done
  4217. if test "x$ac_ct_CC" = x; then
  4218. CC=""
  4219. else
  4220. case $cross_compiling:$ac_tool_warned in
  4221. yes:)
  4222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4223. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4224. ac_tool_warned=yes ;;
  4225. esac
  4226. CC=$ac_ct_CC
  4227. fi
  4228. fi
  4229. fi
  4230. if test -z "$CC"; then
  4231. if test -n "$ac_tool_prefix"; then
  4232. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4233. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4235. printf %s "checking for $ac_word... " >&6; }
  4236. if test ${ac_cv_prog_CC+y}
  4237. then :
  4238. printf %s "(cached) " >&6
  4239. else case e in #(
  4240. e) if test -n "$CC"; then
  4241. ac_cv_prog_CC="$CC" # Let the user override the test.
  4242. else
  4243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4244. for as_dir in $PATH
  4245. do
  4246. IFS=$as_save_IFS
  4247. case $as_dir in #(((
  4248. '') as_dir=./ ;;
  4249. */) ;;
  4250. *) as_dir=$as_dir/ ;;
  4251. esac
  4252. for ac_exec_ext in '' $ac_executable_extensions; do
  4253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4254. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4256. break 2
  4257. fi
  4258. done
  4259. done
  4260. IFS=$as_save_IFS
  4261. fi ;;
  4262. esac
  4263. fi
  4264. CC=$ac_cv_prog_CC
  4265. if test -n "$CC"; then
  4266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4267. printf "%s\n" "$CC" >&6; }
  4268. else
  4269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4270. printf "%s\n" "no" >&6; }
  4271. fi
  4272. fi
  4273. if test -z "$ac_cv_prog_CC"; then
  4274. ac_ct_CC=$CC
  4275. # Extract the first word of "clang", so it can be a program name with args.
  4276. set dummy clang; ac_word=$2
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4278. printf %s "checking for $ac_word... " >&6; }
  4279. if test ${ac_cv_prog_ac_ct_CC+y}
  4280. then :
  4281. printf %s "(cached) " >&6
  4282. else case e in #(
  4283. e) if test -n "$ac_ct_CC"; then
  4284. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4285. else
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH
  4288. do
  4289. IFS=$as_save_IFS
  4290. case $as_dir in #(((
  4291. '') as_dir=./ ;;
  4292. */) ;;
  4293. *) as_dir=$as_dir/ ;;
  4294. esac
  4295. for ac_exec_ext in '' $ac_executable_extensions; do
  4296. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4297. ac_cv_prog_ac_ct_CC="clang"
  4298. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4299. break 2
  4300. fi
  4301. done
  4302. done
  4303. IFS=$as_save_IFS
  4304. fi ;;
  4305. esac
  4306. fi
  4307. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4308. if test -n "$ac_ct_CC"; then
  4309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4310. printf "%s\n" "$ac_ct_CC" >&6; }
  4311. else
  4312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4313. printf "%s\n" "no" >&6; }
  4314. fi
  4315. if test "x$ac_ct_CC" = x; then
  4316. CC=""
  4317. else
  4318. case $cross_compiling:$ac_tool_warned in
  4319. yes:)
  4320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4321. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4322. ac_tool_warned=yes ;;
  4323. esac
  4324. CC=$ac_ct_CC
  4325. fi
  4326. else
  4327. CC="$ac_cv_prog_CC"
  4328. fi
  4329. fi
  4330. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4331. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4332. as_fn_error $? "no acceptable C compiler found in \$PATH
  4333. See 'config.log' for more details" "$LINENO" 5; }
  4334. # Provide some information about the compiler.
  4335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4336. set X $ac_compile
  4337. ac_compiler=$2
  4338. for ac_option in --version -v -V -qversion -version; do
  4339. { { ac_try="$ac_compiler $ac_option >&5"
  4340. case "(($ac_try" in
  4341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4342. *) ac_try_echo=$ac_try;;
  4343. esac
  4344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4345. printf "%s\n" "$ac_try_echo"; } >&5
  4346. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4347. ac_status=$?
  4348. if test -s conftest.err; then
  4349. sed '10a\
  4350. ... rest of stderr output deleted ...
  4351. 10q' conftest.err >conftest.er1
  4352. cat conftest.er1 >&5
  4353. fi
  4354. rm -f conftest.er1 conftest.err
  4355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4356. test $ac_status = 0; }
  4357. done
  4358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4359. /* end confdefs.h. */
  4360. int
  4361. main (void)
  4362. {
  4363. ;
  4364. return 0;
  4365. }
  4366. _ACEOF
  4367. ac_clean_files_save=$ac_clean_files
  4368. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4369. # Try to create an executable without -o first, disregard a.out.
  4370. # It will help us diagnose broken compilers, and finding out an intuition
  4371. # of exeext.
  4372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4373. printf %s "checking whether the C compiler works... " >&6; }
  4374. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4375. # The possible output files:
  4376. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4377. ac_rmfiles=
  4378. for ac_file in $ac_files
  4379. do
  4380. case $ac_file in
  4381. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4382. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4383. esac
  4384. done
  4385. rm -f $ac_rmfiles
  4386. if { { ac_try="$ac_link_default"
  4387. case "(($ac_try" in
  4388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4389. *) ac_try_echo=$ac_try;;
  4390. esac
  4391. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4392. printf "%s\n" "$ac_try_echo"; } >&5
  4393. (eval "$ac_link_default") 2>&5
  4394. ac_status=$?
  4395. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4396. test $ac_status = 0; }
  4397. then :
  4398. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  4399. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  4400. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4401. # so that the user can short-circuit this test for compilers unknown to
  4402. # Autoconf.
  4403. for ac_file in $ac_files ''
  4404. do
  4405. test -f "$ac_file" || continue
  4406. case $ac_file in
  4407. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4408. ;;
  4409. [ab].out )
  4410. # We found the default executable, but exeext='' is most
  4411. # certainly right.
  4412. break;;
  4413. *.* )
  4414. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4415. then :; else
  4416. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4417. fi
  4418. # We set ac_cv_exeext here because the later test for it is not
  4419. # safe: cross compilers may not add the suffix if given an '-o'
  4420. # argument, so we may need to know it at that point already.
  4421. # Even if this section looks crufty: it has the advantage of
  4422. # actually working.
  4423. break;;
  4424. * )
  4425. break;;
  4426. esac
  4427. done
  4428. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4429. else case e in #(
  4430. e) ac_file='' ;;
  4431. esac
  4432. fi
  4433. if test -z "$ac_file"
  4434. then :
  4435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4436. printf "%s\n" "no" >&6; }
  4437. printf "%s\n" "$as_me: failed program was:" >&5
  4438. sed 's/^/| /' conftest.$ac_ext >&5
  4439. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4440. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4441. as_fn_error 77 "C compiler cannot create executables
  4442. See 'config.log' for more details" "$LINENO" 5; }
  4443. else case e in #(
  4444. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4445. printf "%s\n" "yes" >&6; } ;;
  4446. esac
  4447. fi
  4448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4449. printf %s "checking for C compiler default output file name... " >&6; }
  4450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4451. printf "%s\n" "$ac_file" >&6; }
  4452. ac_exeext=$ac_cv_exeext
  4453. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4454. ac_clean_files=$ac_clean_files_save
  4455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4456. printf %s "checking for suffix of executables... " >&6; }
  4457. if { { ac_try="$ac_link"
  4458. case "(($ac_try" in
  4459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4460. *) ac_try_echo=$ac_try;;
  4461. esac
  4462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4463. printf "%s\n" "$ac_try_echo"; } >&5
  4464. (eval "$ac_link") 2>&5
  4465. ac_status=$?
  4466. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4467. test $ac_status = 0; }
  4468. then :
  4469. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  4470. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  4471. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  4472. # 'rm'.
  4473. for ac_file in conftest.exe conftest conftest.*; do
  4474. test -f "$ac_file" || continue
  4475. case $ac_file in
  4476. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4477. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4478. break;;
  4479. * ) break;;
  4480. esac
  4481. done
  4482. else case e in #(
  4483. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4484. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4485. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4486. See 'config.log' for more details" "$LINENO" 5; } ;;
  4487. esac
  4488. fi
  4489. rm -f conftest conftest$ac_cv_exeext
  4490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4491. printf "%s\n" "$ac_cv_exeext" >&6; }
  4492. rm -f conftest.$ac_ext
  4493. EXEEXT=$ac_cv_exeext
  4494. ac_exeext=$EXEEXT
  4495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4496. /* end confdefs.h. */
  4497. #include <stdio.h>
  4498. int
  4499. main (void)
  4500. {
  4501. FILE *f = fopen ("conftest.out", "w");
  4502. if (!f)
  4503. return 1;
  4504. return ferror (f) || fclose (f) != 0;
  4505. ;
  4506. return 0;
  4507. }
  4508. _ACEOF
  4509. ac_clean_files="$ac_clean_files conftest.out"
  4510. # Check that the compiler produces executables we can run. If not, either
  4511. # the compiler is broken, or we cross compile.
  4512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4513. printf %s "checking whether we are cross compiling... " >&6; }
  4514. if test "$cross_compiling" != yes; then
  4515. { { ac_try="$ac_link"
  4516. case "(($ac_try" in
  4517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4518. *) ac_try_echo=$ac_try;;
  4519. esac
  4520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4521. printf "%s\n" "$ac_try_echo"; } >&5
  4522. (eval "$ac_link") 2>&5
  4523. ac_status=$?
  4524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4525. test $ac_status = 0; }
  4526. if { ac_try='./conftest$ac_cv_exeext'
  4527. { { case "(($ac_try" in
  4528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4529. *) ac_try_echo=$ac_try;;
  4530. esac
  4531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4532. printf "%s\n" "$ac_try_echo"; } >&5
  4533. (eval "$ac_try") 2>&5
  4534. ac_status=$?
  4535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4536. test $ac_status = 0; }; }; then
  4537. cross_compiling=no
  4538. else
  4539. if test "$cross_compiling" = maybe; then
  4540. cross_compiling=yes
  4541. else
  4542. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4543. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4544. as_fn_error 77 "cannot run C compiled programs.
  4545. If you meant to cross compile, use '--host'.
  4546. See 'config.log' for more details" "$LINENO" 5; }
  4547. fi
  4548. fi
  4549. fi
  4550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4551. printf "%s\n" "$cross_compiling" >&6; }
  4552. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  4553. conftest.o conftest.obj conftest.out
  4554. ac_clean_files=$ac_clean_files_save
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4556. printf %s "checking for suffix of object files... " >&6; }
  4557. if test ${ac_cv_objext+y}
  4558. then :
  4559. printf %s "(cached) " >&6
  4560. else case e in #(
  4561. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4562. /* end confdefs.h. */
  4563. int
  4564. main (void)
  4565. {
  4566. ;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. rm -f conftest.o conftest.obj
  4571. if { { ac_try="$ac_compile"
  4572. case "(($ac_try" in
  4573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4574. *) ac_try_echo=$ac_try;;
  4575. esac
  4576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4577. printf "%s\n" "$ac_try_echo"; } >&5
  4578. (eval "$ac_compile") 2>&5
  4579. ac_status=$?
  4580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4581. test $ac_status = 0; }
  4582. then :
  4583. for ac_file in conftest.o conftest.obj conftest.*; do
  4584. test -f "$ac_file" || continue;
  4585. case $ac_file in
  4586. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4587. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4588. break;;
  4589. esac
  4590. done
  4591. else case e in #(
  4592. e) printf "%s\n" "$as_me: failed program was:" >&5
  4593. sed 's/^/| /' conftest.$ac_ext >&5
  4594. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4595. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4596. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4597. See 'config.log' for more details" "$LINENO" 5; } ;;
  4598. esac
  4599. fi
  4600. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  4601. esac
  4602. fi
  4603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4604. printf "%s\n" "$ac_cv_objext" >&6; }
  4605. OBJEXT=$ac_cv_objext
  4606. ac_objext=$OBJEXT
  4607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4608. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4609. if test ${ac_cv_c_compiler_gnu+y}
  4610. then :
  4611. printf %s "(cached) " >&6
  4612. else case e in #(
  4613. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end confdefs.h. */
  4615. int
  4616. main (void)
  4617. {
  4618. #ifndef __GNUC__
  4619. choke me
  4620. #endif
  4621. ;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. if ac_fn_c_try_compile "$LINENO"
  4626. then :
  4627. ac_compiler_gnu=yes
  4628. else case e in #(
  4629. e) ac_compiler_gnu=no ;;
  4630. esac
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4633. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4634. ;;
  4635. esac
  4636. fi
  4637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4638. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4640. if test $ac_compiler_gnu = yes; then
  4641. GCC=yes
  4642. else
  4643. GCC=
  4644. fi
  4645. ac_test_CFLAGS=${CFLAGS+y}
  4646. ac_save_CFLAGS=$CFLAGS
  4647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4648. printf %s "checking whether $CC accepts -g... " >&6; }
  4649. if test ${ac_cv_prog_cc_g+y}
  4650. then :
  4651. printf %s "(cached) " >&6
  4652. else case e in #(
  4653. e) ac_save_c_werror_flag=$ac_c_werror_flag
  4654. ac_c_werror_flag=yes
  4655. ac_cv_prog_cc_g=no
  4656. CFLAGS="-g"
  4657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end confdefs.h. */
  4659. int
  4660. main (void)
  4661. {
  4662. ;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. if ac_fn_c_try_compile "$LINENO"
  4667. then :
  4668. ac_cv_prog_cc_g=yes
  4669. else case e in #(
  4670. e) CFLAGS=""
  4671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4672. /* end confdefs.h. */
  4673. int
  4674. main (void)
  4675. {
  4676. ;
  4677. return 0;
  4678. }
  4679. _ACEOF
  4680. if ac_fn_c_try_compile "$LINENO"
  4681. then :
  4682. else case e in #(
  4683. e) ac_c_werror_flag=$ac_save_c_werror_flag
  4684. CFLAGS="-g"
  4685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4686. /* end confdefs.h. */
  4687. int
  4688. main (void)
  4689. {
  4690. ;
  4691. return 0;
  4692. }
  4693. _ACEOF
  4694. if ac_fn_c_try_compile "$LINENO"
  4695. then :
  4696. ac_cv_prog_cc_g=yes
  4697. fi
  4698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4699. esac
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4702. esac
  4703. fi
  4704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4705. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  4706. esac
  4707. fi
  4708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4709. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4710. if test $ac_test_CFLAGS; then
  4711. CFLAGS=$ac_save_CFLAGS
  4712. elif test $ac_cv_prog_cc_g = yes; then
  4713. if test "$GCC" = yes; then
  4714. CFLAGS="-g -O2"
  4715. else
  4716. CFLAGS="-g"
  4717. fi
  4718. else
  4719. if test "$GCC" = yes; then
  4720. CFLAGS="-O2"
  4721. else
  4722. CFLAGS=
  4723. fi
  4724. fi
  4725. ac_prog_cc_stdc=no
  4726. if test x$ac_prog_cc_stdc = xno
  4727. then :
  4728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4729. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4730. if test ${ac_cv_prog_cc_c11+y}
  4731. then :
  4732. printf %s "(cached) " >&6
  4733. else case e in #(
  4734. e) ac_cv_prog_cc_c11=no
  4735. ac_save_CC=$CC
  4736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4737. /* end confdefs.h. */
  4738. $ac_c_conftest_c11_program
  4739. _ACEOF
  4740. for ac_arg in '' -std=gnu11
  4741. do
  4742. CC="$ac_save_CC $ac_arg"
  4743. if ac_fn_c_try_compile "$LINENO"
  4744. then :
  4745. ac_cv_prog_cc_c11=$ac_arg
  4746. fi
  4747. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4748. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4749. done
  4750. rm -f conftest.$ac_ext
  4751. CC=$ac_save_CC ;;
  4752. esac
  4753. fi
  4754. if test "x$ac_cv_prog_cc_c11" = xno
  4755. then :
  4756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4757. printf "%s\n" "unsupported" >&6; }
  4758. else case e in #(
  4759. e) if test "x$ac_cv_prog_cc_c11" = x
  4760. then :
  4761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4762. printf "%s\n" "none needed" >&6; }
  4763. else case e in #(
  4764. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4765. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4766. CC="$CC $ac_cv_prog_cc_c11" ;;
  4767. esac
  4768. fi
  4769. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4770. ac_prog_cc_stdc=c11 ;;
  4771. esac
  4772. fi
  4773. fi
  4774. if test x$ac_prog_cc_stdc = xno
  4775. then :
  4776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4777. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4778. if test ${ac_cv_prog_cc_c99+y}
  4779. then :
  4780. printf %s "(cached) " >&6
  4781. else case e in #(
  4782. e) ac_cv_prog_cc_c99=no
  4783. ac_save_CC=$CC
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. $ac_c_conftest_c99_program
  4787. _ACEOF
  4788. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4789. do
  4790. CC="$ac_save_CC $ac_arg"
  4791. if ac_fn_c_try_compile "$LINENO"
  4792. then :
  4793. ac_cv_prog_cc_c99=$ac_arg
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4796. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4797. done
  4798. rm -f conftest.$ac_ext
  4799. CC=$ac_save_CC ;;
  4800. esac
  4801. fi
  4802. if test "x$ac_cv_prog_cc_c99" = xno
  4803. then :
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4805. printf "%s\n" "unsupported" >&6; }
  4806. else case e in #(
  4807. e) if test "x$ac_cv_prog_cc_c99" = x
  4808. then :
  4809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4810. printf "%s\n" "none needed" >&6; }
  4811. else case e in #(
  4812. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4813. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4814. CC="$CC $ac_cv_prog_cc_c99" ;;
  4815. esac
  4816. fi
  4817. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4818. ac_prog_cc_stdc=c99 ;;
  4819. esac
  4820. fi
  4821. fi
  4822. if test x$ac_prog_cc_stdc = xno
  4823. then :
  4824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4825. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4826. if test ${ac_cv_prog_cc_c89+y}
  4827. then :
  4828. printf %s "(cached) " >&6
  4829. else case e in #(
  4830. e) ac_cv_prog_cc_c89=no
  4831. ac_save_CC=$CC
  4832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end confdefs.h. */
  4834. $ac_c_conftest_c89_program
  4835. _ACEOF
  4836. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4837. do
  4838. CC="$ac_save_CC $ac_arg"
  4839. if ac_fn_c_try_compile "$LINENO"
  4840. then :
  4841. ac_cv_prog_cc_c89=$ac_arg
  4842. fi
  4843. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4844. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4845. done
  4846. rm -f conftest.$ac_ext
  4847. CC=$ac_save_CC ;;
  4848. esac
  4849. fi
  4850. if test "x$ac_cv_prog_cc_c89" = xno
  4851. then :
  4852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4853. printf "%s\n" "unsupported" >&6; }
  4854. else case e in #(
  4855. e) if test "x$ac_cv_prog_cc_c89" = x
  4856. then :
  4857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4858. printf "%s\n" "none needed" >&6; }
  4859. else case e in #(
  4860. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4861. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4862. CC="$CC $ac_cv_prog_cc_c89" ;;
  4863. esac
  4864. fi
  4865. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4866. ac_prog_cc_stdc=c89 ;;
  4867. esac
  4868. fi
  4869. fi
  4870. ac_ext=c
  4871. ac_cpp='$CPP $CPPFLAGS'
  4872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4875. ac_ext=c
  4876. ac_cpp='$CPP $CPPFLAGS'
  4877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4881. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4882. if test ${am_cv_prog_cc_c_o+y}
  4883. then :
  4884. printf %s "(cached) " >&6
  4885. else case e in #(
  4886. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4887. /* end confdefs.h. */
  4888. int
  4889. main (void)
  4890. {
  4891. ;
  4892. return 0;
  4893. }
  4894. _ACEOF
  4895. # Make sure it works both with $CC and with simple cc.
  4896. # Following AC_PROG_CC_C_O, we do the test twice because some
  4897. # compilers refuse to overwrite an existing .o file with -o,
  4898. # though they will create one.
  4899. am_cv_prog_cc_c_o=yes
  4900. for am_i in 1 2; do
  4901. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4902. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4903. ac_status=$?
  4904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4905. (exit $ac_status); } \
  4906. && test -f conftest2.$ac_objext; then
  4907. : OK
  4908. else
  4909. am_cv_prog_cc_c_o=no
  4910. break
  4911. fi
  4912. done
  4913. # aligned with autoconf, so not including core; see bug#72225.
  4914. rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
  4915. conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
  4916. conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
  4917. unset am_i ;;
  4918. esac
  4919. fi
  4920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4921. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4922. if test "$am_cv_prog_cc_c_o" != yes; then
  4923. # Losing compiler, so override with the script.
  4924. # FIXME: It is wrong to rewrite CC.
  4925. # But if we don't then we get into trouble of one sort or another.
  4926. # A longer-term fix would be to have automake use am__CC in this case,
  4927. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4928. CC="$am_aux_dir/compile $CC"
  4929. fi
  4930. ac_ext=c
  4931. ac_cpp='$CPP $CPPFLAGS'
  4932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4935. depcc="$CC" am_compiler_list=
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4937. printf %s "checking dependency style of $depcc... " >&6; }
  4938. if test ${am_cv_CC_dependencies_compiler_type+y}
  4939. then :
  4940. printf %s "(cached) " >&6
  4941. else case e in #(
  4942. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4943. # We make a subdir and do the tests there. Otherwise we can end up
  4944. # making bogus files that we don't know about and never remove. For
  4945. # instance it was reported that on HP-UX the gcc test will end up
  4946. # making a dummy file named 'D' -- because '-MD' means "put the output
  4947. # in D".
  4948. rm -rf conftest.dir
  4949. mkdir conftest.dir
  4950. # Copy depcomp to subdir because otherwise we won't find it if we're
  4951. # using a relative directory.
  4952. cp "$am_depcomp" conftest.dir
  4953. cd conftest.dir
  4954. # We will build objects and dependencies in a subdirectory because
  4955. # it helps to detect inapplicable dependency modes. For instance
  4956. # both Tru64's cc and ICC support -MD to output dependencies as a
  4957. # side effect of compilation, but ICC will put the dependencies in
  4958. # the current directory while Tru64 will put them in the object
  4959. # directory.
  4960. mkdir sub
  4961. am_cv_CC_dependencies_compiler_type=none
  4962. if test "$am_compiler_list" = ""; then
  4963. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4964. fi
  4965. am__universal=false
  4966. case " $depcc " in #(
  4967. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4968. esac
  4969. for depmode in $am_compiler_list; do
  4970. # Setup a source with many dependencies, because some compilers
  4971. # like to wrap large dependency lists on column 80 (with \), and
  4972. # we should not choose a depcomp mode which is confused by this.
  4973. #
  4974. # We need to recreate these files for each test, as the compiler may
  4975. # overwrite some of them when testing with obscure command lines.
  4976. # This happens at least with the AIX C compiler.
  4977. : > sub/conftest.c
  4978. for i in 1 2 3 4 5 6; do
  4979. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4980. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4981. # Solaris 10 /bin/sh.
  4982. echo '/* dummy */' > sub/conftst$i.h
  4983. done
  4984. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4985. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4986. # mode. It turns out that the SunPro C++ compiler does not properly
  4987. # handle '-M -o', and we need to detect this. Also, some Intel
  4988. # versions had trouble with output in subdirs.
  4989. am__obj=sub/conftest.${OBJEXT-o}
  4990. am__minus_obj="-o $am__obj"
  4991. case $depmode in
  4992. gcc)
  4993. # This depmode causes a compiler race in universal mode.
  4994. test "$am__universal" = false || continue
  4995. ;;
  4996. nosideeffect)
  4997. # After this tag, mechanisms are not by side-effect, so they'll
  4998. # only be used when explicitly requested.
  4999. if test "x$enable_dependency_tracking" = xyes; then
  5000. continue
  5001. else
  5002. break
  5003. fi
  5004. ;;
  5005. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5006. # This compiler won't grok '-c -o', but also, the minuso test has
  5007. # not run yet. These depmodes are late enough in the game, and
  5008. # so weak that their functioning should not be impacted.
  5009. am__obj=conftest.${OBJEXT-o}
  5010. am__minus_obj=
  5011. ;;
  5012. none) break ;;
  5013. esac
  5014. if depmode=$depmode \
  5015. source=sub/conftest.c object=$am__obj \
  5016. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5017. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5018. >/dev/null 2>conftest.err &&
  5019. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5020. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5021. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5022. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5023. # icc doesn't choke on unknown options, it will just issue warnings
  5024. # or remarks (even with -Werror). So we grep stderr for any message
  5025. # that says an option was ignored or not supported.
  5026. # When given -MP, icc 7.0 and 7.1 complain thus:
  5027. # icc: Command line warning: ignoring option '-M'; no argument required
  5028. # The diagnosis changed in icc 8.0:
  5029. # icc: Command line remark: option '-MP' not supported
  5030. if (grep 'ignoring option' conftest.err ||
  5031. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5032. am_cv_CC_dependencies_compiler_type=$depmode
  5033. break
  5034. fi
  5035. fi
  5036. done
  5037. cd ..
  5038. rm -rf conftest.dir
  5039. else
  5040. am_cv_CC_dependencies_compiler_type=none
  5041. fi
  5042. ;;
  5043. esac
  5044. fi
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5046. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5047. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5048. if
  5049. test "x$enable_dependency_tracking" != xno \
  5050. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5051. am__fastdepCC_TRUE=
  5052. am__fastdepCC_FALSE='#'
  5053. else
  5054. am__fastdepCC_TRUE='#'
  5055. am__fastdepCC_FALSE=
  5056. fi
  5057. if test -n "$ac_tool_prefix"; then
  5058. for ac_prog in ar lib "link -lib"
  5059. do
  5060. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5061. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5063. printf %s "checking for $ac_word... " >&6; }
  5064. if test ${ac_cv_prog_AR+y}
  5065. then :
  5066. printf %s "(cached) " >&6
  5067. else case e in #(
  5068. e) if test -n "$AR"; then
  5069. ac_cv_prog_AR="$AR" # Let the user override the test.
  5070. else
  5071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5072. for as_dir in $PATH
  5073. do
  5074. IFS=$as_save_IFS
  5075. case $as_dir in #(((
  5076. '') as_dir=./ ;;
  5077. */) ;;
  5078. *) as_dir=$as_dir/ ;;
  5079. esac
  5080. for ac_exec_ext in '' $ac_executable_extensions; do
  5081. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5082. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5084. break 2
  5085. fi
  5086. done
  5087. done
  5088. IFS=$as_save_IFS
  5089. fi ;;
  5090. esac
  5091. fi
  5092. AR=$ac_cv_prog_AR
  5093. if test -n "$AR"; then
  5094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5095. printf "%s\n" "$AR" >&6; }
  5096. else
  5097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5098. printf "%s\n" "no" >&6; }
  5099. fi
  5100. test -n "$AR" && break
  5101. done
  5102. fi
  5103. if test -z "$AR"; then
  5104. ac_ct_AR=$AR
  5105. for ac_prog in ar lib "link -lib"
  5106. do
  5107. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5108. set dummy $ac_prog; ac_word=$2
  5109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5110. printf %s "checking for $ac_word... " >&6; }
  5111. if test ${ac_cv_prog_ac_ct_AR+y}
  5112. then :
  5113. printf %s "(cached) " >&6
  5114. else case e in #(
  5115. e) if test -n "$ac_ct_AR"; then
  5116. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5117. else
  5118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5119. for as_dir in $PATH
  5120. do
  5121. IFS=$as_save_IFS
  5122. case $as_dir in #(((
  5123. '') as_dir=./ ;;
  5124. */) ;;
  5125. *) as_dir=$as_dir/ ;;
  5126. esac
  5127. for ac_exec_ext in '' $ac_executable_extensions; do
  5128. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5129. ac_cv_prog_ac_ct_AR="$ac_prog"
  5130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5131. break 2
  5132. fi
  5133. done
  5134. done
  5135. IFS=$as_save_IFS
  5136. fi ;;
  5137. esac
  5138. fi
  5139. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5140. if test -n "$ac_ct_AR"; then
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5142. printf "%s\n" "$ac_ct_AR" >&6; }
  5143. else
  5144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5145. printf "%s\n" "no" >&6; }
  5146. fi
  5147. test -n "$ac_ct_AR" && break
  5148. done
  5149. if test "x$ac_ct_AR" = x; then
  5150. AR="false"
  5151. else
  5152. case $cross_compiling:$ac_tool_warned in
  5153. yes:)
  5154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5155. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5156. ac_tool_warned=yes ;;
  5157. esac
  5158. AR=$ac_ct_AR
  5159. fi
  5160. fi
  5161. : ${AR=ar}
  5162. : ${ARFLAGS=cr}
  5163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5164. printf %s "checking the archiver ($AR) interface... " >&6; }
  5165. if test ${am_cv_ar_interface+y}
  5166. then :
  5167. printf %s "(cached) " >&6
  5168. else case e in #(
  5169. e) ac_ext=c
  5170. ac_cpp='$CPP $CPPFLAGS'
  5171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5174. am_cv_ar_interface=ar
  5175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5176. /* end confdefs.h. */
  5177. int some_variable = 0;
  5178. _ACEOF
  5179. if ac_fn_c_try_compile "$LINENO"
  5180. then :
  5181. am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
  5182. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5183. (eval $am_ar_try) 2>&5
  5184. ac_status=$?
  5185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5186. test $ac_status = 0; }
  5187. if test "$ac_status" -eq 0; then
  5188. am_cv_ar_interface=ar
  5189. else
  5190. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5191. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5192. (eval $am_ar_try) 2>&5
  5193. ac_status=$?
  5194. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5195. test $ac_status = 0; }
  5196. if test "$ac_status" -eq 0; then
  5197. am_cv_ar_interface=lib
  5198. else
  5199. am_cv_ar_interface=unknown
  5200. fi
  5201. fi
  5202. rm -f conftest.lib libconftest.a
  5203. fi
  5204. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5205. ac_ext=c
  5206. ac_cpp='$CPP $CPPFLAGS'
  5207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5210. ;;
  5211. esac
  5212. fi
  5213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5214. printf "%s\n" "$am_cv_ar_interface" >&6; }
  5215. case $am_cv_ar_interface in
  5216. ar)
  5217. ;;
  5218. lib)
  5219. # Microsoft lib, so override with the ar-lib wrapper script.
  5220. # FIXME: It is wrong to rewrite AR.
  5221. # But if we don't then we get into trouble of one sort or another.
  5222. # A longer-term fix would be to have automake use am__AR in this case,
  5223. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5224. # similar.
  5225. AR="$am_aux_dir/ar-lib $AR"
  5226. ;;
  5227. unknown)
  5228. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5229. ;;
  5230. esac
  5231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5232. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5233. set x ${MAKE-make}
  5234. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5235. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  5236. then :
  5237. printf %s "(cached) " >&6
  5238. else case e in #(
  5239. e) cat >conftest.make <<\_ACEOF
  5240. SHELL = /bin/sh
  5241. all:
  5242. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5243. _ACEOF
  5244. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5245. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5246. *@@@%%%=?*=@@@%%%*)
  5247. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5248. *)
  5249. eval ac_cv_prog_make_${ac_make}_set=no;;
  5250. esac
  5251. rm -f conftest.make ;;
  5252. esac
  5253. fi
  5254. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5256. printf "%s\n" "yes" >&6; }
  5257. SET_MAKE=
  5258. else
  5259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. printf "%s\n" "no" >&6; }
  5261. SET_MAKE="MAKE=${MAKE-make}"
  5262. fi
  5263. case `pwd` in
  5264. *\ * | *\ *)
  5265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5266. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5267. esac
  5268. macro_version='2.5.4'
  5269. macro_revision='2.5.4'
  5270. ltmain=$ac_aux_dir/ltmain.sh
  5271. # Backslashify metacharacters that are still active within
  5272. # double-quoted strings.
  5273. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5274. # Same as above, but do not quote variable references.
  5275. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5276. # Sed substitution to delay expansion of an escaped shell variable in a
  5277. # double_quote_subst'ed string.
  5278. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5279. # Sed substitution to delay expansion of an escaped single quote.
  5280. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5281. # Sed substitution to avoid accidental globbing in evaled expressions
  5282. no_glob_subst='s/\*/\\\*/g'
  5283. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5284. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5285. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5287. printf %s "checking how to print strings... " >&6; }
  5288. # Test print first, because it will be a builtin if present.
  5289. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5290. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5291. ECHO='print -r --'
  5292. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5293. ECHO='printf %s\n'
  5294. else
  5295. # Use this function as a fallback that always works.
  5296. func_fallback_echo ()
  5297. {
  5298. eval 'cat <<_LTECHO_EOF
  5299. $1
  5300. _LTECHO_EOF'
  5301. }
  5302. ECHO='func_fallback_echo'
  5303. fi
  5304. # func_echo_all arg...
  5305. # Invoke $ECHO with all args, space-separated.
  5306. func_echo_all ()
  5307. {
  5308. $ECHO ""
  5309. }
  5310. case $ECHO in
  5311. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5312. printf "%s\n" "printf" >&6; } ;;
  5313. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5314. printf "%s\n" "print -r" >&6; } ;;
  5315. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5316. printf "%s\n" "cat" >&6; } ;;
  5317. esac
  5318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5319. printf %s "checking for a sed that does not truncate output... " >&6; }
  5320. if test ${ac_cv_path_SED+y}
  5321. then :
  5322. printf %s "(cached) " >&6
  5323. else case e in #(
  5324. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5325. for ac_i in 1 2 3 4 5 6 7; do
  5326. ac_script="$ac_script$as_nl$ac_script"
  5327. done
  5328. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5329. { ac_script=; unset ac_script;}
  5330. if test -z "$SED"; then
  5331. ac_path_SED_found=false
  5332. # Loop through the user's path and test for each of PROGNAME-LIST
  5333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5334. for as_dir in $PATH
  5335. do
  5336. IFS=$as_save_IFS
  5337. case $as_dir in #(((
  5338. '') as_dir=./ ;;
  5339. */) ;;
  5340. *) as_dir=$as_dir/ ;;
  5341. esac
  5342. for ac_prog in sed gsed
  5343. do
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5346. as_fn_executable_p "$ac_path_SED" || continue
  5347. # Check for GNU ac_path_SED and select it if it is found.
  5348. # Check for GNU $ac_path_SED
  5349. case `"$ac_path_SED" --version 2>&1` in #(
  5350. *GNU*)
  5351. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5352. #(
  5353. *)
  5354. ac_count=0
  5355. printf %s 0123456789 >"conftest.in"
  5356. while :
  5357. do
  5358. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5359. mv "conftest.tmp" "conftest.in"
  5360. cp "conftest.in" "conftest.nl"
  5361. printf "%s\n" '' >> "conftest.nl"
  5362. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5363. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5364. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5365. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5366. # Best one so far, save it but keep looking for a better one
  5367. ac_cv_path_SED="$ac_path_SED"
  5368. ac_path_SED_max=$ac_count
  5369. fi
  5370. # 10*(2^10) chars as input seems more than enough
  5371. test $ac_count -gt 10 && break
  5372. done
  5373. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5374. esac
  5375. $ac_path_SED_found && break 3
  5376. done
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. if test -z "$ac_cv_path_SED"; then
  5381. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5382. fi
  5383. else
  5384. ac_cv_path_SED=$SED
  5385. fi
  5386. ;;
  5387. esac
  5388. fi
  5389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5390. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5391. SED="$ac_cv_path_SED"
  5392. rm -f conftest.sed
  5393. test -z "$SED" && SED=sed
  5394. Xsed="$SED -e 1s/^X//"
  5395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5396. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5397. if test ${ac_cv_path_GREP+y}
  5398. then :
  5399. printf %s "(cached) " >&6
  5400. else case e in #(
  5401. e) if test -z "$GREP"; then
  5402. ac_path_GREP_found=false
  5403. # Loop through the user's path and test for each of PROGNAME-LIST
  5404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5405. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5406. do
  5407. IFS=$as_save_IFS
  5408. case $as_dir in #(((
  5409. '') as_dir=./ ;;
  5410. */) ;;
  5411. *) as_dir=$as_dir/ ;;
  5412. esac
  5413. for ac_prog in grep ggrep
  5414. do
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5417. as_fn_executable_p "$ac_path_GREP" || continue
  5418. # Check for GNU ac_path_GREP and select it if it is found.
  5419. # Check for GNU $ac_path_GREP
  5420. case `"$ac_path_GREP" --version 2>&1` in #(
  5421. *GNU*)
  5422. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5423. #(
  5424. *)
  5425. ac_count=0
  5426. printf %s 0123456789 >"conftest.in"
  5427. while :
  5428. do
  5429. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5430. mv "conftest.tmp" "conftest.in"
  5431. cp "conftest.in" "conftest.nl"
  5432. printf "%s\n" 'GREP' >> "conftest.nl"
  5433. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5434. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5435. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5436. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5437. # Best one so far, save it but keep looking for a better one
  5438. ac_cv_path_GREP="$ac_path_GREP"
  5439. ac_path_GREP_max=$ac_count
  5440. fi
  5441. # 10*(2^10) chars as input seems more than enough
  5442. test $ac_count -gt 10 && break
  5443. done
  5444. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5445. esac
  5446. $ac_path_GREP_found && break 3
  5447. done
  5448. done
  5449. done
  5450. IFS=$as_save_IFS
  5451. if test -z "$ac_cv_path_GREP"; then
  5452. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5453. fi
  5454. else
  5455. ac_cv_path_GREP=$GREP
  5456. fi
  5457. ;;
  5458. esac
  5459. fi
  5460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5461. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5462. GREP="$ac_cv_path_GREP"
  5463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5464. printf %s "checking for egrep... " >&6; }
  5465. if test ${ac_cv_path_EGREP+y}
  5466. then :
  5467. printf %s "(cached) " >&6
  5468. else case e in #(
  5469. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5470. then ac_cv_path_EGREP="$GREP -E"
  5471. else
  5472. if test -z "$EGREP"; then
  5473. ac_path_EGREP_found=false
  5474. # Loop through the user's path and test for each of PROGNAME-LIST
  5475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5477. do
  5478. IFS=$as_save_IFS
  5479. case $as_dir in #(((
  5480. '') as_dir=./ ;;
  5481. */) ;;
  5482. *) as_dir=$as_dir/ ;;
  5483. esac
  5484. for ac_prog in egrep
  5485. do
  5486. for ac_exec_ext in '' $ac_executable_extensions; do
  5487. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5488. as_fn_executable_p "$ac_path_EGREP" || continue
  5489. # Check for GNU ac_path_EGREP and select it if it is found.
  5490. # Check for GNU $ac_path_EGREP
  5491. case `"$ac_path_EGREP" --version 2>&1` in #(
  5492. *GNU*)
  5493. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5494. #(
  5495. *)
  5496. ac_count=0
  5497. printf %s 0123456789 >"conftest.in"
  5498. while :
  5499. do
  5500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5501. mv "conftest.tmp" "conftest.in"
  5502. cp "conftest.in" "conftest.nl"
  5503. printf "%s\n" 'EGREP' >> "conftest.nl"
  5504. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5506. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5507. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5508. # Best one so far, save it but keep looking for a better one
  5509. ac_cv_path_EGREP="$ac_path_EGREP"
  5510. ac_path_EGREP_max=$ac_count
  5511. fi
  5512. # 10*(2^10) chars as input seems more than enough
  5513. test $ac_count -gt 10 && break
  5514. done
  5515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5516. esac
  5517. $ac_path_EGREP_found && break 3
  5518. done
  5519. done
  5520. done
  5521. IFS=$as_save_IFS
  5522. if test -z "$ac_cv_path_EGREP"; then
  5523. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5524. fi
  5525. else
  5526. ac_cv_path_EGREP=$EGREP
  5527. fi
  5528. fi ;;
  5529. esac
  5530. fi
  5531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5532. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5533. EGREP="$ac_cv_path_EGREP"
  5534. EGREP_TRADITIONAL=$EGREP
  5535. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  5536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5537. printf %s "checking for fgrep... " >&6; }
  5538. if test ${ac_cv_path_FGREP+y}
  5539. then :
  5540. printf %s "(cached) " >&6
  5541. else case e in #(
  5542. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5543. then ac_cv_path_FGREP="$GREP -F"
  5544. else
  5545. if test -z "$FGREP"; then
  5546. ac_path_FGREP_found=false
  5547. # Loop through the user's path and test for each of PROGNAME-LIST
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5550. do
  5551. IFS=$as_save_IFS
  5552. case $as_dir in #(((
  5553. '') as_dir=./ ;;
  5554. */) ;;
  5555. *) as_dir=$as_dir/ ;;
  5556. esac
  5557. for ac_prog in fgrep
  5558. do
  5559. for ac_exec_ext in '' $ac_executable_extensions; do
  5560. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5561. as_fn_executable_p "$ac_path_FGREP" || continue
  5562. # Check for GNU ac_path_FGREP and select it if it is found.
  5563. # Check for GNU $ac_path_FGREP
  5564. case `"$ac_path_FGREP" --version 2>&1` in #(
  5565. *GNU*)
  5566. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5567. #(
  5568. *)
  5569. ac_count=0
  5570. printf %s 0123456789 >"conftest.in"
  5571. while :
  5572. do
  5573. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5574. mv "conftest.tmp" "conftest.in"
  5575. cp "conftest.in" "conftest.nl"
  5576. printf "%s\n" 'FGREP' >> "conftest.nl"
  5577. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5578. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5579. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5580. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5581. # Best one so far, save it but keep looking for a better one
  5582. ac_cv_path_FGREP="$ac_path_FGREP"
  5583. ac_path_FGREP_max=$ac_count
  5584. fi
  5585. # 10*(2^10) chars as input seems more than enough
  5586. test $ac_count -gt 10 && break
  5587. done
  5588. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5589. esac
  5590. $ac_path_FGREP_found && break 3
  5591. done
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. if test -z "$ac_cv_path_FGREP"; then
  5596. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5597. fi
  5598. else
  5599. ac_cv_path_FGREP=$FGREP
  5600. fi
  5601. fi ;;
  5602. esac
  5603. fi
  5604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5605. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5606. FGREP="$ac_cv_path_FGREP"
  5607. test -z "$GREP" && GREP=grep
  5608. # Check whether --with-gnu-ld was given.
  5609. if test ${with_gnu_ld+y}
  5610. then :
  5611. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5612. else case e in #(
  5613. e) with_gnu_ld=no ;;
  5614. esac
  5615. fi
  5616. ac_prog=ld
  5617. if test yes = "$GCC"; then
  5618. # Check if gcc -print-prog-name=ld gives a path.
  5619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5620. printf %s "checking for ld used by $CC... " >&6; }
  5621. case $host in
  5622. *-*-mingw* | *-*-windows*)
  5623. # gcc leaves a trailing carriage return, which upsets mingw
  5624. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5625. *)
  5626. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5627. esac
  5628. case $ac_prog in
  5629. # Accept absolute paths.
  5630. [\\/]* | ?:[\\/]*)
  5631. re_direlt='/[^/][^/]*/\.\./'
  5632. # Canonicalize the pathname of ld
  5633. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5634. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5635. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5636. done
  5637. test -z "$LD" && LD=$ac_prog
  5638. ;;
  5639. "")
  5640. # If it fails, then pretend we aren't using GCC.
  5641. ac_prog=ld
  5642. ;;
  5643. *)
  5644. # If it is relative, then search for the first ld in PATH.
  5645. with_gnu_ld=unknown
  5646. ;;
  5647. esac
  5648. elif test yes = "$with_gnu_ld"; then
  5649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5650. printf %s "checking for GNU ld... " >&6; }
  5651. else
  5652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5653. printf %s "checking for non-GNU ld... " >&6; }
  5654. fi
  5655. if test ${lt_cv_path_LD+y}
  5656. then :
  5657. printf %s "(cached) " >&6
  5658. else case e in #(
  5659. e) if test -z "$LD"; then
  5660. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5661. for ac_dir in $PATH; do
  5662. IFS=$lt_save_ifs
  5663. test -z "$ac_dir" && ac_dir=.
  5664. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5665. lt_cv_path_LD=$ac_dir/$ac_prog
  5666. # Check to see if the program is GNU ld. I'd rather use --version,
  5667. # but apparently some variants of GNU ld only accept -v.
  5668. # Break only if it was the GNU/non-GNU ld that we prefer.
  5669. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5670. *GNU* | *'with BFD'*)
  5671. test no != "$with_gnu_ld" && break
  5672. ;;
  5673. *)
  5674. test yes != "$with_gnu_ld" && break
  5675. ;;
  5676. esac
  5677. fi
  5678. done
  5679. IFS=$lt_save_ifs
  5680. else
  5681. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5682. fi ;;
  5683. esac
  5684. fi
  5685. LD=$lt_cv_path_LD
  5686. if test -n "$LD"; then
  5687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5688. printf "%s\n" "$LD" >&6; }
  5689. else
  5690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. printf "%s\n" "no" >&6; }
  5692. fi
  5693. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5695. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5696. if test ${lt_cv_prog_gnu_ld+y}
  5697. then :
  5698. printf %s "(cached) " >&6
  5699. else case e in #(
  5700. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5701. case `$LD -v 2>&1 </dev/null` in
  5702. *GNU* | *'with BFD'*)
  5703. lt_cv_prog_gnu_ld=yes
  5704. ;;
  5705. *)
  5706. lt_cv_prog_gnu_ld=no
  5707. ;;
  5708. esac ;;
  5709. esac
  5710. fi
  5711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5712. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5713. with_gnu_ld=$lt_cv_prog_gnu_ld
  5714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5715. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5716. if test ${lt_cv_path_NM+y}
  5717. then :
  5718. printf %s "(cached) " >&6
  5719. else case e in #(
  5720. e) if test -n "$NM"; then
  5721. # Let the user override the test.
  5722. lt_cv_path_NM=$NM
  5723. else
  5724. lt_nm_to_check=${ac_tool_prefix}nm
  5725. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5726. lt_nm_to_check="$lt_nm_to_check nm"
  5727. fi
  5728. for lt_tmp_nm in $lt_nm_to_check; do
  5729. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5730. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5731. IFS=$lt_save_ifs
  5732. test -z "$ac_dir" && ac_dir=.
  5733. tmp_nm=$ac_dir/$lt_tmp_nm
  5734. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5735. # Check to see if the nm accepts a BSD-compat flag.
  5736. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5737. # nm: unknown option "B" ignored
  5738. # Tru64's nm complains that /dev/null is an invalid object file
  5739. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5740. case $build_os in
  5741. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  5742. *) lt_bad_file=/dev/null ;;
  5743. esac
  5744. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5745. *$lt_bad_file* | *'Invalid file or object type'*)
  5746. lt_cv_path_NM="$tmp_nm -B"
  5747. break 2
  5748. ;;
  5749. *)
  5750. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5751. */dev/null*)
  5752. lt_cv_path_NM="$tmp_nm -p"
  5753. break 2
  5754. ;;
  5755. *)
  5756. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5757. continue # so that we can try to find one that supports BSD flags
  5758. ;;
  5759. esac
  5760. ;;
  5761. esac
  5762. fi
  5763. done
  5764. IFS=$lt_save_ifs
  5765. done
  5766. : ${lt_cv_path_NM=no}
  5767. fi ;;
  5768. esac
  5769. fi
  5770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5771. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5772. if test no != "$lt_cv_path_NM"; then
  5773. NM=$lt_cv_path_NM
  5774. else
  5775. # Didn't find any BSD compatible name lister, look for dumpbin.
  5776. if test -n "$DUMPBIN"; then :
  5777. # Let the user override the test.
  5778. else
  5779. if test -n "$ac_tool_prefix"; then
  5780. for ac_prog in dumpbin "link -dump"
  5781. do
  5782. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5783. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. printf %s "checking for $ac_word... " >&6; }
  5786. if test ${ac_cv_prog_DUMPBIN+y}
  5787. then :
  5788. printf %s "(cached) " >&6
  5789. else case e in #(
  5790. e) if test -n "$DUMPBIN"; then
  5791. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5792. else
  5793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5794. for as_dir in $PATH
  5795. do
  5796. IFS=$as_save_IFS
  5797. case $as_dir in #(((
  5798. '') as_dir=./ ;;
  5799. */) ;;
  5800. *) as_dir=$as_dir/ ;;
  5801. esac
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5804. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi ;;
  5812. esac
  5813. fi
  5814. DUMPBIN=$ac_cv_prog_DUMPBIN
  5815. if test -n "$DUMPBIN"; then
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5817. printf "%s\n" "$DUMPBIN" >&6; }
  5818. else
  5819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. printf "%s\n" "no" >&6; }
  5821. fi
  5822. test -n "$DUMPBIN" && break
  5823. done
  5824. fi
  5825. if test -z "$DUMPBIN"; then
  5826. ac_ct_DUMPBIN=$DUMPBIN
  5827. for ac_prog in dumpbin "link -dump"
  5828. do
  5829. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5830. set dummy $ac_prog; ac_word=$2
  5831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. printf %s "checking for $ac_word... " >&6; }
  5833. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5834. then :
  5835. printf %s "(cached) " >&6
  5836. else case e in #(
  5837. e) if test -n "$ac_ct_DUMPBIN"; then
  5838. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5839. else
  5840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5841. for as_dir in $PATH
  5842. do
  5843. IFS=$as_save_IFS
  5844. case $as_dir in #(((
  5845. '') as_dir=./ ;;
  5846. */) ;;
  5847. *) as_dir=$as_dir/ ;;
  5848. esac
  5849. for ac_exec_ext in '' $ac_executable_extensions; do
  5850. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5851. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5853. break 2
  5854. fi
  5855. done
  5856. done
  5857. IFS=$as_save_IFS
  5858. fi ;;
  5859. esac
  5860. fi
  5861. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5862. if test -n "$ac_ct_DUMPBIN"; then
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5864. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5865. else
  5866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. printf "%s\n" "no" >&6; }
  5868. fi
  5869. test -n "$ac_ct_DUMPBIN" && break
  5870. done
  5871. if test "x$ac_ct_DUMPBIN" = x; then
  5872. DUMPBIN=":"
  5873. else
  5874. case $cross_compiling:$ac_tool_warned in
  5875. yes:)
  5876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5877. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5878. ac_tool_warned=yes ;;
  5879. esac
  5880. DUMPBIN=$ac_ct_DUMPBIN
  5881. fi
  5882. fi
  5883. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5884. *COFF*)
  5885. DUMPBIN="$DUMPBIN -symbols -headers"
  5886. ;;
  5887. *)
  5888. DUMPBIN=:
  5889. ;;
  5890. esac
  5891. fi
  5892. if test : != "$DUMPBIN"; then
  5893. NM=$DUMPBIN
  5894. fi
  5895. fi
  5896. test -z "$NM" && NM=nm
  5897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5898. printf %s "checking the name lister ($NM) interface... " >&6; }
  5899. if test ${lt_cv_nm_interface+y}
  5900. then :
  5901. printf %s "(cached) " >&6
  5902. else case e in #(
  5903. e) lt_cv_nm_interface="BSD nm"
  5904. echo "int some_variable = 0;" > conftest.$ac_ext
  5905. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5906. (eval "$ac_compile" 2>conftest.err)
  5907. cat conftest.err >&5
  5908. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5909. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5910. cat conftest.err >&5
  5911. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5912. cat conftest.out >&5
  5913. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5914. lt_cv_nm_interface="MS dumpbin"
  5915. fi
  5916. rm -f conftest* ;;
  5917. esac
  5918. fi
  5919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5920. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5922. printf %s "checking whether ln -s works... " >&6; }
  5923. LN_S=$as_ln_s
  5924. if test "$LN_S" = "ln -s"; then
  5925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5926. printf "%s\n" "yes" >&6; }
  5927. else
  5928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5929. printf "%s\n" "no, using $LN_S" >&6; }
  5930. fi
  5931. # find the maximum length of command line arguments
  5932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5933. printf %s "checking the maximum length of command line arguments... " >&6; }
  5934. if test ${lt_cv_sys_max_cmd_len+y}
  5935. then :
  5936. printf %s "(cached) " >&6
  5937. else case e in #(
  5938. e) i=0
  5939. teststring=ABCD
  5940. case $build_os in
  5941. msdosdjgpp*)
  5942. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5943. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5944. # during glob expansion). Even if it were fixed, the result of this
  5945. # check would be larger than it should be.
  5946. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5947. ;;
  5948. gnu* | ironclad*)
  5949. # Under GNU Hurd and Ironclad, this test is not required because there
  5950. # is no limit to the length of command line arguments.
  5951. # Libtool will interpret -1 as no limit whatsoever
  5952. lt_cv_sys_max_cmd_len=-1;
  5953. ;;
  5954. cygwin* | mingw* | windows* | cegcc*)
  5955. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5956. # about 5 minutes as the teststring grows exponentially.
  5957. # Worse, since 9x/ME are not pre-emptively multitasking,
  5958. # you end up with a "frozen" computer, even though with patience
  5959. # the test eventually succeeds (with a max line length of 256k).
  5960. # Instead, let's just punt: use the minimum linelength reported by
  5961. # all of the supported platforms: 8192 (on NT/2K/XP).
  5962. lt_cv_sys_max_cmd_len=8192;
  5963. ;;
  5964. mint*)
  5965. # On MiNT this can take a long time and run out of memory.
  5966. lt_cv_sys_max_cmd_len=8192;
  5967. ;;
  5968. amigaos*)
  5969. # On AmigaOS with pdksh, this test takes hours, literally.
  5970. # So we just punt and use a minimum line length of 8192.
  5971. lt_cv_sys_max_cmd_len=8192;
  5972. ;;
  5973. darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5974. # This has been around since 386BSD, at least. Likely further.
  5975. if test -x /sbin/sysctl; then
  5976. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5977. elif test -x /usr/sbin/sysctl; then
  5978. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5979. else
  5980. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5981. fi
  5982. # And add a safety zone
  5983. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5984. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5985. ;;
  5986. interix*)
  5987. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5988. lt_cv_sys_max_cmd_len=196608
  5989. ;;
  5990. os2*)
  5991. # The test takes a long time on OS/2.
  5992. lt_cv_sys_max_cmd_len=8192
  5993. ;;
  5994. osf*)
  5995. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5996. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5997. # nice to cause kernel panics so lets avoid the loop below.
  5998. # First set a reasonable default.
  5999. lt_cv_sys_max_cmd_len=16384
  6000. #
  6001. if test -x /sbin/sysconfig; then
  6002. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6003. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6004. esac
  6005. fi
  6006. ;;
  6007. sco3.2v5*)
  6008. lt_cv_sys_max_cmd_len=102400
  6009. ;;
  6010. sysv5* | sco5v6* | sysv4.2uw2*)
  6011. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6012. if test -n "$kargmax"; then
  6013. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  6014. else
  6015. lt_cv_sys_max_cmd_len=32768
  6016. fi
  6017. ;;
  6018. *)
  6019. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6020. if test -n "$lt_cv_sys_max_cmd_len" && \
  6021. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6022. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6023. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6024. else
  6025. # Make teststring a little bigger before we do anything with it.
  6026. # a 1K string should be a reasonable start.
  6027. for i in 1 2 3 4 5 6 7 8; do
  6028. teststring=$teststring$teststring
  6029. done
  6030. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6031. # If test is not a shell built-in, we'll probably end up computing a
  6032. # maximum length that is only half of the actual maximum length, but
  6033. # we can't tell.
  6034. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6035. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6036. test 17 != "$i" # 1/2 MB should be enough
  6037. do
  6038. i=`expr $i + 1`
  6039. teststring=$teststring$teststring
  6040. done
  6041. # Only check the string length outside the loop.
  6042. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6043. teststring=
  6044. # Add a significant safety factor because C++ compilers can tack on
  6045. # massive amounts of additional arguments before passing them to the
  6046. # linker. It appears as though 1/2 is a usable value.
  6047. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6048. fi
  6049. ;;
  6050. esac
  6051. ;;
  6052. esac
  6053. fi
  6054. if test -n "$lt_cv_sys_max_cmd_len"; then
  6055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6056. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  6057. else
  6058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6059. printf "%s\n" "none" >&6; }
  6060. fi
  6061. max_cmd_len=$lt_cv_sys_max_cmd_len
  6062. : ${CP="cp -f"}
  6063. : ${MV="mv -f"}
  6064. : ${RM="rm -f"}
  6065. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6066. lt_unset=unset
  6067. else
  6068. lt_unset=false
  6069. fi
  6070. # test EBCDIC or ASCII
  6071. case `echo X|tr X '\101'` in
  6072. A) # ASCII based system
  6073. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6074. lt_SP2NL='tr \040 \012'
  6075. lt_NL2SP='tr \015\012 \040\040'
  6076. ;;
  6077. *) # EBCDIC based system
  6078. lt_SP2NL='tr \100 \n'
  6079. lt_NL2SP='tr \r\n \100\100'
  6080. ;;
  6081. esac
  6082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6083. printf %s "checking how to convert $build file names to $host format... " >&6; }
  6084. if test ${lt_cv_to_host_file_cmd+y}
  6085. then :
  6086. printf %s "(cached) " >&6
  6087. else case e in #(
  6088. e) case $host in
  6089. *-*-mingw* )
  6090. case $build in
  6091. *-*-mingw* | *-*-windows* ) # actually msys
  6092. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6093. ;;
  6094. *-*-cygwin* )
  6095. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6096. ;;
  6097. * ) # otherwise, assume *nix
  6098. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6099. ;;
  6100. esac
  6101. ;;
  6102. *-*-cygwin* )
  6103. case $build in
  6104. *-*-mingw* | *-*-windows* ) # actually msys
  6105. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6106. ;;
  6107. *-*-cygwin* )
  6108. lt_cv_to_host_file_cmd=func_convert_file_noop
  6109. ;;
  6110. * ) # otherwise, assume *nix
  6111. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6112. ;;
  6113. esac
  6114. ;;
  6115. * ) # unhandled hosts (and "normal" native builds)
  6116. lt_cv_to_host_file_cmd=func_convert_file_noop
  6117. ;;
  6118. esac
  6119. ;;
  6120. esac
  6121. fi
  6122. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6124. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  6125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6126. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  6127. if test ${lt_cv_to_tool_file_cmd+y}
  6128. then :
  6129. printf %s "(cached) " >&6
  6130. else case e in #(
  6131. e) #assume ordinary cross tools, or native build.
  6132. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6133. case $host in
  6134. *-*-mingw* | *-*-windows* )
  6135. case $build in
  6136. *-*-mingw* | *-*-windows* ) # actually msys
  6137. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6138. ;;
  6139. esac
  6140. ;;
  6141. esac
  6142. ;;
  6143. esac
  6144. fi
  6145. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6147. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  6148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6149. printf %s "checking for $LD option to reload object files... " >&6; }
  6150. if test ${lt_cv_ld_reload_flag+y}
  6151. then :
  6152. printf %s "(cached) " >&6
  6153. else case e in #(
  6154. e) lt_cv_ld_reload_flag='-r' ;;
  6155. esac
  6156. fi
  6157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6158. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  6159. reload_flag=$lt_cv_ld_reload_flag
  6160. case $reload_flag in
  6161. "" | " "*) ;;
  6162. *) reload_flag=" $reload_flag" ;;
  6163. esac
  6164. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6165. case $host_os in
  6166. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6167. if test yes != "$GCC"; then
  6168. reload_cmds=false
  6169. fi
  6170. ;;
  6171. darwin*)
  6172. if test yes = "$GCC"; then
  6173. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6174. else
  6175. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6176. fi
  6177. ;;
  6178. esac
  6179. # Extract the first word of "file", so it can be a program name with args.
  6180. set dummy file; ac_word=$2
  6181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6182. printf %s "checking for $ac_word... " >&6; }
  6183. if test ${ac_cv_prog_FILECMD+y}
  6184. then :
  6185. printf %s "(cached) " >&6
  6186. else case e in #(
  6187. e) if test -n "$FILECMD"; then
  6188. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  6189. else
  6190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6191. for as_dir in $PATH
  6192. do
  6193. IFS=$as_save_IFS
  6194. case $as_dir in #(((
  6195. '') as_dir=./ ;;
  6196. */) ;;
  6197. *) as_dir=$as_dir/ ;;
  6198. esac
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6201. ac_cv_prog_FILECMD="file"
  6202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
  6209. fi ;;
  6210. esac
  6211. fi
  6212. FILECMD=$ac_cv_prog_FILECMD
  6213. if test -n "$FILECMD"; then
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  6215. printf "%s\n" "$FILECMD" >&6; }
  6216. else
  6217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218. printf "%s\n" "no" >&6; }
  6219. fi
  6220. if test -n "$ac_tool_prefix"; then
  6221. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6222. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6224. printf %s "checking for $ac_word... " >&6; }
  6225. if test ${ac_cv_prog_OBJDUMP+y}
  6226. then :
  6227. printf %s "(cached) " >&6
  6228. else case e in #(
  6229. e) if test -n "$OBJDUMP"; then
  6230. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6231. else
  6232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6233. for as_dir in $PATH
  6234. do
  6235. IFS=$as_save_IFS
  6236. case $as_dir in #(((
  6237. '') as_dir=./ ;;
  6238. */) ;;
  6239. *) as_dir=$as_dir/ ;;
  6240. esac
  6241. for ac_exec_ext in '' $ac_executable_extensions; do
  6242. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6243. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6245. break 2
  6246. fi
  6247. done
  6248. done
  6249. IFS=$as_save_IFS
  6250. fi ;;
  6251. esac
  6252. fi
  6253. OBJDUMP=$ac_cv_prog_OBJDUMP
  6254. if test -n "$OBJDUMP"; then
  6255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6256. printf "%s\n" "$OBJDUMP" >&6; }
  6257. else
  6258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6259. printf "%s\n" "no" >&6; }
  6260. fi
  6261. fi
  6262. if test -z "$ac_cv_prog_OBJDUMP"; then
  6263. ac_ct_OBJDUMP=$OBJDUMP
  6264. # Extract the first word of "objdump", so it can be a program name with args.
  6265. set dummy objdump; ac_word=$2
  6266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. printf %s "checking for $ac_word... " >&6; }
  6268. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6269. then :
  6270. printf %s "(cached) " >&6
  6271. else case e in #(
  6272. e) if test -n "$ac_ct_OBJDUMP"; then
  6273. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6274. else
  6275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6276. for as_dir in $PATH
  6277. do
  6278. IFS=$as_save_IFS
  6279. case $as_dir in #(((
  6280. '') as_dir=./ ;;
  6281. */) ;;
  6282. *) as_dir=$as_dir/ ;;
  6283. esac
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6286. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi ;;
  6294. esac
  6295. fi
  6296. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6297. if test -n "$ac_ct_OBJDUMP"; then
  6298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6299. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6300. else
  6301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6302. printf "%s\n" "no" >&6; }
  6303. fi
  6304. if test "x$ac_ct_OBJDUMP" = x; then
  6305. OBJDUMP="false"
  6306. else
  6307. case $cross_compiling:$ac_tool_warned in
  6308. yes:)
  6309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6310. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6311. ac_tool_warned=yes ;;
  6312. esac
  6313. OBJDUMP=$ac_ct_OBJDUMP
  6314. fi
  6315. else
  6316. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6317. fi
  6318. test -z "$OBJDUMP" && OBJDUMP=objdump
  6319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6320. printf %s "checking how to recognize dependent libraries... " >&6; }
  6321. if test ${lt_cv_deplibs_check_method+y}
  6322. then :
  6323. printf %s "(cached) " >&6
  6324. else case e in #(
  6325. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  6326. lt_cv_file_magic_test_file=
  6327. lt_cv_deplibs_check_method='unknown'
  6328. # Need to set the preceding variable on all platforms that support
  6329. # interlibrary dependencies.
  6330. # 'none' -- dependencies not supported.
  6331. # 'unknown' -- same as none, but documents that we really don't know.
  6332. # 'pass_all' -- all dependencies passed with no checks.
  6333. # 'file_magic [[regex]]' -- check by looking for files in library path
  6334. # that responds to the $file_magic_cmd with a given extended regex.
  6335. # If you have 'file' or equivalent on your system and you're not sure
  6336. # whether 'pass_all' will *always* work, you probably want this one.
  6337. case $host_os in
  6338. aix[4-9]*)
  6339. lt_cv_deplibs_check_method=pass_all
  6340. ;;
  6341. beos*)
  6342. lt_cv_deplibs_check_method=pass_all
  6343. ;;
  6344. bsdi[45]*)
  6345. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6346. lt_cv_file_magic_cmd='$FILECMD -L'
  6347. lt_cv_file_magic_test_file=/shlib/libc.so
  6348. ;;
  6349. cygwin*)
  6350. # func_win32_libid is a shell function defined in ltmain.sh
  6351. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6352. lt_cv_file_magic_cmd='func_win32_libid'
  6353. ;;
  6354. mingw* | windows* | pw32*)
  6355. # Base MSYS/MinGW do not provide the 'file' command needed by
  6356. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6357. # unless we find 'file', for example because we are cross-compiling.
  6358. if ( file / ) >/dev/null 2>&1; then
  6359. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6360. lt_cv_file_magic_cmd='func_win32_libid'
  6361. else
  6362. # Keep this pattern in sync with the one in func_win32_libid.
  6363. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  6364. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6365. fi
  6366. ;;
  6367. cegcc*)
  6368. # use the weaker test based on 'objdump'. See mingw*.
  6369. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6370. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6371. ;;
  6372. darwin* | rhapsody*)
  6373. lt_cv_deplibs_check_method=pass_all
  6374. ;;
  6375. freebsd* | dragonfly* | midnightbsd*)
  6376. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6377. case $host_cpu in
  6378. i*86 )
  6379. # Not sure whether the presence of OpenBSD here was a mistake.
  6380. # Let's accept both of them until this is cleared up.
  6381. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6382. lt_cv_file_magic_cmd=$FILECMD
  6383. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6384. ;;
  6385. esac
  6386. else
  6387. lt_cv_deplibs_check_method=pass_all
  6388. fi
  6389. ;;
  6390. haiku*)
  6391. lt_cv_deplibs_check_method=pass_all
  6392. ;;
  6393. hpux10.20* | hpux11*)
  6394. lt_cv_file_magic_cmd=$FILECMD
  6395. case $host_cpu in
  6396. ia64*)
  6397. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6398. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6399. ;;
  6400. hppa*64*)
  6401. 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]'
  6402. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6403. ;;
  6404. *)
  6405. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6406. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6407. ;;
  6408. esac
  6409. ;;
  6410. interix[3-9]*)
  6411. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6412. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6413. ;;
  6414. irix5* | irix6* | nonstopux*)
  6415. case $LD in
  6416. *-32|*"-32 ") libmagic=32-bit;;
  6417. *-n32|*"-n32 ") libmagic=N32;;
  6418. *-64|*"-64 ") libmagic=64-bit;;
  6419. *) libmagic=never-match;;
  6420. esac
  6421. lt_cv_deplibs_check_method=pass_all
  6422. ;;
  6423. # This must be glibc/ELF.
  6424. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6425. lt_cv_deplibs_check_method=pass_all
  6426. ;;
  6427. *-mlibc)
  6428. lt_cv_deplibs_check_method=pass_all
  6429. ;;
  6430. netbsd* | netbsdelf*-gnu)
  6431. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6432. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6433. else
  6434. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6435. fi
  6436. ;;
  6437. newos6*)
  6438. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6439. lt_cv_file_magic_cmd=$FILECMD
  6440. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6441. ;;
  6442. *nto* | *qnx*)
  6443. lt_cv_deplibs_check_method=pass_all
  6444. ;;
  6445. openbsd*)
  6446. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6447. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6448. else
  6449. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6450. fi
  6451. ;;
  6452. osf3* | osf4* | osf5*)
  6453. lt_cv_deplibs_check_method=pass_all
  6454. ;;
  6455. rdos*)
  6456. lt_cv_deplibs_check_method=pass_all
  6457. ;;
  6458. serenity*)
  6459. lt_cv_deplibs_check_method=pass_all
  6460. ;;
  6461. solaris*)
  6462. lt_cv_deplibs_check_method=pass_all
  6463. ;;
  6464. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6465. lt_cv_deplibs_check_method=pass_all
  6466. ;;
  6467. sysv4 | sysv4.3*)
  6468. case $host_vendor in
  6469. motorola)
  6470. 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]'
  6471. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6472. ;;
  6473. ncr)
  6474. lt_cv_deplibs_check_method=pass_all
  6475. ;;
  6476. sequent)
  6477. lt_cv_file_magic_cmd='/bin/file'
  6478. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6479. ;;
  6480. sni)
  6481. lt_cv_file_magic_cmd='/bin/file'
  6482. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6483. lt_cv_file_magic_test_file=/lib/libc.so
  6484. ;;
  6485. siemens)
  6486. lt_cv_deplibs_check_method=pass_all
  6487. ;;
  6488. pc)
  6489. lt_cv_deplibs_check_method=pass_all
  6490. ;;
  6491. esac
  6492. ;;
  6493. tpf*)
  6494. lt_cv_deplibs_check_method=pass_all
  6495. ;;
  6496. os2*)
  6497. lt_cv_deplibs_check_method=pass_all
  6498. ;;
  6499. esac
  6500. ;;
  6501. esac
  6502. fi
  6503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6504. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6505. file_magic_glob=
  6506. want_nocaseglob=no
  6507. if test "$build" = "$host"; then
  6508. case $host_os in
  6509. mingw* | windows* | pw32*)
  6510. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6511. want_nocaseglob=yes
  6512. else
  6513. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6514. fi
  6515. ;;
  6516. esac
  6517. fi
  6518. file_magic_cmd=$lt_cv_file_magic_cmd
  6519. deplibs_check_method=$lt_cv_deplibs_check_method
  6520. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6521. if test -n "$ac_tool_prefix"; then
  6522. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6523. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. printf %s "checking for $ac_word... " >&6; }
  6526. if test ${ac_cv_prog_DLLTOOL+y}
  6527. then :
  6528. printf %s "(cached) " >&6
  6529. else case e in #(
  6530. e) if test -n "$DLLTOOL"; then
  6531. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6532. else
  6533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6534. for as_dir in $PATH
  6535. do
  6536. IFS=$as_save_IFS
  6537. case $as_dir in #(((
  6538. '') as_dir=./ ;;
  6539. */) ;;
  6540. *) as_dir=$as_dir/ ;;
  6541. esac
  6542. for ac_exec_ext in '' $ac_executable_extensions; do
  6543. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6544. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6546. break 2
  6547. fi
  6548. done
  6549. done
  6550. IFS=$as_save_IFS
  6551. fi ;;
  6552. esac
  6553. fi
  6554. DLLTOOL=$ac_cv_prog_DLLTOOL
  6555. if test -n "$DLLTOOL"; then
  6556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6557. printf "%s\n" "$DLLTOOL" >&6; }
  6558. else
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6560. printf "%s\n" "no" >&6; }
  6561. fi
  6562. fi
  6563. if test -z "$ac_cv_prog_DLLTOOL"; then
  6564. ac_ct_DLLTOOL=$DLLTOOL
  6565. # Extract the first word of "dlltool", so it can be a program name with args.
  6566. set dummy dlltool; ac_word=$2
  6567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6568. printf %s "checking for $ac_word... " >&6; }
  6569. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6570. then :
  6571. printf %s "(cached) " >&6
  6572. else case e in #(
  6573. e) if test -n "$ac_ct_DLLTOOL"; then
  6574. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6575. else
  6576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6577. for as_dir in $PATH
  6578. do
  6579. IFS=$as_save_IFS
  6580. case $as_dir in #(((
  6581. '') as_dir=./ ;;
  6582. */) ;;
  6583. *) as_dir=$as_dir/ ;;
  6584. esac
  6585. for ac_exec_ext in '' $ac_executable_extensions; do
  6586. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6587. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6589. break 2
  6590. fi
  6591. done
  6592. done
  6593. IFS=$as_save_IFS
  6594. fi ;;
  6595. esac
  6596. fi
  6597. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6598. if test -n "$ac_ct_DLLTOOL"; then
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6600. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6601. else
  6602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6603. printf "%s\n" "no" >&6; }
  6604. fi
  6605. if test "x$ac_ct_DLLTOOL" = x; then
  6606. DLLTOOL="false"
  6607. else
  6608. case $cross_compiling:$ac_tool_warned in
  6609. yes:)
  6610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6611. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6612. ac_tool_warned=yes ;;
  6613. esac
  6614. DLLTOOL=$ac_ct_DLLTOOL
  6615. fi
  6616. else
  6617. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6618. fi
  6619. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6621. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6622. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6623. then :
  6624. printf %s "(cached) " >&6
  6625. else case e in #(
  6626. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  6627. case $host_os in
  6628. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6629. # two different shell functions defined in ltmain.sh;
  6630. # decide which one to use based on capabilities of $DLLTOOL
  6631. case `$DLLTOOL --help 2>&1` in
  6632. *--identify-strict*)
  6633. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6634. ;;
  6635. *)
  6636. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6637. ;;
  6638. esac
  6639. ;;
  6640. *)
  6641. # fallback: assume linklib IS sharedlib
  6642. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6643. ;;
  6644. esac
  6645. ;;
  6646. esac
  6647. fi
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6649. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6650. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6651. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6652. if test -n "$ac_tool_prefix"; then
  6653. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6654. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6656. printf %s "checking for $ac_word... " >&6; }
  6657. if test ${ac_cv_prog_RANLIB+y}
  6658. then :
  6659. printf %s "(cached) " >&6
  6660. else case e in #(
  6661. e) if test -n "$RANLIB"; then
  6662. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6663. else
  6664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6665. for as_dir in $PATH
  6666. do
  6667. IFS=$as_save_IFS
  6668. case $as_dir in #(((
  6669. '') as_dir=./ ;;
  6670. */) ;;
  6671. *) as_dir=$as_dir/ ;;
  6672. esac
  6673. for ac_exec_ext in '' $ac_executable_extensions; do
  6674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6675. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6677. break 2
  6678. fi
  6679. done
  6680. done
  6681. IFS=$as_save_IFS
  6682. fi ;;
  6683. esac
  6684. fi
  6685. RANLIB=$ac_cv_prog_RANLIB
  6686. if test -n "$RANLIB"; then
  6687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6688. printf "%s\n" "$RANLIB" >&6; }
  6689. else
  6690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6691. printf "%s\n" "no" >&6; }
  6692. fi
  6693. fi
  6694. if test -z "$ac_cv_prog_RANLIB"; then
  6695. ac_ct_RANLIB=$RANLIB
  6696. # Extract the first word of "ranlib", so it can be a program name with args.
  6697. set dummy ranlib; ac_word=$2
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6699. printf %s "checking for $ac_word... " >&6; }
  6700. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6701. then :
  6702. printf %s "(cached) " >&6
  6703. else case e in #(
  6704. e) if test -n "$ac_ct_RANLIB"; then
  6705. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. case $as_dir in #(((
  6712. '') as_dir=./ ;;
  6713. */) ;;
  6714. *) as_dir=$as_dir/ ;;
  6715. esac
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6718. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6719. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi ;;
  6726. esac
  6727. fi
  6728. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6729. if test -n "$ac_ct_RANLIB"; then
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6731. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6732. else
  6733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. printf "%s\n" "no" >&6; }
  6735. fi
  6736. if test "x$ac_ct_RANLIB" = x; then
  6737. RANLIB=":"
  6738. else
  6739. case $cross_compiling:$ac_tool_warned in
  6740. yes:)
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6742. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6743. ac_tool_warned=yes ;;
  6744. esac
  6745. RANLIB=$ac_ct_RANLIB
  6746. fi
  6747. else
  6748. RANLIB="$ac_cv_prog_RANLIB"
  6749. fi
  6750. if test -n "$ac_tool_prefix"; then
  6751. for ac_prog in ar
  6752. do
  6753. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6754. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6756. printf %s "checking for $ac_word... " >&6; }
  6757. if test ${ac_cv_prog_AR+y}
  6758. then :
  6759. printf %s "(cached) " >&6
  6760. else case e in #(
  6761. e) if test -n "$AR"; then
  6762. ac_cv_prog_AR="$AR" # Let the user override the test.
  6763. else
  6764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6765. for as_dir in $PATH
  6766. do
  6767. IFS=$as_save_IFS
  6768. case $as_dir in #(((
  6769. '') as_dir=./ ;;
  6770. */) ;;
  6771. *) as_dir=$as_dir/ ;;
  6772. esac
  6773. for ac_exec_ext in '' $ac_executable_extensions; do
  6774. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6775. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6777. break 2
  6778. fi
  6779. done
  6780. done
  6781. IFS=$as_save_IFS
  6782. fi ;;
  6783. esac
  6784. fi
  6785. AR=$ac_cv_prog_AR
  6786. if test -n "$AR"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6788. printf "%s\n" "$AR" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. test -n "$AR" && break
  6794. done
  6795. fi
  6796. if test -z "$AR"; then
  6797. ac_ct_AR=$AR
  6798. for ac_prog in ar
  6799. do
  6800. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6801. set dummy $ac_prog; ac_word=$2
  6802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6803. printf %s "checking for $ac_word... " >&6; }
  6804. if test ${ac_cv_prog_ac_ct_AR+y}
  6805. then :
  6806. printf %s "(cached) " >&6
  6807. else case e in #(
  6808. e) if test -n "$ac_ct_AR"; then
  6809. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6810. else
  6811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6812. for as_dir in $PATH
  6813. do
  6814. IFS=$as_save_IFS
  6815. case $as_dir in #(((
  6816. '') as_dir=./ ;;
  6817. */) ;;
  6818. *) as_dir=$as_dir/ ;;
  6819. esac
  6820. for ac_exec_ext in '' $ac_executable_extensions; do
  6821. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6822. ac_cv_prog_ac_ct_AR="$ac_prog"
  6823. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6824. break 2
  6825. fi
  6826. done
  6827. done
  6828. IFS=$as_save_IFS
  6829. fi ;;
  6830. esac
  6831. fi
  6832. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6833. if test -n "$ac_ct_AR"; then
  6834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6835. printf "%s\n" "$ac_ct_AR" >&6; }
  6836. else
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6838. printf "%s\n" "no" >&6; }
  6839. fi
  6840. test -n "$ac_ct_AR" && break
  6841. done
  6842. if test "x$ac_ct_AR" = x; then
  6843. AR="false"
  6844. else
  6845. case $cross_compiling:$ac_tool_warned in
  6846. yes:)
  6847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6848. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6849. ac_tool_warned=yes ;;
  6850. esac
  6851. AR=$ac_ct_AR
  6852. fi
  6853. fi
  6854. : ${AR=ar}
  6855. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6856. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6857. # higher priority because that's what people were doing historically (setting
  6858. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6859. # variable obsoleted/removed.
  6860. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6861. lt_ar_flags=$AR_FLAGS
  6862. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6863. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6865. printf %s "checking for archiver @FILE support... " >&6; }
  6866. if test ${lt_cv_ar_at_file+y}
  6867. then :
  6868. printf %s "(cached) " >&6
  6869. else case e in #(
  6870. e) lt_cv_ar_at_file=no
  6871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6872. /* end confdefs.h. */
  6873. int
  6874. main (void)
  6875. {
  6876. ;
  6877. return 0;
  6878. }
  6879. _ACEOF
  6880. if ac_fn_c_try_compile "$LINENO"
  6881. then :
  6882. echo conftest.$ac_objext > conftest.lst
  6883. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6884. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6885. (eval $lt_ar_try) 2>&5
  6886. ac_status=$?
  6887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6888. test $ac_status = 0; }
  6889. if test 0 -eq "$ac_status"; then
  6890. # Ensure the archiver fails upon bogus file names.
  6891. rm -f conftest.$ac_objext libconftest.a
  6892. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6893. (eval $lt_ar_try) 2>&5
  6894. ac_status=$?
  6895. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6896. test $ac_status = 0; }
  6897. if test 0 -ne "$ac_status"; then
  6898. lt_cv_ar_at_file=@
  6899. fi
  6900. fi
  6901. rm -f conftest.* libconftest.a
  6902. fi
  6903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6904. ;;
  6905. esac
  6906. fi
  6907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6908. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6909. if test no = "$lt_cv_ar_at_file"; then
  6910. archiver_list_spec=
  6911. else
  6912. archiver_list_spec=$lt_cv_ar_at_file
  6913. fi
  6914. if test -n "$ac_tool_prefix"; then
  6915. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6916. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6918. printf %s "checking for $ac_word... " >&6; }
  6919. if test ${ac_cv_prog_STRIP+y}
  6920. then :
  6921. printf %s "(cached) " >&6
  6922. else case e in #(
  6923. e) if test -n "$STRIP"; then
  6924. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6925. else
  6926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6927. for as_dir in $PATH
  6928. do
  6929. IFS=$as_save_IFS
  6930. case $as_dir in #(((
  6931. '') as_dir=./ ;;
  6932. */) ;;
  6933. *) as_dir=$as_dir/ ;;
  6934. esac
  6935. for ac_exec_ext in '' $ac_executable_extensions; do
  6936. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6937. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6938. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6939. break 2
  6940. fi
  6941. done
  6942. done
  6943. IFS=$as_save_IFS
  6944. fi ;;
  6945. esac
  6946. fi
  6947. STRIP=$ac_cv_prog_STRIP
  6948. if test -n "$STRIP"; then
  6949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6950. printf "%s\n" "$STRIP" >&6; }
  6951. else
  6952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6953. printf "%s\n" "no" >&6; }
  6954. fi
  6955. fi
  6956. if test -z "$ac_cv_prog_STRIP"; then
  6957. ac_ct_STRIP=$STRIP
  6958. # Extract the first word of "strip", so it can be a program name with args.
  6959. set dummy strip; ac_word=$2
  6960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6961. printf %s "checking for $ac_word... " >&6; }
  6962. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6963. then :
  6964. printf %s "(cached) " >&6
  6965. else case e in #(
  6966. e) if test -n "$ac_ct_STRIP"; then
  6967. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. case $as_dir in #(((
  6974. '') as_dir=./ ;;
  6975. */) ;;
  6976. *) as_dir=$as_dir/ ;;
  6977. esac
  6978. for ac_exec_ext in '' $ac_executable_extensions; do
  6979. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6980. ac_cv_prog_ac_ct_STRIP="strip"
  6981. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6982. break 2
  6983. fi
  6984. done
  6985. done
  6986. IFS=$as_save_IFS
  6987. fi ;;
  6988. esac
  6989. fi
  6990. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6991. if test -n "$ac_ct_STRIP"; then
  6992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6993. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6994. else
  6995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6996. printf "%s\n" "no" >&6; }
  6997. fi
  6998. if test "x$ac_ct_STRIP" = x; then
  6999. STRIP=":"
  7000. else
  7001. case $cross_compiling:$ac_tool_warned in
  7002. yes:)
  7003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7004. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7005. ac_tool_warned=yes ;;
  7006. esac
  7007. STRIP=$ac_ct_STRIP
  7008. fi
  7009. else
  7010. STRIP="$ac_cv_prog_STRIP"
  7011. fi
  7012. test -z "$STRIP" && STRIP=:
  7013. test -z "$RANLIB" && RANLIB=:
  7014. # Determine commands to create old-style static archives.
  7015. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7016. old_postinstall_cmds='chmod 644 $oldlib'
  7017. old_postuninstall_cmds=
  7018. if test -n "$RANLIB"; then
  7019. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7020. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7021. fi
  7022. case $host_os in
  7023. darwin*)
  7024. lock_old_archive_extraction=yes ;;
  7025. *)
  7026. lock_old_archive_extraction=no ;;
  7027. esac
  7028. # If no C compiler was specified, use CC.
  7029. LTCC=${LTCC-"$CC"}
  7030. # If no C compiler flags were specified, use CFLAGS.
  7031. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7032. # Allow CC to be a program name with arguments.
  7033. compiler=$CC
  7034. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7036. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  7037. if test ${lt_cv_sys_global_symbol_pipe+y}
  7038. then :
  7039. printf %s "(cached) " >&6
  7040. else case e in #(
  7041. e)
  7042. # These are sane defaults that work on at least a few old systems.
  7043. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7044. # Character class describing NM global symbol codes.
  7045. symcode='[BCDEGRST]'
  7046. # Regexp to match symbols that can be accessed directly from C.
  7047. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7048. # Define system-specific variables.
  7049. case $host_os in
  7050. aix*)
  7051. symcode='[BCDT]'
  7052. ;;
  7053. cygwin* | mingw* | windows* | pw32* | cegcc*)
  7054. symcode='[ABCDGISTW]'
  7055. ;;
  7056. hpux*)
  7057. if test ia64 = "$host_cpu"; then
  7058. symcode='[ABCDEGRST]'
  7059. fi
  7060. ;;
  7061. irix* | nonstopux*)
  7062. symcode='[BCDEGRST]'
  7063. ;;
  7064. osf*)
  7065. symcode='[BCDEGQRST]'
  7066. ;;
  7067. solaris*)
  7068. symcode='[BCDRT]'
  7069. ;;
  7070. sco3.2v5*)
  7071. symcode='[DT]'
  7072. ;;
  7073. sysv4.2uw2*)
  7074. symcode='[DT]'
  7075. ;;
  7076. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7077. symcode='[ABDT]'
  7078. ;;
  7079. sysv4)
  7080. symcode='[DFNSTU]'
  7081. ;;
  7082. esac
  7083. # If we're using GNU nm, then use its standard symbol codes.
  7084. case `$NM -V 2>&1` in
  7085. *GNU* | *'with BFD'*)
  7086. symcode='[ABCDGIRSTW]' ;;
  7087. esac
  7088. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7089. # Gets list of data symbols to import.
  7090. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  7091. # Adjust the below global symbol transforms to fixup imported variables.
  7092. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7093. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7094. lt_c_name_lib_hook="\
  7095. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7096. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7097. else
  7098. # Disable hooks by default.
  7099. lt_cv_sys_global_symbol_to_import=
  7100. lt_cdecl_hook=
  7101. lt_c_name_hook=
  7102. lt_c_name_lib_hook=
  7103. fi
  7104. # Transform an extracted symbol line into a proper C declaration.
  7105. # Some systems (esp. on ia64) link data and code symbols differently,
  7106. # so use this general approach.
  7107. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  7108. $lt_cdecl_hook\
  7109. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7110. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7111. # Transform an extracted symbol line into symbol name and symbol address
  7112. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  7113. $lt_c_name_hook\
  7114. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7115. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7116. # Transform an extracted symbol line into symbol name with lib prefix and
  7117. # symbol address.
  7118. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  7119. $lt_c_name_lib_hook\
  7120. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7121. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7122. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7123. # Handle CRLF in mingw tool chain
  7124. opt_cr=
  7125. case $build_os in
  7126. mingw* | windows*)
  7127. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7128. ;;
  7129. esac
  7130. # Try without a prefix underscore, then with it.
  7131. for ac_symprfx in "" "_"; do
  7132. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7133. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7134. # Write the raw and C identifiers.
  7135. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7136. # Fake it for dumpbin and say T for any non-static function,
  7137. # D for any global variable and I for any imported variable.
  7138. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  7139. # which start with @ or ?.
  7140. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7141. " {last_section=section; section=\$ 3};"\
  7142. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7143. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7144. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7145. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7146. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7147. " \$ 0!~/External *\|/{next};"\
  7148. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7149. " {if(hide[section]) next};"\
  7150. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7151. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7152. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7153. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7154. " ' prfx=^$ac_symprfx"
  7155. else
  7156. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7157. fi
  7158. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  7159. # Check to see that the pipe works correctly.
  7160. pipe_works=no
  7161. rm -f conftest*
  7162. cat > conftest.$ac_ext <<_LT_EOF
  7163. #ifdef __cplusplus
  7164. extern "C" {
  7165. #endif
  7166. char nm_test_var;
  7167. void nm_test_func(void);
  7168. void nm_test_func(void){}
  7169. #ifdef __cplusplus
  7170. }
  7171. #endif
  7172. int main(void){nm_test_var='a';nm_test_func();return(0);}
  7173. _LT_EOF
  7174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7175. (eval $ac_compile) 2>&5
  7176. ac_status=$?
  7177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7178. test $ac_status = 0; }; then
  7179. # Now try to grab the symbols.
  7180. nlist=conftest.nm
  7181. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  7182. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  7183. # Try sorting and uniquifying the output.
  7184. if sort "$nlist" | uniq > "$nlist"T; then
  7185. mv -f "$nlist"T "$nlist"
  7186. else
  7187. rm -f "$nlist"T
  7188. fi
  7189. # Make sure that we snagged all the symbols we need.
  7190. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7191. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7192. cat <<_LT_EOF > conftest.$ac_ext
  7193. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7194. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7195. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7196. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7197. # define LT_DLSYM_CONST
  7198. #elif defined __osf__
  7199. /* This system does not cope well with relocations in const data. */
  7200. # define LT_DLSYM_CONST
  7201. #else
  7202. # define LT_DLSYM_CONST const
  7203. #endif
  7204. #ifdef __cplusplus
  7205. extern "C" {
  7206. #endif
  7207. _LT_EOF
  7208. # Now generate the symbol file.
  7209. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7210. cat <<_LT_EOF >> conftest.$ac_ext
  7211. /* The mapping between symbol names and symbols. */
  7212. LT_DLSYM_CONST struct {
  7213. const char *name;
  7214. void *address;
  7215. }
  7216. lt__PROGRAM__LTX_preloaded_symbols[] =
  7217. {
  7218. { "@PROGRAM@", (void *) 0 },
  7219. _LT_EOF
  7220. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7221. cat <<\_LT_EOF >> conftest.$ac_ext
  7222. {0, (void *) 0}
  7223. };
  7224. /* This works around a problem in FreeBSD linker */
  7225. #ifdef FREEBSD_WORKAROUND
  7226. static const void *lt_preloaded_setup() {
  7227. return lt__PROGRAM__LTX_preloaded_symbols;
  7228. }
  7229. #endif
  7230. #ifdef __cplusplus
  7231. }
  7232. #endif
  7233. _LT_EOF
  7234. # Now try linking the two files.
  7235. mv conftest.$ac_objext conftstm.$ac_objext
  7236. lt_globsym_save_LIBS=$LIBS
  7237. lt_globsym_save_CFLAGS=$CFLAGS
  7238. LIBS=conftstm.$ac_objext
  7239. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7240. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7241. (eval $ac_link) 2>&5
  7242. ac_status=$?
  7243. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7244. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7245. pipe_works=yes
  7246. fi
  7247. LIBS=$lt_globsym_save_LIBS
  7248. CFLAGS=$lt_globsym_save_CFLAGS
  7249. else
  7250. echo "cannot find nm_test_func in $nlist" >&5
  7251. fi
  7252. else
  7253. echo "cannot find nm_test_var in $nlist" >&5
  7254. fi
  7255. else
  7256. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7257. fi
  7258. else
  7259. echo "$progname: failed program was:" >&5
  7260. cat conftest.$ac_ext >&5
  7261. fi
  7262. rm -rf conftest* conftst*
  7263. # Do not use the global_symbol_pipe unless it works.
  7264. if test yes = "$pipe_works"; then
  7265. break
  7266. else
  7267. lt_cv_sys_global_symbol_pipe=
  7268. fi
  7269. done
  7270. ;;
  7271. esac
  7272. fi
  7273. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7274. lt_cv_sys_global_symbol_to_cdecl=
  7275. fi
  7276. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7278. printf "%s\n" "failed" >&6; }
  7279. else
  7280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7281. printf "%s\n" "ok" >&6; }
  7282. fi
  7283. # Response file support.
  7284. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7285. nm_file_list_spec='@'
  7286. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7287. nm_file_list_spec='@'
  7288. fi
  7289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7290. printf %s "checking for sysroot... " >&6; }
  7291. # Check whether --with-sysroot was given.
  7292. if test ${with_sysroot+y}
  7293. then :
  7294. withval=$with_sysroot;
  7295. else case e in #(
  7296. e) with_sysroot=no ;;
  7297. esac
  7298. fi
  7299. lt_sysroot=
  7300. case $with_sysroot in #(
  7301. yes)
  7302. if test yes = "$GCC"; then
  7303. # Trim trailing / since we'll always append absolute paths and we want
  7304. # to avoid //, if only for less confusing output for the user.
  7305. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  7306. fi
  7307. ;; #(
  7308. /*)
  7309. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  7310. ;; #(
  7311. no|'')
  7312. ;; #(
  7313. *)
  7314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7315. printf "%s\n" "$with_sysroot" >&6; }
  7316. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7317. ;;
  7318. esac
  7319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7320. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7322. printf %s "checking for a working dd... " >&6; }
  7323. if test ${ac_cv_path_lt_DD+y}
  7324. then :
  7325. printf %s "(cached) " >&6
  7326. else case e in #(
  7327. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7328. cat conftest.i conftest.i >conftest2.i
  7329. : ${lt_DD:=$DD}
  7330. if test -z "$lt_DD"; then
  7331. ac_path_lt_DD_found=false
  7332. # Loop through the user's path and test for each of PROGNAME-LIST
  7333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7334. for as_dir in $PATH
  7335. do
  7336. IFS=$as_save_IFS
  7337. case $as_dir in #(((
  7338. '') as_dir=./ ;;
  7339. */) ;;
  7340. *) as_dir=$as_dir/ ;;
  7341. esac
  7342. for ac_prog in dd
  7343. do
  7344. for ac_exec_ext in '' $ac_executable_extensions; do
  7345. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7346. as_fn_executable_p "$ac_path_lt_DD" || continue
  7347. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7348. cmp -s conftest.i conftest.out \
  7349. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7350. fi
  7351. $ac_path_lt_DD_found && break 3
  7352. done
  7353. done
  7354. done
  7355. IFS=$as_save_IFS
  7356. if test -z "$ac_cv_path_lt_DD"; then
  7357. :
  7358. fi
  7359. else
  7360. ac_cv_path_lt_DD=$lt_DD
  7361. fi
  7362. rm -f conftest.i conftest2.i conftest.out ;;
  7363. esac
  7364. fi
  7365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7366. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7368. printf %s "checking how to truncate binary pipes... " >&6; }
  7369. if test ${lt_cv_truncate_bin+y}
  7370. then :
  7371. printf %s "(cached) " >&6
  7372. else case e in #(
  7373. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7374. cat conftest.i conftest.i >conftest2.i
  7375. lt_cv_truncate_bin=
  7376. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7377. cmp -s conftest.i conftest.out \
  7378. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7379. fi
  7380. rm -f conftest.i conftest2.i conftest.out
  7381. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  7382. esac
  7383. fi
  7384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7385. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7386. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7387. func_cc_basename ()
  7388. {
  7389. for cc_temp in $*""; do
  7390. case $cc_temp in
  7391. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7392. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7393. \-*) ;;
  7394. *) break;;
  7395. esac
  7396. done
  7397. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7398. }
  7399. # Check whether --enable-libtool-lock was given.
  7400. if test ${enable_libtool_lock+y}
  7401. then :
  7402. enableval=$enable_libtool_lock;
  7403. fi
  7404. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7405. # Some flags need to be propagated to the compiler or linker for good
  7406. # libtool support.
  7407. case $host in
  7408. ia64-*-hpux*)
  7409. # Find out what ABI is being produced by ac_compile, and set mode
  7410. # options accordingly.
  7411. echo 'int i;' > conftest.$ac_ext
  7412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7413. (eval $ac_compile) 2>&5
  7414. ac_status=$?
  7415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7416. test $ac_status = 0; }; then
  7417. case `$FILECMD conftest.$ac_objext` in
  7418. *ELF-32*)
  7419. HPUX_IA64_MODE=32
  7420. ;;
  7421. *ELF-64*)
  7422. HPUX_IA64_MODE=64
  7423. ;;
  7424. esac
  7425. fi
  7426. rm -rf conftest*
  7427. ;;
  7428. *-*-irix6*)
  7429. # Find out what ABI is being produced by ac_compile, and set linker
  7430. # options accordingly.
  7431. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7432. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7433. (eval $ac_compile) 2>&5
  7434. ac_status=$?
  7435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7436. test $ac_status = 0; }; then
  7437. if test yes = "$lt_cv_prog_gnu_ld"; then
  7438. case `$FILECMD conftest.$ac_objext` in
  7439. *32-bit*)
  7440. LD="${LD-ld} -melf32bsmip"
  7441. ;;
  7442. *N32*)
  7443. LD="${LD-ld} -melf32bmipn32"
  7444. ;;
  7445. *64-bit*)
  7446. LD="${LD-ld} -melf64bmip"
  7447. ;;
  7448. esac
  7449. else
  7450. case `$FILECMD conftest.$ac_objext` in
  7451. *32-bit*)
  7452. LD="${LD-ld} -32"
  7453. ;;
  7454. *N32*)
  7455. LD="${LD-ld} -n32"
  7456. ;;
  7457. *64-bit*)
  7458. LD="${LD-ld} -64"
  7459. ;;
  7460. esac
  7461. fi
  7462. fi
  7463. rm -rf conftest*
  7464. ;;
  7465. mips64*-*linux*)
  7466. # Find out what ABI is being produced by ac_compile, and set linker
  7467. # options accordingly.
  7468. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7469. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7470. (eval $ac_compile) 2>&5
  7471. ac_status=$?
  7472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7473. test $ac_status = 0; }; then
  7474. emul=elf
  7475. case `$FILECMD conftest.$ac_objext` in
  7476. *32-bit*)
  7477. emul="${emul}32"
  7478. ;;
  7479. *64-bit*)
  7480. emul="${emul}64"
  7481. ;;
  7482. esac
  7483. case `$FILECMD conftest.$ac_objext` in
  7484. *MSB*)
  7485. emul="${emul}btsmip"
  7486. ;;
  7487. *LSB*)
  7488. emul="${emul}ltsmip"
  7489. ;;
  7490. esac
  7491. case `$FILECMD conftest.$ac_objext` in
  7492. *N32*)
  7493. emul="${emul}n32"
  7494. ;;
  7495. esac
  7496. LD="${LD-ld} -m $emul"
  7497. fi
  7498. rm -rf conftest*
  7499. ;;
  7500. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7501. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  7502. # Find out what ABI is being produced by ac_compile, and set linker
  7503. # options accordingly. Note that the listed cases only cover the
  7504. # situations where additional linker options are needed (such as when
  7505. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7506. # vice versa); the common cases where no linker options are needed do
  7507. # not appear in the list.
  7508. echo 'int i;' > conftest.$ac_ext
  7509. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7510. (eval $ac_compile) 2>&5
  7511. ac_status=$?
  7512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7513. test $ac_status = 0; }; then
  7514. case `$FILECMD conftest.o` in
  7515. *32-bit*)
  7516. case $host in
  7517. x86_64-*kfreebsd*-gnu)
  7518. LD="${LD-ld} -m elf_i386_fbsd"
  7519. ;;
  7520. x86_64-*linux*|x86_64-gnu*)
  7521. case `$FILECMD conftest.o` in
  7522. *x86-64*)
  7523. LD="${LD-ld} -m elf32_x86_64"
  7524. ;;
  7525. *)
  7526. LD="${LD-ld} -m elf_i386"
  7527. ;;
  7528. esac
  7529. ;;
  7530. powerpc64le-*linux*)
  7531. LD="${LD-ld} -m elf32lppclinux"
  7532. ;;
  7533. powerpc64-*linux*)
  7534. LD="${LD-ld} -m elf32ppclinux"
  7535. ;;
  7536. s390x-*linux*)
  7537. LD="${LD-ld} -m elf_s390"
  7538. ;;
  7539. sparc64-*linux*)
  7540. LD="${LD-ld} -m elf32_sparc"
  7541. ;;
  7542. esac
  7543. ;;
  7544. *64-bit*)
  7545. case $host in
  7546. x86_64-*kfreebsd*-gnu)
  7547. LD="${LD-ld} -m elf_x86_64_fbsd"
  7548. ;;
  7549. x86_64-*linux*|x86_64-gnu*)
  7550. LD="${LD-ld} -m elf_x86_64"
  7551. ;;
  7552. powerpcle-*linux*|powerpc64le-*linux*)
  7553. LD="${LD-ld} -m elf64lppc"
  7554. ;;
  7555. powerpc-*linux*|powerpc64-*linux*)
  7556. LD="${LD-ld} -m elf64ppc"
  7557. ;;
  7558. s390*-*linux*|s390*-*tpf*)
  7559. LD="${LD-ld} -m elf64_s390"
  7560. ;;
  7561. sparc*-*linux*)
  7562. LD="${LD-ld} -m elf64_sparc"
  7563. ;;
  7564. esac
  7565. ;;
  7566. esac
  7567. fi
  7568. rm -rf conftest*
  7569. ;;
  7570. *-*-sco3.2v5*)
  7571. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7572. SAVE_CFLAGS=$CFLAGS
  7573. CFLAGS="$CFLAGS -belf"
  7574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7575. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7576. if test ${lt_cv_cc_needs_belf+y}
  7577. then :
  7578. printf %s "(cached) " >&6
  7579. else case e in #(
  7580. e) ac_ext=c
  7581. ac_cpp='$CPP $CPPFLAGS'
  7582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7586. /* end confdefs.h. */
  7587. int
  7588. main (void)
  7589. {
  7590. ;
  7591. return 0;
  7592. }
  7593. _ACEOF
  7594. if ac_fn_c_try_link "$LINENO"
  7595. then :
  7596. lt_cv_cc_needs_belf=yes
  7597. else case e in #(
  7598. e) lt_cv_cc_needs_belf=no ;;
  7599. esac
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7602. conftest$ac_exeext conftest.$ac_ext
  7603. ac_ext=c
  7604. ac_cpp='$CPP $CPPFLAGS'
  7605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7608. ;;
  7609. esac
  7610. fi
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7612. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7613. if test yes != "$lt_cv_cc_needs_belf"; then
  7614. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7615. CFLAGS=$SAVE_CFLAGS
  7616. fi
  7617. ;;
  7618. *-*solaris*)
  7619. # Find out what ABI is being produced by ac_compile, and set linker
  7620. # options accordingly.
  7621. echo 'int i;' > conftest.$ac_ext
  7622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7623. (eval $ac_compile) 2>&5
  7624. ac_status=$?
  7625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7626. test $ac_status = 0; }; then
  7627. case `$FILECMD conftest.o` in
  7628. *64-bit*)
  7629. case $lt_cv_prog_gnu_ld in
  7630. yes*)
  7631. case $host in
  7632. i?86-*-solaris*|x86_64-*-solaris*)
  7633. LD="${LD-ld} -m elf_x86_64"
  7634. ;;
  7635. sparc*-*-solaris*)
  7636. LD="${LD-ld} -m elf64_sparc"
  7637. ;;
  7638. esac
  7639. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7640. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7641. LD=${LD-ld}_sol2
  7642. fi
  7643. ;;
  7644. *)
  7645. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7646. LD="${LD-ld} -64"
  7647. fi
  7648. ;;
  7649. esac
  7650. ;;
  7651. esac
  7652. fi
  7653. rm -rf conftest*
  7654. ;;
  7655. esac
  7656. need_locks=$enable_libtool_lock
  7657. if test -n "$ac_tool_prefix"; then
  7658. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7659. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7661. printf %s "checking for $ac_word... " >&6; }
  7662. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7663. then :
  7664. printf %s "(cached) " >&6
  7665. else case e in #(
  7666. e) if test -n "$MANIFEST_TOOL"; then
  7667. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7668. else
  7669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7670. for as_dir in $PATH
  7671. do
  7672. IFS=$as_save_IFS
  7673. case $as_dir in #(((
  7674. '') as_dir=./ ;;
  7675. */) ;;
  7676. *) as_dir=$as_dir/ ;;
  7677. esac
  7678. for ac_exec_ext in '' $ac_executable_extensions; do
  7679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7680. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7682. break 2
  7683. fi
  7684. done
  7685. done
  7686. IFS=$as_save_IFS
  7687. fi ;;
  7688. esac
  7689. fi
  7690. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7691. if test -n "$MANIFEST_TOOL"; then
  7692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7693. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7694. else
  7695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7696. printf "%s\n" "no" >&6; }
  7697. fi
  7698. fi
  7699. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7700. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7701. # Extract the first word of "mt", so it can be a program name with args.
  7702. set dummy mt; ac_word=$2
  7703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7704. printf %s "checking for $ac_word... " >&6; }
  7705. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7706. then :
  7707. printf %s "(cached) " >&6
  7708. else case e in #(
  7709. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  7710. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7711. else
  7712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7713. for as_dir in $PATH
  7714. do
  7715. IFS=$as_save_IFS
  7716. case $as_dir in #(((
  7717. '') as_dir=./ ;;
  7718. */) ;;
  7719. *) as_dir=$as_dir/ ;;
  7720. esac
  7721. for ac_exec_ext in '' $ac_executable_extensions; do
  7722. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7723. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7725. break 2
  7726. fi
  7727. done
  7728. done
  7729. IFS=$as_save_IFS
  7730. fi ;;
  7731. esac
  7732. fi
  7733. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7734. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7736. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7737. else
  7738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7739. printf "%s\n" "no" >&6; }
  7740. fi
  7741. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7742. MANIFEST_TOOL=":"
  7743. else
  7744. case $cross_compiling:$ac_tool_warned in
  7745. yes:)
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7747. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7748. ac_tool_warned=yes ;;
  7749. esac
  7750. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7751. fi
  7752. else
  7753. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7754. fi
  7755. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7757. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7758. if test ${lt_cv_path_manifest_tool+y}
  7759. then :
  7760. printf %s "(cached) " >&6
  7761. else case e in #(
  7762. e) lt_cv_path_manifest_tool=no
  7763. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7764. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7765. cat conftest.err >&5
  7766. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7767. lt_cv_path_manifest_tool=yes
  7768. fi
  7769. rm -f conftest* ;;
  7770. esac
  7771. fi
  7772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  7773. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  7774. if test yes != "$lt_cv_path_manifest_tool"; then
  7775. MANIFEST_TOOL=:
  7776. fi
  7777. case $host_os in
  7778. rhapsody* | darwin*)
  7779. if test -n "$ac_tool_prefix"; then
  7780. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7781. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7783. printf %s "checking for $ac_word... " >&6; }
  7784. if test ${ac_cv_prog_DSYMUTIL+y}
  7785. then :
  7786. printf %s "(cached) " >&6
  7787. else case e in #(
  7788. e) if test -n "$DSYMUTIL"; then
  7789. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7790. else
  7791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7792. for as_dir in $PATH
  7793. do
  7794. IFS=$as_save_IFS
  7795. case $as_dir in #(((
  7796. '') as_dir=./ ;;
  7797. */) ;;
  7798. *) as_dir=$as_dir/ ;;
  7799. esac
  7800. for ac_exec_ext in '' $ac_executable_extensions; do
  7801. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7802. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7804. break 2
  7805. fi
  7806. done
  7807. done
  7808. IFS=$as_save_IFS
  7809. fi ;;
  7810. esac
  7811. fi
  7812. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7813. if test -n "$DSYMUTIL"; then
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7815. printf "%s\n" "$DSYMUTIL" >&6; }
  7816. else
  7817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7818. printf "%s\n" "no" >&6; }
  7819. fi
  7820. fi
  7821. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7822. ac_ct_DSYMUTIL=$DSYMUTIL
  7823. # Extract the first word of "dsymutil", so it can be a program name with args.
  7824. set dummy dsymutil; ac_word=$2
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7826. printf %s "checking for $ac_word... " >&6; }
  7827. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7828. then :
  7829. printf %s "(cached) " >&6
  7830. else case e in #(
  7831. e) if test -n "$ac_ct_DSYMUTIL"; then
  7832. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7833. else
  7834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7835. for as_dir in $PATH
  7836. do
  7837. IFS=$as_save_IFS
  7838. case $as_dir in #(((
  7839. '') as_dir=./ ;;
  7840. */) ;;
  7841. *) as_dir=$as_dir/ ;;
  7842. esac
  7843. for ac_exec_ext in '' $ac_executable_extensions; do
  7844. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7845. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7847. break 2
  7848. fi
  7849. done
  7850. done
  7851. IFS=$as_save_IFS
  7852. fi ;;
  7853. esac
  7854. fi
  7855. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7856. if test -n "$ac_ct_DSYMUTIL"; then
  7857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7858. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7859. else
  7860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7861. printf "%s\n" "no" >&6; }
  7862. fi
  7863. if test "x$ac_ct_DSYMUTIL" = x; then
  7864. DSYMUTIL=":"
  7865. else
  7866. case $cross_compiling:$ac_tool_warned in
  7867. yes:)
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7869. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7870. ac_tool_warned=yes ;;
  7871. esac
  7872. DSYMUTIL=$ac_ct_DSYMUTIL
  7873. fi
  7874. else
  7875. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7876. fi
  7877. if test -n "$ac_tool_prefix"; then
  7878. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7879. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7881. printf %s "checking for $ac_word... " >&6; }
  7882. if test ${ac_cv_prog_NMEDIT+y}
  7883. then :
  7884. printf %s "(cached) " >&6
  7885. else case e in #(
  7886. e) if test -n "$NMEDIT"; then
  7887. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7888. else
  7889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7890. for as_dir in $PATH
  7891. do
  7892. IFS=$as_save_IFS
  7893. case $as_dir in #(((
  7894. '') as_dir=./ ;;
  7895. */) ;;
  7896. *) as_dir=$as_dir/ ;;
  7897. esac
  7898. for ac_exec_ext in '' $ac_executable_extensions; do
  7899. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7900. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7902. break 2
  7903. fi
  7904. done
  7905. done
  7906. IFS=$as_save_IFS
  7907. fi ;;
  7908. esac
  7909. fi
  7910. NMEDIT=$ac_cv_prog_NMEDIT
  7911. if test -n "$NMEDIT"; then
  7912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7913. printf "%s\n" "$NMEDIT" >&6; }
  7914. else
  7915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7916. printf "%s\n" "no" >&6; }
  7917. fi
  7918. fi
  7919. if test -z "$ac_cv_prog_NMEDIT"; then
  7920. ac_ct_NMEDIT=$NMEDIT
  7921. # Extract the first word of "nmedit", so it can be a program name with args.
  7922. set dummy nmedit; ac_word=$2
  7923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7924. printf %s "checking for $ac_word... " >&6; }
  7925. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7926. then :
  7927. printf %s "(cached) " >&6
  7928. else case e in #(
  7929. e) if test -n "$ac_ct_NMEDIT"; then
  7930. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7931. else
  7932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7933. for as_dir in $PATH
  7934. do
  7935. IFS=$as_save_IFS
  7936. case $as_dir in #(((
  7937. '') as_dir=./ ;;
  7938. */) ;;
  7939. *) as_dir=$as_dir/ ;;
  7940. esac
  7941. for ac_exec_ext in '' $ac_executable_extensions; do
  7942. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7943. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7944. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7945. break 2
  7946. fi
  7947. done
  7948. done
  7949. IFS=$as_save_IFS
  7950. fi ;;
  7951. esac
  7952. fi
  7953. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7954. if test -n "$ac_ct_NMEDIT"; then
  7955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7956. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7957. else
  7958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7959. printf "%s\n" "no" >&6; }
  7960. fi
  7961. if test "x$ac_ct_NMEDIT" = x; then
  7962. NMEDIT=":"
  7963. else
  7964. case $cross_compiling:$ac_tool_warned in
  7965. yes:)
  7966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7967. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7968. ac_tool_warned=yes ;;
  7969. esac
  7970. NMEDIT=$ac_ct_NMEDIT
  7971. fi
  7972. else
  7973. NMEDIT="$ac_cv_prog_NMEDIT"
  7974. fi
  7975. if test -n "$ac_tool_prefix"; then
  7976. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7977. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7979. printf %s "checking for $ac_word... " >&6; }
  7980. if test ${ac_cv_prog_LIPO+y}
  7981. then :
  7982. printf %s "(cached) " >&6
  7983. else case e in #(
  7984. e) if test -n "$LIPO"; then
  7985. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7986. else
  7987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7988. for as_dir in $PATH
  7989. do
  7990. IFS=$as_save_IFS
  7991. case $as_dir in #(((
  7992. '') as_dir=./ ;;
  7993. */) ;;
  7994. *) as_dir=$as_dir/ ;;
  7995. esac
  7996. for ac_exec_ext in '' $ac_executable_extensions; do
  7997. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7998. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8000. break 2
  8001. fi
  8002. done
  8003. done
  8004. IFS=$as_save_IFS
  8005. fi ;;
  8006. esac
  8007. fi
  8008. LIPO=$ac_cv_prog_LIPO
  8009. if test -n "$LIPO"; then
  8010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8011. printf "%s\n" "$LIPO" >&6; }
  8012. else
  8013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8014. printf "%s\n" "no" >&6; }
  8015. fi
  8016. fi
  8017. if test -z "$ac_cv_prog_LIPO"; then
  8018. ac_ct_LIPO=$LIPO
  8019. # Extract the first word of "lipo", so it can be a program name with args.
  8020. set dummy lipo; ac_word=$2
  8021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8022. printf %s "checking for $ac_word... " >&6; }
  8023. if test ${ac_cv_prog_ac_ct_LIPO+y}
  8024. then :
  8025. printf %s "(cached) " >&6
  8026. else case e in #(
  8027. e) if test -n "$ac_ct_LIPO"; then
  8028. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8029. else
  8030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8031. for as_dir in $PATH
  8032. do
  8033. IFS=$as_save_IFS
  8034. case $as_dir in #(((
  8035. '') as_dir=./ ;;
  8036. */) ;;
  8037. *) as_dir=$as_dir/ ;;
  8038. esac
  8039. for ac_exec_ext in '' $ac_executable_extensions; do
  8040. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8041. ac_cv_prog_ac_ct_LIPO="lipo"
  8042. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8043. break 2
  8044. fi
  8045. done
  8046. done
  8047. IFS=$as_save_IFS
  8048. fi ;;
  8049. esac
  8050. fi
  8051. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8052. if test -n "$ac_ct_LIPO"; then
  8053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8054. printf "%s\n" "$ac_ct_LIPO" >&6; }
  8055. else
  8056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8057. printf "%s\n" "no" >&6; }
  8058. fi
  8059. if test "x$ac_ct_LIPO" = x; then
  8060. LIPO=":"
  8061. else
  8062. case $cross_compiling:$ac_tool_warned in
  8063. yes:)
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8065. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8066. ac_tool_warned=yes ;;
  8067. esac
  8068. LIPO=$ac_ct_LIPO
  8069. fi
  8070. else
  8071. LIPO="$ac_cv_prog_LIPO"
  8072. fi
  8073. if test -n "$ac_tool_prefix"; then
  8074. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8075. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8077. printf %s "checking for $ac_word... " >&6; }
  8078. if test ${ac_cv_prog_OTOOL+y}
  8079. then :
  8080. printf %s "(cached) " >&6
  8081. else case e in #(
  8082. e) if test -n "$OTOOL"; then
  8083. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8084. else
  8085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8086. for as_dir in $PATH
  8087. do
  8088. IFS=$as_save_IFS
  8089. case $as_dir in #(((
  8090. '') as_dir=./ ;;
  8091. */) ;;
  8092. *) as_dir=$as_dir/ ;;
  8093. esac
  8094. for ac_exec_ext in '' $ac_executable_extensions; do
  8095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8096. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8098. break 2
  8099. fi
  8100. done
  8101. done
  8102. IFS=$as_save_IFS
  8103. fi ;;
  8104. esac
  8105. fi
  8106. OTOOL=$ac_cv_prog_OTOOL
  8107. if test -n "$OTOOL"; then
  8108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8109. printf "%s\n" "$OTOOL" >&6; }
  8110. else
  8111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8112. printf "%s\n" "no" >&6; }
  8113. fi
  8114. fi
  8115. if test -z "$ac_cv_prog_OTOOL"; then
  8116. ac_ct_OTOOL=$OTOOL
  8117. # Extract the first word of "otool", so it can be a program name with args.
  8118. set dummy otool; ac_word=$2
  8119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8120. printf %s "checking for $ac_word... " >&6; }
  8121. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  8122. then :
  8123. printf %s "(cached) " >&6
  8124. else case e in #(
  8125. e) if test -n "$ac_ct_OTOOL"; then
  8126. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8127. else
  8128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8129. for as_dir in $PATH
  8130. do
  8131. IFS=$as_save_IFS
  8132. case $as_dir in #(((
  8133. '') as_dir=./ ;;
  8134. */) ;;
  8135. *) as_dir=$as_dir/ ;;
  8136. esac
  8137. for ac_exec_ext in '' $ac_executable_extensions; do
  8138. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8139. ac_cv_prog_ac_ct_OTOOL="otool"
  8140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8141. break 2
  8142. fi
  8143. done
  8144. done
  8145. IFS=$as_save_IFS
  8146. fi ;;
  8147. esac
  8148. fi
  8149. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8150. if test -n "$ac_ct_OTOOL"; then
  8151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8152. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  8153. else
  8154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8155. printf "%s\n" "no" >&6; }
  8156. fi
  8157. if test "x$ac_ct_OTOOL" = x; then
  8158. OTOOL=":"
  8159. else
  8160. case $cross_compiling:$ac_tool_warned in
  8161. yes:)
  8162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8163. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8164. ac_tool_warned=yes ;;
  8165. esac
  8166. OTOOL=$ac_ct_OTOOL
  8167. fi
  8168. else
  8169. OTOOL="$ac_cv_prog_OTOOL"
  8170. fi
  8171. if test -n "$ac_tool_prefix"; then
  8172. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8173. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8175. printf %s "checking for $ac_word... " >&6; }
  8176. if test ${ac_cv_prog_OTOOL64+y}
  8177. then :
  8178. printf %s "(cached) " >&6
  8179. else case e in #(
  8180. e) if test -n "$OTOOL64"; then
  8181. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8182. else
  8183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8184. for as_dir in $PATH
  8185. do
  8186. IFS=$as_save_IFS
  8187. case $as_dir in #(((
  8188. '') as_dir=./ ;;
  8189. */) ;;
  8190. *) as_dir=$as_dir/ ;;
  8191. esac
  8192. for ac_exec_ext in '' $ac_executable_extensions; do
  8193. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8194. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8196. break 2
  8197. fi
  8198. done
  8199. done
  8200. IFS=$as_save_IFS
  8201. fi ;;
  8202. esac
  8203. fi
  8204. OTOOL64=$ac_cv_prog_OTOOL64
  8205. if test -n "$OTOOL64"; then
  8206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8207. printf "%s\n" "$OTOOL64" >&6; }
  8208. else
  8209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8210. printf "%s\n" "no" >&6; }
  8211. fi
  8212. fi
  8213. if test -z "$ac_cv_prog_OTOOL64"; then
  8214. ac_ct_OTOOL64=$OTOOL64
  8215. # Extract the first word of "otool64", so it can be a program name with args.
  8216. set dummy otool64; ac_word=$2
  8217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8218. printf %s "checking for $ac_word... " >&6; }
  8219. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8220. then :
  8221. printf %s "(cached) " >&6
  8222. else case e in #(
  8223. e) if test -n "$ac_ct_OTOOL64"; then
  8224. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8225. else
  8226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8227. for as_dir in $PATH
  8228. do
  8229. IFS=$as_save_IFS
  8230. case $as_dir in #(((
  8231. '') as_dir=./ ;;
  8232. */) ;;
  8233. *) as_dir=$as_dir/ ;;
  8234. esac
  8235. for ac_exec_ext in '' $ac_executable_extensions; do
  8236. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8237. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8238. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8239. break 2
  8240. fi
  8241. done
  8242. done
  8243. IFS=$as_save_IFS
  8244. fi ;;
  8245. esac
  8246. fi
  8247. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8248. if test -n "$ac_ct_OTOOL64"; then
  8249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8250. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8251. else
  8252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8253. printf "%s\n" "no" >&6; }
  8254. fi
  8255. if test "x$ac_ct_OTOOL64" = x; then
  8256. OTOOL64=":"
  8257. else
  8258. case $cross_compiling:$ac_tool_warned in
  8259. yes:)
  8260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8261. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8262. ac_tool_warned=yes ;;
  8263. esac
  8264. OTOOL64=$ac_ct_OTOOL64
  8265. fi
  8266. else
  8267. OTOOL64="$ac_cv_prog_OTOOL64"
  8268. fi
  8269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8270. printf %s "checking for -single_module linker flag... " >&6; }
  8271. if test ${lt_cv_apple_cc_single_mod+y}
  8272. then :
  8273. printf %s "(cached) " >&6
  8274. else case e in #(
  8275. e) lt_cv_apple_cc_single_mod=no
  8276. if test -z "$LT_MULTI_MODULE"; then
  8277. # By default we will add the -single_module flag. You can override
  8278. # by either setting the environment variable LT_MULTI_MODULE
  8279. # non-empty at configure time, or by adding -multi_module to the
  8280. # link flags.
  8281. rm -rf libconftest.dylib*
  8282. echo "int foo(void){return 1;}" > conftest.c
  8283. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8284. -dynamiclib -Wl,-single_module conftest.c" >&5
  8285. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8286. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8287. _lt_result=$?
  8288. # If there is a non-empty error log, and "single_module"
  8289. # appears in it, assume the flag caused a linker warning
  8290. if test -s conftest.err && $GREP single_module conftest.err; then
  8291. cat conftest.err >&5
  8292. # Otherwise, if the output was created with a 0 exit code from
  8293. # the compiler, it worked.
  8294. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8295. lt_cv_apple_cc_single_mod=yes
  8296. else
  8297. cat conftest.err >&5
  8298. fi
  8299. rm -rf libconftest.dylib*
  8300. rm -f conftest.*
  8301. fi ;;
  8302. esac
  8303. fi
  8304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8305. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  8306. # Feature test to disable chained fixups since it is not
  8307. # compatible with '-undefined dynamic_lookup'
  8308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  8309. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  8310. if test ${lt_cv_support_no_fixup_chains+y}
  8311. then :
  8312. printf %s "(cached) " >&6
  8313. else case e in #(
  8314. e) save_LDFLAGS=$LDFLAGS
  8315. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  8316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8317. /* end confdefs.h. */
  8318. int
  8319. main (void)
  8320. {
  8321. ;
  8322. return 0;
  8323. }
  8324. _ACEOF
  8325. if ac_fn_c_try_link "$LINENO"
  8326. then :
  8327. lt_cv_support_no_fixup_chains=yes
  8328. else case e in #(
  8329. e) lt_cv_support_no_fixup_chains=no
  8330. ;;
  8331. esac
  8332. fi
  8333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8334. conftest$ac_exeext conftest.$ac_ext
  8335. LDFLAGS=$save_LDFLAGS
  8336. ;;
  8337. esac
  8338. fi
  8339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  8340. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  8341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8342. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8343. if test ${lt_cv_ld_exported_symbols_list+y}
  8344. then :
  8345. printf %s "(cached) " >&6
  8346. else case e in #(
  8347. e) lt_cv_ld_exported_symbols_list=no
  8348. save_LDFLAGS=$LDFLAGS
  8349. echo "_main" > conftest.sym
  8350. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8352. /* end confdefs.h. */
  8353. int
  8354. main (void)
  8355. {
  8356. ;
  8357. return 0;
  8358. }
  8359. _ACEOF
  8360. if ac_fn_c_try_link "$LINENO"
  8361. then :
  8362. lt_cv_ld_exported_symbols_list=yes
  8363. else case e in #(
  8364. e) lt_cv_ld_exported_symbols_list=no ;;
  8365. esac
  8366. fi
  8367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8368. conftest$ac_exeext conftest.$ac_ext
  8369. LDFLAGS=$save_LDFLAGS
  8370. ;;
  8371. esac
  8372. fi
  8373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8374. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8376. printf %s "checking for -force_load linker flag... " >&6; }
  8377. if test ${lt_cv_ld_force_load+y}
  8378. then :
  8379. printf %s "(cached) " >&6
  8380. else case e in #(
  8381. e) lt_cv_ld_force_load=no
  8382. cat > conftest.c << _LT_EOF
  8383. int forced_loaded() { return 2;}
  8384. _LT_EOF
  8385. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8386. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8387. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8388. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8389. echo "$RANLIB libconftest.a" >&5
  8390. $RANLIB libconftest.a 2>&5
  8391. cat > conftest.c << _LT_EOF
  8392. int main(void) { return 0;}
  8393. _LT_EOF
  8394. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8395. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8396. _lt_result=$?
  8397. if test -s conftest.err && $GREP force_load conftest.err; then
  8398. cat conftest.err >&5
  8399. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8400. lt_cv_ld_force_load=yes
  8401. else
  8402. cat conftest.err >&5
  8403. fi
  8404. rm -f conftest.err libconftest.a conftest conftest.c
  8405. rm -rf conftest.dSYM
  8406. ;;
  8407. esac
  8408. fi
  8409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8410. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8411. case $host_os in
  8412. rhapsody* | darwin1.[012])
  8413. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8414. darwin1.*)
  8415. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8416. darwin*)
  8417. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8418. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8419. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8420. *)
  8421. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  8422. if test yes = "$lt_cv_support_no_fixup_chains"; then
  8423. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  8424. fi
  8425. ;;
  8426. esac
  8427. ;;
  8428. esac
  8429. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8430. _lt_dar_single_mod='$single_module'
  8431. fi
  8432. _lt_dar_needs_single_mod=no
  8433. case $host_os in
  8434. rhapsody* | darwin1.*)
  8435. _lt_dar_needs_single_mod=yes ;;
  8436. darwin*)
  8437. # When targeting Mac OS X 10.4 (darwin 8) or later,
  8438. # -single_module is the default and -multi_module is unsupported.
  8439. # The toolchain on macOS 10.14 (darwin 18) and later cannot
  8440. # target any OS version that needs -single_module.
  8441. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8442. 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
  8443. _lt_dar_needs_single_mod=yes ;;
  8444. esac
  8445. ;;
  8446. esac
  8447. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8448. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8449. else
  8450. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8451. fi
  8452. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8453. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8454. else
  8455. _lt_dsymutil=
  8456. fi
  8457. ;;
  8458. esac
  8459. # func_munge_path_list VARIABLE PATH
  8460. # -----------------------------------
  8461. # VARIABLE is name of variable containing _space_ separated list of
  8462. # directories to be munged by the contents of PATH, which is string
  8463. # having a format:
  8464. # "DIR[:DIR]:"
  8465. # string "DIR[ DIR]" will be prepended to VARIABLE
  8466. # ":DIR[:DIR]"
  8467. # string "DIR[ DIR]" will be appended to VARIABLE
  8468. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8469. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8470. # "DIRA[ DIRA]" will be appended to VARIABLE
  8471. # "DIR[:DIR]"
  8472. # VARIABLE will be replaced by "DIR[ DIR]"
  8473. func_munge_path_list ()
  8474. {
  8475. case x$2 in
  8476. x)
  8477. ;;
  8478. *:)
  8479. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8480. ;;
  8481. x:*)
  8482. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8483. ;;
  8484. *::*)
  8485. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8486. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8487. ;;
  8488. *)
  8489. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8490. ;;
  8491. esac
  8492. }
  8493. ac_header= ac_cache=
  8494. for ac_item in $ac_header_c_list
  8495. do
  8496. if test $ac_cache; then
  8497. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8498. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8499. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8500. fi
  8501. ac_header= ac_cache=
  8502. elif test $ac_header; then
  8503. ac_cache=$ac_item
  8504. else
  8505. ac_header=$ac_item
  8506. fi
  8507. done
  8508. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8509. then :
  8510. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8511. fi
  8512. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8513. "
  8514. if test "x$ac_cv_header_dlfcn_h" = xyes
  8515. then :
  8516. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8517. fi
  8518. # Set options
  8519. enable_win32_dll=yes
  8520. case $host in
  8521. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  8522. if test -n "$ac_tool_prefix"; then
  8523. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8524. set dummy ${ac_tool_prefix}as; ac_word=$2
  8525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8526. printf %s "checking for $ac_word... " >&6; }
  8527. if test ${ac_cv_prog_AS+y}
  8528. then :
  8529. printf %s "(cached) " >&6
  8530. else case e in #(
  8531. e) if test -n "$AS"; then
  8532. ac_cv_prog_AS="$AS" # Let the user override the test.
  8533. else
  8534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8535. for as_dir in $PATH
  8536. do
  8537. IFS=$as_save_IFS
  8538. case $as_dir in #(((
  8539. '') as_dir=./ ;;
  8540. */) ;;
  8541. *) as_dir=$as_dir/ ;;
  8542. esac
  8543. for ac_exec_ext in '' $ac_executable_extensions; do
  8544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8545. ac_cv_prog_AS="${ac_tool_prefix}as"
  8546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8547. break 2
  8548. fi
  8549. done
  8550. done
  8551. IFS=$as_save_IFS
  8552. fi ;;
  8553. esac
  8554. fi
  8555. AS=$ac_cv_prog_AS
  8556. if test -n "$AS"; then
  8557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8558. printf "%s\n" "$AS" >&6; }
  8559. else
  8560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8561. printf "%s\n" "no" >&6; }
  8562. fi
  8563. fi
  8564. if test -z "$ac_cv_prog_AS"; then
  8565. ac_ct_AS=$AS
  8566. # Extract the first word of "as", so it can be a program name with args.
  8567. set dummy as; ac_word=$2
  8568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8569. printf %s "checking for $ac_word... " >&6; }
  8570. if test ${ac_cv_prog_ac_ct_AS+y}
  8571. then :
  8572. printf %s "(cached) " >&6
  8573. else case e in #(
  8574. e) if test -n "$ac_ct_AS"; then
  8575. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8576. else
  8577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8578. for as_dir in $PATH
  8579. do
  8580. IFS=$as_save_IFS
  8581. case $as_dir in #(((
  8582. '') as_dir=./ ;;
  8583. */) ;;
  8584. *) as_dir=$as_dir/ ;;
  8585. esac
  8586. for ac_exec_ext in '' $ac_executable_extensions; do
  8587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8588. ac_cv_prog_ac_ct_AS="as"
  8589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8590. break 2
  8591. fi
  8592. done
  8593. done
  8594. IFS=$as_save_IFS
  8595. fi ;;
  8596. esac
  8597. fi
  8598. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8599. if test -n "$ac_ct_AS"; then
  8600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8601. printf "%s\n" "$ac_ct_AS" >&6; }
  8602. else
  8603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8604. printf "%s\n" "no" >&6; }
  8605. fi
  8606. if test "x$ac_ct_AS" = x; then
  8607. AS="false"
  8608. else
  8609. case $cross_compiling:$ac_tool_warned in
  8610. yes:)
  8611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8612. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8613. ac_tool_warned=yes ;;
  8614. esac
  8615. AS=$ac_ct_AS
  8616. fi
  8617. else
  8618. AS="$ac_cv_prog_AS"
  8619. fi
  8620. if test -n "$ac_tool_prefix"; then
  8621. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8622. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8624. printf %s "checking for $ac_word... " >&6; }
  8625. if test ${ac_cv_prog_DLLTOOL+y}
  8626. then :
  8627. printf %s "(cached) " >&6
  8628. else case e in #(
  8629. e) if test -n "$DLLTOOL"; then
  8630. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8631. else
  8632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8633. for as_dir in $PATH
  8634. do
  8635. IFS=$as_save_IFS
  8636. case $as_dir in #(((
  8637. '') as_dir=./ ;;
  8638. */) ;;
  8639. *) as_dir=$as_dir/ ;;
  8640. esac
  8641. for ac_exec_ext in '' $ac_executable_extensions; do
  8642. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8643. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8645. break 2
  8646. fi
  8647. done
  8648. done
  8649. IFS=$as_save_IFS
  8650. fi ;;
  8651. esac
  8652. fi
  8653. DLLTOOL=$ac_cv_prog_DLLTOOL
  8654. if test -n "$DLLTOOL"; then
  8655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8656. printf "%s\n" "$DLLTOOL" >&6; }
  8657. else
  8658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8659. printf "%s\n" "no" >&6; }
  8660. fi
  8661. fi
  8662. if test -z "$ac_cv_prog_DLLTOOL"; then
  8663. ac_ct_DLLTOOL=$DLLTOOL
  8664. # Extract the first word of "dlltool", so it can be a program name with args.
  8665. set dummy dlltool; ac_word=$2
  8666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8667. printf %s "checking for $ac_word... " >&6; }
  8668. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8669. then :
  8670. printf %s "(cached) " >&6
  8671. else case e in #(
  8672. e) if test -n "$ac_ct_DLLTOOL"; then
  8673. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8674. else
  8675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8676. for as_dir in $PATH
  8677. do
  8678. IFS=$as_save_IFS
  8679. case $as_dir in #(((
  8680. '') as_dir=./ ;;
  8681. */) ;;
  8682. *) as_dir=$as_dir/ ;;
  8683. esac
  8684. for ac_exec_ext in '' $ac_executable_extensions; do
  8685. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8686. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8688. break 2
  8689. fi
  8690. done
  8691. done
  8692. IFS=$as_save_IFS
  8693. fi ;;
  8694. esac
  8695. fi
  8696. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8697. if test -n "$ac_ct_DLLTOOL"; then
  8698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8699. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8700. else
  8701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8702. printf "%s\n" "no" >&6; }
  8703. fi
  8704. if test "x$ac_ct_DLLTOOL" = x; then
  8705. DLLTOOL="false"
  8706. else
  8707. case $cross_compiling:$ac_tool_warned in
  8708. yes:)
  8709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8710. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8711. ac_tool_warned=yes ;;
  8712. esac
  8713. DLLTOOL=$ac_ct_DLLTOOL
  8714. fi
  8715. else
  8716. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8717. fi
  8718. if test -n "$ac_tool_prefix"; then
  8719. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8720. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8722. printf %s "checking for $ac_word... " >&6; }
  8723. if test ${ac_cv_prog_OBJDUMP+y}
  8724. then :
  8725. printf %s "(cached) " >&6
  8726. else case e in #(
  8727. e) if test -n "$OBJDUMP"; then
  8728. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8729. else
  8730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8731. for as_dir in $PATH
  8732. do
  8733. IFS=$as_save_IFS
  8734. case $as_dir in #(((
  8735. '') as_dir=./ ;;
  8736. */) ;;
  8737. *) as_dir=$as_dir/ ;;
  8738. esac
  8739. for ac_exec_ext in '' $ac_executable_extensions; do
  8740. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8741. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8743. break 2
  8744. fi
  8745. done
  8746. done
  8747. IFS=$as_save_IFS
  8748. fi ;;
  8749. esac
  8750. fi
  8751. OBJDUMP=$ac_cv_prog_OBJDUMP
  8752. if test -n "$OBJDUMP"; then
  8753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8754. printf "%s\n" "$OBJDUMP" >&6; }
  8755. else
  8756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8757. printf "%s\n" "no" >&6; }
  8758. fi
  8759. fi
  8760. if test -z "$ac_cv_prog_OBJDUMP"; then
  8761. ac_ct_OBJDUMP=$OBJDUMP
  8762. # Extract the first word of "objdump", so it can be a program name with args.
  8763. set dummy objdump; ac_word=$2
  8764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8765. printf %s "checking for $ac_word... " >&6; }
  8766. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8767. then :
  8768. printf %s "(cached) " >&6
  8769. else case e in #(
  8770. e) if test -n "$ac_ct_OBJDUMP"; then
  8771. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8772. else
  8773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8774. for as_dir in $PATH
  8775. do
  8776. IFS=$as_save_IFS
  8777. case $as_dir in #(((
  8778. '') as_dir=./ ;;
  8779. */) ;;
  8780. *) as_dir=$as_dir/ ;;
  8781. esac
  8782. for ac_exec_ext in '' $ac_executable_extensions; do
  8783. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8784. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8785. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8786. break 2
  8787. fi
  8788. done
  8789. done
  8790. IFS=$as_save_IFS
  8791. fi ;;
  8792. esac
  8793. fi
  8794. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8795. if test -n "$ac_ct_OBJDUMP"; then
  8796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8797. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8798. else
  8799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8800. printf "%s\n" "no" >&6; }
  8801. fi
  8802. if test "x$ac_ct_OBJDUMP" = x; then
  8803. OBJDUMP="false"
  8804. else
  8805. case $cross_compiling:$ac_tool_warned in
  8806. yes:)
  8807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8808. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8809. ac_tool_warned=yes ;;
  8810. esac
  8811. OBJDUMP=$ac_ct_OBJDUMP
  8812. fi
  8813. else
  8814. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8815. fi
  8816. ;;
  8817. esac
  8818. test -z "$AS" && AS=as
  8819. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8820. test -z "$OBJDUMP" && OBJDUMP=objdump
  8821. enable_dlopen=no
  8822. # Check whether --enable-shared was given.
  8823. if test ${enable_shared+y}
  8824. then :
  8825. enableval=$enable_shared; p=${PACKAGE-default}
  8826. case $enableval in
  8827. yes) enable_shared=yes ;;
  8828. no) enable_shared=no ;;
  8829. *)
  8830. enable_shared=no
  8831. # Look at the argument we got. We use all the common list separators.
  8832. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8833. for pkg in $enableval; do
  8834. IFS=$lt_save_ifs
  8835. if test "X$pkg" = "X$p"; then
  8836. enable_shared=yes
  8837. fi
  8838. done
  8839. IFS=$lt_save_ifs
  8840. ;;
  8841. esac
  8842. else case e in #(
  8843. e) enable_shared=yes ;;
  8844. esac
  8845. fi
  8846. # Check whether --enable-static was given.
  8847. if test ${enable_static+y}
  8848. then :
  8849. enableval=$enable_static; p=${PACKAGE-default}
  8850. case $enableval in
  8851. yes) enable_static=yes ;;
  8852. no) enable_static=no ;;
  8853. *)
  8854. enable_static=no
  8855. # Look at the argument we got. We use all the common list separators.
  8856. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8857. for pkg in $enableval; do
  8858. IFS=$lt_save_ifs
  8859. if test "X$pkg" = "X$p"; then
  8860. enable_static=yes
  8861. fi
  8862. done
  8863. IFS=$lt_save_ifs
  8864. ;;
  8865. esac
  8866. else case e in #(
  8867. e) enable_static=yes ;;
  8868. esac
  8869. fi
  8870. # Check whether --enable-pic was given.
  8871. if test ${enable_pic+y}
  8872. then :
  8873. enableval=$enable_pic; lt_p=${PACKAGE-default}
  8874. case $enableval in
  8875. yes|no) pic_mode=$enableval ;;
  8876. *)
  8877. pic_mode=default
  8878. # Look at the argument we got. We use all the common list separators.
  8879. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8880. for lt_pkg in $enableval; do
  8881. IFS=$lt_save_ifs
  8882. if test "X$lt_pkg" = "X$lt_p"; then
  8883. pic_mode=yes
  8884. fi
  8885. done
  8886. IFS=$lt_save_ifs
  8887. ;;
  8888. esac
  8889. else case e in #(
  8890. e) # Check whether --with-pic was given.
  8891. if test ${with_pic+y}
  8892. then :
  8893. withval=$with_pic; lt_p=${PACKAGE-default}
  8894. case $withval in
  8895. yes|no) pic_mode=$withval ;;
  8896. *)
  8897. pic_mode=default
  8898. # Look at the argument we got. We use all the common list separators.
  8899. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8900. for lt_pkg in $withval; do
  8901. IFS=$lt_save_ifs
  8902. if test "X$lt_pkg" = "X$lt_p"; then
  8903. pic_mode=yes
  8904. fi
  8905. done
  8906. IFS=$lt_save_ifs
  8907. ;;
  8908. esac
  8909. else case e in #(
  8910. e) pic_mode=default ;;
  8911. esac
  8912. fi
  8913. ;;
  8914. esac
  8915. fi
  8916. # Check whether --enable-fast-install was given.
  8917. if test ${enable_fast_install+y}
  8918. then :
  8919. enableval=$enable_fast_install; p=${PACKAGE-default}
  8920. case $enableval in
  8921. yes) enable_fast_install=yes ;;
  8922. no) enable_fast_install=no ;;
  8923. *)
  8924. enable_fast_install=no
  8925. # Look at the argument we got. We use all the common list separators.
  8926. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8927. for pkg in $enableval; do
  8928. IFS=$lt_save_ifs
  8929. if test "X$pkg" = "X$p"; then
  8930. enable_fast_install=yes
  8931. fi
  8932. done
  8933. IFS=$lt_save_ifs
  8934. ;;
  8935. esac
  8936. else case e in #(
  8937. e) enable_fast_install=yes ;;
  8938. esac
  8939. fi
  8940. shared_archive_member_spec=
  8941. case $host,$enable_shared in
  8942. power*-*-aix[5-9]*,yes)
  8943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8944. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8945. # Check whether --enable-aix-soname was given.
  8946. if test ${enable_aix_soname+y}
  8947. then :
  8948. enableval=$enable_aix_soname; case $enableval in
  8949. aix|svr4|both)
  8950. ;;
  8951. *)
  8952. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  8953. ;;
  8954. esac
  8955. lt_cv_with_aix_soname=$enable_aix_soname
  8956. else case e in #(
  8957. e) # Check whether --with-aix-soname was given.
  8958. if test ${with_aix_soname+y}
  8959. then :
  8960. withval=$with_aix_soname; case $withval in
  8961. aix|svr4|both)
  8962. ;;
  8963. *)
  8964. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8965. ;;
  8966. esac
  8967. lt_cv_with_aix_soname=$with_aix_soname
  8968. else case e in #(
  8969. e) if test ${lt_cv_with_aix_soname+y}
  8970. then :
  8971. printf %s "(cached) " >&6
  8972. else case e in #(
  8973. e) lt_cv_with_aix_soname=aix ;;
  8974. esac
  8975. fi
  8976. ;;
  8977. esac
  8978. fi
  8979. enable_aix_soname=$lt_cv_with_aix_soname ;;
  8980. esac
  8981. fi
  8982. with_aix_soname=$enable_aix_soname
  8983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8984. printf "%s\n" "$with_aix_soname" >&6; }
  8985. if test aix != "$with_aix_soname"; then
  8986. # For the AIX way of multilib, we name the shared archive member
  8987. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8988. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8989. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8990. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8991. if test 64 = "${OBJECT_MODE-32}"; then
  8992. shared_archive_member_spec=shr_64
  8993. else
  8994. shared_archive_member_spec=shr
  8995. fi
  8996. fi
  8997. ;;
  8998. *)
  8999. with_aix_soname=aix
  9000. ;;
  9001. esac
  9002. # This can be used to rebuild libtool when needed
  9003. LIBTOOL_DEPS=$ltmain
  9004. # Always use our own libtool.
  9005. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9006. test -z "$LN_S" && LN_S="ln -s"
  9007. if test -n "${ZSH_VERSION+set}"; then
  9008. setopt NO_GLOB_SUBST
  9009. fi
  9010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9011. printf %s "checking for objdir... " >&6; }
  9012. if test ${lt_cv_objdir+y}
  9013. then :
  9014. printf %s "(cached) " >&6
  9015. else case e in #(
  9016. e) rm -f .libs 2>/dev/null
  9017. mkdir .libs 2>/dev/null
  9018. if test -d .libs; then
  9019. lt_cv_objdir=.libs
  9020. else
  9021. # MS-DOS does not allow filenames that begin with a dot.
  9022. lt_cv_objdir=_libs
  9023. fi
  9024. rmdir .libs 2>/dev/null ;;
  9025. esac
  9026. fi
  9027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9028. printf "%s\n" "$lt_cv_objdir" >&6; }
  9029. objdir=$lt_cv_objdir
  9030. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  9031. case $host_os in
  9032. aix3*)
  9033. # AIX sometimes has problems with the GCC collect2 program. For some
  9034. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9035. # vanish in a puff of smoke.
  9036. if test set != "${COLLECT_NAMES+set}"; then
  9037. COLLECT_NAMES=
  9038. export COLLECT_NAMES
  9039. fi
  9040. ;;
  9041. esac
  9042. # Global variables:
  9043. ofile=libtool
  9044. can_build_shared=yes
  9045. # All known linkers require a '.a' archive for static linking (except MSVC and
  9046. # ICC, which need '.lib').
  9047. libext=a
  9048. with_gnu_ld=$lt_cv_prog_gnu_ld
  9049. old_CC=$CC
  9050. old_CFLAGS=$CFLAGS
  9051. # Set sane defaults for various variables
  9052. test -z "$CC" && CC=cc
  9053. test -z "$LTCC" && LTCC=$CC
  9054. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9055. test -z "$LD" && LD=ld
  9056. test -z "$ac_objext" && ac_objext=o
  9057. func_cc_basename $compiler
  9058. cc_basename=$func_cc_basename_result
  9059. # Only perform the check for file, if the check method requires it
  9060. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9061. case $deplibs_check_method in
  9062. file_magic*)
  9063. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9065. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  9066. if test ${lt_cv_path_MAGIC_CMD+y}
  9067. then :
  9068. printf %s "(cached) " >&6
  9069. else case e in #(
  9070. e) case $MAGIC_CMD in
  9071. [\\/*] | ?:[\\/]*)
  9072. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9073. ;;
  9074. *)
  9075. lt_save_MAGIC_CMD=$MAGIC_CMD
  9076. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9078. for ac_dir in $ac_dummy; do
  9079. IFS=$lt_save_ifs
  9080. test -z "$ac_dir" && ac_dir=.
  9081. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9082. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9083. if test -n "$file_magic_test_file"; then
  9084. case $deplibs_check_method in
  9085. "file_magic "*)
  9086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9087. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9089. $EGREP "$file_magic_regex" > /dev/null; then
  9090. :
  9091. else
  9092. cat <<_LT_EOF 1>&2
  9093. *** Warning: the command libtool uses to detect shared libraries,
  9094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9095. *** The result is that libtool may fail to recognize shared libraries
  9096. *** as such. This will affect the creation of libtool libraries that
  9097. *** depend on shared libraries, but programs linked with such libtool
  9098. *** libraries will work regardless of this problem. Nevertheless, you
  9099. *** may want to report the problem to your system manager and/or to
  9100. *** [email protected]
  9101. _LT_EOF
  9102. fi ;;
  9103. esac
  9104. fi
  9105. break
  9106. fi
  9107. done
  9108. IFS=$lt_save_ifs
  9109. MAGIC_CMD=$lt_save_MAGIC_CMD
  9110. ;;
  9111. esac ;;
  9112. esac
  9113. fi
  9114. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9115. if test -n "$MAGIC_CMD"; then
  9116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9117. printf "%s\n" "$MAGIC_CMD" >&6; }
  9118. else
  9119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9120. printf "%s\n" "no" >&6; }
  9121. fi
  9122. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9123. if test -n "$ac_tool_prefix"; then
  9124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9125. printf %s "checking for file... " >&6; }
  9126. if test ${lt_cv_path_MAGIC_CMD+y}
  9127. then :
  9128. printf %s "(cached) " >&6
  9129. else case e in #(
  9130. e) case $MAGIC_CMD in
  9131. [\\/*] | ?:[\\/]*)
  9132. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9133. ;;
  9134. *)
  9135. lt_save_MAGIC_CMD=$MAGIC_CMD
  9136. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9137. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9138. for ac_dir in $ac_dummy; do
  9139. IFS=$lt_save_ifs
  9140. test -z "$ac_dir" && ac_dir=.
  9141. if test -f "$ac_dir/file"; then
  9142. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9143. if test -n "$file_magic_test_file"; then
  9144. case $deplibs_check_method in
  9145. "file_magic "*)
  9146. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9147. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9148. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9149. $EGREP "$file_magic_regex" > /dev/null; then
  9150. :
  9151. else
  9152. cat <<_LT_EOF 1>&2
  9153. *** Warning: the command libtool uses to detect shared libraries,
  9154. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9155. *** The result is that libtool may fail to recognize shared libraries
  9156. *** as such. This will affect the creation of libtool libraries that
  9157. *** depend on shared libraries, but programs linked with such libtool
  9158. *** libraries will work regardless of this problem. Nevertheless, you
  9159. *** may want to report the problem to your system manager and/or to
  9160. *** [email protected]
  9161. _LT_EOF
  9162. fi ;;
  9163. esac
  9164. fi
  9165. break
  9166. fi
  9167. done
  9168. IFS=$lt_save_ifs
  9169. MAGIC_CMD=$lt_save_MAGIC_CMD
  9170. ;;
  9171. esac ;;
  9172. esac
  9173. fi
  9174. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9175. if test -n "$MAGIC_CMD"; then
  9176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9177. printf "%s\n" "$MAGIC_CMD" >&6; }
  9178. else
  9179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9180. printf "%s\n" "no" >&6; }
  9181. fi
  9182. else
  9183. MAGIC_CMD=:
  9184. fi
  9185. fi
  9186. fi
  9187. ;;
  9188. esac
  9189. # Use C for the default configuration in the libtool script
  9190. lt_save_CC=$CC
  9191. ac_ext=c
  9192. ac_cpp='$CPP $CPPFLAGS'
  9193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9196. # Source file extension for C test sources.
  9197. ac_ext=c
  9198. # Object file extension for compiled C test sources.
  9199. objext=o
  9200. objext=$objext
  9201. # Code to be used in simple compile tests
  9202. lt_simple_compile_test_code="int some_variable = 0;"
  9203. # Code to be used in simple link tests
  9204. lt_simple_link_test_code='int main(void){return(0);}'
  9205. # If no C compiler was specified, use CC.
  9206. LTCC=${LTCC-"$CC"}
  9207. # If no C compiler flags were specified, use CFLAGS.
  9208. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9209. # Allow CC to be a program name with arguments.
  9210. compiler=$CC
  9211. # Save the default compiler, since it gets overwritten when the other
  9212. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9213. compiler_DEFAULT=$CC
  9214. # save warnings/boilerplate of simple test code
  9215. ac_outfile=conftest.$ac_objext
  9216. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9217. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9218. _lt_compiler_boilerplate=`cat conftest.err`
  9219. $RM conftest*
  9220. ac_outfile=conftest.$ac_objext
  9221. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9222. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9223. _lt_linker_boilerplate=`cat conftest.err`
  9224. $RM -r conftest*
  9225. ## CAVEAT EMPTOR:
  9226. ## There is no encapsulation within the following macros, do not change
  9227. ## the running order or otherwise move them around unless you know exactly
  9228. ## what you are doing...
  9229. if test -n "$compiler"; then
  9230. lt_prog_compiler_no_builtin_flag=
  9231. if test yes = "$GCC"; then
  9232. case $cc_basename in
  9233. nvcc*)
  9234. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9235. *)
  9236. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9237. esac
  9238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9239. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9240. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  9241. then :
  9242. printf %s "(cached) " >&6
  9243. else case e in #(
  9244. e) lt_cv_prog_compiler_rtti_exceptions=no
  9245. ac_outfile=conftest.$ac_objext
  9246. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9247. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9248. # Insert the option either (1) after the last *FLAGS variable, or
  9249. # (2) before a word containing "conftest.", or (3) at the end.
  9250. # Note that $ac_compile itself does not contain backslashes and begins
  9251. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9252. # The option is referenced via a variable to avoid confusing sed.
  9253. lt_compile=`echo "$ac_compile" | $SED \
  9254. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9255. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9256. -e 's:$: $lt_compiler_flag:'`
  9257. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9258. (eval "$lt_compile" 2>conftest.err)
  9259. ac_status=$?
  9260. cat conftest.err >&5
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. if (exit $ac_status) && test -s "$ac_outfile"; then
  9263. # The compiler can only warn and ignore the option if not recognized
  9264. # So say no if there are warnings other than the usual output.
  9265. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9267. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9268. lt_cv_prog_compiler_rtti_exceptions=yes
  9269. fi
  9270. fi
  9271. $RM conftest*
  9272. ;;
  9273. esac
  9274. fi
  9275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9276. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9277. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9278. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9279. else
  9280. :
  9281. fi
  9282. fi
  9283. lt_prog_compiler_wl=
  9284. lt_prog_compiler_pic=
  9285. lt_prog_compiler_static=
  9286. if test yes = "$GCC"; then
  9287. lt_prog_compiler_wl='-Wl,'
  9288. lt_prog_compiler_static='-static'
  9289. case $host_os in
  9290. aix*)
  9291. # All AIX code is PIC.
  9292. if test ia64 = "$host_cpu"; then
  9293. # AIX 5 now supports IA64 processor
  9294. lt_prog_compiler_static='-Bstatic'
  9295. fi
  9296. lt_prog_compiler_pic='-fPIC'
  9297. ;;
  9298. amigaos*)
  9299. case $host_cpu in
  9300. powerpc)
  9301. # see comment about AmigaOS4 .so support
  9302. lt_prog_compiler_pic='-fPIC'
  9303. ;;
  9304. m68k)
  9305. # FIXME: we need at least 68020 code to build shared libraries, but
  9306. # adding the '-m68020' flag to GCC prevents building anything better,
  9307. # like '-m68040'.
  9308. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9309. ;;
  9310. esac
  9311. ;;
  9312. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9313. # PIC is the default for these OSes.
  9314. ;;
  9315. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  9316. # This hack is so that the source file can tell whether it is being
  9317. # built for inclusion in a dll (and should export symbols for example).
  9318. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9319. # (--disable-auto-import) libraries
  9320. lt_prog_compiler_pic='-DDLL_EXPORT'
  9321. case $host_os in
  9322. os2*)
  9323. lt_prog_compiler_static='$wl-static'
  9324. ;;
  9325. esac
  9326. ;;
  9327. darwin* | rhapsody*)
  9328. # PIC is the default on this platform
  9329. # Common symbols not allowed in MH_DYLIB files
  9330. lt_prog_compiler_pic='-fno-common'
  9331. ;;
  9332. haiku*)
  9333. # PIC is the default for Haiku.
  9334. # The "-static" flag exists, but is broken.
  9335. lt_prog_compiler_static=
  9336. ;;
  9337. hpux*)
  9338. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9339. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9340. # sets the default TLS model and affects inlining.
  9341. case $host_cpu in
  9342. hppa*64*)
  9343. # +Z the default
  9344. ;;
  9345. *)
  9346. lt_prog_compiler_pic='-fPIC'
  9347. ;;
  9348. esac
  9349. ;;
  9350. interix[3-9]*)
  9351. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9352. # Instead, we relocate shared libraries at runtime.
  9353. ;;
  9354. msdosdjgpp*)
  9355. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9356. # on systems that don't support them.
  9357. lt_prog_compiler_can_build_shared=no
  9358. enable_shared=no
  9359. ;;
  9360. *nto* | *qnx*)
  9361. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9362. # it will coredump.
  9363. lt_prog_compiler_pic='-fPIC -shared'
  9364. ;;
  9365. sysv4*MP*)
  9366. if test -d /usr/nec; then
  9367. lt_prog_compiler_pic=-Kconform_pic
  9368. fi
  9369. ;;
  9370. *)
  9371. lt_prog_compiler_pic='-fPIC'
  9372. ;;
  9373. esac
  9374. case $cc_basename in
  9375. nvcc*) # Cuda Compiler Driver 2.2
  9376. lt_prog_compiler_wl='-Xlinker '
  9377. if test -n "$lt_prog_compiler_pic"; then
  9378. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9379. fi
  9380. ;;
  9381. esac
  9382. else
  9383. # PORTME Check for flag to pass linker flags through the system compiler.
  9384. case $host_os in
  9385. aix*)
  9386. lt_prog_compiler_wl='-Wl,'
  9387. if test ia64 = "$host_cpu"; then
  9388. # AIX 5 now supports IA64 processor
  9389. lt_prog_compiler_static='-Bstatic'
  9390. else
  9391. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9392. fi
  9393. ;;
  9394. darwin* | rhapsody*)
  9395. # PIC is the default on this platform
  9396. # Common symbols not allowed in MH_DYLIB files
  9397. lt_prog_compiler_pic='-fno-common'
  9398. case $cc_basename in
  9399. nagfor*)
  9400. # NAG Fortran compiler
  9401. lt_prog_compiler_wl='-Wl,-Wl,,'
  9402. lt_prog_compiler_pic='-PIC'
  9403. lt_prog_compiler_static='-Bstatic'
  9404. ;;
  9405. esac
  9406. ;;
  9407. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  9408. # This hack is so that the source file can tell whether it is being
  9409. # built for inclusion in a dll (and should export symbols for example).
  9410. lt_prog_compiler_pic='-DDLL_EXPORT'
  9411. case $host_os in
  9412. os2*)
  9413. lt_prog_compiler_static='$wl-static'
  9414. ;;
  9415. esac
  9416. ;;
  9417. hpux9* | hpux10* | hpux11*)
  9418. lt_prog_compiler_wl='-Wl,'
  9419. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9420. # not for PA HP-UX.
  9421. case $host_cpu in
  9422. hppa*64*|ia64*)
  9423. # +Z the default
  9424. ;;
  9425. *)
  9426. lt_prog_compiler_pic='+Z'
  9427. ;;
  9428. esac
  9429. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9430. lt_prog_compiler_static='$wl-a ${wl}archive'
  9431. ;;
  9432. irix5* | irix6* | nonstopux*)
  9433. lt_prog_compiler_wl='-Wl,'
  9434. # PIC (with -KPIC) is the default.
  9435. lt_prog_compiler_static='-non_shared'
  9436. ;;
  9437. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9438. case $cc_basename in
  9439. # old Intel for x86_64, which still supported -KPIC.
  9440. ecc*)
  9441. lt_prog_compiler_wl='-Wl,'
  9442. lt_prog_compiler_pic='-KPIC'
  9443. lt_prog_compiler_static='-static'
  9444. ;;
  9445. *flang* | ftn | f18* | f95*)
  9446. # Flang compiler.
  9447. lt_prog_compiler_wl='-Wl,'
  9448. lt_prog_compiler_pic='-fPIC'
  9449. lt_prog_compiler_static='-static'
  9450. ;;
  9451. # icc used to be incompatible with GCC.
  9452. # ICC 10 doesn't accept -KPIC any more.
  9453. icc* | ifort*)
  9454. lt_prog_compiler_wl='-Wl,'
  9455. lt_prog_compiler_pic='-fPIC'
  9456. lt_prog_compiler_static='-static'
  9457. ;;
  9458. # Lahey Fortran 8.1.
  9459. lf95*)
  9460. lt_prog_compiler_wl='-Wl,'
  9461. lt_prog_compiler_pic='--shared'
  9462. lt_prog_compiler_static='--static'
  9463. ;;
  9464. nagfor*)
  9465. # NAG Fortran compiler
  9466. lt_prog_compiler_wl='-Wl,-Wl,,'
  9467. lt_prog_compiler_pic='-PIC'
  9468. lt_prog_compiler_static='-Bstatic'
  9469. ;;
  9470. tcc*)
  9471. # Fabrice Bellard et al's Tiny C Compiler
  9472. lt_prog_compiler_wl='-Wl,'
  9473. lt_prog_compiler_pic='-fPIC'
  9474. lt_prog_compiler_static='-static'
  9475. ;;
  9476. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9477. # Portland Group compilers (*not* the Pentium gcc compiler,
  9478. # which looks to be a dead project)
  9479. lt_prog_compiler_wl='-Wl,'
  9480. lt_prog_compiler_pic='-fpic'
  9481. lt_prog_compiler_static='-Bstatic'
  9482. ;;
  9483. ccc*)
  9484. lt_prog_compiler_wl='-Wl,'
  9485. # All Alpha code is PIC.
  9486. lt_prog_compiler_static='-non_shared'
  9487. ;;
  9488. xl* | bgxl* | bgf* | mpixl*)
  9489. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9490. lt_prog_compiler_wl='-Wl,'
  9491. lt_prog_compiler_pic='-qpic'
  9492. lt_prog_compiler_static='-qstaticlink'
  9493. ;;
  9494. *)
  9495. case `$CC -V 2>&1 | $SED 5q` in
  9496. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9497. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9498. lt_prog_compiler_pic='-KPIC'
  9499. lt_prog_compiler_static='-Bstatic'
  9500. lt_prog_compiler_wl=''
  9501. ;;
  9502. *Sun\ F* | *Sun*Fortran*)
  9503. lt_prog_compiler_pic='-KPIC'
  9504. lt_prog_compiler_static='-Bstatic'
  9505. lt_prog_compiler_wl='-Qoption ld '
  9506. ;;
  9507. *Sun\ C*)
  9508. # Sun C 5.9
  9509. lt_prog_compiler_pic='-KPIC'
  9510. lt_prog_compiler_static='-Bstatic'
  9511. lt_prog_compiler_wl='-Wl,'
  9512. ;;
  9513. *Intel*\ [CF]*Compiler*)
  9514. lt_prog_compiler_wl='-Wl,'
  9515. lt_prog_compiler_pic='-fPIC'
  9516. lt_prog_compiler_static='-static'
  9517. ;;
  9518. *Portland\ Group*)
  9519. lt_prog_compiler_wl='-Wl,'
  9520. lt_prog_compiler_pic='-fpic'
  9521. lt_prog_compiler_static='-Bstatic'
  9522. ;;
  9523. esac
  9524. ;;
  9525. esac
  9526. ;;
  9527. newsos6)
  9528. lt_prog_compiler_pic='-KPIC'
  9529. lt_prog_compiler_static='-Bstatic'
  9530. ;;
  9531. *-mlibc)
  9532. lt_prog_compiler_wl='-Wl,'
  9533. lt_prog_compiler_pic='-fPIC'
  9534. lt_prog_compiler_static='-static'
  9535. ;;
  9536. *nto* | *qnx*)
  9537. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9538. # it will coredump.
  9539. lt_prog_compiler_pic='-fPIC -shared'
  9540. ;;
  9541. osf3* | osf4* | osf5*)
  9542. lt_prog_compiler_wl='-Wl,'
  9543. # All OSF/1 code is PIC.
  9544. lt_prog_compiler_static='-non_shared'
  9545. ;;
  9546. rdos*)
  9547. lt_prog_compiler_static='-non_shared'
  9548. ;;
  9549. serenity*)
  9550. ;;
  9551. solaris*)
  9552. lt_prog_compiler_pic='-KPIC'
  9553. lt_prog_compiler_static='-Bstatic'
  9554. case $cc_basename in
  9555. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9556. lt_prog_compiler_wl='-Qoption ld ';;
  9557. *)
  9558. lt_prog_compiler_wl='-Wl,';;
  9559. esac
  9560. ;;
  9561. sunos4*)
  9562. lt_prog_compiler_wl='-Qoption ld '
  9563. lt_prog_compiler_pic='-PIC'
  9564. lt_prog_compiler_static='-Bstatic'
  9565. ;;
  9566. sysv4 | sysv4.2uw2* | sysv4.3*)
  9567. lt_prog_compiler_wl='-Wl,'
  9568. lt_prog_compiler_pic='-KPIC'
  9569. lt_prog_compiler_static='-Bstatic'
  9570. ;;
  9571. sysv4*MP*)
  9572. if test -d /usr/nec; then
  9573. lt_prog_compiler_pic='-Kconform_pic'
  9574. lt_prog_compiler_static='-Bstatic'
  9575. fi
  9576. ;;
  9577. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9578. lt_prog_compiler_wl='-Wl,'
  9579. lt_prog_compiler_pic='-KPIC'
  9580. lt_prog_compiler_static='-Bstatic'
  9581. ;;
  9582. unicos*)
  9583. lt_prog_compiler_wl='-Wl,'
  9584. lt_prog_compiler_can_build_shared=no
  9585. ;;
  9586. uts4*)
  9587. lt_prog_compiler_pic='-pic'
  9588. lt_prog_compiler_static='-Bstatic'
  9589. ;;
  9590. *)
  9591. lt_prog_compiler_can_build_shared=no
  9592. ;;
  9593. esac
  9594. fi
  9595. case $host_os in
  9596. # For platforms that do not support PIC, -DPIC is meaningless:
  9597. *djgpp*)
  9598. lt_prog_compiler_pic=
  9599. ;;
  9600. *)
  9601. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9602. ;;
  9603. esac
  9604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9605. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9606. if test ${lt_cv_prog_compiler_pic+y}
  9607. then :
  9608. printf %s "(cached) " >&6
  9609. else case e in #(
  9610. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  9611. esac
  9612. fi
  9613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9614. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9615. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9616. #
  9617. # Check to make sure the PIC flag actually works.
  9618. #
  9619. if test -n "$lt_prog_compiler_pic"; then
  9620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9621. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9622. if test ${lt_cv_prog_compiler_pic_works+y}
  9623. then :
  9624. printf %s "(cached) " >&6
  9625. else case e in #(
  9626. e) lt_cv_prog_compiler_pic_works=no
  9627. ac_outfile=conftest.$ac_objext
  9628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9629. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9630. # Insert the option either (1) after the last *FLAGS variable, or
  9631. # (2) before a word containing "conftest.", or (3) at the end.
  9632. # Note that $ac_compile itself does not contain backslashes and begins
  9633. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9634. # The option is referenced via a variable to avoid confusing sed.
  9635. lt_compile=`echo "$ac_compile" | $SED \
  9636. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9637. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9638. -e 's:$: $lt_compiler_flag:'`
  9639. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9640. (eval "$lt_compile" 2>conftest.err)
  9641. ac_status=$?
  9642. cat conftest.err >&5
  9643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9644. if (exit $ac_status) && test -s "$ac_outfile"; then
  9645. # The compiler can only warn and ignore the option if not recognized
  9646. # So say no if there are warnings other than the usual output.
  9647. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9648. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9649. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9650. lt_cv_prog_compiler_pic_works=yes
  9651. fi
  9652. fi
  9653. $RM conftest*
  9654. ;;
  9655. esac
  9656. fi
  9657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9658. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9659. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9660. case $lt_prog_compiler_pic in
  9661. "" | " "*) ;;
  9662. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9663. esac
  9664. else
  9665. lt_prog_compiler_pic=
  9666. lt_prog_compiler_can_build_shared=no
  9667. fi
  9668. fi
  9669. #
  9670. # Check to make sure the static flag actually works.
  9671. #
  9672. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9674. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9675. if test ${lt_cv_prog_compiler_static_works+y}
  9676. then :
  9677. printf %s "(cached) " >&6
  9678. else case e in #(
  9679. e) lt_cv_prog_compiler_static_works=no
  9680. save_LDFLAGS=$LDFLAGS
  9681. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9682. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9683. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9684. # The linker can only warn and ignore the option if not recognized
  9685. # So say no if there are warnings
  9686. if test -s conftest.err; then
  9687. # Append any errors to the config.log.
  9688. cat conftest.err 1>&5
  9689. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9690. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9691. if diff conftest.exp conftest.er2 >/dev/null; then
  9692. lt_cv_prog_compiler_static_works=yes
  9693. fi
  9694. else
  9695. lt_cv_prog_compiler_static_works=yes
  9696. fi
  9697. fi
  9698. $RM -r conftest*
  9699. LDFLAGS=$save_LDFLAGS
  9700. ;;
  9701. esac
  9702. fi
  9703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9704. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9705. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9706. :
  9707. else
  9708. lt_prog_compiler_static=
  9709. fi
  9710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9711. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9712. if test ${lt_cv_prog_compiler_c_o+y}
  9713. then :
  9714. printf %s "(cached) " >&6
  9715. else case e in #(
  9716. e) lt_cv_prog_compiler_c_o=no
  9717. $RM -r conftest 2>/dev/null
  9718. mkdir conftest
  9719. cd conftest
  9720. mkdir out
  9721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9722. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9723. # Insert the option either (1) after the last *FLAGS variable, or
  9724. # (2) before a word containing "conftest.", or (3) at the end.
  9725. # Note that $ac_compile itself does not contain backslashes and begins
  9726. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9727. lt_compile=`echo "$ac_compile" | $SED \
  9728. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9729. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9730. -e 's:$: $lt_compiler_flag:'`
  9731. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9732. (eval "$lt_compile" 2>out/conftest.err)
  9733. ac_status=$?
  9734. cat out/conftest.err >&5
  9735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9736. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9737. then
  9738. # The compiler can only warn and ignore the option if not recognized
  9739. # So say no if there are warnings
  9740. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9741. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9742. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9743. lt_cv_prog_compiler_c_o=yes
  9744. fi
  9745. fi
  9746. chmod u+w . 2>&5
  9747. $RM conftest*
  9748. # SGI C++ compiler will create directory out/ii_files/ for
  9749. # template instantiation
  9750. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9751. $RM out/* && rmdir out
  9752. cd ..
  9753. $RM -r conftest
  9754. $RM conftest*
  9755. ;;
  9756. esac
  9757. fi
  9758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9759. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9761. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9762. if test ${lt_cv_prog_compiler_c_o+y}
  9763. then :
  9764. printf %s "(cached) " >&6
  9765. else case e in #(
  9766. e) lt_cv_prog_compiler_c_o=no
  9767. $RM -r conftest 2>/dev/null
  9768. mkdir conftest
  9769. cd conftest
  9770. mkdir out
  9771. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9772. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9773. # Insert the option either (1) after the last *FLAGS variable, or
  9774. # (2) before a word containing "conftest.", or (3) at the end.
  9775. # Note that $ac_compile itself does not contain backslashes and begins
  9776. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9777. lt_compile=`echo "$ac_compile" | $SED \
  9778. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9779. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9780. -e 's:$: $lt_compiler_flag:'`
  9781. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9782. (eval "$lt_compile" 2>out/conftest.err)
  9783. ac_status=$?
  9784. cat out/conftest.err >&5
  9785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9786. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9787. then
  9788. # The compiler can only warn and ignore the option if not recognized
  9789. # So say no if there are warnings
  9790. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9791. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9792. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9793. lt_cv_prog_compiler_c_o=yes
  9794. fi
  9795. fi
  9796. chmod u+w . 2>&5
  9797. $RM conftest*
  9798. # SGI C++ compiler will create directory out/ii_files/ for
  9799. # template instantiation
  9800. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9801. $RM out/* && rmdir out
  9802. cd ..
  9803. $RM -r conftest
  9804. $RM conftest*
  9805. ;;
  9806. esac
  9807. fi
  9808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9809. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9810. hard_links=nottested
  9811. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9812. # do not overwrite the value of need_locks provided by the user
  9813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9814. printf %s "checking if we can lock with hard links... " >&6; }
  9815. hard_links=yes
  9816. $RM conftest*
  9817. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9818. touch conftest.a
  9819. ln conftest.a conftest.b 2>&5 || hard_links=no
  9820. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9822. printf "%s\n" "$hard_links" >&6; }
  9823. if test no = "$hard_links"; then
  9824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9825. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9826. need_locks=warn
  9827. fi
  9828. else
  9829. need_locks=no
  9830. fi
  9831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9832. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9833. runpath_var=
  9834. allow_undefined_flag=
  9835. always_export_symbols=no
  9836. archive_cmds=
  9837. archive_expsym_cmds=
  9838. compiler_needs_object=no
  9839. enable_shared_with_static_runtimes=no
  9840. export_dynamic_flag_spec=
  9841. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9842. hardcode_automatic=no
  9843. hardcode_direct=no
  9844. hardcode_direct_absolute=no
  9845. hardcode_libdir_flag_spec=
  9846. hardcode_libdir_separator=
  9847. hardcode_minus_L=no
  9848. hardcode_shlibpath_var=unsupported
  9849. inherit_rpath=no
  9850. link_all_deplibs=unknown
  9851. module_cmds=
  9852. module_expsym_cmds=
  9853. old_archive_from_new_cmds=
  9854. old_archive_from_expsyms_cmds=
  9855. thread_safe_flag_spec=
  9856. whole_archive_flag_spec=
  9857. # include_expsyms should be a list of space-separated symbols to be *always*
  9858. # included in the symbol list
  9859. include_expsyms=
  9860. # exclude_expsyms can be an extended regexp of symbols to exclude
  9861. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9862. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9863. # as well as any symbol that contains 'd'.
  9864. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9865. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9866. # platforms (ab)use it in PIC code, but their linkers get confused if
  9867. # the symbol is explicitly referenced. Since portable code cannot
  9868. # rely on this symbol name, it's probably fine to never include it in
  9869. # preloaded symbol tables.
  9870. # Exclude shared library initialization/finalization symbols.
  9871. extract_expsyms_cmds=
  9872. case $host_os in
  9873. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9874. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9875. # When not using gcc, we currently assume that we are using
  9876. # Microsoft Visual C++ or Intel C++ Compiler.
  9877. if test yes != "$GCC"; then
  9878. with_gnu_ld=no
  9879. fi
  9880. ;;
  9881. interix*)
  9882. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9883. with_gnu_ld=yes
  9884. ;;
  9885. esac
  9886. ld_shlibs=yes
  9887. # On some targets, GNU ld is compatible enough with the native linker
  9888. # that we're better off using the native interface for both.
  9889. lt_use_gnu_ld_interface=no
  9890. if test yes = "$with_gnu_ld"; then
  9891. case $host_os in
  9892. aix*)
  9893. # The AIX port of GNU ld has always aspired to compatibility
  9894. # with the native linker. However, as the warning in the GNU ld
  9895. # block says, versions before 2.19.5* couldn't really create working
  9896. # shared libraries, regardless of the interface used.
  9897. case `$LD -v 2>&1` in
  9898. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9899. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9900. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9901. *)
  9902. lt_use_gnu_ld_interface=yes
  9903. ;;
  9904. esac
  9905. ;;
  9906. *)
  9907. lt_use_gnu_ld_interface=yes
  9908. ;;
  9909. esac
  9910. fi
  9911. if test yes = "$lt_use_gnu_ld_interface"; then
  9912. # If archive_cmds runs LD, not CC, wlarc should be empty
  9913. wlarc='$wl'
  9914. # Set some defaults for GNU ld with shared library support. These
  9915. # are reset later if shared libraries are not supported. Putting them
  9916. # here allows them to be overridden if necessary.
  9917. runpath_var=LD_RUN_PATH
  9918. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9919. export_dynamic_flag_spec='$wl--export-dynamic'
  9920. # ancient GNU ld didn't support --whole-archive et. al.
  9921. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9922. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9923. else
  9924. whole_archive_flag_spec=
  9925. fi
  9926. supports_anon_versioning=no
  9927. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9928. *GNU\ gold*) supports_anon_versioning=yes ;;
  9929. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9930. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9931. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9932. *\ 2.11.*) ;; # other 2.11 versions
  9933. *) supports_anon_versioning=yes ;;
  9934. esac
  9935. # See if GNU ld supports shared libraries.
  9936. case $host_os in
  9937. aix[3-9]*)
  9938. # On AIX/PPC, the GNU linker is very broken
  9939. if test ia64 != "$host_cpu"; then
  9940. ld_shlibs=no
  9941. cat <<_LT_EOF 1>&2
  9942. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9943. *** to be unable to reliably create shared libraries on AIX.
  9944. *** Therefore, libtool is disabling shared libraries support. If you
  9945. *** really care for shared libraries, you may want to install binutils
  9946. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9947. *** You will then need to restart the configuration process.
  9948. _LT_EOF
  9949. fi
  9950. ;;
  9951. amigaos*)
  9952. case $host_cpu in
  9953. powerpc)
  9954. # see comment about AmigaOS4 .so support
  9955. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9956. archive_expsym_cmds=''
  9957. ;;
  9958. m68k)
  9959. 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)'
  9960. hardcode_libdir_flag_spec='-L$libdir'
  9961. hardcode_minus_L=yes
  9962. ;;
  9963. esac
  9964. ;;
  9965. beos*)
  9966. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9967. allow_undefined_flag=unsupported
  9968. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9969. # support --undefined. This deserves some investigation. FIXME
  9970. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9971. else
  9972. ld_shlibs=no
  9973. fi
  9974. ;;
  9975. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9976. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9977. # as there is no search path for DLLs.
  9978. hardcode_libdir_flag_spec='-L$libdir'
  9979. export_dynamic_flag_spec='$wl--export-all-symbols'
  9980. allow_undefined_flag=unsupported
  9981. always_export_symbols=no
  9982. enable_shared_with_static_runtimes=yes
  9983. 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'
  9984. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9985. file_list_spec='@'
  9986. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9987. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9988. # If the export-symbols file already is a .def file, use it as
  9989. # is; otherwise, prepend EXPORTS...
  9990. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9991. cp $export_symbols $output_objdir/$soname.def;
  9992. else
  9993. echo EXPORTS > $output_objdir/$soname.def;
  9994. cat $export_symbols >> $output_objdir/$soname.def;
  9995. fi~
  9996. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9997. else
  9998. ld_shlibs=no
  9999. fi
  10000. ;;
  10001. haiku*)
  10002. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10003. link_all_deplibs=no
  10004. ;;
  10005. os2*)
  10006. hardcode_libdir_flag_spec='-L$libdir'
  10007. hardcode_minus_L=yes
  10008. allow_undefined_flag=unsupported
  10009. shrext_cmds=.dll
  10010. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10011. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10012. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10013. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10014. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10015. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10016. emximp -o $lib $output_objdir/$libname.def'
  10017. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10021. prefix_cmds="$SED"~
  10022. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10023. prefix_cmds="$prefix_cmds -e 1d";
  10024. fi~
  10025. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10026. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10027. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10028. emximp -o $lib $output_objdir/$libname.def'
  10029. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10030. enable_shared_with_static_runtimes=yes
  10031. file_list_spec='@'
  10032. ;;
  10033. interix[3-9]*)
  10034. hardcode_direct=no
  10035. hardcode_shlibpath_var=no
  10036. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10037. export_dynamic_flag_spec='$wl-E'
  10038. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10039. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10040. # default) and relocated if they conflict, which is a slow very memory
  10041. # consuming and fragmenting process. To avoid this, we pick a random,
  10042. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10043. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10044. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10045. 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'
  10046. ;;
  10047. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10048. tmp_diet=no
  10049. if test linux-dietlibc = "$host_os"; then
  10050. case $cc_basename in
  10051. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10052. esac
  10053. fi
  10054. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10055. && test no = "$tmp_diet"
  10056. then
  10057. tmp_addflag=' $pic_flag'
  10058. tmp_sharedflag='-shared'
  10059. case $cc_basename,$host_cpu in
  10060. pgcc*) # Portland Group C compiler
  10061. 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'
  10062. tmp_addflag=' $pic_flag'
  10063. ;;
  10064. pgf77* | pgf90* | pgf95* | pgfortran*)
  10065. # Portland Group f77 and f90 compilers
  10066. 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'
  10067. tmp_addflag=' $pic_flag -Mnomain' ;;
  10068. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10069. tmp_addflag=' -i_dynamic' ;;
  10070. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10071. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10072. ifc* | ifort*) # Intel Fortran compiler
  10073. tmp_addflag=' -nofor_main' ;;
  10074. lf95*) # Lahey Fortran 8.1
  10075. whole_archive_flag_spec=
  10076. tmp_sharedflag='--shared' ;;
  10077. nagfor*) # NAGFOR 5.3
  10078. tmp_sharedflag='-Wl,-shared' ;;
  10079. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10080. tmp_sharedflag='-qmkshrobj'
  10081. tmp_addflag= ;;
  10082. nvcc*) # Cuda Compiler Driver 2.2
  10083. 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'
  10084. compiler_needs_object=yes
  10085. ;;
  10086. esac
  10087. case `$CC -V 2>&1 | $SED 5q` in
  10088. *Sun\ C*) # Sun C 5.9
  10089. 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'
  10090. compiler_needs_object=yes
  10091. tmp_sharedflag='-G' ;;
  10092. *Sun\ F*) # Sun Fortran 8.3
  10093. tmp_sharedflag='-G' ;;
  10094. esac
  10095. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10096. if test yes = "$supports_anon_versioning"; then
  10097. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10098. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10099. echo "local: *; };" >> $output_objdir/$libname.ver~
  10100. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10101. fi
  10102. case $cc_basename in
  10103. tcc*)
  10104. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10105. export_dynamic_flag_spec='-rdynamic'
  10106. ;;
  10107. xlf* | bgf* | bgxlf* | mpixlf*)
  10108. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10109. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10110. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10111. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10112. if test yes = "$supports_anon_versioning"; then
  10113. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10114. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10115. echo "local: *; };" >> $output_objdir/$libname.ver~
  10116. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10117. fi
  10118. ;;
  10119. esac
  10120. else
  10121. ld_shlibs=no
  10122. fi
  10123. ;;
  10124. *-mlibc)
  10125. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10126. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10127. ;;
  10128. netbsd* | netbsdelf*-gnu)
  10129. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10130. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10131. wlarc=
  10132. else
  10133. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10134. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10135. fi
  10136. ;;
  10137. solaris*)
  10138. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10139. ld_shlibs=no
  10140. cat <<_LT_EOF 1>&2
  10141. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10142. *** create shared libraries on Solaris systems. Therefore, libtool
  10143. *** is disabling shared libraries support. We urge you to upgrade GNU
  10144. *** binutils to release 2.9.1 or newer. Another option is to modify
  10145. *** your PATH or compiler configuration so that the native linker is
  10146. *** used, and then restart.
  10147. _LT_EOF
  10148. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10149. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10150. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10151. else
  10152. ld_shlibs=no
  10153. fi
  10154. ;;
  10155. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10156. case `$LD -v 2>&1` in
  10157. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10158. ld_shlibs=no
  10159. cat <<_LT_EOF 1>&2
  10160. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10161. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10162. *** is disabling shared libraries support. We urge you to upgrade GNU
  10163. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10164. *** your PATH or compiler configuration so that the native linker is
  10165. *** used, and then restart.
  10166. _LT_EOF
  10167. ;;
  10168. *)
  10169. # For security reasons, it is highly recommended that you always
  10170. # use absolute paths for naming shared libraries, and exclude the
  10171. # DT_RUNPATH tag from executables and libraries. But doing so
  10172. # requires that you compile everything twice, which is a pain.
  10173. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10174. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10175. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10176. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10177. else
  10178. ld_shlibs=no
  10179. fi
  10180. ;;
  10181. esac
  10182. ;;
  10183. sunos4*)
  10184. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10185. wlarc=
  10186. hardcode_direct=yes
  10187. hardcode_shlibpath_var=no
  10188. ;;
  10189. *)
  10190. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10191. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10192. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10193. else
  10194. ld_shlibs=no
  10195. fi
  10196. ;;
  10197. esac
  10198. if test no = "$ld_shlibs"; then
  10199. runpath_var=
  10200. hardcode_libdir_flag_spec=
  10201. export_dynamic_flag_spec=
  10202. whole_archive_flag_spec=
  10203. fi
  10204. else
  10205. # PORTME fill in a description of your system's linker (not GNU ld)
  10206. case $host_os in
  10207. aix3*)
  10208. allow_undefined_flag=unsupported
  10209. always_export_symbols=yes
  10210. 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'
  10211. # Note: this linker hardcodes the directories in LIBPATH if there
  10212. # are no directories specified by -L.
  10213. hardcode_minus_L=yes
  10214. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10215. # Neither direct hardcoding nor static linking is supported with a
  10216. # broken collect2.
  10217. hardcode_direct=unsupported
  10218. fi
  10219. ;;
  10220. aix[4-9]*)
  10221. if test ia64 = "$host_cpu"; then
  10222. # On IA64, the linker does run time linking by default, so we don't
  10223. # have to do anything special.
  10224. aix_use_runtimelinking=no
  10225. exp_sym_flag='-Bexport'
  10226. no_entry_flag=
  10227. else
  10228. # If we're using GNU nm, then we don't want the "-C" option.
  10229. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10230. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10231. # weak defined symbols like other global defined symbols, whereas
  10232. # GNU nm marks them as "W".
  10233. # While the 'weak' keyword is ignored in the Export File, we need
  10234. # it in the Import File for the 'aix-soname' feature, so we have
  10235. # to replace the "-B" option with "-P" for AIX nm.
  10236. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10237. 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'
  10238. else
  10239. 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'
  10240. fi
  10241. aix_use_runtimelinking=no
  10242. # Test if we are trying to use run time linking or normal
  10243. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10244. # have runtime linking enabled, and use it for executables.
  10245. # For shared libraries, we enable/disable runtime linking
  10246. # depending on the kind of the shared library created -
  10247. # when "with_aix_soname,aix_use_runtimelinking" is:
  10248. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10249. # "aix,yes" lib.so shared, rtl:yes, for executables
  10250. # lib.a static archive
  10251. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10252. # lib.a(lib.so.V) shared, rtl:no, for executables
  10253. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10254. # lib.a(lib.so.V) shared, rtl:no
  10255. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10256. # lib.a static archive
  10257. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10258. for ld_flag in $LDFLAGS; do
  10259. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10260. aix_use_runtimelinking=yes
  10261. break
  10262. fi
  10263. done
  10264. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10265. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10266. # so we don't have lib.a shared libs to link our executables.
  10267. # We have to force runtime linking in this case.
  10268. aix_use_runtimelinking=yes
  10269. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10270. fi
  10271. ;;
  10272. esac
  10273. exp_sym_flag='-bexport'
  10274. no_entry_flag='-bnoentry'
  10275. fi
  10276. # When large executables or shared objects are built, AIX ld can
  10277. # have problems creating the table of contents. If linking a library
  10278. # or program results in "error TOC overflow" add -mminimal-toc to
  10279. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10280. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10281. archive_cmds=''
  10282. hardcode_direct=yes
  10283. hardcode_direct_absolute=yes
  10284. hardcode_libdir_separator=':'
  10285. link_all_deplibs=yes
  10286. file_list_spec='$wl-f,'
  10287. case $with_aix_soname,$aix_use_runtimelinking in
  10288. aix,*) ;; # traditional, no import file
  10289. svr4,* | *,yes) # use import file
  10290. # The Import File defines what to hardcode.
  10291. hardcode_direct=no
  10292. hardcode_direct_absolute=no
  10293. ;;
  10294. esac
  10295. if test yes = "$GCC"; then
  10296. case $host_os in aix4.[012]|aix4.[012].*)
  10297. # We only want to do this on AIX 4.2 and lower, the check
  10298. # below for broken collect2 doesn't work under 4.3+
  10299. collect2name=`$CC -print-prog-name=collect2`
  10300. if test -f "$collect2name" &&
  10301. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10302. then
  10303. # We have reworked collect2
  10304. :
  10305. else
  10306. # We have old collect2
  10307. hardcode_direct=unsupported
  10308. # It fails to find uninstalled libraries when the uninstalled
  10309. # path is not listed in the libpath. Setting hardcode_minus_L
  10310. # to unsupported forces relinking
  10311. hardcode_minus_L=yes
  10312. hardcode_libdir_flag_spec='-L$libdir'
  10313. hardcode_libdir_separator=
  10314. fi
  10315. ;;
  10316. esac
  10317. shared_flag='-shared'
  10318. if test yes = "$aix_use_runtimelinking"; then
  10319. shared_flag="$shared_flag "'$wl-G'
  10320. fi
  10321. # Need to ensure runtime linking is disabled for the traditional
  10322. # shared library, or the linker may eventually find shared libraries
  10323. # /with/ Import File - we do not want to mix them.
  10324. shared_flag_aix='-shared'
  10325. shared_flag_svr4='-shared $wl-G'
  10326. else
  10327. # not using gcc
  10328. if test ia64 = "$host_cpu"; then
  10329. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10330. # chokes on -Wl,-G. The following line is correct:
  10331. shared_flag='-G'
  10332. else
  10333. if test yes = "$aix_use_runtimelinking"; then
  10334. shared_flag='$wl-G'
  10335. else
  10336. shared_flag='$wl-bM:SRE'
  10337. fi
  10338. shared_flag_aix='$wl-bM:SRE'
  10339. shared_flag_svr4='$wl-G'
  10340. fi
  10341. fi
  10342. export_dynamic_flag_spec='$wl-bexpall'
  10343. # It seems that -bexpall does not export symbols beginning with
  10344. # underscore (_), so it is better to generate a list of symbols to export.
  10345. always_export_symbols=yes
  10346. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10347. # Warning - without using the other runtime loading flags (-brtl),
  10348. # -berok will link without error, but may produce a broken library.
  10349. allow_undefined_flag='-berok'
  10350. # Determine the default libpath from the value encoded in an
  10351. # empty executable.
  10352. if test set = "${lt_cv_aix_libpath+set}"; then
  10353. aix_libpath=$lt_cv_aix_libpath
  10354. else
  10355. if test ${lt_cv_aix_libpath_+y}
  10356. then :
  10357. printf %s "(cached) " >&6
  10358. else case e in #(
  10359. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10360. /* end confdefs.h. */
  10361. int
  10362. main (void)
  10363. {
  10364. ;
  10365. return 0;
  10366. }
  10367. _ACEOF
  10368. if ac_fn_c_try_link "$LINENO"
  10369. then :
  10370. lt_aix_libpath_sed='
  10371. /Import File Strings/,/^$/ {
  10372. /^0/ {
  10373. s/^0 *\([^ ]*\) *$/\1/
  10374. p
  10375. }
  10376. }'
  10377. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10378. # Check for a 64-bit object if we didn't find anything.
  10379. if test -z "$lt_cv_aix_libpath_"; then
  10380. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10381. fi
  10382. fi
  10383. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10384. conftest$ac_exeext conftest.$ac_ext
  10385. if test -z "$lt_cv_aix_libpath_"; then
  10386. lt_cv_aix_libpath_=/usr/lib:/lib
  10387. fi
  10388. ;;
  10389. esac
  10390. fi
  10391. aix_libpath=$lt_cv_aix_libpath_
  10392. fi
  10393. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10394. 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
  10395. else
  10396. if test ia64 = "$host_cpu"; then
  10397. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10398. allow_undefined_flag="-z nodefs"
  10399. 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"
  10400. else
  10401. # Determine the default libpath from the value encoded in an
  10402. # empty executable.
  10403. if test set = "${lt_cv_aix_libpath+set}"; then
  10404. aix_libpath=$lt_cv_aix_libpath
  10405. else
  10406. if test ${lt_cv_aix_libpath_+y}
  10407. then :
  10408. printf %s "(cached) " >&6
  10409. else case e in #(
  10410. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10411. /* end confdefs.h. */
  10412. int
  10413. main (void)
  10414. {
  10415. ;
  10416. return 0;
  10417. }
  10418. _ACEOF
  10419. if ac_fn_c_try_link "$LINENO"
  10420. then :
  10421. lt_aix_libpath_sed='
  10422. /Import File Strings/,/^$/ {
  10423. /^0/ {
  10424. s/^0 *\([^ ]*\) *$/\1/
  10425. p
  10426. }
  10427. }'
  10428. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10429. # Check for a 64-bit object if we didn't find anything.
  10430. if test -z "$lt_cv_aix_libpath_"; then
  10431. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10432. fi
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. if test -z "$lt_cv_aix_libpath_"; then
  10437. lt_cv_aix_libpath_=/usr/lib:/lib
  10438. fi
  10439. ;;
  10440. esac
  10441. fi
  10442. aix_libpath=$lt_cv_aix_libpath_
  10443. fi
  10444. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10445. # Warning - without using the other run time loading flags,
  10446. # -berok will link without error, but may produce a broken library.
  10447. no_undefined_flag=' $wl-bernotok'
  10448. allow_undefined_flag=' $wl-berok'
  10449. if test yes = "$with_gnu_ld"; then
  10450. # We only use this code for GNU lds that support --whole-archive.
  10451. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10452. else
  10453. # Exported symbols can be pulled into shared objects from archives
  10454. whole_archive_flag_spec='$convenience'
  10455. fi
  10456. archive_cmds_need_lc=yes
  10457. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10458. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10459. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10460. if test svr4 != "$with_aix_soname"; then
  10461. # This is similar to how AIX traditionally builds its shared libraries.
  10462. 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'
  10463. fi
  10464. if test aix != "$with_aix_soname"; then
  10465. 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'
  10466. else
  10467. # used by -dlpreopen to get the symbols
  10468. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10469. fi
  10470. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10471. fi
  10472. fi
  10473. ;;
  10474. amigaos*)
  10475. case $host_cpu in
  10476. powerpc)
  10477. # see comment about AmigaOS4 .so support
  10478. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10479. archive_expsym_cmds=''
  10480. ;;
  10481. m68k)
  10482. 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)'
  10483. hardcode_libdir_flag_spec='-L$libdir'
  10484. hardcode_minus_L=yes
  10485. ;;
  10486. esac
  10487. ;;
  10488. bsdi[45]*)
  10489. export_dynamic_flag_spec=-rdynamic
  10490. ;;
  10491. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10492. # When not using gcc, we currently assume that we are using
  10493. # Microsoft Visual C++ or Intel C++ Compiler.
  10494. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10495. # no search path for DLLs.
  10496. case $cc_basename in
  10497. cl* | icl*)
  10498. # Native MSVC or ICC
  10499. hardcode_libdir_flag_spec=' '
  10500. allow_undefined_flag=unsupported
  10501. always_export_symbols=yes
  10502. file_list_spec='@'
  10503. # Tell ltmain to make .lib files, not .a files.
  10504. libext=lib
  10505. # Tell ltmain to make .dll files, not .so files.
  10506. shrext_cmds=.dll
  10507. # FIXME: Setting linknames here is a bad hack.
  10508. archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10509. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10510. cp "$export_symbols" "$output_objdir/$soname.def";
  10511. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10512. else
  10513. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10514. fi~
  10515. $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10516. linknames='
  10517. # The linker will not automatically build a static lib if we build a DLL.
  10518. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10519. enable_shared_with_static_runtimes=yes
  10520. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10521. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10522. # Don't use ranlib
  10523. old_postinstall_cmds='chmod 644 $oldlib'
  10524. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10525. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10526. case $lt_outputfile in
  10527. *.exe|*.EXE) ;;
  10528. *)
  10529. lt_outputfile=$lt_outputfile.exe
  10530. lt_tool_outputfile=$lt_tool_outputfile.exe
  10531. ;;
  10532. esac~
  10533. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10534. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10535. $RM "$lt_outputfile.manifest";
  10536. fi'
  10537. ;;
  10538. *)
  10539. # Assume MSVC and ICC wrapper
  10540. hardcode_libdir_flag_spec=' '
  10541. allow_undefined_flag=unsupported
  10542. # Tell ltmain to make .lib files, not .a files.
  10543. libext=lib
  10544. # Tell ltmain to make .dll files, not .so files.
  10545. shrext_cmds=.dll
  10546. # FIXME: Setting linknames here is a bad hack.
  10547. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10548. # The linker will automatically build a .lib file if we build a DLL.
  10549. old_archive_from_new_cmds='true'
  10550. # FIXME: Should let the user specify the lib program.
  10551. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10552. enable_shared_with_static_runtimes=yes
  10553. ;;
  10554. esac
  10555. ;;
  10556. darwin* | rhapsody*)
  10557. archive_cmds_need_lc=no
  10558. hardcode_direct=no
  10559. hardcode_automatic=yes
  10560. hardcode_shlibpath_var=unsupported
  10561. if test yes = "$lt_cv_ld_force_load"; then
  10562. 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\"`'
  10563. else
  10564. whole_archive_flag_spec=''
  10565. fi
  10566. link_all_deplibs=yes
  10567. allow_undefined_flag=$_lt_dar_allow_undefined
  10568. case $cc_basename in
  10569. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10570. *) _lt_dar_can_shared=$GCC ;;
  10571. esac
  10572. if test yes = "$_lt_dar_can_shared"; then
  10573. output_verbose_link_cmd=func_echo_all
  10574. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10575. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10576. 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"
  10577. 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"
  10578. else
  10579. ld_shlibs=no
  10580. fi
  10581. ;;
  10582. dgux*)
  10583. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10584. hardcode_libdir_flag_spec='-L$libdir'
  10585. hardcode_shlibpath_var=no
  10586. ;;
  10587. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10588. # support. Future versions do this automatically, but an explicit c++rt0.o
  10589. # does not break anything, and helps significantly (at the cost of a little
  10590. # extra space).
  10591. freebsd2.2*)
  10592. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10593. hardcode_libdir_flag_spec='-R$libdir'
  10594. hardcode_direct=yes
  10595. hardcode_shlibpath_var=no
  10596. ;;
  10597. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10598. freebsd2.*)
  10599. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10600. hardcode_direct=yes
  10601. hardcode_minus_L=yes
  10602. hardcode_shlibpath_var=no
  10603. ;;
  10604. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10605. freebsd* | dragonfly* | midnightbsd*)
  10606. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10607. hardcode_libdir_flag_spec='-R$libdir'
  10608. hardcode_direct=yes
  10609. hardcode_shlibpath_var=no
  10610. ;;
  10611. hpux9*)
  10612. if test yes = "$GCC"; then
  10613. 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'
  10614. else
  10615. 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'
  10616. fi
  10617. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10618. hardcode_libdir_separator=:
  10619. hardcode_direct=yes
  10620. # hardcode_minus_L: Not really in the search PATH,
  10621. # but as the default location of the library.
  10622. hardcode_minus_L=yes
  10623. export_dynamic_flag_spec='$wl-E'
  10624. ;;
  10625. hpux10*)
  10626. if test yes,no = "$GCC,$with_gnu_ld"; then
  10627. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10628. else
  10629. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10630. fi
  10631. if test no = "$with_gnu_ld"; then
  10632. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10633. hardcode_libdir_separator=:
  10634. hardcode_direct=yes
  10635. hardcode_direct_absolute=yes
  10636. export_dynamic_flag_spec='$wl-E'
  10637. # hardcode_minus_L: Not really in the search PATH,
  10638. # but as the default location of the library.
  10639. hardcode_minus_L=yes
  10640. fi
  10641. ;;
  10642. hpux11*)
  10643. if test yes,no = "$GCC,$with_gnu_ld"; then
  10644. case $host_cpu in
  10645. hppa*64*)
  10646. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10647. ;;
  10648. ia64*)
  10649. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10650. ;;
  10651. *)
  10652. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10653. ;;
  10654. esac
  10655. else
  10656. case $host_cpu in
  10657. hppa*64*)
  10658. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10659. ;;
  10660. ia64*)
  10661. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10662. ;;
  10663. *)
  10664. # Older versions of the 11.00 compiler do not understand -b yet
  10665. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10667. printf %s "checking if $CC understands -b... " >&6; }
  10668. if test ${lt_cv_prog_compiler__b+y}
  10669. then :
  10670. printf %s "(cached) " >&6
  10671. else case e in #(
  10672. e) lt_cv_prog_compiler__b=no
  10673. save_LDFLAGS=$LDFLAGS
  10674. LDFLAGS="$LDFLAGS -b"
  10675. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10676. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10677. # The linker can only warn and ignore the option if not recognized
  10678. # So say no if there are warnings
  10679. if test -s conftest.err; then
  10680. # Append any errors to the config.log.
  10681. cat conftest.err 1>&5
  10682. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10683. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10684. if diff conftest.exp conftest.er2 >/dev/null; then
  10685. lt_cv_prog_compiler__b=yes
  10686. fi
  10687. else
  10688. lt_cv_prog_compiler__b=yes
  10689. fi
  10690. fi
  10691. $RM -r conftest*
  10692. LDFLAGS=$save_LDFLAGS
  10693. ;;
  10694. esac
  10695. fi
  10696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10697. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10698. if test yes = "$lt_cv_prog_compiler__b"; then
  10699. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10700. else
  10701. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10702. fi
  10703. ;;
  10704. esac
  10705. fi
  10706. if test no = "$with_gnu_ld"; then
  10707. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10708. hardcode_libdir_separator=:
  10709. case $host_cpu in
  10710. hppa*64*|ia64*)
  10711. hardcode_direct=no
  10712. hardcode_shlibpath_var=no
  10713. ;;
  10714. *)
  10715. hardcode_direct=yes
  10716. hardcode_direct_absolute=yes
  10717. export_dynamic_flag_spec='$wl-E'
  10718. # hardcode_minus_L: Not really in the search PATH,
  10719. # but as the default location of the library.
  10720. hardcode_minus_L=yes
  10721. ;;
  10722. esac
  10723. fi
  10724. ;;
  10725. irix5* | irix6* | nonstopux*)
  10726. if test yes = "$GCC"; then
  10727. 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'
  10728. # Try to use the -exported_symbol ld option, if it does not
  10729. # work, assume that -exports_file does not work either and
  10730. # implicitly export all symbols.
  10731. # This should be the same for all languages, so no per-tag cache variable.
  10732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10733. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10734. if test ${lt_cv_irix_exported_symbol+y}
  10735. then :
  10736. printf %s "(cached) " >&6
  10737. else case e in #(
  10738. e) save_LDFLAGS=$LDFLAGS
  10739. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10741. /* end confdefs.h. */
  10742. int foo (void) { return 0; }
  10743. _ACEOF
  10744. if ac_fn_c_try_link "$LINENO"
  10745. then :
  10746. lt_cv_irix_exported_symbol=yes
  10747. else case e in #(
  10748. e) lt_cv_irix_exported_symbol=no ;;
  10749. esac
  10750. fi
  10751. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10752. conftest$ac_exeext conftest.$ac_ext
  10753. LDFLAGS=$save_LDFLAGS ;;
  10754. esac
  10755. fi
  10756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10757. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10758. if test yes = "$lt_cv_irix_exported_symbol"; then
  10759. 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'
  10760. fi
  10761. else
  10762. 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'
  10763. 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'
  10764. fi
  10765. archive_cmds_need_lc='no'
  10766. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10767. hardcode_libdir_separator=:
  10768. inherit_rpath=yes
  10769. link_all_deplibs=yes
  10770. ;;
  10771. linux*)
  10772. case $cc_basename in
  10773. tcc*)
  10774. # Fabrice Bellard et al's Tiny C Compiler
  10775. ld_shlibs=yes
  10776. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10777. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10778. ;;
  10779. esac
  10780. ;;
  10781. *-mlibc)
  10782. ;;
  10783. netbsd* | netbsdelf*-gnu)
  10784. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10785. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10786. else
  10787. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10788. fi
  10789. hardcode_libdir_flag_spec='-R$libdir'
  10790. hardcode_direct=yes
  10791. hardcode_shlibpath_var=no
  10792. ;;
  10793. newsos6)
  10794. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10795. hardcode_direct=yes
  10796. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10797. hardcode_libdir_separator=:
  10798. hardcode_shlibpath_var=no
  10799. ;;
  10800. *nto* | *qnx*)
  10801. ;;
  10802. openbsd*)
  10803. if test -f /usr/libexec/ld.so; then
  10804. hardcode_direct=yes
  10805. hardcode_shlibpath_var=no
  10806. hardcode_direct_absolute=yes
  10807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10808. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10809. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10810. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10811. export_dynamic_flag_spec='$wl-E'
  10812. else
  10813. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10814. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10815. fi
  10816. else
  10817. ld_shlibs=no
  10818. fi
  10819. ;;
  10820. os2*)
  10821. hardcode_libdir_flag_spec='-L$libdir'
  10822. hardcode_minus_L=yes
  10823. allow_undefined_flag=unsupported
  10824. shrext_cmds=.dll
  10825. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10826. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10827. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10828. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10829. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10830. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10831. emximp -o $lib $output_objdir/$libname.def'
  10832. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10833. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10834. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10835. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10836. prefix_cmds="$SED"~
  10837. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10838. prefix_cmds="$prefix_cmds -e 1d";
  10839. fi~
  10840. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10841. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10842. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10843. emximp -o $lib $output_objdir/$libname.def'
  10844. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10845. enable_shared_with_static_runtimes=yes
  10846. file_list_spec='@'
  10847. ;;
  10848. osf3*)
  10849. if test yes = "$GCC"; then
  10850. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10851. 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'
  10852. else
  10853. allow_undefined_flag=' -expect_unresolved \*'
  10854. 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'
  10855. fi
  10856. archive_cmds_need_lc='no'
  10857. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10858. hardcode_libdir_separator=:
  10859. ;;
  10860. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10861. if test yes = "$GCC"; then
  10862. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10863. 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'
  10864. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10865. else
  10866. allow_undefined_flag=' -expect_unresolved \*'
  10867. 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'
  10868. 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~
  10869. $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'
  10870. # Both c and cxx compiler support -rpath directly
  10871. hardcode_libdir_flag_spec='-rpath $libdir'
  10872. fi
  10873. archive_cmds_need_lc='no'
  10874. hardcode_libdir_separator=:
  10875. ;;
  10876. serenity*)
  10877. ;;
  10878. solaris*)
  10879. no_undefined_flag=' -z defs'
  10880. if test yes = "$GCC"; then
  10881. wlarc='$wl'
  10882. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10883. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10884. $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'
  10885. else
  10886. case `$CC -V 2>&1` in
  10887. *"Compilers 5.0"*)
  10888. wlarc=''
  10889. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10890. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10891. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10892. ;;
  10893. *)
  10894. wlarc='$wl'
  10895. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10896. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10897. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10898. ;;
  10899. esac
  10900. fi
  10901. hardcode_libdir_flag_spec='-R$libdir'
  10902. hardcode_shlibpath_var=no
  10903. case $host_os in
  10904. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10905. *)
  10906. # The compiler driver will combine and reorder linker options,
  10907. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10908. # but is careful enough not to reorder.
  10909. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10910. if test yes = "$GCC"; then
  10911. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10912. else
  10913. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10914. fi
  10915. ;;
  10916. esac
  10917. link_all_deplibs=yes
  10918. ;;
  10919. sunos4*)
  10920. if test sequent = "$host_vendor"; then
  10921. # Use $CC to link under sequent, because it throws in some extra .o
  10922. # files that make .init and .fini sections work.
  10923. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10924. else
  10925. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10926. fi
  10927. hardcode_libdir_flag_spec='-L$libdir'
  10928. hardcode_direct=yes
  10929. hardcode_minus_L=yes
  10930. hardcode_shlibpath_var=no
  10931. ;;
  10932. sysv4)
  10933. case $host_vendor in
  10934. sni)
  10935. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10936. hardcode_direct=yes # is this really true???
  10937. ;;
  10938. siemens)
  10939. ## LD is ld it makes a PLAMLIB
  10940. ## CC just makes a GrossModule.
  10941. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10942. reload_cmds='$CC -r -o $output$reload_objs'
  10943. hardcode_direct=no
  10944. ;;
  10945. motorola)
  10946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10947. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10948. ;;
  10949. esac
  10950. runpath_var='LD_RUN_PATH'
  10951. hardcode_shlibpath_var=no
  10952. ;;
  10953. sysv4.3*)
  10954. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10955. hardcode_shlibpath_var=no
  10956. export_dynamic_flag_spec='-Bexport'
  10957. ;;
  10958. sysv4*MP*)
  10959. if test -d /usr/nec; then
  10960. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10961. hardcode_shlibpath_var=no
  10962. runpath_var=LD_RUN_PATH
  10963. hardcode_runpath_var=yes
  10964. ld_shlibs=yes
  10965. fi
  10966. ;;
  10967. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10968. no_undefined_flag='$wl-z,text'
  10969. archive_cmds_need_lc=no
  10970. hardcode_shlibpath_var=no
  10971. runpath_var='LD_RUN_PATH'
  10972. if test yes = "$GCC"; then
  10973. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10974. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10975. else
  10976. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10977. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10978. fi
  10979. ;;
  10980. sysv5* | sco3.2v5* | sco5v6*)
  10981. # Note: We CANNOT use -z defs as we might desire, because we do not
  10982. # link with -lc, and that would cause any symbols used from libc to
  10983. # always be unresolved, which means just about no library would
  10984. # ever link correctly. If we're not using GNU ld we use -z text
  10985. # though, which does catch some bad symbols but isn't as heavy-handed
  10986. # as -z defs.
  10987. no_undefined_flag='$wl-z,text'
  10988. allow_undefined_flag='$wl-z,nodefs'
  10989. archive_cmds_need_lc=no
  10990. hardcode_shlibpath_var=no
  10991. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10992. hardcode_libdir_separator=':'
  10993. link_all_deplibs=yes
  10994. export_dynamic_flag_spec='$wl-Bexport'
  10995. runpath_var='LD_RUN_PATH'
  10996. if test yes = "$GCC"; then
  10997. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10998. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10999. else
  11000. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11001. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. fi
  11003. ;;
  11004. uts4*)
  11005. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11006. hardcode_libdir_flag_spec='-L$libdir'
  11007. hardcode_shlibpath_var=no
  11008. ;;
  11009. *)
  11010. ld_shlibs=no
  11011. ;;
  11012. esac
  11013. if test sni = "$host_vendor"; then
  11014. case $host in
  11015. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11016. export_dynamic_flag_spec='$wl-Blargedynsym'
  11017. ;;
  11018. esac
  11019. fi
  11020. fi
  11021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11022. printf "%s\n" "$ld_shlibs" >&6; }
  11023. test no = "$ld_shlibs" && can_build_shared=no
  11024. with_gnu_ld=$with_gnu_ld
  11025. #
  11026. # Do we need to explicitly link libc?
  11027. #
  11028. case "x$archive_cmds_need_lc" in
  11029. x|xyes)
  11030. # Assume -lc should be added
  11031. archive_cmds_need_lc=yes
  11032. if test yes,yes = "$GCC,$enable_shared"; then
  11033. case $archive_cmds in
  11034. *'~'*)
  11035. # FIXME: we may have to deal with multi-command sequences.
  11036. ;;
  11037. '$CC '*)
  11038. # Test whether the compiler implicitly links with -lc since on some
  11039. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11040. # to ld, don't add -lc before -lgcc.
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11042. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  11043. if test ${lt_cv_archive_cmds_need_lc+y}
  11044. then :
  11045. printf %s "(cached) " >&6
  11046. else case e in #(
  11047. e) $RM conftest*
  11048. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11049. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11050. (eval $ac_compile) 2>&5
  11051. ac_status=$?
  11052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11053. test $ac_status = 0; } 2>conftest.err; then
  11054. soname=conftest
  11055. lib=conftest
  11056. libobjs=conftest.$ac_objext
  11057. deplibs=
  11058. wl=$lt_prog_compiler_wl
  11059. pic_flag=$lt_prog_compiler_pic
  11060. compiler_flags=-v
  11061. linker_flags=-v
  11062. verstring=
  11063. output_objdir=.
  11064. libname=conftest
  11065. lt_save_allow_undefined_flag=$allow_undefined_flag
  11066. allow_undefined_flag=
  11067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11068. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11069. ac_status=$?
  11070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11071. test $ac_status = 0; }
  11072. then
  11073. lt_cv_archive_cmds_need_lc=no
  11074. else
  11075. lt_cv_archive_cmds_need_lc=yes
  11076. fi
  11077. allow_undefined_flag=$lt_save_allow_undefined_flag
  11078. else
  11079. cat conftest.err 1>&5
  11080. fi
  11081. $RM conftest*
  11082. ;;
  11083. esac
  11084. fi
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11086. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  11087. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11088. ;;
  11089. esac
  11090. fi
  11091. ;;
  11092. esac
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11094. printf %s "checking dynamic linker characteristics... " >&6; }
  11095. if test yes = "$GCC"; then
  11096. case $host_os in
  11097. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11098. *) lt_awk_arg='/^libraries:/' ;;
  11099. esac
  11100. case $host_os in
  11101. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11102. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11103. esac
  11104. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11105. case $lt_search_path_spec in
  11106. *\;*)
  11107. # if the path contains ";" then we assume it to be the separator
  11108. # otherwise default to the standard path separator (i.e. ":") - it is
  11109. # assumed that no part of a normal pathname contains ";" but that should
  11110. # okay in the real world where ";" in dirpaths is itself problematic.
  11111. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11112. ;;
  11113. *)
  11114. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11115. ;;
  11116. esac
  11117. # Ok, now we have the path, separated by spaces, we can step through it
  11118. # and add multilib dir if necessary...
  11119. lt_tmp_lt_search_path_spec=
  11120. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11121. # ...but if some path component already ends with the multilib dir we assume
  11122. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11123. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11124. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11125. lt_multi_os_dir=
  11126. ;;
  11127. esac
  11128. for lt_sys_path in $lt_search_path_spec; do
  11129. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11130. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11131. elif test -n "$lt_multi_os_dir"; then
  11132. test -d "$lt_sys_path" && \
  11133. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11134. fi
  11135. done
  11136. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11137. BEGIN {RS = " "; FS = "/|\n";} {
  11138. lt_foo = "";
  11139. lt_count = 0;
  11140. for (lt_i = NF; lt_i > 0; lt_i--) {
  11141. if ($lt_i != "" && $lt_i != ".") {
  11142. if ($lt_i == "..") {
  11143. lt_count++;
  11144. } else {
  11145. if (lt_count == 0) {
  11146. lt_foo = "/" $lt_i lt_foo;
  11147. } else {
  11148. lt_count--;
  11149. }
  11150. }
  11151. }
  11152. }
  11153. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11154. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11155. }'`
  11156. # AWK program above erroneously prepends '/' to C:/dos/paths
  11157. # for these hosts.
  11158. case $host_os in
  11159. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11160. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11161. esac
  11162. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11163. else
  11164. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11165. fi
  11166. library_names_spec=
  11167. libname_spec='lib$name'
  11168. soname_spec=
  11169. shrext_cmds=.so
  11170. postinstall_cmds=
  11171. postuninstall_cmds=
  11172. finish_cmds=
  11173. finish_eval=
  11174. shlibpath_var=
  11175. shlibpath_overrides_runpath=unknown
  11176. version_type=none
  11177. dynamic_linker="$host_os ld.so"
  11178. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11179. need_lib_prefix=unknown
  11180. hardcode_into_libs=no
  11181. # when you set need_version to no, make sure it does not cause -set_version
  11182. # flags to be left without arguments
  11183. need_version=unknown
  11184. case $host_os in
  11185. aix3*)
  11186. version_type=linux # correct to gnu/linux during the next big refactor
  11187. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11188. shlibpath_var=LIBPATH
  11189. # AIX 3 has no versioning support, so we append a major version to the name.
  11190. soname_spec='$libname$release$shared_ext$major'
  11191. ;;
  11192. aix[4-9]*)
  11193. version_type=linux # correct to gnu/linux during the next big refactor
  11194. need_lib_prefix=no
  11195. need_version=no
  11196. hardcode_into_libs=yes
  11197. if test ia64 = "$host_cpu"; then
  11198. # AIX 5 supports IA64
  11199. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11200. shlibpath_var=LD_LIBRARY_PATH
  11201. else
  11202. # With GCC up to 2.95.x, collect2 would create an import file
  11203. # for dependence libraries. The import file would start with
  11204. # the line '#! .'. This would cause the generated library to
  11205. # depend on '.', always an invalid library. This was fixed in
  11206. # development snapshots of GCC prior to 3.0.
  11207. case $host_os in
  11208. aix4 | aix4.[01] | aix4.[01].*)
  11209. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11210. echo ' yes '
  11211. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11212. :
  11213. else
  11214. can_build_shared=no
  11215. fi
  11216. ;;
  11217. esac
  11218. # Using Import Files as archive members, it is possible to support
  11219. # filename-based versioning of shared library archives on AIX. While
  11220. # this would work for both with and without runtime linking, it will
  11221. # prevent static linking of such archives. So we do filename-based
  11222. # shared library versioning with .so extension only, which is used
  11223. # when both runtime linking and shared linking is enabled.
  11224. # Unfortunately, runtime linking may impact performance, so we do
  11225. # not want this to be the default eventually. Also, we use the
  11226. # versioned .so libs for executables only if there is the -brtl
  11227. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  11228. # To allow for filename-based versioning support, we need to create
  11229. # libNAME.so.V as an archive file, containing:
  11230. # *) an Import File, referring to the versioned filename of the
  11231. # archive as well as the shared archive member, telling the
  11232. # bitwidth (32 or 64) of that shared object, and providing the
  11233. # list of exported symbols of that shared object, eventually
  11234. # decorated with the 'weak' keyword
  11235. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11236. # it being seen by the linker.
  11237. # At run time we better use the real file rather than another symlink,
  11238. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11239. case $with_aix_soname,$aix_use_runtimelinking in
  11240. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11241. # soname into executable. Probably we can add versioning support to
  11242. # collect2, so additional links can be useful in future.
  11243. aix,yes) # traditional libtool
  11244. dynamic_linker='AIX unversionable lib.so'
  11245. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11246. # instead of lib<name>.a to let people know that these are not
  11247. # typical AIX shared libraries.
  11248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11249. ;;
  11250. aix,no) # traditional AIX only
  11251. dynamic_linker='AIX lib.a(lib.so.V)'
  11252. # We preserve .a as extension for shared libraries through AIX4.2
  11253. # and later when we are not doing run time linking.
  11254. library_names_spec='$libname$release.a $libname.a'
  11255. soname_spec='$libname$release$shared_ext$major'
  11256. ;;
  11257. svr4,*) # full svr4 only
  11258. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11259. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11260. # We do not specify a path in Import Files, so LIBPATH fires.
  11261. shlibpath_overrides_runpath=yes
  11262. ;;
  11263. *,yes) # both, prefer svr4
  11264. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11265. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11266. # unpreferred sharedlib libNAME.a needs extra handling
  11267. 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"'
  11268. 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"'
  11269. # We do not specify a path in Import Files, so LIBPATH fires.
  11270. shlibpath_overrides_runpath=yes
  11271. ;;
  11272. *,no) # both, prefer aix
  11273. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11274. library_names_spec='$libname$release.a $libname.a'
  11275. soname_spec='$libname$release$shared_ext$major'
  11276. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11277. 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)'
  11278. 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"'
  11279. ;;
  11280. esac
  11281. shlibpath_var=LIBPATH
  11282. fi
  11283. ;;
  11284. amigaos*)
  11285. case $host_cpu in
  11286. powerpc)
  11287. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11288. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11290. ;;
  11291. m68k)
  11292. library_names_spec='$libname.ixlibrary $libname.a'
  11293. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11294. 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'
  11295. ;;
  11296. esac
  11297. ;;
  11298. beos*)
  11299. library_names_spec='$libname$shared_ext'
  11300. dynamic_linker="$host_os ld.so"
  11301. shlibpath_var=LIBRARY_PATH
  11302. ;;
  11303. bsdi[45]*)
  11304. version_type=linux # correct to gnu/linux during the next big refactor
  11305. need_version=no
  11306. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11307. soname_spec='$libname$release$shared_ext$major'
  11308. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11309. shlibpath_var=LD_LIBRARY_PATH
  11310. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11311. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11312. # the default ld.so.conf also contains /usr/contrib/lib and
  11313. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11314. # libtool to hard-code these into programs
  11315. ;;
  11316. cygwin* | mingw* | windows* | pw32* | cegcc*)
  11317. version_type=windows
  11318. shrext_cmds=.dll
  11319. need_version=no
  11320. need_lib_prefix=no
  11321. case $GCC,$cc_basename in
  11322. yes,*)
  11323. # gcc
  11324. library_names_spec='$libname.dll.a'
  11325. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11326. # If user builds GCC with multilib enabled,
  11327. # it should just install on $(libdir)
  11328. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  11329. if test xyes = x"$multilib"; then
  11330. postinstall_cmds='base_file=`basename \$file`~
  11331. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11332. dldir=$destdir/`dirname \$dlpath`~
  11333. $install_prog $dir/$dlname $destdir/$dlname~
  11334. chmod a+x $destdir/$dlname~
  11335. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11336. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  11337. fi'
  11338. else
  11339. postinstall_cmds='base_file=`basename \$file`~
  11340. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11341. dldir=$destdir/`dirname \$dlpath`~
  11342. test -d \$dldir || mkdir -p \$dldir~
  11343. $install_prog $dir/$dlname \$dldir/$dlname~
  11344. chmod a+x \$dldir/$dlname~
  11345. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11346. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11347. fi'
  11348. fi
  11349. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11350. dlpath=$dir/\$dldll~
  11351. $RM \$dlpath'
  11352. shlibpath_overrides_runpath=yes
  11353. case $host_os in
  11354. cygwin*)
  11355. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11356. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11357. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11358. ;;
  11359. mingw* | windows* | cegcc*)
  11360. # MinGW DLLs use traditional 'lib' prefix
  11361. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11362. ;;
  11363. pw32*)
  11364. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11365. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11366. ;;
  11367. esac
  11368. dynamic_linker='Win32 ld.exe'
  11369. ;;
  11370. *,cl* | *,icl*)
  11371. # Native MSVC or ICC
  11372. libname_spec='$name'
  11373. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11374. library_names_spec='$libname.dll.lib'
  11375. case $build_os in
  11376. mingw* | windows*)
  11377. sys_lib_search_path_spec=
  11378. lt_save_ifs=$IFS
  11379. IFS=';'
  11380. for lt_path in $LIB
  11381. do
  11382. IFS=$lt_save_ifs
  11383. # Let DOS variable expansion print the short 8.3 style file name.
  11384. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11385. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11386. done
  11387. IFS=$lt_save_ifs
  11388. # Convert to MSYS style.
  11389. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11390. ;;
  11391. cygwin*)
  11392. # Convert to unix form, then to dos form, then back to unix form
  11393. # but this time dos style (no spaces!) so that the unix form looks
  11394. # like /cygdrive/c/PROGRA~1:/cygdr...
  11395. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11396. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11397. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11398. ;;
  11399. *)
  11400. sys_lib_search_path_spec=$LIB
  11401. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11402. # It is most probably a Windows format PATH.
  11403. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11404. else
  11405. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11406. fi
  11407. # FIXME: find the short name or the path components, as spaces are
  11408. # common. (e.g. "Program Files" -> "PROGRA~1")
  11409. ;;
  11410. esac
  11411. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11412. postinstall_cmds='base_file=`basename \$file`~
  11413. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11414. dldir=$destdir/`dirname \$dlpath`~
  11415. test -d \$dldir || mkdir -p \$dldir~
  11416. $install_prog $dir/$dlname \$dldir/$dlname'
  11417. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11418. dlpath=$dir/\$dldll~
  11419. $RM \$dlpath'
  11420. shlibpath_overrides_runpath=yes
  11421. dynamic_linker='Win32 link.exe'
  11422. ;;
  11423. *)
  11424. # Assume MSVC and ICC wrapper
  11425. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11426. dynamic_linker='Win32 ld.exe'
  11427. ;;
  11428. esac
  11429. # FIXME: first we should search . and the directory the executable is in
  11430. shlibpath_var=PATH
  11431. ;;
  11432. darwin* | rhapsody*)
  11433. dynamic_linker="$host_os dyld"
  11434. version_type=darwin
  11435. need_lib_prefix=no
  11436. need_version=no
  11437. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  11438. soname_spec='$libname$release$major$shared_ext'
  11439. shlibpath_overrides_runpath=yes
  11440. shlibpath_var=DYLD_LIBRARY_PATH
  11441. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  11442. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11443. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11444. ;;
  11445. dgux*)
  11446. version_type=linux # correct to gnu/linux during the next big refactor
  11447. need_lib_prefix=no
  11448. need_version=no
  11449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11450. soname_spec='$libname$release$shared_ext$major'
  11451. shlibpath_var=LD_LIBRARY_PATH
  11452. ;;
  11453. freebsd* | dragonfly* | midnightbsd*)
  11454. # DragonFly does not have aout. When/if they implement a new
  11455. # versioning mechanism, adjust this.
  11456. if test -x /usr/bin/objformat; then
  11457. objformat=`/usr/bin/objformat`
  11458. else
  11459. case $host_os in
  11460. freebsd[23].*) objformat=aout ;;
  11461. *) objformat=elf ;;
  11462. esac
  11463. fi
  11464. # Handle Gentoo/FreeBSD as it was Linux
  11465. case $host_vendor in
  11466. gentoo)
  11467. version_type=linux ;;
  11468. *)
  11469. version_type=freebsd-$objformat ;;
  11470. esac
  11471. case $version_type in
  11472. freebsd-elf*)
  11473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11474. soname_spec='$libname$release$shared_ext$major'
  11475. need_version=no
  11476. need_lib_prefix=no
  11477. ;;
  11478. freebsd-*)
  11479. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11480. need_version=yes
  11481. ;;
  11482. linux)
  11483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11484. soname_spec='${libname}${release}${shared_ext}$major'
  11485. need_lib_prefix=no
  11486. need_version=no
  11487. ;;
  11488. esac
  11489. case $host_cpu in
  11490. powerpc64)
  11491. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  11492. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  11493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11494. /* end confdefs.h. */
  11495. int test_pointer_size[sizeof (void *) - 5];
  11496. _ACEOF
  11497. if ac_fn_c_try_compile "$LINENO"
  11498. then :
  11499. shlibpath_var=LD_LIBRARY_PATH
  11500. else case e in #(
  11501. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  11502. esac
  11503. fi
  11504. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11505. ;;
  11506. *)
  11507. shlibpath_var=LD_LIBRARY_PATH
  11508. ;;
  11509. esac
  11510. case $host_os in
  11511. freebsd2.*)
  11512. shlibpath_overrides_runpath=yes
  11513. ;;
  11514. freebsd3.[01]* | freebsdelf3.[01]*)
  11515. shlibpath_overrides_runpath=yes
  11516. hardcode_into_libs=yes
  11517. ;;
  11518. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11519. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11520. shlibpath_overrides_runpath=no
  11521. hardcode_into_libs=yes
  11522. ;;
  11523. *) # from 4.6 on, and DragonFly
  11524. shlibpath_overrides_runpath=yes
  11525. hardcode_into_libs=yes
  11526. ;;
  11527. esac
  11528. ;;
  11529. haiku*)
  11530. version_type=linux # correct to gnu/linux during the next big refactor
  11531. need_lib_prefix=no
  11532. need_version=no
  11533. dynamic_linker="$host_os runtime_loader"
  11534. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11535. soname_spec='$libname$release$shared_ext$major'
  11536. shlibpath_var=LIBRARY_PATH
  11537. shlibpath_overrides_runpath=no
  11538. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  11539. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  11540. hardcode_into_libs=no
  11541. ;;
  11542. hpux9* | hpux10* | hpux11*)
  11543. # Give a soname corresponding to the major version so that dld.sl refuses to
  11544. # link against other versions.
  11545. version_type=sunos
  11546. need_lib_prefix=no
  11547. need_version=no
  11548. case $host_cpu in
  11549. ia64*)
  11550. shrext_cmds='.so'
  11551. hardcode_into_libs=yes
  11552. dynamic_linker="$host_os dld.so"
  11553. shlibpath_var=LD_LIBRARY_PATH
  11554. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11556. soname_spec='$libname$release$shared_ext$major'
  11557. if test 32 = "$HPUX_IA64_MODE"; then
  11558. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11559. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11560. else
  11561. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11562. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11563. fi
  11564. ;;
  11565. hppa*64*)
  11566. shrext_cmds='.sl'
  11567. hardcode_into_libs=yes
  11568. dynamic_linker="$host_os dld.sl"
  11569. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11570. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11571. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11572. soname_spec='$libname$release$shared_ext$major'
  11573. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11574. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11575. ;;
  11576. *)
  11577. shrext_cmds='.sl'
  11578. dynamic_linker="$host_os dld.sl"
  11579. shlibpath_var=SHLIB_PATH
  11580. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11581. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11582. soname_spec='$libname$release$shared_ext$major'
  11583. ;;
  11584. esac
  11585. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11586. postinstall_cmds='chmod 555 $lib'
  11587. # or fails outright, so override atomically:
  11588. install_override_mode=555
  11589. ;;
  11590. interix[3-9]*)
  11591. version_type=linux # correct to gnu/linux during the next big refactor
  11592. need_lib_prefix=no
  11593. need_version=no
  11594. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11595. soname_spec='$libname$release$shared_ext$major'
  11596. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11597. shlibpath_var=LD_LIBRARY_PATH
  11598. shlibpath_overrides_runpath=no
  11599. hardcode_into_libs=yes
  11600. ;;
  11601. irix5* | irix6* | nonstopux*)
  11602. case $host_os in
  11603. nonstopux*) version_type=nonstopux ;;
  11604. *)
  11605. if test yes = "$lt_cv_prog_gnu_ld"; then
  11606. version_type=linux # correct to gnu/linux during the next big refactor
  11607. else
  11608. version_type=irix
  11609. fi ;;
  11610. esac
  11611. need_lib_prefix=no
  11612. need_version=no
  11613. soname_spec='$libname$release$shared_ext$major'
  11614. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11615. case $host_os in
  11616. irix5* | nonstopux*)
  11617. libsuff= shlibsuff=
  11618. ;;
  11619. *)
  11620. case $LD in # libtool.m4 will add one of these switches to LD
  11621. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11622. libsuff= shlibsuff= libmagic=32-bit;;
  11623. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11624. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11625. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11626. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11627. *) libsuff= shlibsuff= libmagic=never-match;;
  11628. esac
  11629. ;;
  11630. esac
  11631. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11632. shlibpath_overrides_runpath=no
  11633. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11634. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11635. hardcode_into_libs=yes
  11636. ;;
  11637. # No shared lib support for Linux oldld, aout, or coff.
  11638. linux*oldld* | linux*aout* | linux*coff*)
  11639. dynamic_linker=no
  11640. ;;
  11641. linux*android*)
  11642. version_type=none # Android doesn't support versioned libraries.
  11643. need_lib_prefix=no
  11644. need_version=no
  11645. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  11646. soname_spec='$libname$release$shared_ext'
  11647. finish_cmds=
  11648. shlibpath_var=LD_LIBRARY_PATH
  11649. shlibpath_overrides_runpath=yes
  11650. # This implies no fast_install, which is unacceptable.
  11651. # Some rework will be needed to allow for fast_install
  11652. # before this can be enabled.
  11653. hardcode_into_libs=yes
  11654. dynamic_linker='Android linker'
  11655. # -rpath works at least for libraries that are not overridden by
  11656. # libraries installed in system locations.
  11657. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11658. ;;
  11659. # This must be glibc/ELF.
  11660. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11661. version_type=linux # correct to gnu/linux during the next big refactor
  11662. need_lib_prefix=no
  11663. need_version=no
  11664. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11665. soname_spec='$libname$release$shared_ext$major'
  11666. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11667. shlibpath_var=LD_LIBRARY_PATH
  11668. shlibpath_overrides_runpath=no
  11669. # Some binutils ld are patched to set DT_RUNPATH
  11670. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11671. then :
  11672. printf %s "(cached) " >&6
  11673. else case e in #(
  11674. e) lt_cv_shlibpath_overrides_runpath=no
  11675. save_LDFLAGS=$LDFLAGS
  11676. save_libdir=$libdir
  11677. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11678. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11680. /* end confdefs.h. */
  11681. int
  11682. main (void)
  11683. {
  11684. ;
  11685. return 0;
  11686. }
  11687. _ACEOF
  11688. if ac_fn_c_try_link "$LINENO"
  11689. then :
  11690. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11691. then :
  11692. lt_cv_shlibpath_overrides_runpath=yes
  11693. fi
  11694. fi
  11695. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11696. conftest$ac_exeext conftest.$ac_ext
  11697. LDFLAGS=$save_LDFLAGS
  11698. libdir=$save_libdir
  11699. ;;
  11700. esac
  11701. fi
  11702. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11703. # This implies no fast_install, which is unacceptable.
  11704. # Some rework will be needed to allow for fast_install
  11705. # before this can be enabled.
  11706. hardcode_into_libs=yes
  11707. # Ideally, we could use ldconfig to report *all* directories which are
  11708. # searched for libraries, however this is still not possible. Aside from not
  11709. # being certain /sbin/ldconfig is available, command
  11710. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11711. # even though it is searched at run-time. Try to do the best guess by
  11712. # appending ld.so.conf contents (and includes) to the search path.
  11713. if test -f /etc/ld.so.conf; then
  11714. 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' ' '`
  11715. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11716. fi
  11717. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11718. # powerpc, because MkLinux only supported shared libraries with the
  11719. # GNU dynamic linker. Since this was broken with cross compilers,
  11720. # most powerpc-linux boxes support dynamic linking these days and
  11721. # people can always --disable-shared, the test was removed, and we
  11722. # assume the GNU/Linux dynamic linker is in use.
  11723. dynamic_linker='GNU/Linux ld.so'
  11724. ;;
  11725. netbsdelf*-gnu)
  11726. version_type=linux
  11727. need_lib_prefix=no
  11728. need_version=no
  11729. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11730. soname_spec='$libname$release$shared_ext$major'
  11731. shlibpath_var=LD_LIBRARY_PATH
  11732. shlibpath_overrides_runpath=no
  11733. hardcode_into_libs=yes
  11734. dynamic_linker='NetBSD ld.elf_so'
  11735. ;;
  11736. netbsd*)
  11737. version_type=sunos
  11738. need_lib_prefix=no
  11739. need_version=no
  11740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11741. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11743. dynamic_linker='NetBSD (a.out) ld.so'
  11744. else
  11745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11746. soname_spec='$libname$release$shared_ext$major'
  11747. dynamic_linker='NetBSD ld.elf_so'
  11748. fi
  11749. shlibpath_var=LD_LIBRARY_PATH
  11750. shlibpath_overrides_runpath=yes
  11751. hardcode_into_libs=yes
  11752. ;;
  11753. *-mlibc)
  11754. version_type=linux # correct to gnu/linux during the next big refactor
  11755. need_lib_prefix=no
  11756. need_version=no
  11757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11758. soname_spec='$libname$release$shared_ext$major'
  11759. dynamic_linker='mlibc ld.so'
  11760. shlibpath_var=LD_LIBRARY_PATH
  11761. shlibpath_overrides_runpath=no
  11762. hardcode_into_libs=yes
  11763. ;;
  11764. newsos6)
  11765. version_type=linux # correct to gnu/linux during the next big refactor
  11766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11767. shlibpath_var=LD_LIBRARY_PATH
  11768. shlibpath_overrides_runpath=yes
  11769. ;;
  11770. *nto* | *qnx*)
  11771. version_type=qnx
  11772. need_lib_prefix=no
  11773. need_version=no
  11774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11775. soname_spec='$libname$release$shared_ext$major'
  11776. shlibpath_var=LD_LIBRARY_PATH
  11777. shlibpath_overrides_runpath=no
  11778. hardcode_into_libs=yes
  11779. dynamic_linker='ldqnx.so'
  11780. ;;
  11781. openbsd*)
  11782. version_type=sunos
  11783. sys_lib_dlsearch_path_spec=/usr/lib
  11784. need_lib_prefix=no
  11785. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11786. need_version=no
  11787. else
  11788. need_version=yes
  11789. fi
  11790. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11791. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11792. shlibpath_var=LD_LIBRARY_PATH
  11793. shlibpath_overrides_runpath=yes
  11794. ;;
  11795. os2*)
  11796. libname_spec='$name'
  11797. version_type=windows
  11798. shrext_cmds=.dll
  11799. need_version=no
  11800. need_lib_prefix=no
  11801. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11802. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11803. v=$($ECHO $release$versuffix | tr -d .-);
  11804. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11805. $ECHO $n$v`$shared_ext'
  11806. library_names_spec='${libname}_dll.$libext'
  11807. dynamic_linker='OS/2 ld.exe'
  11808. shlibpath_var=BEGINLIBPATH
  11809. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11810. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11811. postinstall_cmds='base_file=`basename \$file`~
  11812. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11813. dldir=$destdir/`dirname \$dlpath`~
  11814. test -d \$dldir || mkdir -p \$dldir~
  11815. $install_prog $dir/$dlname \$dldir/$dlname~
  11816. chmod a+x \$dldir/$dlname~
  11817. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11818. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11819. fi'
  11820. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11821. dlpath=$dir/\$dldll~
  11822. $RM \$dlpath'
  11823. ;;
  11824. osf3* | osf4* | osf5*)
  11825. version_type=osf
  11826. need_lib_prefix=no
  11827. need_version=no
  11828. soname_spec='$libname$release$shared_ext$major'
  11829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11830. shlibpath_var=LD_LIBRARY_PATH
  11831. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11832. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11833. ;;
  11834. rdos*)
  11835. dynamic_linker=no
  11836. ;;
  11837. serenity*)
  11838. version_type=linux # correct to gnu/linux during the next big refactor
  11839. need_lib_prefix=no
  11840. need_version=no
  11841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11842. soname_spec='$libname$release$shared_ext$major'
  11843. shlibpath_var=LD_LIBRARY_PATH
  11844. shlibpath_overrides_runpath=no
  11845. dynamic_linker='SerenityOS LibELF'
  11846. ;;
  11847. solaris*)
  11848. version_type=linux # correct to gnu/linux during the next big refactor
  11849. need_lib_prefix=no
  11850. need_version=no
  11851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11852. soname_spec='$libname$release$shared_ext$major'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. shlibpath_overrides_runpath=yes
  11855. hardcode_into_libs=yes
  11856. # ldd complains unless libraries are executable
  11857. postinstall_cmds='chmod +x $lib'
  11858. ;;
  11859. sunos4*)
  11860. version_type=sunos
  11861. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11862. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11863. shlibpath_var=LD_LIBRARY_PATH
  11864. shlibpath_overrides_runpath=yes
  11865. if test yes = "$with_gnu_ld"; then
  11866. need_lib_prefix=no
  11867. fi
  11868. need_version=yes
  11869. ;;
  11870. sysv4 | sysv4.3*)
  11871. version_type=linux # correct to gnu/linux during the next big refactor
  11872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11873. soname_spec='$libname$release$shared_ext$major'
  11874. shlibpath_var=LD_LIBRARY_PATH
  11875. case $host_vendor in
  11876. sni)
  11877. shlibpath_overrides_runpath=no
  11878. need_lib_prefix=no
  11879. runpath_var=LD_RUN_PATH
  11880. ;;
  11881. siemens)
  11882. need_lib_prefix=no
  11883. ;;
  11884. motorola)
  11885. need_lib_prefix=no
  11886. need_version=no
  11887. shlibpath_overrides_runpath=no
  11888. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11889. ;;
  11890. esac
  11891. ;;
  11892. sysv4*MP*)
  11893. if test -d /usr/nec; then
  11894. version_type=linux # correct to gnu/linux during the next big refactor
  11895. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11896. soname_spec='$libname$shared_ext.$major'
  11897. shlibpath_var=LD_LIBRARY_PATH
  11898. fi
  11899. ;;
  11900. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11901. version_type=sco
  11902. need_lib_prefix=no
  11903. need_version=no
  11904. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11905. soname_spec='$libname$release$shared_ext$major'
  11906. shlibpath_var=LD_LIBRARY_PATH
  11907. shlibpath_overrides_runpath=yes
  11908. hardcode_into_libs=yes
  11909. if test yes = "$with_gnu_ld"; then
  11910. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11911. else
  11912. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11913. case $host_os in
  11914. sco3.2v5*)
  11915. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11916. ;;
  11917. esac
  11918. fi
  11919. sys_lib_dlsearch_path_spec='/usr/lib'
  11920. ;;
  11921. tpf*)
  11922. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11923. version_type=linux # correct to gnu/linux during the next big refactor
  11924. need_lib_prefix=no
  11925. need_version=no
  11926. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11927. shlibpath_var=LD_LIBRARY_PATH
  11928. shlibpath_overrides_runpath=no
  11929. hardcode_into_libs=yes
  11930. ;;
  11931. uts4*)
  11932. version_type=linux # correct to gnu/linux during the next big refactor
  11933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11934. soname_spec='$libname$release$shared_ext$major'
  11935. shlibpath_var=LD_LIBRARY_PATH
  11936. ;;
  11937. emscripten*)
  11938. version_type=none
  11939. need_lib_prefix=no
  11940. need_version=no
  11941. library_names_spec='$libname$release$shared_ext'
  11942. soname_spec='$libname$release$shared_ext'
  11943. finish_cmds=
  11944. dynamic_linker="Emscripten linker"
  11945. lt_prog_compiler_wl=
  11946. lt_prog_compiler_pic=
  11947. lt_prog_compiler_static=
  11948. if test yes = "$GCC"; then
  11949. lt_prog_compiler_wl='-Wl,'
  11950. lt_prog_compiler_static='-static'
  11951. case $host_os in
  11952. aix*)
  11953. # All AIX code is PIC.
  11954. if test ia64 = "$host_cpu"; then
  11955. # AIX 5 now supports IA64 processor
  11956. lt_prog_compiler_static='-Bstatic'
  11957. fi
  11958. lt_prog_compiler_pic='-fPIC'
  11959. ;;
  11960. amigaos*)
  11961. case $host_cpu in
  11962. powerpc)
  11963. # see comment about AmigaOS4 .so support
  11964. lt_prog_compiler_pic='-fPIC'
  11965. ;;
  11966. m68k)
  11967. # FIXME: we need at least 68020 code to build shared libraries, but
  11968. # adding the '-m68020' flag to GCC prevents building anything better,
  11969. # like '-m68040'.
  11970. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11971. ;;
  11972. esac
  11973. ;;
  11974. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11975. # PIC is the default for these OSes.
  11976. ;;
  11977. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  11978. # This hack is so that the source file can tell whether it is being
  11979. # built for inclusion in a dll (and should export symbols for example).
  11980. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11981. # (--disable-auto-import) libraries
  11982. lt_prog_compiler_pic='-DDLL_EXPORT'
  11983. case $host_os in
  11984. os2*)
  11985. lt_prog_compiler_static='$wl-static'
  11986. ;;
  11987. esac
  11988. ;;
  11989. darwin* | rhapsody*)
  11990. # PIC is the default on this platform
  11991. # Common symbols not allowed in MH_DYLIB files
  11992. lt_prog_compiler_pic='-fno-common'
  11993. ;;
  11994. haiku*)
  11995. # PIC is the default for Haiku.
  11996. # The "-static" flag exists, but is broken.
  11997. lt_prog_compiler_static=
  11998. ;;
  11999. hpux*)
  12000. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12001. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12002. # sets the default TLS model and affects inlining.
  12003. case $host_cpu in
  12004. hppa*64*)
  12005. # +Z the default
  12006. ;;
  12007. *)
  12008. lt_prog_compiler_pic='-fPIC'
  12009. ;;
  12010. esac
  12011. ;;
  12012. interix[3-9]*)
  12013. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12014. # Instead, we relocate shared libraries at runtime.
  12015. ;;
  12016. msdosdjgpp*)
  12017. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12018. # on systems that don't support them.
  12019. lt_prog_compiler_can_build_shared=no
  12020. enable_shared=no
  12021. ;;
  12022. *nto* | *qnx*)
  12023. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12024. # it will coredump.
  12025. lt_prog_compiler_pic='-fPIC -shared'
  12026. ;;
  12027. sysv4*MP*)
  12028. if test -d /usr/nec; then
  12029. lt_prog_compiler_pic=-Kconform_pic
  12030. fi
  12031. ;;
  12032. *)
  12033. lt_prog_compiler_pic='-fPIC'
  12034. ;;
  12035. esac
  12036. case $cc_basename in
  12037. nvcc*) # Cuda Compiler Driver 2.2
  12038. lt_prog_compiler_wl='-Xlinker '
  12039. if test -n "$lt_prog_compiler_pic"; then
  12040. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12041. fi
  12042. ;;
  12043. esac
  12044. else
  12045. # PORTME Check for flag to pass linker flags through the system compiler.
  12046. case $host_os in
  12047. aix*)
  12048. lt_prog_compiler_wl='-Wl,'
  12049. if test ia64 = "$host_cpu"; then
  12050. # AIX 5 now supports IA64 processor
  12051. lt_prog_compiler_static='-Bstatic'
  12052. else
  12053. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12054. fi
  12055. ;;
  12056. darwin* | rhapsody*)
  12057. # PIC is the default on this platform
  12058. # Common symbols not allowed in MH_DYLIB files
  12059. lt_prog_compiler_pic='-fno-common'
  12060. case $cc_basename in
  12061. nagfor*)
  12062. # NAG Fortran compiler
  12063. lt_prog_compiler_wl='-Wl,-Wl,,'
  12064. lt_prog_compiler_pic='-PIC'
  12065. lt_prog_compiler_static='-Bstatic'
  12066. ;;
  12067. esac
  12068. ;;
  12069. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12070. # This hack is so that the source file can tell whether it is being
  12071. # built for inclusion in a dll (and should export symbols for example).
  12072. lt_prog_compiler_pic='-DDLL_EXPORT'
  12073. case $host_os in
  12074. os2*)
  12075. lt_prog_compiler_static='$wl-static'
  12076. ;;
  12077. esac
  12078. ;;
  12079. hpux9* | hpux10* | hpux11*)
  12080. lt_prog_compiler_wl='-Wl,'
  12081. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12082. # not for PA HP-UX.
  12083. case $host_cpu in
  12084. hppa*64*|ia64*)
  12085. # +Z the default
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic='+Z'
  12089. ;;
  12090. esac
  12091. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12092. lt_prog_compiler_static='$wl-a ${wl}archive'
  12093. ;;
  12094. irix5* | irix6* | nonstopux*)
  12095. lt_prog_compiler_wl='-Wl,'
  12096. # PIC (with -KPIC) is the default.
  12097. lt_prog_compiler_static='-non_shared'
  12098. ;;
  12099. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12100. case $cc_basename in
  12101. # old Intel for x86_64, which still supported -KPIC.
  12102. ecc*)
  12103. lt_prog_compiler_wl='-Wl,'
  12104. lt_prog_compiler_pic='-KPIC'
  12105. lt_prog_compiler_static='-static'
  12106. ;;
  12107. *flang* | ftn | f18* | f95*)
  12108. # Flang compiler.
  12109. lt_prog_compiler_wl='-Wl,'
  12110. lt_prog_compiler_pic='-fPIC'
  12111. lt_prog_compiler_static='-static'
  12112. ;;
  12113. # icc used to be incompatible with GCC.
  12114. # ICC 10 doesn't accept -KPIC any more.
  12115. icc* | ifort*)
  12116. lt_prog_compiler_wl='-Wl,'
  12117. lt_prog_compiler_pic='-fPIC'
  12118. lt_prog_compiler_static='-static'
  12119. ;;
  12120. # Lahey Fortran 8.1.
  12121. lf95*)
  12122. lt_prog_compiler_wl='-Wl,'
  12123. lt_prog_compiler_pic='--shared'
  12124. lt_prog_compiler_static='--static'
  12125. ;;
  12126. nagfor*)
  12127. # NAG Fortran compiler
  12128. lt_prog_compiler_wl='-Wl,-Wl,,'
  12129. lt_prog_compiler_pic='-PIC'
  12130. lt_prog_compiler_static='-Bstatic'
  12131. ;;
  12132. tcc*)
  12133. # Fabrice Bellard et al's Tiny C Compiler
  12134. lt_prog_compiler_wl='-Wl,'
  12135. lt_prog_compiler_pic='-fPIC'
  12136. lt_prog_compiler_static='-static'
  12137. ;;
  12138. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12139. # Portland Group compilers (*not* the Pentium gcc compiler,
  12140. # which looks to be a dead project)
  12141. lt_prog_compiler_wl='-Wl,'
  12142. lt_prog_compiler_pic='-fpic'
  12143. lt_prog_compiler_static='-Bstatic'
  12144. ;;
  12145. ccc*)
  12146. lt_prog_compiler_wl='-Wl,'
  12147. # All Alpha code is PIC.
  12148. lt_prog_compiler_static='-non_shared'
  12149. ;;
  12150. xl* | bgxl* | bgf* | mpixl*)
  12151. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12152. lt_prog_compiler_wl='-Wl,'
  12153. lt_prog_compiler_pic='-qpic'
  12154. lt_prog_compiler_static='-qstaticlink'
  12155. ;;
  12156. *)
  12157. case `$CC -V 2>&1 | $SED 5q` in
  12158. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12159. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12160. lt_prog_compiler_pic='-KPIC'
  12161. lt_prog_compiler_static='-Bstatic'
  12162. lt_prog_compiler_wl=''
  12163. ;;
  12164. *Sun\ F* | *Sun*Fortran*)
  12165. lt_prog_compiler_pic='-KPIC'
  12166. lt_prog_compiler_static='-Bstatic'
  12167. lt_prog_compiler_wl='-Qoption ld '
  12168. ;;
  12169. *Sun\ C*)
  12170. # Sun C 5.9
  12171. lt_prog_compiler_pic='-KPIC'
  12172. lt_prog_compiler_static='-Bstatic'
  12173. lt_prog_compiler_wl='-Wl,'
  12174. ;;
  12175. *Intel*\ [CF]*Compiler*)
  12176. lt_prog_compiler_wl='-Wl,'
  12177. lt_prog_compiler_pic='-fPIC'
  12178. lt_prog_compiler_static='-static'
  12179. ;;
  12180. *Portland\ Group*)
  12181. lt_prog_compiler_wl='-Wl,'
  12182. lt_prog_compiler_pic='-fpic'
  12183. lt_prog_compiler_static='-Bstatic'
  12184. ;;
  12185. esac
  12186. ;;
  12187. esac
  12188. ;;
  12189. newsos6)
  12190. lt_prog_compiler_pic='-KPIC'
  12191. lt_prog_compiler_static='-Bstatic'
  12192. ;;
  12193. *-mlibc)
  12194. lt_prog_compiler_wl='-Wl,'
  12195. lt_prog_compiler_pic='-fPIC'
  12196. lt_prog_compiler_static='-static'
  12197. ;;
  12198. *nto* | *qnx*)
  12199. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12200. # it will coredump.
  12201. lt_prog_compiler_pic='-fPIC -shared'
  12202. ;;
  12203. osf3* | osf4* | osf5*)
  12204. lt_prog_compiler_wl='-Wl,'
  12205. # All OSF/1 code is PIC.
  12206. lt_prog_compiler_static='-non_shared'
  12207. ;;
  12208. rdos*)
  12209. lt_prog_compiler_static='-non_shared'
  12210. ;;
  12211. serenity*)
  12212. ;;
  12213. solaris*)
  12214. lt_prog_compiler_pic='-KPIC'
  12215. lt_prog_compiler_static='-Bstatic'
  12216. case $cc_basename in
  12217. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12218. lt_prog_compiler_wl='-Qoption ld ';;
  12219. *)
  12220. lt_prog_compiler_wl='-Wl,';;
  12221. esac
  12222. ;;
  12223. sunos4*)
  12224. lt_prog_compiler_wl='-Qoption ld '
  12225. lt_prog_compiler_pic='-PIC'
  12226. lt_prog_compiler_static='-Bstatic'
  12227. ;;
  12228. sysv4 | sysv4.2uw2* | sysv4.3*)
  12229. lt_prog_compiler_wl='-Wl,'
  12230. lt_prog_compiler_pic='-KPIC'
  12231. lt_prog_compiler_static='-Bstatic'
  12232. ;;
  12233. sysv4*MP*)
  12234. if test -d /usr/nec; then
  12235. lt_prog_compiler_pic='-Kconform_pic'
  12236. lt_prog_compiler_static='-Bstatic'
  12237. fi
  12238. ;;
  12239. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12240. lt_prog_compiler_wl='-Wl,'
  12241. lt_prog_compiler_pic='-KPIC'
  12242. lt_prog_compiler_static='-Bstatic'
  12243. ;;
  12244. unicos*)
  12245. lt_prog_compiler_wl='-Wl,'
  12246. lt_prog_compiler_can_build_shared=no
  12247. ;;
  12248. uts4*)
  12249. lt_prog_compiler_pic='-pic'
  12250. lt_prog_compiler_static='-Bstatic'
  12251. ;;
  12252. *)
  12253. lt_prog_compiler_can_build_shared=no
  12254. ;;
  12255. esac
  12256. fi
  12257. case $host_os in
  12258. # For platforms that do not support PIC, -DPIC is meaningless:
  12259. *djgpp*)
  12260. lt_prog_compiler_pic=
  12261. ;;
  12262. *)
  12263. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12264. ;;
  12265. esac
  12266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12267. printf %s "checking for $compiler option to produce PIC... " >&6; }
  12268. if test ${lt_cv_prog_compiler_pic+y}
  12269. then :
  12270. printf %s "(cached) " >&6
  12271. else case e in #(
  12272. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  12273. esac
  12274. fi
  12275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12276. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  12277. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12278. #
  12279. # Check to make sure the PIC flag actually works.
  12280. #
  12281. if test -n "$lt_prog_compiler_pic"; then
  12282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12283. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12284. if test ${lt_cv_prog_compiler_pic_works+y}
  12285. then :
  12286. printf %s "(cached) " >&6
  12287. else case e in #(
  12288. e) lt_cv_prog_compiler_pic_works=no
  12289. ac_outfile=conftest.$ac_objext
  12290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12291. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12292. # Insert the option either (1) after the last *FLAGS variable, or
  12293. # (2) before a word containing "conftest.", or (3) at the end.
  12294. # Note that $ac_compile itself does not contain backslashes and begins
  12295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12296. # The option is referenced via a variable to avoid confusing sed.
  12297. lt_compile=`echo "$ac_compile" | $SED \
  12298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12300. -e 's:$: $lt_compiler_flag:'`
  12301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12302. (eval "$lt_compile" 2>conftest.err)
  12303. ac_status=$?
  12304. cat conftest.err >&5
  12305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12306. if (exit $ac_status) && test -s "$ac_outfile"; then
  12307. # The compiler can only warn and ignore the option if not recognized
  12308. # So say no if there are warnings other than the usual output.
  12309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12311. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12312. lt_cv_prog_compiler_pic_works=yes
  12313. fi
  12314. fi
  12315. $RM conftest*
  12316. ;;
  12317. esac
  12318. fi
  12319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12320. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  12321. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  12322. case $lt_prog_compiler_pic in
  12323. "" | " "*) ;;
  12324. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12325. esac
  12326. else
  12327. lt_prog_compiler_pic=
  12328. lt_prog_compiler_can_build_shared=no
  12329. fi
  12330. fi
  12331. #
  12332. # Check to make sure the static flag actually works.
  12333. #
  12334. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12336. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12337. if test ${lt_cv_prog_compiler_static_works+y}
  12338. then :
  12339. printf %s "(cached) " >&6
  12340. else case e in #(
  12341. e) lt_cv_prog_compiler_static_works=no
  12342. save_LDFLAGS=$LDFLAGS
  12343. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12344. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12345. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12346. # The linker can only warn and ignore the option if not recognized
  12347. # So say no if there are warnings
  12348. if test -s conftest.err; then
  12349. # Append any errors to the config.log.
  12350. cat conftest.err 1>&5
  12351. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12352. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12353. if diff conftest.exp conftest.er2 >/dev/null; then
  12354. lt_cv_prog_compiler_static_works=yes
  12355. fi
  12356. else
  12357. lt_cv_prog_compiler_static_works=yes
  12358. fi
  12359. fi
  12360. $RM -r conftest*
  12361. LDFLAGS=$save_LDFLAGS
  12362. ;;
  12363. esac
  12364. fi
  12365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12366. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  12367. if test yes = "$lt_cv_prog_compiler_static_works"; then
  12368. :
  12369. else
  12370. lt_prog_compiler_static=
  12371. fi
  12372. ='-fPIC'
  12373. archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  12374. archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  12375. archive_cmds_need_lc=no
  12376. no_undefined_flag=
  12377. ;;
  12378. *)
  12379. dynamic_linker=no
  12380. ;;
  12381. esac
  12382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12383. printf "%s\n" "$dynamic_linker" >&6; }
  12384. test no = "$dynamic_linker" && can_build_shared=no
  12385. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12386. if test yes = "$GCC"; then
  12387. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12388. fi
  12389. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12390. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12391. fi
  12392. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12393. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12394. fi
  12395. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12396. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12397. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12398. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12399. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12400. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12402. printf %s "checking how to hardcode library paths into programs... " >&6; }
  12403. hardcode_action=
  12404. if test -n "$hardcode_libdir_flag_spec" ||
  12405. test -n "$runpath_var" ||
  12406. test yes = "$hardcode_automatic"; then
  12407. # We can hardcode non-existent directories.
  12408. if test no != "$hardcode_direct" &&
  12409. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12410. # have to relink, otherwise we might link with an installed library
  12411. # when we should be linking with a yet-to-be-installed one
  12412. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12413. test no != "$hardcode_minus_L"; then
  12414. # Linking always hardcodes the temporary library directory.
  12415. hardcode_action=relink
  12416. else
  12417. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12418. hardcode_action=immediate
  12419. fi
  12420. else
  12421. # We cannot hardcode anything, or else we can only hardcode existing
  12422. # directories.
  12423. hardcode_action=unsupported
  12424. fi
  12425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12426. printf "%s\n" "$hardcode_action" >&6; }
  12427. if test relink = "$hardcode_action" ||
  12428. test yes = "$inherit_rpath"; then
  12429. # Fast installation is not supported
  12430. enable_fast_install=no
  12431. elif test yes = "$shlibpath_overrides_runpath" ||
  12432. test no = "$enable_shared"; then
  12433. # Fast installation is not necessary
  12434. enable_fast_install=needless
  12435. fi
  12436. if test yes != "$enable_dlopen"; then
  12437. enable_dlopen=unknown
  12438. enable_dlopen_self=unknown
  12439. enable_dlopen_self_static=unknown
  12440. else
  12441. lt_cv_dlopen=no
  12442. lt_cv_dlopen_libs=
  12443. case $host_os in
  12444. beos*)
  12445. lt_cv_dlopen=load_add_on
  12446. lt_cv_dlopen_libs=
  12447. lt_cv_dlopen_self=yes
  12448. ;;
  12449. mingw* | windows* | pw32* | cegcc*)
  12450. lt_cv_dlopen=LoadLibrary
  12451. lt_cv_dlopen_libs=
  12452. ;;
  12453. cygwin*)
  12454. lt_cv_dlopen=dlopen
  12455. lt_cv_dlopen_libs=
  12456. ;;
  12457. darwin*)
  12458. # if libdl is installed we need to link against it
  12459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12460. printf %s "checking for dlopen in -ldl... " >&6; }
  12461. if test ${ac_cv_lib_dl_dlopen+y}
  12462. then :
  12463. printf %s "(cached) " >&6
  12464. else case e in #(
  12465. e) ac_check_lib_save_LIBS=$LIBS
  12466. LIBS="-ldl $LIBS"
  12467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. /* Override any GCC internal prototype to avoid an error.
  12470. Use char because int might match the return type of a GCC
  12471. builtin and then its argument prototype would still apply.
  12472. The 'extern "C"' is for builds by C++ compilers;
  12473. although this is not generally supported in C code supporting it here
  12474. has little cost and some practical benefit (sr 110532). */
  12475. #ifdef __cplusplus
  12476. extern "C"
  12477. #endif
  12478. char dlopen (void);
  12479. int
  12480. main (void)
  12481. {
  12482. return dlopen ();
  12483. ;
  12484. return 0;
  12485. }
  12486. _ACEOF
  12487. if ac_fn_c_try_link "$LINENO"
  12488. then :
  12489. ac_cv_lib_dl_dlopen=yes
  12490. else case e in #(
  12491. e) ac_cv_lib_dl_dlopen=no ;;
  12492. esac
  12493. fi
  12494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12495. conftest$ac_exeext conftest.$ac_ext
  12496. LIBS=$ac_check_lib_save_LIBS ;;
  12497. esac
  12498. fi
  12499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12500. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12501. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12502. then :
  12503. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12504. else case e in #(
  12505. e)
  12506. lt_cv_dlopen=dyld
  12507. lt_cv_dlopen_libs=
  12508. lt_cv_dlopen_self=yes
  12509. ;;
  12510. esac
  12511. fi
  12512. ;;
  12513. tpf*)
  12514. # Don't try to run any link tests for TPF. We know it's impossible
  12515. # because TPF is a cross-compiler, and we know how we open DSOs.
  12516. lt_cv_dlopen=dlopen
  12517. lt_cv_dlopen_libs=
  12518. lt_cv_dlopen_self=no
  12519. ;;
  12520. *)
  12521. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12522. if test "x$ac_cv_func_shl_load" = xyes
  12523. then :
  12524. lt_cv_dlopen=shl_load
  12525. else case e in #(
  12526. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12527. printf %s "checking for shl_load in -ldld... " >&6; }
  12528. if test ${ac_cv_lib_dld_shl_load+y}
  12529. then :
  12530. printf %s "(cached) " >&6
  12531. else case e in #(
  12532. e) ac_check_lib_save_LIBS=$LIBS
  12533. LIBS="-ldld $LIBS"
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. /* Override any GCC internal prototype to avoid an error.
  12537. Use char because int might match the return type of a GCC
  12538. builtin and then its argument prototype would still apply.
  12539. The 'extern "C"' is for builds by C++ compilers;
  12540. although this is not generally supported in C code supporting it here
  12541. has little cost and some practical benefit (sr 110532). */
  12542. #ifdef __cplusplus
  12543. extern "C"
  12544. #endif
  12545. char shl_load (void);
  12546. int
  12547. main (void)
  12548. {
  12549. return shl_load ();
  12550. ;
  12551. return 0;
  12552. }
  12553. _ACEOF
  12554. if ac_fn_c_try_link "$LINENO"
  12555. then :
  12556. ac_cv_lib_dld_shl_load=yes
  12557. else case e in #(
  12558. e) ac_cv_lib_dld_shl_load=no ;;
  12559. esac
  12560. fi
  12561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12562. conftest$ac_exeext conftest.$ac_ext
  12563. LIBS=$ac_check_lib_save_LIBS ;;
  12564. esac
  12565. fi
  12566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12567. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  12568. if test "x$ac_cv_lib_dld_shl_load" = xyes
  12569. then :
  12570. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12571. else case e in #(
  12572. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12573. if test "x$ac_cv_func_dlopen" = xyes
  12574. then :
  12575. lt_cv_dlopen=dlopen
  12576. else case e in #(
  12577. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12578. printf %s "checking for dlopen in -ldl... " >&6; }
  12579. if test ${ac_cv_lib_dl_dlopen+y}
  12580. then :
  12581. printf %s "(cached) " >&6
  12582. else case e in #(
  12583. e) ac_check_lib_save_LIBS=$LIBS
  12584. LIBS="-ldl $LIBS"
  12585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12586. /* end confdefs.h. */
  12587. /* Override any GCC internal prototype to avoid an error.
  12588. Use char because int might match the return type of a GCC
  12589. builtin and then its argument prototype would still apply.
  12590. The 'extern "C"' is for builds by C++ compilers;
  12591. although this is not generally supported in C code supporting it here
  12592. has little cost and some practical benefit (sr 110532). */
  12593. #ifdef __cplusplus
  12594. extern "C"
  12595. #endif
  12596. char dlopen (void);
  12597. int
  12598. main (void)
  12599. {
  12600. return dlopen ();
  12601. ;
  12602. return 0;
  12603. }
  12604. _ACEOF
  12605. if ac_fn_c_try_link "$LINENO"
  12606. then :
  12607. ac_cv_lib_dl_dlopen=yes
  12608. else case e in #(
  12609. e) ac_cv_lib_dl_dlopen=no ;;
  12610. esac
  12611. fi
  12612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12613. conftest$ac_exeext conftest.$ac_ext
  12614. LIBS=$ac_check_lib_save_LIBS ;;
  12615. esac
  12616. fi
  12617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12618. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12619. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12620. then :
  12621. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12622. else case e in #(
  12623. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12624. printf %s "checking for dlopen in -lsvld... " >&6; }
  12625. if test ${ac_cv_lib_svld_dlopen+y}
  12626. then :
  12627. printf %s "(cached) " >&6
  12628. else case e in #(
  12629. e) ac_check_lib_save_LIBS=$LIBS
  12630. LIBS="-lsvld $LIBS"
  12631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12632. /* end confdefs.h. */
  12633. /* Override any GCC internal prototype to avoid an error.
  12634. Use char because int might match the return type of a GCC
  12635. builtin and then its argument prototype would still apply.
  12636. The 'extern "C"' is for builds by C++ compilers;
  12637. although this is not generally supported in C code supporting it here
  12638. has little cost and some practical benefit (sr 110532). */
  12639. #ifdef __cplusplus
  12640. extern "C"
  12641. #endif
  12642. char dlopen (void);
  12643. int
  12644. main (void)
  12645. {
  12646. return dlopen ();
  12647. ;
  12648. return 0;
  12649. }
  12650. _ACEOF
  12651. if ac_fn_c_try_link "$LINENO"
  12652. then :
  12653. ac_cv_lib_svld_dlopen=yes
  12654. else case e in #(
  12655. e) ac_cv_lib_svld_dlopen=no ;;
  12656. esac
  12657. fi
  12658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12659. conftest$ac_exeext conftest.$ac_ext
  12660. LIBS=$ac_check_lib_save_LIBS ;;
  12661. esac
  12662. fi
  12663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12664. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  12665. if test "x$ac_cv_lib_svld_dlopen" = xyes
  12666. then :
  12667. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12668. else case e in #(
  12669. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12670. printf %s "checking for dld_link in -ldld... " >&6; }
  12671. if test ${ac_cv_lib_dld_dld_link+y}
  12672. then :
  12673. printf %s "(cached) " >&6
  12674. else case e in #(
  12675. e) ac_check_lib_save_LIBS=$LIBS
  12676. LIBS="-ldld $LIBS"
  12677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12678. /* end confdefs.h. */
  12679. /* Override any GCC internal prototype to avoid an error.
  12680. Use char because int might match the return type of a GCC
  12681. builtin and then its argument prototype would still apply.
  12682. The 'extern "C"' is for builds by C++ compilers;
  12683. although this is not generally supported in C code supporting it here
  12684. has little cost and some practical benefit (sr 110532). */
  12685. #ifdef __cplusplus
  12686. extern "C"
  12687. #endif
  12688. char dld_link (void);
  12689. int
  12690. main (void)
  12691. {
  12692. return dld_link ();
  12693. ;
  12694. return 0;
  12695. }
  12696. _ACEOF
  12697. if ac_fn_c_try_link "$LINENO"
  12698. then :
  12699. ac_cv_lib_dld_dld_link=yes
  12700. else case e in #(
  12701. e) ac_cv_lib_dld_dld_link=no ;;
  12702. esac
  12703. fi
  12704. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12705. conftest$ac_exeext conftest.$ac_ext
  12706. LIBS=$ac_check_lib_save_LIBS ;;
  12707. esac
  12708. fi
  12709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12710. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  12711. if test "x$ac_cv_lib_dld_dld_link" = xyes
  12712. then :
  12713. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12714. fi
  12715. ;;
  12716. esac
  12717. fi
  12718. ;;
  12719. esac
  12720. fi
  12721. ;;
  12722. esac
  12723. fi
  12724. ;;
  12725. esac
  12726. fi
  12727. ;;
  12728. esac
  12729. fi
  12730. ;;
  12731. esac
  12732. if test no = "$lt_cv_dlopen"; then
  12733. enable_dlopen=no
  12734. else
  12735. enable_dlopen=yes
  12736. fi
  12737. case $lt_cv_dlopen in
  12738. dlopen)
  12739. save_CPPFLAGS=$CPPFLAGS
  12740. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12741. save_LDFLAGS=$LDFLAGS
  12742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12743. save_LIBS=$LIBS
  12744. LIBS="$lt_cv_dlopen_libs $LIBS"
  12745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12746. printf %s "checking whether a program can dlopen itself... " >&6; }
  12747. if test ${lt_cv_dlopen_self+y}
  12748. then :
  12749. printf %s "(cached) " >&6
  12750. else case e in #(
  12751. e) if test yes = "$cross_compiling"; then :
  12752. lt_cv_dlopen_self=cross
  12753. else
  12754. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12755. lt_status=$lt_dlunknown
  12756. cat > conftest.$ac_ext <<_LT_EOF
  12757. #line $LINENO "configure"
  12758. #include "confdefs.h"
  12759. #if HAVE_DLFCN_H
  12760. #include <dlfcn.h>
  12761. #endif
  12762. #include <stdio.h>
  12763. #ifdef RTLD_GLOBAL
  12764. # define LT_DLGLOBAL RTLD_GLOBAL
  12765. #else
  12766. # ifdef DL_GLOBAL
  12767. # define LT_DLGLOBAL DL_GLOBAL
  12768. # else
  12769. # define LT_DLGLOBAL 0
  12770. # endif
  12771. #endif
  12772. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12773. find out it does not work in some platform. */
  12774. #ifndef LT_DLLAZY_OR_NOW
  12775. # ifdef RTLD_LAZY
  12776. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12777. # else
  12778. # ifdef DL_LAZY
  12779. # define LT_DLLAZY_OR_NOW DL_LAZY
  12780. # else
  12781. # ifdef RTLD_NOW
  12782. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12783. # else
  12784. # ifdef DL_NOW
  12785. # define LT_DLLAZY_OR_NOW DL_NOW
  12786. # else
  12787. # define LT_DLLAZY_OR_NOW 0
  12788. # endif
  12789. # endif
  12790. # endif
  12791. # endif
  12792. #endif
  12793. /* When -fvisibility=hidden is used, assume the code has been annotated
  12794. correspondingly for the symbols needed. */
  12795. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12796. int fnord (void) __attribute__((visibility("default")));
  12797. #endif
  12798. int fnord (void) { return 42; }
  12799. int main (void)
  12800. {
  12801. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12802. int status = $lt_dlunknown;
  12803. if (self)
  12804. {
  12805. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12806. else
  12807. {
  12808. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12809. else puts (dlerror ());
  12810. }
  12811. /* dlclose (self); */
  12812. }
  12813. else
  12814. puts (dlerror ());
  12815. return status;
  12816. }
  12817. _LT_EOF
  12818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12819. (eval $ac_link) 2>&5
  12820. ac_status=$?
  12821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12822. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12823. (./conftest; exit; ) >&5 2>/dev/null
  12824. lt_status=$?
  12825. case x$lt_status in
  12826. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12827. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12828. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12829. esac
  12830. else :
  12831. # compilation failed
  12832. lt_cv_dlopen_self=no
  12833. fi
  12834. fi
  12835. rm -fr conftest*
  12836. ;;
  12837. esac
  12838. fi
  12839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12840. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  12841. if test yes = "$lt_cv_dlopen_self"; then
  12842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12844. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  12845. if test ${lt_cv_dlopen_self_static+y}
  12846. then :
  12847. printf %s "(cached) " >&6
  12848. else case e in #(
  12849. e) if test yes = "$cross_compiling"; then :
  12850. lt_cv_dlopen_self_static=cross
  12851. else
  12852. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12853. lt_status=$lt_dlunknown
  12854. cat > conftest.$ac_ext <<_LT_EOF
  12855. #line $LINENO "configure"
  12856. #include "confdefs.h"
  12857. #if HAVE_DLFCN_H
  12858. #include <dlfcn.h>
  12859. #endif
  12860. #include <stdio.h>
  12861. #ifdef RTLD_GLOBAL
  12862. # define LT_DLGLOBAL RTLD_GLOBAL
  12863. #else
  12864. # ifdef DL_GLOBAL
  12865. # define LT_DLGLOBAL DL_GLOBAL
  12866. # else
  12867. # define LT_DLGLOBAL 0
  12868. # endif
  12869. #endif
  12870. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12871. find out it does not work in some platform. */
  12872. #ifndef LT_DLLAZY_OR_NOW
  12873. # ifdef RTLD_LAZY
  12874. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12875. # else
  12876. # ifdef DL_LAZY
  12877. # define LT_DLLAZY_OR_NOW DL_LAZY
  12878. # else
  12879. # ifdef RTLD_NOW
  12880. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12881. # else
  12882. # ifdef DL_NOW
  12883. # define LT_DLLAZY_OR_NOW DL_NOW
  12884. # else
  12885. # define LT_DLLAZY_OR_NOW 0
  12886. # endif
  12887. # endif
  12888. # endif
  12889. # endif
  12890. #endif
  12891. /* When -fvisibility=hidden is used, assume the code has been annotated
  12892. correspondingly for the symbols needed. */
  12893. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12894. int fnord (void) __attribute__((visibility("default")));
  12895. #endif
  12896. int fnord (void) { return 42; }
  12897. int main (void)
  12898. {
  12899. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12900. int status = $lt_dlunknown;
  12901. if (self)
  12902. {
  12903. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12904. else
  12905. {
  12906. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12907. else puts (dlerror ());
  12908. }
  12909. /* dlclose (self); */
  12910. }
  12911. else
  12912. puts (dlerror ());
  12913. return status;
  12914. }
  12915. _LT_EOF
  12916. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12917. (eval $ac_link) 2>&5
  12918. ac_status=$?
  12919. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12920. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12921. (./conftest; exit; ) >&5 2>/dev/null
  12922. lt_status=$?
  12923. case x$lt_status in
  12924. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12925. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12926. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12927. esac
  12928. else :
  12929. # compilation failed
  12930. lt_cv_dlopen_self_static=no
  12931. fi
  12932. fi
  12933. rm -fr conftest*
  12934. ;;
  12935. esac
  12936. fi
  12937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12938. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  12939. fi
  12940. CPPFLAGS=$save_CPPFLAGS
  12941. LDFLAGS=$save_LDFLAGS
  12942. LIBS=$save_LIBS
  12943. ;;
  12944. esac
  12945. case $lt_cv_dlopen_self in
  12946. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12947. *) enable_dlopen_self=unknown ;;
  12948. esac
  12949. case $lt_cv_dlopen_self_static in
  12950. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12951. *) enable_dlopen_self_static=unknown ;;
  12952. esac
  12953. fi
  12954. striplib=
  12955. old_striplib=
  12956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12957. printf %s "checking whether stripping libraries is possible... " >&6; }
  12958. if test -z "$STRIP"; then
  12959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12960. printf "%s\n" "no" >&6; }
  12961. else
  12962. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12963. old_striplib="$STRIP --strip-debug"
  12964. striplib="$STRIP --strip-unneeded"
  12965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12966. printf "%s\n" "yes" >&6; }
  12967. else
  12968. case $host_os in
  12969. darwin*)
  12970. # FIXME - insert some real tests, host_os isn't really good enough
  12971. striplib="$STRIP -x"
  12972. old_striplib="$STRIP -S"
  12973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12974. printf "%s\n" "yes" >&6; }
  12975. ;;
  12976. freebsd*)
  12977. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  12978. old_striplib="$STRIP --strip-debug"
  12979. striplib="$STRIP --strip-unneeded"
  12980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12981. printf "%s\n" "yes" >&6; }
  12982. else
  12983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12984. printf "%s\n" "no" >&6; }
  12985. fi
  12986. ;;
  12987. *)
  12988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12989. printf "%s\n" "no" >&6; }
  12990. ;;
  12991. esac
  12992. fi
  12993. fi
  12994. # Report what library types will actually be built
  12995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12996. printf %s "checking if libtool supports shared libraries... " >&6; }
  12997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12998. printf "%s\n" "$can_build_shared" >&6; }
  12999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13000. printf %s "checking whether to build shared libraries... " >&6; }
  13001. test no = "$can_build_shared" && enable_shared=no
  13002. # On AIX, shared libraries and static libraries use the same namespace, and
  13003. # are all built from PIC.
  13004. case $host_os in
  13005. aix3*)
  13006. test yes = "$enable_shared" && enable_static=no
  13007. if test -n "$RANLIB"; then
  13008. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13009. postinstall_cmds='$RANLIB $lib'
  13010. fi
  13011. ;;
  13012. aix[4-9]*)
  13013. if test ia64 != "$host_cpu"; then
  13014. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13015. yes,aix,yes) ;; # shared object as lib.so file only
  13016. yes,svr4,*) ;; # shared object as lib.so archive member only
  13017. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13018. esac
  13019. fi
  13020. ;;
  13021. esac
  13022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13023. printf "%s\n" "$enable_shared" >&6; }
  13024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13025. printf %s "checking whether to build static libraries... " >&6; }
  13026. # Make sure either enable_shared or enable_static is yes.
  13027. test yes = "$enable_shared" || enable_static=yes
  13028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13029. printf "%s\n" "$enable_static" >&6; }
  13030. fi
  13031. ac_ext=c
  13032. ac_cpp='$CPP $CPPFLAGS'
  13033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13036. CC=$lt_save_CC
  13037. ac_config_commands="$ac_config_commands libtool"
  13038. # Only expand once:
  13039. ac_ext=c
  13040. ac_cpp='$CPP $CPPFLAGS'
  13041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13044. if test "${ac_cv_prog_cc_c99}" = no
  13045. then :
  13046. as_fn_error $? "Expat requires a C99 compiler." "$LINENO" 5
  13047. fi
  13048. if test "$GCC" = yes
  13049. then :
  13050. for flag in -Wall -Wextra; do
  13051. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13053. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13054. if eval test \${$as_CACHEVAR+y}
  13055. then :
  13056. printf %s "(cached) " >&6
  13057. else case e in #(
  13058. e)
  13059. ax_check_save_flags=$CFLAGS
  13060. CFLAGS="$CFLAGS -Werror $flag"
  13061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13062. /* end confdefs.h. */
  13063. int main(void) { return 0; }
  13064. _ACEOF
  13065. if ac_fn_c_try_compile "$LINENO"
  13066. then :
  13067. eval "$as_CACHEVAR=yes"
  13068. else case e in #(
  13069. e) eval "$as_CACHEVAR=no" ;;
  13070. esac
  13071. fi
  13072. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13073. CFLAGS=$ax_check_save_flags ;;
  13074. esac
  13075. fi
  13076. eval ac_res=\$$as_CACHEVAR
  13077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13078. printf "%s\n" "$ac_res" >&6; }
  13079. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13080. then :
  13081. if test ${AM_CFLAGS+y}
  13082. then :
  13083. case " $AM_CFLAGS " in #(
  13084. *" $flag "*) :
  13085. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13086. (: AM_CFLAGS already contains $flag) 2>&5
  13087. ac_status=$?
  13088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13089. test $ac_status = 0; } ;; #(
  13090. *) :
  13091. as_fn_append AM_CFLAGS " $flag"
  13092. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13093. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13094. ac_status=$?
  13095. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13096. test $ac_status = 0; }
  13097. ;;
  13098. esac
  13099. else case e in #(
  13100. e)
  13101. AM_CFLAGS=$flag
  13102. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13103. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13104. ac_status=$?
  13105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13106. test $ac_status = 0; }
  13107. ;;
  13108. esac
  13109. fi
  13110. else case e in #(
  13111. e) : ;;
  13112. esac
  13113. fi
  13114. done
  13115. for flag in -fexceptions; do
  13116. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13118. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13119. if eval test \${$as_CACHEVAR+y}
  13120. then :
  13121. printf %s "(cached) " >&6
  13122. else case e in #(
  13123. e)
  13124. ax_check_save_flags=$CFLAGS
  13125. CFLAGS="$CFLAGS -Werror $flag"
  13126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13127. /* end confdefs.h. */
  13128. int main(void) { return 0; }
  13129. _ACEOF
  13130. if ac_fn_c_try_compile "$LINENO"
  13131. then :
  13132. eval "$as_CACHEVAR=yes"
  13133. else case e in #(
  13134. e) eval "$as_CACHEVAR=no" ;;
  13135. esac
  13136. fi
  13137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13138. CFLAGS=$ax_check_save_flags ;;
  13139. esac
  13140. fi
  13141. eval ac_res=\$$as_CACHEVAR
  13142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13143. printf "%s\n" "$ac_res" >&6; }
  13144. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13145. then :
  13146. if test ${AM_CFLAGS+y}
  13147. then :
  13148. case " $AM_CFLAGS " in #(
  13149. *" $flag "*) :
  13150. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13151. (: AM_CFLAGS already contains $flag) 2>&5
  13152. ac_status=$?
  13153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13154. test $ac_status = 0; } ;; #(
  13155. *) :
  13156. as_fn_append AM_CFLAGS " $flag"
  13157. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13158. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13159. ac_status=$?
  13160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13161. test $ac_status = 0; }
  13162. ;;
  13163. esac
  13164. else case e in #(
  13165. e)
  13166. AM_CFLAGS=$flag
  13167. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13168. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13169. ac_status=$?
  13170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13171. test $ac_status = 0; }
  13172. ;;
  13173. esac
  13174. fi
  13175. else case e in #(
  13176. e) : ;;
  13177. esac
  13178. fi
  13179. done
  13180. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  13181. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13183. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13184. if eval test \${$as_CACHEVAR+y}
  13185. then :
  13186. printf %s "(cached) " >&6
  13187. else case e in #(
  13188. e)
  13189. ax_check_save_flags=$CFLAGS
  13190. CFLAGS="$CFLAGS -Werror $flag"
  13191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13192. /* end confdefs.h. */
  13193. int main(void) { return 0; }
  13194. _ACEOF
  13195. if ac_fn_c_try_compile "$LINENO"
  13196. then :
  13197. eval "$as_CACHEVAR=yes"
  13198. else case e in #(
  13199. e) eval "$as_CACHEVAR=no" ;;
  13200. esac
  13201. fi
  13202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13203. CFLAGS=$ax_check_save_flags ;;
  13204. esac
  13205. fi
  13206. eval ac_res=\$$as_CACHEVAR
  13207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13208. printf "%s\n" "$ac_res" >&6; }
  13209. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13210. then :
  13211. if test ${AM_CFLAGS+y}
  13212. then :
  13213. case " $AM_CFLAGS " in #(
  13214. *" $flag "*) :
  13215. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13216. (: AM_CFLAGS already contains $flag) 2>&5
  13217. ac_status=$?
  13218. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13219. test $ac_status = 0; } ;; #(
  13220. *) :
  13221. as_fn_append AM_CFLAGS " $flag"
  13222. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13223. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13224. ac_status=$?
  13225. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13226. test $ac_status = 0; }
  13227. ;;
  13228. esac
  13229. else case e in #(
  13230. e)
  13231. AM_CFLAGS=$flag
  13232. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13233. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13234. ac_status=$?
  13235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13236. test $ac_status = 0; }
  13237. ;;
  13238. esac
  13239. fi
  13240. else case e in #(
  13241. e) : ;;
  13242. esac
  13243. fi
  13244. done
  13245. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  13246. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13248. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13249. if eval test \${$as_CACHEVAR+y}
  13250. then :
  13251. printf %s "(cached) " >&6
  13252. else case e in #(
  13253. e)
  13254. ax_check_save_flags=$CFLAGS
  13255. CFLAGS="$CFLAGS -Werror $flag"
  13256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13257. /* end confdefs.h. */
  13258. int main(void) { return 0; }
  13259. _ACEOF
  13260. if ac_fn_c_try_compile "$LINENO"
  13261. then :
  13262. eval "$as_CACHEVAR=yes"
  13263. else case e in #(
  13264. e) eval "$as_CACHEVAR=no" ;;
  13265. esac
  13266. fi
  13267. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13268. CFLAGS=$ax_check_save_flags ;;
  13269. esac
  13270. fi
  13271. eval ac_res=\$$as_CACHEVAR
  13272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13273. printf "%s\n" "$ac_res" >&6; }
  13274. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13275. then :
  13276. if test ${AM_CFLAGS+y}
  13277. then :
  13278. case " $AM_CFLAGS " in #(
  13279. *" $flag "*) :
  13280. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13281. (: AM_CFLAGS already contains $flag) 2>&5
  13282. ac_status=$?
  13283. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13284. test $ac_status = 0; } ;; #(
  13285. *) :
  13286. as_fn_append AM_CFLAGS " $flag"
  13287. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13288. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13289. ac_status=$?
  13290. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13291. test $ac_status = 0; }
  13292. ;;
  13293. esac
  13294. else case e in #(
  13295. e)
  13296. AM_CFLAGS=$flag
  13297. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13298. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13299. ac_status=$?
  13300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13301. test $ac_status = 0; }
  13302. ;;
  13303. esac
  13304. fi
  13305. else case e in #(
  13306. e) : ;;
  13307. esac
  13308. fi
  13309. done
  13310. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  13311. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13313. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13314. if eval test \${$as_CACHEVAR+y}
  13315. then :
  13316. printf %s "(cached) " >&6
  13317. else case e in #(
  13318. e)
  13319. ax_check_save_flags=$CFLAGS
  13320. CFLAGS="$CFLAGS -Werror $flag"
  13321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13322. /* end confdefs.h. */
  13323. int main(void) { return 0; }
  13324. _ACEOF
  13325. if ac_fn_c_try_compile "$LINENO"
  13326. then :
  13327. eval "$as_CACHEVAR=yes"
  13328. else case e in #(
  13329. e) eval "$as_CACHEVAR=no" ;;
  13330. esac
  13331. fi
  13332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13333. CFLAGS=$ax_check_save_flags ;;
  13334. esac
  13335. fi
  13336. eval ac_res=\$$as_CACHEVAR
  13337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13338. printf "%s\n" "$ac_res" >&6; }
  13339. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13340. then :
  13341. if test ${AM_CFLAGS+y}
  13342. then :
  13343. case " $AM_CFLAGS " in #(
  13344. *" $flag "*) :
  13345. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13346. (: AM_CFLAGS already contains $flag) 2>&5
  13347. ac_status=$?
  13348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13349. test $ac_status = 0; } ;; #(
  13350. *) :
  13351. as_fn_append AM_CFLAGS " $flag"
  13352. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13353. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13354. ac_status=$?
  13355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13356. test $ac_status = 0; }
  13357. ;;
  13358. esac
  13359. else case e in #(
  13360. e)
  13361. AM_CFLAGS=$flag
  13362. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13363. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13364. ac_status=$?
  13365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13366. test $ac_status = 0; }
  13367. ;;
  13368. esac
  13369. fi
  13370. else case e in #(
  13371. e) : ;;
  13372. esac
  13373. fi
  13374. done
  13375. for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
  13376. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
  13377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  13378. printf %s "checking whether C compiler accepts $flag... " >&6; }
  13379. if eval test \${$as_CACHEVAR+y}
  13380. then :
  13381. printf %s "(cached) " >&6
  13382. else case e in #(
  13383. e)
  13384. ax_check_save_flags=$CFLAGS
  13385. CFLAGS="$CFLAGS -Werror $flag"
  13386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13387. /* end confdefs.h. */
  13388. int main(void) { return 0; }
  13389. _ACEOF
  13390. if ac_fn_c_try_compile "$LINENO"
  13391. then :
  13392. eval "$as_CACHEVAR=yes"
  13393. else case e in #(
  13394. e) eval "$as_CACHEVAR=no" ;;
  13395. esac
  13396. fi
  13397. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13398. CFLAGS=$ax_check_save_flags ;;
  13399. esac
  13400. fi
  13401. eval ac_res=\$$as_CACHEVAR
  13402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13403. printf "%s\n" "$ac_res" >&6; }
  13404. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  13405. then :
  13406. if test ${AM_CFLAGS+y}
  13407. then :
  13408. case " $AM_CFLAGS " in #(
  13409. *" $flag "*) :
  13410. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  13411. (: AM_CFLAGS already contains $flag) 2>&5
  13412. ac_status=$?
  13413. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13414. test $ac_status = 0; } ;; #(
  13415. *) :
  13416. as_fn_append AM_CFLAGS " $flag"
  13417. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13418. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13419. ac_status=$?
  13420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13421. test $ac_status = 0; }
  13422. ;;
  13423. esac
  13424. else case e in #(
  13425. e)
  13426. AM_CFLAGS=$flag
  13427. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  13428. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  13429. ac_status=$?
  13430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13431. test $ac_status = 0; }
  13432. ;;
  13433. esac
  13434. fi
  13435. else case e in #(
  13436. e) : ;;
  13437. esac
  13438. fi
  13439. done
  13440. fi
  13441. ac_ext=cpp
  13442. ac_cpp='$CXXCPP $CPPFLAGS'
  13443. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13444. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13445. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13446. ac_ext=cpp
  13447. ac_cpp='$CXXCPP $CPPFLAGS'
  13448. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13449. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13450. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13451. if test -z "$CXX"; then
  13452. if test -n "$CCC"; then
  13453. CXX=$CCC
  13454. else
  13455. if test -n "$ac_tool_prefix"; then
  13456. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  13457. do
  13458. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  13459. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  13460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13461. printf %s "checking for $ac_word... " >&6; }
  13462. if test ${ac_cv_prog_CXX+y}
  13463. then :
  13464. printf %s "(cached) " >&6
  13465. else case e in #(
  13466. e) if test -n "$CXX"; then
  13467. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  13468. else
  13469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13470. for as_dir in $PATH
  13471. do
  13472. IFS=$as_save_IFS
  13473. case $as_dir in #(((
  13474. '') as_dir=./ ;;
  13475. */) ;;
  13476. *) as_dir=$as_dir/ ;;
  13477. esac
  13478. for ac_exec_ext in '' $ac_executable_extensions; do
  13479. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13480. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  13481. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13482. break 2
  13483. fi
  13484. done
  13485. done
  13486. IFS=$as_save_IFS
  13487. fi ;;
  13488. esac
  13489. fi
  13490. CXX=$ac_cv_prog_CXX
  13491. if test -n "$CXX"; then
  13492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  13493. printf "%s\n" "$CXX" >&6; }
  13494. else
  13495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13496. printf "%s\n" "no" >&6; }
  13497. fi
  13498. test -n "$CXX" && break
  13499. done
  13500. fi
  13501. if test -z "$CXX"; then
  13502. ac_ct_CXX=$CXX
  13503. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  13504. do
  13505. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13506. set dummy $ac_prog; ac_word=$2
  13507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13508. printf %s "checking for $ac_word... " >&6; }
  13509. if test ${ac_cv_prog_ac_ct_CXX+y}
  13510. then :
  13511. printf %s "(cached) " >&6
  13512. else case e in #(
  13513. e) if test -n "$ac_ct_CXX"; then
  13514. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13515. else
  13516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13517. for as_dir in $PATH
  13518. do
  13519. IFS=$as_save_IFS
  13520. case $as_dir in #(((
  13521. '') as_dir=./ ;;
  13522. */) ;;
  13523. *) as_dir=$as_dir/ ;;
  13524. esac
  13525. for ac_exec_ext in '' $ac_executable_extensions; do
  13526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13527. ac_cv_prog_ac_ct_CXX="$ac_prog"
  13528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13529. break 2
  13530. fi
  13531. done
  13532. done
  13533. IFS=$as_save_IFS
  13534. fi ;;
  13535. esac
  13536. fi
  13537. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13538. if test -n "$ac_ct_CXX"; then
  13539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13540. printf "%s\n" "$ac_ct_CXX" >&6; }
  13541. else
  13542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13543. printf "%s\n" "no" >&6; }
  13544. fi
  13545. test -n "$ac_ct_CXX" && break
  13546. done
  13547. if test "x$ac_ct_CXX" = x; then
  13548. CXX="g++"
  13549. else
  13550. case $cross_compiling:$ac_tool_warned in
  13551. yes:)
  13552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13553. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13554. ac_tool_warned=yes ;;
  13555. esac
  13556. CXX=$ac_ct_CXX
  13557. fi
  13558. fi
  13559. fi
  13560. fi
  13561. # Provide some information about the compiler.
  13562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13563. set X $ac_compile
  13564. ac_compiler=$2
  13565. for ac_option in --version -v -V -qversion; do
  13566. { { ac_try="$ac_compiler $ac_option >&5"
  13567. case "(($ac_try" in
  13568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13569. *) ac_try_echo=$ac_try;;
  13570. esac
  13571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13572. printf "%s\n" "$ac_try_echo"; } >&5
  13573. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13574. ac_status=$?
  13575. if test -s conftest.err; then
  13576. sed '10a\
  13577. ... rest of stderr output deleted ...
  13578. 10q' conftest.err >conftest.er1
  13579. cat conftest.er1 >&5
  13580. fi
  13581. rm -f conftest.er1 conftest.err
  13582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13583. test $ac_status = 0; }
  13584. done
  13585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  13586. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  13587. if test ${ac_cv_cxx_compiler_gnu+y}
  13588. then :
  13589. printf %s "(cached) " >&6
  13590. else case e in #(
  13591. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13592. /* end confdefs.h. */
  13593. int
  13594. main (void)
  13595. {
  13596. #ifndef __GNUC__
  13597. choke me
  13598. #endif
  13599. ;
  13600. return 0;
  13601. }
  13602. _ACEOF
  13603. if ac_fn_cxx_try_compile "$LINENO"
  13604. then :
  13605. ac_compiler_gnu=yes
  13606. else case e in #(
  13607. e) ac_compiler_gnu=no ;;
  13608. esac
  13609. fi
  13610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13611. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13612. ;;
  13613. esac
  13614. fi
  13615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13616. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  13617. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13618. if test $ac_compiler_gnu = yes; then
  13619. GXX=yes
  13620. else
  13621. GXX=
  13622. fi
  13623. ac_test_CXXFLAGS=${CXXFLAGS+y}
  13624. ac_save_CXXFLAGS=$CXXFLAGS
  13625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13626. printf %s "checking whether $CXX accepts -g... " >&6; }
  13627. if test ${ac_cv_prog_cxx_g+y}
  13628. then :
  13629. printf %s "(cached) " >&6
  13630. else case e in #(
  13631. e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13632. ac_cxx_werror_flag=yes
  13633. ac_cv_prog_cxx_g=no
  13634. CXXFLAGS="-g"
  13635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13636. /* end confdefs.h. */
  13637. int
  13638. main (void)
  13639. {
  13640. ;
  13641. return 0;
  13642. }
  13643. _ACEOF
  13644. if ac_fn_cxx_try_compile "$LINENO"
  13645. then :
  13646. ac_cv_prog_cxx_g=yes
  13647. else case e in #(
  13648. e) CXXFLAGS=""
  13649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13650. /* end confdefs.h. */
  13651. int
  13652. main (void)
  13653. {
  13654. ;
  13655. return 0;
  13656. }
  13657. _ACEOF
  13658. if ac_fn_cxx_try_compile "$LINENO"
  13659. then :
  13660. else case e in #(
  13661. e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13662. CXXFLAGS="-g"
  13663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13664. /* end confdefs.h. */
  13665. int
  13666. main (void)
  13667. {
  13668. ;
  13669. return 0;
  13670. }
  13671. _ACEOF
  13672. if ac_fn_cxx_try_compile "$LINENO"
  13673. then :
  13674. ac_cv_prog_cxx_g=yes
  13675. fi
  13676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13677. esac
  13678. fi
  13679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13680. esac
  13681. fi
  13682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13683. ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
  13684. esac
  13685. fi
  13686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13687. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  13688. if test $ac_test_CXXFLAGS; then
  13689. CXXFLAGS=$ac_save_CXXFLAGS
  13690. elif test $ac_cv_prog_cxx_g = yes; then
  13691. if test "$GXX" = yes; then
  13692. CXXFLAGS="-g -O2"
  13693. else
  13694. CXXFLAGS="-g"
  13695. fi
  13696. else
  13697. if test "$GXX" = yes; then
  13698. CXXFLAGS="-O2"
  13699. else
  13700. CXXFLAGS=
  13701. fi
  13702. fi
  13703. ac_prog_cxx_stdcxx=no
  13704. if test x$ac_prog_cxx_stdcxx = xno
  13705. then :
  13706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  13707. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  13708. if test ${ac_cv_prog_cxx_cxx11+y}
  13709. then :
  13710. printf %s "(cached) " >&6
  13711. else case e in #(
  13712. e) ac_cv_prog_cxx_cxx11=no
  13713. ac_save_CXX=$CXX
  13714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13715. /* end confdefs.h. */
  13716. $ac_cxx_conftest_cxx11_program
  13717. _ACEOF
  13718. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  13719. do
  13720. CXX="$ac_save_CXX $ac_arg"
  13721. if ac_fn_cxx_try_compile "$LINENO"
  13722. then :
  13723. ac_cv_prog_cxx_cxx11=$ac_arg
  13724. fi
  13725. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13726. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  13727. done
  13728. rm -f conftest.$ac_ext
  13729. CXX=$ac_save_CXX ;;
  13730. esac
  13731. fi
  13732. if test "x$ac_cv_prog_cxx_cxx11" = xno
  13733. then :
  13734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13735. printf "%s\n" "unsupported" >&6; }
  13736. else case e in #(
  13737. e) if test "x$ac_cv_prog_cxx_cxx11" = x
  13738. then :
  13739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13740. printf "%s\n" "none needed" >&6; }
  13741. else case e in #(
  13742. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  13743. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  13744. CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
  13745. esac
  13746. fi
  13747. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  13748. ac_prog_cxx_stdcxx=cxx11 ;;
  13749. esac
  13750. fi
  13751. fi
  13752. if test x$ac_prog_cxx_stdcxx = xno
  13753. then :
  13754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  13755. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  13756. if test ${ac_cv_prog_cxx_cxx98+y}
  13757. then :
  13758. printf %s "(cached) " >&6
  13759. else case e in #(
  13760. e) ac_cv_prog_cxx_cxx98=no
  13761. ac_save_CXX=$CXX
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. $ac_cxx_conftest_cxx98_program
  13765. _ACEOF
  13766. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  13767. do
  13768. CXX="$ac_save_CXX $ac_arg"
  13769. if ac_fn_cxx_try_compile "$LINENO"
  13770. then :
  13771. ac_cv_prog_cxx_cxx98=$ac_arg
  13772. fi
  13773. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13774. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  13775. done
  13776. rm -f conftest.$ac_ext
  13777. CXX=$ac_save_CXX ;;
  13778. esac
  13779. fi
  13780. if test "x$ac_cv_prog_cxx_cxx98" = xno
  13781. then :
  13782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13783. printf "%s\n" "unsupported" >&6; }
  13784. else case e in #(
  13785. e) if test "x$ac_cv_prog_cxx_cxx98" = x
  13786. then :
  13787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13788. printf "%s\n" "none needed" >&6; }
  13789. else case e in #(
  13790. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  13791. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  13792. CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
  13793. esac
  13794. fi
  13795. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  13796. ac_prog_cxx_stdcxx=cxx98 ;;
  13797. esac
  13798. fi
  13799. fi
  13800. ac_ext=cpp
  13801. ac_cpp='$CXXCPP $CPPFLAGS'
  13802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13805. depcc="$CXX" am_compiler_list=
  13806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13807. printf %s "checking dependency style of $depcc... " >&6; }
  13808. if test ${am_cv_CXX_dependencies_compiler_type+y}
  13809. then :
  13810. printf %s "(cached) " >&6
  13811. else case e in #(
  13812. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13813. # We make a subdir and do the tests there. Otherwise we can end up
  13814. # making bogus files that we don't know about and never remove. For
  13815. # instance it was reported that on HP-UX the gcc test will end up
  13816. # making a dummy file named 'D' -- because '-MD' means "put the output
  13817. # in D".
  13818. rm -rf conftest.dir
  13819. mkdir conftest.dir
  13820. # Copy depcomp to subdir because otherwise we won't find it if we're
  13821. # using a relative directory.
  13822. cp "$am_depcomp" conftest.dir
  13823. cd conftest.dir
  13824. # We will build objects and dependencies in a subdirectory because
  13825. # it helps to detect inapplicable dependency modes. For instance
  13826. # both Tru64's cc and ICC support -MD to output dependencies as a
  13827. # side effect of compilation, but ICC will put the dependencies in
  13828. # the current directory while Tru64 will put them in the object
  13829. # directory.
  13830. mkdir sub
  13831. am_cv_CXX_dependencies_compiler_type=none
  13832. if test "$am_compiler_list" = ""; then
  13833. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13834. fi
  13835. am__universal=false
  13836. case " $depcc " in #(
  13837. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13838. esac
  13839. for depmode in $am_compiler_list; do
  13840. # Setup a source with many dependencies, because some compilers
  13841. # like to wrap large dependency lists on column 80 (with \), and
  13842. # we should not choose a depcomp mode which is confused by this.
  13843. #
  13844. # We need to recreate these files for each test, as the compiler may
  13845. # overwrite some of them when testing with obscure command lines.
  13846. # This happens at least with the AIX C compiler.
  13847. : > sub/conftest.c
  13848. for i in 1 2 3 4 5 6; do
  13849. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13850. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13851. # Solaris 10 /bin/sh.
  13852. echo '/* dummy */' > sub/conftst$i.h
  13853. done
  13854. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13855. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13856. # mode. It turns out that the SunPro C++ compiler does not properly
  13857. # handle '-M -o', and we need to detect this. Also, some Intel
  13858. # versions had trouble with output in subdirs.
  13859. am__obj=sub/conftest.${OBJEXT-o}
  13860. am__minus_obj="-o $am__obj"
  13861. case $depmode in
  13862. gcc)
  13863. # This depmode causes a compiler race in universal mode.
  13864. test "$am__universal" = false || continue
  13865. ;;
  13866. nosideeffect)
  13867. # After this tag, mechanisms are not by side-effect, so they'll
  13868. # only be used when explicitly requested.
  13869. if test "x$enable_dependency_tracking" = xyes; then
  13870. continue
  13871. else
  13872. break
  13873. fi
  13874. ;;
  13875. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13876. # This compiler won't grok '-c -o', but also, the minuso test has
  13877. # not run yet. These depmodes are late enough in the game, and
  13878. # so weak that their functioning should not be impacted.
  13879. am__obj=conftest.${OBJEXT-o}
  13880. am__minus_obj=
  13881. ;;
  13882. none) break ;;
  13883. esac
  13884. if depmode=$depmode \
  13885. source=sub/conftest.c object=$am__obj \
  13886. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13887. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13888. >/dev/null 2>conftest.err &&
  13889. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13890. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13891. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13892. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13893. # icc doesn't choke on unknown options, it will just issue warnings
  13894. # or remarks (even with -Werror). So we grep stderr for any message
  13895. # that says an option was ignored or not supported.
  13896. # When given -MP, icc 7.0 and 7.1 complain thus:
  13897. # icc: Command line warning: ignoring option '-M'; no argument required
  13898. # The diagnosis changed in icc 8.0:
  13899. # icc: Command line remark: option '-MP' not supported
  13900. if (grep 'ignoring option' conftest.err ||
  13901. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13902. am_cv_CXX_dependencies_compiler_type=$depmode
  13903. break
  13904. fi
  13905. fi
  13906. done
  13907. cd ..
  13908. rm -rf conftest.dir
  13909. else
  13910. am_cv_CXX_dependencies_compiler_type=none
  13911. fi
  13912. ;;
  13913. esac
  13914. fi
  13915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13916. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13917. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13918. if
  13919. test "x$enable_dependency_tracking" != xno \
  13920. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13921. am__fastdepCXX_TRUE=
  13922. am__fastdepCXX_FALSE='#'
  13923. else
  13924. am__fastdepCXX_TRUE='#'
  13925. am__fastdepCXX_FALSE=
  13926. fi
  13927. func_stripname_cnf ()
  13928. {
  13929. case $2 in
  13930. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  13931. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  13932. esac
  13933. } # func_stripname_cnf
  13934. if test -n "$CXX" && ( test no != "$CXX" &&
  13935. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  13936. (test g++ != "$CXX"))); then
  13937. ac_ext=cpp
  13938. ac_cpp='$CXXCPP $CPPFLAGS'
  13939. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13940. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13941. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13943. printf %s "checking how to run the C++ preprocessor... " >&6; }
  13944. if test -z "$CXXCPP"; then
  13945. if test ${ac_cv_prog_CXXCPP+y}
  13946. then :
  13947. printf %s "(cached) " >&6
  13948. else case e in #(
  13949. e) # Double quotes because $CXX needs to be expanded
  13950. for CXXCPP in "$CXX -E" cpp /lib/cpp
  13951. do
  13952. ac_preproc_ok=false
  13953. for ac_cxx_preproc_warn_flag in '' yes
  13954. do
  13955. # Use a header file that comes with gcc, so configuring glibc
  13956. # with a fresh cross-compiler works.
  13957. # On the NeXT, cc -E runs the code through the compiler's parser,
  13958. # not just through cpp. "Syntax error" is here to catch this case.
  13959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13960. /* end confdefs.h. */
  13961. #include <limits.h>
  13962. Syntax error
  13963. _ACEOF
  13964. if ac_fn_cxx_try_cpp "$LINENO"
  13965. then :
  13966. else case e in #(
  13967. e) # Broken: fails on valid input.
  13968. continue ;;
  13969. esac
  13970. fi
  13971. rm -f conftest.err conftest.i conftest.$ac_ext
  13972. # OK, works on sane cases. Now check whether nonexistent headers
  13973. # can be detected and how.
  13974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13975. /* end confdefs.h. */
  13976. #include <ac_nonexistent.h>
  13977. _ACEOF
  13978. if ac_fn_cxx_try_cpp "$LINENO"
  13979. then :
  13980. # Broken: success on invalid input.
  13981. continue
  13982. else case e in #(
  13983. e) # Passes both tests.
  13984. ac_preproc_ok=:
  13985. break ;;
  13986. esac
  13987. fi
  13988. rm -f conftest.err conftest.i conftest.$ac_ext
  13989. done
  13990. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13991. rm -f conftest.i conftest.err conftest.$ac_ext
  13992. if $ac_preproc_ok
  13993. then :
  13994. break
  13995. fi
  13996. done
  13997. ac_cv_prog_CXXCPP=$CXXCPP
  13998. ;;
  13999. esac
  14000. fi
  14001. CXXCPP=$ac_cv_prog_CXXCPP
  14002. else
  14003. ac_cv_prog_CXXCPP=$CXXCPP
  14004. fi
  14005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  14006. printf "%s\n" "$CXXCPP" >&6; }
  14007. ac_preproc_ok=false
  14008. for ac_cxx_preproc_warn_flag in '' yes
  14009. do
  14010. # Use a header file that comes with gcc, so configuring glibc
  14011. # with a fresh cross-compiler works.
  14012. # On the NeXT, cc -E runs the code through the compiler's parser,
  14013. # not just through cpp. "Syntax error" is here to catch this case.
  14014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14015. /* end confdefs.h. */
  14016. #include <limits.h>
  14017. Syntax error
  14018. _ACEOF
  14019. if ac_fn_cxx_try_cpp "$LINENO"
  14020. then :
  14021. else case e in #(
  14022. e) # Broken: fails on valid input.
  14023. continue ;;
  14024. esac
  14025. fi
  14026. rm -f conftest.err conftest.i conftest.$ac_ext
  14027. # OK, works on sane cases. Now check whether nonexistent headers
  14028. # can be detected and how.
  14029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14030. /* end confdefs.h. */
  14031. #include <ac_nonexistent.h>
  14032. _ACEOF
  14033. if ac_fn_cxx_try_cpp "$LINENO"
  14034. then :
  14035. # Broken: success on invalid input.
  14036. continue
  14037. else case e in #(
  14038. e) # Passes both tests.
  14039. ac_preproc_ok=:
  14040. break ;;
  14041. esac
  14042. fi
  14043. rm -f conftest.err conftest.i conftest.$ac_ext
  14044. done
  14045. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14046. rm -f conftest.i conftest.err conftest.$ac_ext
  14047. if $ac_preproc_ok
  14048. then :
  14049. else case e in #(
  14050. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  14051. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  14052. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  14053. See 'config.log' for more details" "$LINENO" 5; } ;;
  14054. esac
  14055. fi
  14056. ac_ext=cpp
  14057. ac_cpp='$CXXCPP $CPPFLAGS'
  14058. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14059. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14060. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14061. else
  14062. _lt_caught_CXX_error=yes
  14063. fi
  14064. ac_ext=cpp
  14065. ac_cpp='$CXXCPP $CPPFLAGS'
  14066. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14067. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14068. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14069. archive_cmds_need_lc_CXX=no
  14070. allow_undefined_flag_CXX=
  14071. always_export_symbols_CXX=no
  14072. archive_expsym_cmds_CXX=
  14073. compiler_needs_object_CXX=no
  14074. export_dynamic_flag_spec_CXX=
  14075. hardcode_direct_CXX=no
  14076. hardcode_direct_absolute_CXX=no
  14077. hardcode_libdir_flag_spec_CXX=
  14078. hardcode_libdir_separator_CXX=
  14079. hardcode_minus_L_CXX=no
  14080. hardcode_shlibpath_var_CXX=unsupported
  14081. hardcode_automatic_CXX=no
  14082. inherit_rpath_CXX=no
  14083. module_cmds_CXX=
  14084. module_expsym_cmds_CXX=
  14085. link_all_deplibs_CXX=unknown
  14086. old_archive_cmds_CXX=$old_archive_cmds
  14087. reload_flag_CXX=$reload_flag
  14088. reload_cmds_CXX=$reload_cmds
  14089. no_undefined_flag_CXX=
  14090. whole_archive_flag_spec_CXX=
  14091. enable_shared_with_static_runtimes_CXX=no
  14092. # Source file extension for C++ test sources.
  14093. ac_ext=cpp
  14094. # Object file extension for compiled C++ test sources.
  14095. objext=o
  14096. objext_CXX=$objext
  14097. # No sense in running all these tests if we already determined that
  14098. # the CXX compiler isn't working. Some variables (like enable_shared)
  14099. # are currently assumed to apply to all compilers on this platform,
  14100. # and will be corrupted by setting them based on a non-working compiler.
  14101. if test yes != "$_lt_caught_CXX_error"; then
  14102. # Code to be used in simple compile tests
  14103. lt_simple_compile_test_code="int some_variable = 0;"
  14104. # Code to be used in simple link tests
  14105. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  14106. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14107. # If no C compiler was specified, use CC.
  14108. LTCC=${LTCC-"$CC"}
  14109. # If no C compiler flags were specified, use CFLAGS.
  14110. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14111. # Allow CC to be a program name with arguments.
  14112. compiler=$CC
  14113. # save warnings/boilerplate of simple test code
  14114. ac_outfile=conftest.$ac_objext
  14115. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14116. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14117. _lt_compiler_boilerplate=`cat conftest.err`
  14118. $RM conftest*
  14119. ac_outfile=conftest.$ac_objext
  14120. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14121. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14122. _lt_linker_boilerplate=`cat conftest.err`
  14123. $RM -r conftest*
  14124. # Allow CC to be a program name with arguments.
  14125. lt_save_CC=$CC
  14126. lt_save_CFLAGS=$CFLAGS
  14127. lt_save_LD=$LD
  14128. lt_save_GCC=$GCC
  14129. GCC=$GXX
  14130. lt_save_with_gnu_ld=$with_gnu_ld
  14131. lt_save_path_LD=$lt_cv_path_LD
  14132. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  14133. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  14134. else
  14135. $as_unset lt_cv_prog_gnu_ld
  14136. fi
  14137. if test -n "${lt_cv_path_LDCXX+set}"; then
  14138. lt_cv_path_LD=$lt_cv_path_LDCXX
  14139. else
  14140. $as_unset lt_cv_path_LD
  14141. fi
  14142. test -z "${LDCXX+set}" || LD=$LDCXX
  14143. CC=${CXX-"c++"}
  14144. CFLAGS=$CXXFLAGS
  14145. compiler=$CC
  14146. compiler_CXX=$CC
  14147. func_cc_basename $compiler
  14148. cc_basename=$func_cc_basename_result
  14149. if test -n "$compiler"; then
  14150. # We don't want -fno-exception when compiling C++ code, so set the
  14151. # no_builtin_flag separately
  14152. if test yes = "$GXX"; then
  14153. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  14154. else
  14155. lt_prog_compiler_no_builtin_flag_CXX=
  14156. fi
  14157. if test yes = "$GXX"; then
  14158. # Set up default GNU C++ configuration
  14159. # Check whether --with-gnu-ld was given.
  14160. if test ${with_gnu_ld+y}
  14161. then :
  14162. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  14163. else case e in #(
  14164. e) with_gnu_ld=no ;;
  14165. esac
  14166. fi
  14167. ac_prog=ld
  14168. if test yes = "$GCC"; then
  14169. # Check if gcc -print-prog-name=ld gives a path.
  14170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14171. printf %s "checking for ld used by $CC... " >&6; }
  14172. case $host in
  14173. *-*-mingw* | *-*-windows*)
  14174. # gcc leaves a trailing carriage return, which upsets mingw
  14175. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14176. *)
  14177. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14178. esac
  14179. case $ac_prog in
  14180. # Accept absolute paths.
  14181. [\\/]* | ?:[\\/]*)
  14182. re_direlt='/[^/][^/]*/\.\./'
  14183. # Canonicalize the pathname of ld
  14184. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14185. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14186. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14187. done
  14188. test -z "$LD" && LD=$ac_prog
  14189. ;;
  14190. "")
  14191. # If it fails, then pretend we aren't using GCC.
  14192. ac_prog=ld
  14193. ;;
  14194. *)
  14195. # If it is relative, then search for the first ld in PATH.
  14196. with_gnu_ld=unknown
  14197. ;;
  14198. esac
  14199. elif test yes = "$with_gnu_ld"; then
  14200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14201. printf %s "checking for GNU ld... " >&6; }
  14202. else
  14203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14204. printf %s "checking for non-GNU ld... " >&6; }
  14205. fi
  14206. if test ${lt_cv_path_LD+y}
  14207. then :
  14208. printf %s "(cached) " >&6
  14209. else case e in #(
  14210. e) if test -z "$LD"; then
  14211. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  14212. for ac_dir in $PATH; do
  14213. IFS=$lt_save_ifs
  14214. test -z "$ac_dir" && ac_dir=.
  14215. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14216. lt_cv_path_LD=$ac_dir/$ac_prog
  14217. # Check to see if the program is GNU ld. I'd rather use --version,
  14218. # but apparently some variants of GNU ld only accept -v.
  14219. # Break only if it was the GNU/non-GNU ld that we prefer.
  14220. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14221. *GNU* | *'with BFD'*)
  14222. test no != "$with_gnu_ld" && break
  14223. ;;
  14224. *)
  14225. test yes != "$with_gnu_ld" && break
  14226. ;;
  14227. esac
  14228. fi
  14229. done
  14230. IFS=$lt_save_ifs
  14231. else
  14232. lt_cv_path_LD=$LD # Let the user override the test with a path.
  14233. fi ;;
  14234. esac
  14235. fi
  14236. LD=$lt_cv_path_LD
  14237. if test -n "$LD"; then
  14238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14239. printf "%s\n" "$LD" >&6; }
  14240. else
  14241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14242. printf "%s\n" "no" >&6; }
  14243. fi
  14244. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  14245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14246. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  14247. if test ${lt_cv_prog_gnu_ld+y}
  14248. then :
  14249. printf %s "(cached) " >&6
  14250. else case e in #(
  14251. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14252. case `$LD -v 2>&1 </dev/null` in
  14253. *GNU* | *'with BFD'*)
  14254. lt_cv_prog_gnu_ld=yes
  14255. ;;
  14256. *)
  14257. lt_cv_prog_gnu_ld=no
  14258. ;;
  14259. esac ;;
  14260. esac
  14261. fi
  14262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14263. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  14264. with_gnu_ld=$lt_cv_prog_gnu_ld
  14265. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  14266. # archiving commands below assume that GNU ld is being used.
  14267. if test yes = "$with_gnu_ld"; then
  14268. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14269. 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'
  14270. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14271. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14272. # If archive_cmds runs LD, not CC, wlarc should be empty
  14273. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  14274. # investigate it a little bit more. (MM)
  14275. wlarc='$wl'
  14276. # ancient GNU ld didn't support --whole-archive et. al.
  14277. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  14278. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14279. else
  14280. whole_archive_flag_spec_CXX=
  14281. fi
  14282. else
  14283. with_gnu_ld=no
  14284. wlarc=
  14285. # A generic and very simple default shared library creation
  14286. # command for GNU C++ for the case where it uses the native
  14287. # linker, instead of GNU ld. If possible, this setting should
  14288. # overridden to take advantage of the native linker features on
  14289. # the platform it is being used on.
  14290. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14291. fi
  14292. # Commands to make compiler produce verbose output that lists
  14293. # what "hidden" libraries, object files and flags are used when
  14294. # linking a shared library.
  14295. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  14296. else
  14297. GXX=no
  14298. with_gnu_ld=no
  14299. wlarc=
  14300. fi
  14301. # PORTME: fill in a description of your system's C++ link characteristics
  14302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14303. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14304. ld_shlibs_CXX=yes
  14305. case $host_os in
  14306. aix3*)
  14307. # FIXME: insert proper C++ library support
  14308. ld_shlibs_CXX=no
  14309. ;;
  14310. aix[4-9]*)
  14311. if test ia64 = "$host_cpu"; then
  14312. # On IA64, the linker does run time linking by default, so we don't
  14313. # have to do anything special.
  14314. aix_use_runtimelinking=no
  14315. exp_sym_flag='-Bexport'
  14316. no_entry_flag=
  14317. else
  14318. aix_use_runtimelinking=no
  14319. # Test if we are trying to use run time linking or normal
  14320. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14321. # have runtime linking enabled, and use it for executables.
  14322. # For shared libraries, we enable/disable runtime linking
  14323. # depending on the kind of the shared library created -
  14324. # when "with_aix_soname,aix_use_runtimelinking" is:
  14325. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  14326. # "aix,yes" lib.so shared, rtl:yes, for executables
  14327. # lib.a static archive
  14328. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  14329. # lib.a(lib.so.V) shared, rtl:no, for executables
  14330. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  14331. # lib.a(lib.so.V) shared, rtl:no
  14332. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  14333. # lib.a static archive
  14334. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14335. for ld_flag in $LDFLAGS; do
  14336. case $ld_flag in
  14337. *-brtl*)
  14338. aix_use_runtimelinking=yes
  14339. break
  14340. ;;
  14341. esac
  14342. done
  14343. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  14344. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  14345. # so we don't have lib.a shared libs to link our executables.
  14346. # We have to force runtime linking in this case.
  14347. aix_use_runtimelinking=yes
  14348. LDFLAGS="$LDFLAGS -Wl,-brtl"
  14349. fi
  14350. ;;
  14351. esac
  14352. exp_sym_flag='-bexport'
  14353. no_entry_flag='-bnoentry'
  14354. fi
  14355. # When large executables or shared objects are built, AIX ld can
  14356. # have problems creating the table of contents. If linking a library
  14357. # or program results in "error TOC overflow" add -mminimal-toc to
  14358. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14359. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14360. archive_cmds_CXX=''
  14361. hardcode_direct_CXX=yes
  14362. hardcode_direct_absolute_CXX=yes
  14363. hardcode_libdir_separator_CXX=':'
  14364. link_all_deplibs_CXX=yes
  14365. file_list_spec_CXX='$wl-f,'
  14366. case $with_aix_soname,$aix_use_runtimelinking in
  14367. aix,*) ;; # no import file
  14368. svr4,* | *,yes) # use import file
  14369. # The Import File defines what to hardcode.
  14370. hardcode_direct_CXX=no
  14371. hardcode_direct_absolute_CXX=no
  14372. ;;
  14373. esac
  14374. if test yes = "$GXX"; then
  14375. case $host_os in aix4.[012]|aix4.[012].*)
  14376. # We only want to do this on AIX 4.2 and lower, the check
  14377. # below for broken collect2 doesn't work under 4.3+
  14378. collect2name=`$CC -print-prog-name=collect2`
  14379. if test -f "$collect2name" &&
  14380. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  14381. then
  14382. # We have reworked collect2
  14383. :
  14384. else
  14385. # We have old collect2
  14386. hardcode_direct_CXX=unsupported
  14387. # It fails to find uninstalled libraries when the uninstalled
  14388. # path is not listed in the libpath. Setting hardcode_minus_L
  14389. # to unsupported forces relinking
  14390. hardcode_minus_L_CXX=yes
  14391. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14392. hardcode_libdir_separator_CXX=
  14393. fi
  14394. esac
  14395. shared_flag='-shared'
  14396. if test yes = "$aix_use_runtimelinking"; then
  14397. shared_flag=$shared_flag' $wl-G'
  14398. fi
  14399. # Need to ensure runtime linking is disabled for the traditional
  14400. # shared library, or the linker may eventually find shared libraries
  14401. # /with/ Import File - we do not want to mix them.
  14402. shared_flag_aix='-shared'
  14403. shared_flag_svr4='-shared $wl-G'
  14404. else
  14405. # not using gcc
  14406. if test ia64 = "$host_cpu"; then
  14407. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14408. # chokes on -Wl,-G. The following line is correct:
  14409. shared_flag='-G'
  14410. else
  14411. if test yes = "$aix_use_runtimelinking"; then
  14412. shared_flag='$wl-G'
  14413. else
  14414. shared_flag='$wl-bM:SRE'
  14415. fi
  14416. shared_flag_aix='$wl-bM:SRE'
  14417. shared_flag_svr4='$wl-G'
  14418. fi
  14419. fi
  14420. export_dynamic_flag_spec_CXX='$wl-bexpall'
  14421. # It seems that -bexpall does not export symbols beginning with
  14422. # underscore (_), so it is better to generate a list of symbols to
  14423. # export.
  14424. always_export_symbols_CXX=yes
  14425. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  14426. # Warning - without using the other runtime loading flags (-brtl),
  14427. # -berok will link without error, but may produce a broken library.
  14428. # The "-G" linker flag allows undefined symbols.
  14429. no_undefined_flag_CXX='-bernotok'
  14430. # Determine the default libpath from the value encoded in an empty
  14431. # executable.
  14432. if test set = "${lt_cv_aix_libpath+set}"; then
  14433. aix_libpath=$lt_cv_aix_libpath
  14434. else
  14435. if test ${lt_cv_aix_libpath__CXX+y}
  14436. then :
  14437. printf %s "(cached) " >&6
  14438. else case e in #(
  14439. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14440. /* end confdefs.h. */
  14441. int
  14442. main (void)
  14443. {
  14444. ;
  14445. return 0;
  14446. }
  14447. _ACEOF
  14448. if ac_fn_cxx_try_link "$LINENO"
  14449. then :
  14450. lt_aix_libpath_sed='
  14451. /Import File Strings/,/^$/ {
  14452. /^0/ {
  14453. s/^0 *\([^ ]*\) *$/\1/
  14454. p
  14455. }
  14456. }'
  14457. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14458. # Check for a 64-bit object if we didn't find anything.
  14459. if test -z "$lt_cv_aix_libpath__CXX"; then
  14460. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14461. fi
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14464. conftest$ac_exeext conftest.$ac_ext
  14465. if test -z "$lt_cv_aix_libpath__CXX"; then
  14466. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  14467. fi
  14468. ;;
  14469. esac
  14470. fi
  14471. aix_libpath=$lt_cv_aix_libpath__CXX
  14472. fi
  14473. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  14474. 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
  14475. else
  14476. if test ia64 = "$host_cpu"; then
  14477. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  14478. allow_undefined_flag_CXX="-z nodefs"
  14479. 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"
  14480. else
  14481. # Determine the default libpath from the value encoded in an
  14482. # empty executable.
  14483. if test set = "${lt_cv_aix_libpath+set}"; then
  14484. aix_libpath=$lt_cv_aix_libpath
  14485. else
  14486. if test ${lt_cv_aix_libpath__CXX+y}
  14487. then :
  14488. printf %s "(cached) " >&6
  14489. else case e in #(
  14490. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14491. /* end confdefs.h. */
  14492. int
  14493. main (void)
  14494. {
  14495. ;
  14496. return 0;
  14497. }
  14498. _ACEOF
  14499. if ac_fn_cxx_try_link "$LINENO"
  14500. then :
  14501. lt_aix_libpath_sed='
  14502. /Import File Strings/,/^$/ {
  14503. /^0/ {
  14504. s/^0 *\([^ ]*\) *$/\1/
  14505. p
  14506. }
  14507. }'
  14508. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14509. # Check for a 64-bit object if we didn't find anything.
  14510. if test -z "$lt_cv_aix_libpath__CXX"; then
  14511. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14512. fi
  14513. fi
  14514. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14515. conftest$ac_exeext conftest.$ac_ext
  14516. if test -z "$lt_cv_aix_libpath__CXX"; then
  14517. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  14518. fi
  14519. ;;
  14520. esac
  14521. fi
  14522. aix_libpath=$lt_cv_aix_libpath__CXX
  14523. fi
  14524. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  14525. # Warning - without using the other run time loading flags,
  14526. # -berok will link without error, but may produce a broken library.
  14527. no_undefined_flag_CXX=' $wl-bernotok'
  14528. allow_undefined_flag_CXX=' $wl-berok'
  14529. if test yes = "$with_gnu_ld"; then
  14530. # We only use this code for GNU lds that support --whole-archive.
  14531. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  14532. else
  14533. # Exported symbols can be pulled into shared objects from archives
  14534. whole_archive_flag_spec_CXX='$convenience'
  14535. fi
  14536. archive_cmds_need_lc_CXX=yes
  14537. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  14538. # -brtl affects multiple linker settings, -berok does not and is overridden later
  14539. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  14540. if test svr4 != "$with_aix_soname"; then
  14541. # This is similar to how AIX traditionally builds its shared
  14542. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  14543. 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'
  14544. fi
  14545. if test aix != "$with_aix_soname"; then
  14546. 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'
  14547. else
  14548. # used by -dlpreopen to get the symbols
  14549. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  14550. fi
  14551. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  14552. fi
  14553. fi
  14554. ;;
  14555. beos*)
  14556. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  14557. allow_undefined_flag_CXX=unsupported
  14558. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14559. # support --undefined. This deserves some investigation. FIXME
  14560. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14561. else
  14562. ld_shlibs_CXX=no
  14563. fi
  14564. ;;
  14565. chorus*)
  14566. case $cc_basename in
  14567. *)
  14568. # FIXME: insert proper C++ library support
  14569. ld_shlibs_CXX=no
  14570. ;;
  14571. esac
  14572. ;;
  14573. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14574. case $GXX,$cc_basename in
  14575. ,cl* | no,cl* | ,icl* | no,icl*)
  14576. # Native MSVC or ICC
  14577. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14578. # no search path for DLLs.
  14579. hardcode_libdir_flag_spec_CXX=' '
  14580. allow_undefined_flag_CXX=unsupported
  14581. always_export_symbols_CXX=yes
  14582. file_list_spec_CXX='@'
  14583. # Tell ltmain to make .lib files, not .a files.
  14584. libext=lib
  14585. # Tell ltmain to make .dll files, not .so files.
  14586. shrext_cmds=.dll
  14587. # FIXME: Setting linknames here is a bad hack.
  14588. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  14589. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  14590. cp "$export_symbols" "$output_objdir/$soname.def";
  14591. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  14592. else
  14593. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  14594. fi~
  14595. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  14596. linknames='
  14597. # The linker will not automatically build a static lib if we build a DLL.
  14598. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  14599. enable_shared_with_static_runtimes_CXX=yes
  14600. # Don't use ranlib
  14601. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  14602. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  14603. lt_tool_outputfile="@TOOL_OUTPUT@"~
  14604. case $lt_outputfile in
  14605. *.exe|*.EXE) ;;
  14606. *)
  14607. lt_outputfile=$lt_outputfile.exe
  14608. lt_tool_outputfile=$lt_tool_outputfile.exe
  14609. ;;
  14610. esac~
  14611. func_to_tool_file "$lt_outputfile"~
  14612. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  14613. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  14614. $RM "$lt_outputfile.manifest";
  14615. fi'
  14616. ;;
  14617. *)
  14618. # g++
  14619. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  14620. # as there is no search path for DLLs.
  14621. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14622. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  14623. allow_undefined_flag_CXX=unsupported
  14624. always_export_symbols_CXX=no
  14625. enable_shared_with_static_runtimes_CXX=yes
  14626. file_list_spec_CXX='@'
  14627. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  14628. 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'
  14629. # If the export-symbols file already is a .def file, use it as
  14630. # is; otherwise, prepend EXPORTS...
  14631. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  14632. cp $export_symbols $output_objdir/$soname.def;
  14633. else
  14634. echo EXPORTS > $output_objdir/$soname.def;
  14635. cat $export_symbols >> $output_objdir/$soname.def;
  14636. fi~
  14637. $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'
  14638. else
  14639. ld_shlibs_CXX=no
  14640. fi
  14641. ;;
  14642. esac
  14643. ;;
  14644. darwin* | rhapsody*)
  14645. archive_cmds_need_lc_CXX=no
  14646. hardcode_direct_CXX=no
  14647. hardcode_automatic_CXX=yes
  14648. hardcode_shlibpath_var_CXX=unsupported
  14649. if test yes = "$lt_cv_ld_force_load"; then
  14650. 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\"`'
  14651. else
  14652. whole_archive_flag_spec_CXX=''
  14653. fi
  14654. link_all_deplibs_CXX=yes
  14655. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  14656. case $cc_basename in
  14657. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  14658. *) _lt_dar_can_shared=$GCC ;;
  14659. esac
  14660. if test yes = "$_lt_dar_can_shared"; then
  14661. output_verbose_link_cmd=func_echo_all
  14662. 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"
  14663. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  14664. 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"
  14665. 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"
  14666. if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
  14667. 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"
  14668. 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"
  14669. fi
  14670. else
  14671. ld_shlibs_CXX=no
  14672. fi
  14673. ;;
  14674. os2*)
  14675. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14676. hardcode_minus_L_CXX=yes
  14677. allow_undefined_flag_CXX=unsupported
  14678. shrext_cmds=.dll
  14679. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14680. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14681. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14682. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14683. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  14684. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14685. emximp -o $lib $output_objdir/$libname.def'
  14686. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14687. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14688. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14689. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14690. prefix_cmds="$SED"~
  14691. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  14692. prefix_cmds="$prefix_cmds -e 1d";
  14693. fi~
  14694. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  14695. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  14696. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14697. emximp -o $lib $output_objdir/$libname.def'
  14698. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  14699. enable_shared_with_static_runtimes_CXX=yes
  14700. file_list_spec_CXX='@'
  14701. ;;
  14702. dgux*)
  14703. case $cc_basename in
  14704. ec++*)
  14705. # FIXME: insert proper C++ library support
  14706. ld_shlibs_CXX=no
  14707. ;;
  14708. ghcx*)
  14709. # Green Hills C++ Compiler
  14710. # FIXME: insert proper C++ library support
  14711. ld_shlibs_CXX=no
  14712. ;;
  14713. *)
  14714. # FIXME: insert proper C++ library support
  14715. ld_shlibs_CXX=no
  14716. ;;
  14717. esac
  14718. ;;
  14719. freebsd2.*)
  14720. # C++ shared libraries reported to be fairly broken before
  14721. # switch to ELF
  14722. ld_shlibs_CXX=no
  14723. ;;
  14724. freebsd-elf*)
  14725. archive_cmds_need_lc_CXX=no
  14726. ;;
  14727. freebsd* | dragonfly* | midnightbsd*)
  14728. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14729. # conventions
  14730. ld_shlibs_CXX=yes
  14731. ;;
  14732. haiku*)
  14733. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14734. link_all_deplibs_CXX=no
  14735. ;;
  14736. hpux9*)
  14737. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14738. hardcode_libdir_separator_CXX=:
  14739. export_dynamic_flag_spec_CXX='$wl-E'
  14740. hardcode_direct_CXX=yes
  14741. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14742. # but as the default
  14743. # location of the library.
  14744. case $cc_basename in
  14745. CC*)
  14746. # FIXME: insert proper C++ library support
  14747. ld_shlibs_CXX=no
  14748. ;;
  14749. aCC*)
  14750. 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'
  14751. # Commands to make compiler produce verbose output that lists
  14752. # what "hidden" libraries, object files and flags are used when
  14753. # linking a shared library.
  14754. #
  14755. # There doesn't appear to be a way to prevent this compiler from
  14756. # explicitly linking system object files so we need to strip them
  14757. # from the output so that they don't get included in the library
  14758. # dependencies.
  14759. 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"'
  14760. ;;
  14761. *)
  14762. if test yes = "$GXX"; then
  14763. 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'
  14764. else
  14765. # FIXME: insert proper C++ library support
  14766. ld_shlibs_CXX=no
  14767. fi
  14768. ;;
  14769. esac
  14770. ;;
  14771. hpux10*|hpux11*)
  14772. if test no = "$with_gnu_ld"; then
  14773. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14774. hardcode_libdir_separator_CXX=:
  14775. case $host_cpu in
  14776. hppa*64*|ia64*)
  14777. ;;
  14778. *)
  14779. export_dynamic_flag_spec_CXX='$wl-E'
  14780. ;;
  14781. esac
  14782. fi
  14783. case $host_cpu in
  14784. hppa*64*|ia64*)
  14785. hardcode_direct_CXX=no
  14786. hardcode_shlibpath_var_CXX=no
  14787. ;;
  14788. *)
  14789. hardcode_direct_CXX=yes
  14790. hardcode_direct_absolute_CXX=yes
  14791. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14792. # but as the default
  14793. # location of the library.
  14794. ;;
  14795. esac
  14796. case $cc_basename in
  14797. CC*)
  14798. # FIXME: insert proper C++ library support
  14799. ld_shlibs_CXX=no
  14800. ;;
  14801. aCC*)
  14802. case $host_cpu in
  14803. hppa*64*)
  14804. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14805. ;;
  14806. ia64*)
  14807. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14808. ;;
  14809. *)
  14810. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14811. ;;
  14812. esac
  14813. # Commands to make compiler produce verbose output that lists
  14814. # what "hidden" libraries, object files and flags are used when
  14815. # linking a shared library.
  14816. #
  14817. # There doesn't appear to be a way to prevent this compiler from
  14818. # explicitly linking system object files so we need to strip them
  14819. # from the output so that they don't get included in the library
  14820. # dependencies.
  14821. 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"'
  14822. ;;
  14823. *)
  14824. if test yes = "$GXX"; then
  14825. if test no = "$with_gnu_ld"; then
  14826. case $host_cpu in
  14827. hppa*64*)
  14828. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14829. ;;
  14830. ia64*)
  14831. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14832. ;;
  14833. *)
  14834. 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'
  14835. ;;
  14836. esac
  14837. fi
  14838. else
  14839. # FIXME: insert proper C++ library support
  14840. ld_shlibs_CXX=no
  14841. fi
  14842. ;;
  14843. esac
  14844. ;;
  14845. interix[3-9]*)
  14846. hardcode_direct_CXX=no
  14847. hardcode_shlibpath_var_CXX=no
  14848. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14849. export_dynamic_flag_spec_CXX='$wl-E'
  14850. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14851. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14852. # default) and relocated if they conflict, which is a slow very memory
  14853. # consuming and fragmenting process. To avoid this, we pick a random,
  14854. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14855. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14856. 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'
  14857. 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'
  14858. ;;
  14859. irix5* | irix6*)
  14860. case $cc_basename in
  14861. CC*)
  14862. # SGI C++
  14863. 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'
  14864. # Archives containing C++ object files must be created using
  14865. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14866. # necessary to make sure instantiated templates are included
  14867. # in the archive.
  14868. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14869. ;;
  14870. *)
  14871. if test yes = "$GXX"; then
  14872. if test no = "$with_gnu_ld"; then
  14873. 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'
  14874. else
  14875. 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'
  14876. fi
  14877. fi
  14878. link_all_deplibs_CXX=yes
  14879. ;;
  14880. esac
  14881. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14882. hardcode_libdir_separator_CXX=:
  14883. inherit_rpath_CXX=yes
  14884. ;;
  14885. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14886. case $cc_basename in
  14887. KCC*)
  14888. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14889. # KCC will only create a shared library if the output file
  14890. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14891. # to its proper name (with version) after linking.
  14892. 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'
  14893. 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'
  14894. # Commands to make compiler produce verbose output that lists
  14895. # what "hidden" libraries, object files and flags are used when
  14896. # linking a shared library.
  14897. #
  14898. # There doesn't appear to be a way to prevent this compiler from
  14899. # explicitly linking system object files so we need to strip them
  14900. # from the output so that they don't get included in the library
  14901. # dependencies.
  14902. 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"'
  14903. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14904. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14905. # Archives containing C++ object files must be created using
  14906. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14907. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14908. ;;
  14909. icpc* | ecpc* )
  14910. # Intel C++
  14911. with_gnu_ld=yes
  14912. # version 8.0 and above of icpc choke on multiply defined symbols
  14913. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14914. # earlier do not add the objects themselves.
  14915. case `$CC -V 2>&1` in
  14916. *"Version 7."*)
  14917. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14918. 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'
  14919. ;;
  14920. *) # Version 8.0 or newer
  14921. tmp_idyn=
  14922. case $host_cpu in
  14923. ia64*) tmp_idyn=' -i_dynamic';;
  14924. esac
  14925. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14926. 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'
  14927. ;;
  14928. esac
  14929. archive_cmds_need_lc_CXX=no
  14930. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14931. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14932. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  14933. ;;
  14934. pgCC* | pgcpp*)
  14935. # Portland Group C++ compiler
  14936. case `$CC -V` in
  14937. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14938. prelink_cmds_CXX='tpldir=Template.dir~
  14939. rm -rf $tpldir~
  14940. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14941. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14942. old_archive_cmds_CXX='tpldir=Template.dir~
  14943. rm -rf $tpldir~
  14944. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14945. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14946. $RANLIB $oldlib'
  14947. archive_cmds_CXX='tpldir=Template.dir~
  14948. rm -rf $tpldir~
  14949. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14950. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14951. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14952. rm -rf $tpldir~
  14953. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14954. $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'
  14955. ;;
  14956. *) # Version 6 and above use weak symbols
  14957. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14958. 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'
  14959. ;;
  14960. esac
  14961. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  14962. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14963. 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'
  14964. ;;
  14965. cxx*)
  14966. # Compaq C++
  14967. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14968. 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'
  14969. runpath_var=LD_RUN_PATH
  14970. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14971. hardcode_libdir_separator_CXX=:
  14972. # Commands to make compiler produce verbose output that lists
  14973. # what "hidden" libraries, object files and flags are used when
  14974. # linking a shared library.
  14975. #
  14976. # There doesn't appear to be a way to prevent this compiler from
  14977. # explicitly linking system object files so we need to strip them
  14978. # from the output so that they don't get included in the library
  14979. # dependencies.
  14980. 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'
  14981. ;;
  14982. xl* | mpixl* | bgxl*)
  14983. # IBM XL 8.0 on PPC, with GNU ld
  14984. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14985. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14986. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14987. if test yes = "$supports_anon_versioning"; then
  14988. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14989. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14990. echo "local: *; };" >> $output_objdir/$libname.ver~
  14991. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  14992. fi
  14993. ;;
  14994. *)
  14995. case `$CC -V 2>&1 | $SED 5q` in
  14996. *Sun\ C*)
  14997. # Sun C++ 5.9
  14998. no_undefined_flag_CXX=' -zdefs'
  14999. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15000. 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'
  15001. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15002. 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'
  15003. compiler_needs_object_CXX=yes
  15004. # Not sure whether something based on
  15005. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  15006. # would be better.
  15007. output_verbose_link_cmd='func_echo_all'
  15008. # Archives containing C++ object files must be created using
  15009. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15010. # necessary to make sure instantiated templates are included
  15011. # in the archive.
  15012. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15013. ;;
  15014. esac
  15015. ;;
  15016. esac
  15017. ;;
  15018. lynxos*)
  15019. # FIXME: insert proper C++ library support
  15020. ld_shlibs_CXX=no
  15021. ;;
  15022. m88k*)
  15023. # FIXME: insert proper C++ library support
  15024. ld_shlibs_CXX=no
  15025. ;;
  15026. mvs*)
  15027. case $cc_basename in
  15028. cxx*)
  15029. # FIXME: insert proper C++ library support
  15030. ld_shlibs_CXX=no
  15031. ;;
  15032. *)
  15033. # FIXME: insert proper C++ library support
  15034. ld_shlibs_CXX=no
  15035. ;;
  15036. esac
  15037. ;;
  15038. *-mlibc)
  15039. ld_shlibs_CXX=yes
  15040. ;;
  15041. netbsd*)
  15042. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15043. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  15044. wlarc=
  15045. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15046. hardcode_direct_CXX=yes
  15047. hardcode_shlibpath_var_CXX=no
  15048. fi
  15049. # Workaround some broken pre-1.5 toolchains
  15050. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  15051. ;;
  15052. *nto* | *qnx*)
  15053. ld_shlibs_CXX=yes
  15054. ;;
  15055. openbsd*)
  15056. if test -f /usr/libexec/ld.so; then
  15057. hardcode_direct_CXX=yes
  15058. hardcode_shlibpath_var_CXX=no
  15059. hardcode_direct_absolute_CXX=yes
  15060. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15061. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15062. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  15063. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  15064. export_dynamic_flag_spec_CXX='$wl-E'
  15065. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  15066. fi
  15067. output_verbose_link_cmd=func_echo_all
  15068. else
  15069. ld_shlibs_CXX=no
  15070. fi
  15071. ;;
  15072. osf3* | osf4* | osf5*)
  15073. case $cc_basename in
  15074. KCC*)
  15075. # Kuck and Associates, Inc. (KAI) C++ Compiler
  15076. # KCC will only create a shared library if the output file
  15077. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15078. # to its proper name (with version) after linking.
  15079. 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'
  15080. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15081. hardcode_libdir_separator_CXX=:
  15082. # Archives containing C++ object files must be created using
  15083. # the KAI C++ compiler.
  15084. case $host in
  15085. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  15086. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  15087. esac
  15088. ;;
  15089. RCC*)
  15090. # Rational C++ 2.4.1
  15091. # FIXME: insert proper C++ library support
  15092. ld_shlibs_CXX=no
  15093. ;;
  15094. cxx*)
  15095. case $host in
  15096. osf3*)
  15097. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15098. 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'
  15099. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15100. ;;
  15101. *)
  15102. allow_undefined_flag_CXX=' -expect_unresolved \*'
  15103. 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'
  15104. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  15105. echo "-hidden">> $lib.exp~
  15106. $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~
  15107. $RM $lib.exp'
  15108. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15109. ;;
  15110. esac
  15111. hardcode_libdir_separator_CXX=:
  15112. # Commands to make compiler produce verbose output that lists
  15113. # what "hidden" libraries, object files and flags are used when
  15114. # linking a shared library.
  15115. #
  15116. # There doesn't appear to be a way to prevent this compiler from
  15117. # explicitly linking system object files so we need to strip them
  15118. # from the output so that they don't get included in the library
  15119. # dependencies.
  15120. 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"'
  15121. ;;
  15122. *)
  15123. if test yes,no = "$GXX,$with_gnu_ld"; then
  15124. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15125. case $host in
  15126. osf3*)
  15127. 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'
  15128. ;;
  15129. *)
  15130. 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'
  15131. ;;
  15132. esac
  15133. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15134. hardcode_libdir_separator_CXX=:
  15135. # Commands to make compiler produce verbose output that lists
  15136. # what "hidden" libraries, object files and flags are used when
  15137. # linking a shared library.
  15138. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15139. else
  15140. # FIXME: insert proper C++ library support
  15141. ld_shlibs_CXX=no
  15142. fi
  15143. ;;
  15144. esac
  15145. ;;
  15146. psos*)
  15147. # FIXME: insert proper C++ library support
  15148. ld_shlibs_CXX=no
  15149. ;;
  15150. serenity*)
  15151. ;;
  15152. sunos4*)
  15153. case $cc_basename in
  15154. CC*)
  15155. # Sun C++ 4.x
  15156. # FIXME: insert proper C++ library support
  15157. ld_shlibs_CXX=no
  15158. ;;
  15159. lcc*)
  15160. # Lucid
  15161. # FIXME: insert proper C++ library support
  15162. ld_shlibs_CXX=no
  15163. ;;
  15164. *)
  15165. # FIXME: insert proper C++ library support
  15166. ld_shlibs_CXX=no
  15167. ;;
  15168. esac
  15169. ;;
  15170. solaris*)
  15171. case $cc_basename in
  15172. CC* | sunCC*)
  15173. # Sun C++ 4.2, 5.x and Centerline C++
  15174. archive_cmds_need_lc_CXX=yes
  15175. no_undefined_flag_CXX=' -zdefs'
  15176. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15177. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15178. $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'
  15179. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15180. hardcode_shlibpath_var_CXX=no
  15181. case $host_os in
  15182. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15183. *)
  15184. # The compiler driver will combine and reorder linker options,
  15185. # but understands '-z linker_flag'.
  15186. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15187. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  15188. ;;
  15189. esac
  15190. link_all_deplibs_CXX=yes
  15191. output_verbose_link_cmd='func_echo_all'
  15192. # Archives containing C++ object files must be created using
  15193. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15194. # necessary to make sure instantiated templates are included
  15195. # in the archive.
  15196. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15197. ;;
  15198. gcx*)
  15199. # Green Hills C++ Compiler
  15200. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15201. # The C++ compiler must be used to create the archive.
  15202. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  15203. ;;
  15204. *)
  15205. # GNU C++ compiler with Solaris linker
  15206. if test yes,no = "$GXX,$with_gnu_ld"; then
  15207. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  15208. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  15209. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15210. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15211. $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'
  15212. # Commands to make compiler produce verbose output that lists
  15213. # what "hidden" libraries, object files and flags are used when
  15214. # linking a shared library.
  15215. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15216. else
  15217. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  15218. # platform.
  15219. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15220. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15221. $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'
  15222. # Commands to make compiler produce verbose output that lists
  15223. # what "hidden" libraries, object files and flags are used when
  15224. # linking a shared library.
  15225. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15226. fi
  15227. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  15228. case $host_os in
  15229. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15230. *)
  15231. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  15232. ;;
  15233. esac
  15234. fi
  15235. ;;
  15236. esac
  15237. ;;
  15238. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15239. no_undefined_flag_CXX='$wl-z,text'
  15240. archive_cmds_need_lc_CXX=no
  15241. hardcode_shlibpath_var_CXX=no
  15242. runpath_var='LD_RUN_PATH'
  15243. case $cc_basename in
  15244. CC*)
  15245. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15246. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15247. ;;
  15248. *)
  15249. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15250. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15251. ;;
  15252. esac
  15253. ;;
  15254. sysv5* | sco3.2v5* | sco5v6*)
  15255. # Note: We CANNOT use -z defs as we might desire, because we do not
  15256. # link with -lc, and that would cause any symbols used from libc to
  15257. # always be unresolved, which means just about no library would
  15258. # ever link correctly. If we're not using GNU ld we use -z text
  15259. # though, which does catch some bad symbols but isn't as heavy-handed
  15260. # as -z defs.
  15261. no_undefined_flag_CXX='$wl-z,text'
  15262. allow_undefined_flag_CXX='$wl-z,nodefs'
  15263. archive_cmds_need_lc_CXX=no
  15264. hardcode_shlibpath_var_CXX=no
  15265. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  15266. hardcode_libdir_separator_CXX=':'
  15267. link_all_deplibs_CXX=yes
  15268. export_dynamic_flag_spec_CXX='$wl-Bexport'
  15269. runpath_var='LD_RUN_PATH'
  15270. case $cc_basename in
  15271. CC*)
  15272. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15273. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15274. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  15275. '"$old_archive_cmds_CXX"
  15276. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  15277. '"$reload_cmds_CXX"
  15278. ;;
  15279. *)
  15280. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15281. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15282. ;;
  15283. esac
  15284. ;;
  15285. tandem*)
  15286. case $cc_basename in
  15287. NCC*)
  15288. # NonStop-UX NCC 3.20
  15289. # FIXME: insert proper C++ library support
  15290. ld_shlibs_CXX=no
  15291. ;;
  15292. *)
  15293. # FIXME: insert proper C++ library support
  15294. ld_shlibs_CXX=no
  15295. ;;
  15296. esac
  15297. ;;
  15298. vxworks*)
  15299. # FIXME: insert proper C++ library support
  15300. ld_shlibs_CXX=no
  15301. ;;
  15302. *)
  15303. # FIXME: insert proper C++ library support
  15304. ld_shlibs_CXX=no
  15305. ;;
  15306. esac
  15307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15308. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  15309. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15310. GCC_CXX=$GXX
  15311. LD_CXX=$LD
  15312. ## CAVEAT EMPTOR:
  15313. ## There is no encapsulation within the following macros, do not change
  15314. ## the running order or otherwise move them around unless you know exactly
  15315. ## what you are doing...
  15316. # Dependencies to place before and after the object being linked:
  15317. predep_objects_CXX=
  15318. postdep_objects_CXX=
  15319. predeps_CXX=
  15320. postdeps_CXX=
  15321. compiler_lib_search_path_CXX=
  15322. cat > conftest.$ac_ext <<_LT_EOF
  15323. class Foo
  15324. {
  15325. public:
  15326. Foo (void) { a = 0; }
  15327. private:
  15328. int a;
  15329. };
  15330. _LT_EOF
  15331. _lt_libdeps_save_CFLAGS=$CFLAGS
  15332. case "$CC $CFLAGS " in #(
  15333. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  15334. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  15335. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  15336. esac
  15337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15338. (eval $ac_compile) 2>&5
  15339. ac_status=$?
  15340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15341. test $ac_status = 0; }; then
  15342. # Parse the compiler output and extract the necessary
  15343. # objects, libraries and library flags.
  15344. # Sentinel used to keep track of whether or not we are before
  15345. # the conftest object file.
  15346. pre_test_object_deps_done=no
  15347. for p in `eval "$output_verbose_link_cmd"`; do
  15348. case $prev$p in
  15349. -L* | -R* | -l*)
  15350. # Some compilers place space between "-{L,R,l}" and the path.
  15351. # Remove the space.
  15352. if test x-L = x"$p" ||
  15353. test x-R = x"$p" ||
  15354. test x-l = x"$p"; then
  15355. prev=$p
  15356. continue
  15357. fi
  15358. # Expand the sysroot to ease extracting the directories later.
  15359. if test -z "$prev"; then
  15360. case $p in
  15361. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  15362. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  15363. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  15364. esac
  15365. fi
  15366. case $p in
  15367. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  15368. esac
  15369. if test no = "$pre_test_object_deps_done"; then
  15370. case $prev in
  15371. -L | -R)
  15372. # Internal compiler library paths should come after those
  15373. # provided the user. The postdeps already come after the
  15374. # user supplied libs so there is no need to process them.
  15375. if test -z "$compiler_lib_search_path_CXX"; then
  15376. compiler_lib_search_path_CXX=$prev$p
  15377. else
  15378. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  15379. fi
  15380. ;;
  15381. # The "-l" case would never come before the object being
  15382. # linked, so don't bother handling this case.
  15383. esac
  15384. else
  15385. if test -z "$postdeps_CXX"; then
  15386. postdeps_CXX=$prev$p
  15387. else
  15388. postdeps_CXX="${postdeps_CXX} $prev$p"
  15389. fi
  15390. fi
  15391. prev=
  15392. ;;
  15393. *.lto.$objext) ;; # Ignore GCC LTO objects
  15394. *.$objext)
  15395. # This assumes that the test object file only shows up
  15396. # once in the compiler output.
  15397. if test "$p" = "conftest.$objext"; then
  15398. pre_test_object_deps_done=yes
  15399. continue
  15400. fi
  15401. if test no = "$pre_test_object_deps_done"; then
  15402. if test -z "$predep_objects_CXX"; then
  15403. predep_objects_CXX=$p
  15404. else
  15405. predep_objects_CXX="$predep_objects_CXX $p"
  15406. fi
  15407. else
  15408. if test -z "$postdep_objects_CXX"; then
  15409. postdep_objects_CXX=$p
  15410. else
  15411. postdep_objects_CXX="$postdep_objects_CXX $p"
  15412. fi
  15413. fi
  15414. ;;
  15415. *) ;; # Ignore the rest.
  15416. esac
  15417. done
  15418. # Clean up.
  15419. rm -f a.out a.exe
  15420. else
  15421. echo "libtool.m4: error: problem compiling CXX test program"
  15422. fi
  15423. $RM -f confest.$objext
  15424. CFLAGS=$_lt_libdeps_save_CFLAGS
  15425. # PORTME: override above test on systems where it is broken
  15426. case $host_os in
  15427. interix[3-9]*)
  15428. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  15429. # hack all around it, let's just trust "g++" to DTRT.
  15430. predep_objects_CXX=
  15431. postdep_objects_CXX=
  15432. postdeps_CXX=
  15433. ;;
  15434. esac
  15435. case " $postdeps_CXX " in
  15436. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  15437. esac
  15438. compiler_lib_search_dirs_CXX=
  15439. if test -n "${compiler_lib_search_path_CXX}"; then
  15440. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  15441. fi
  15442. lt_prog_compiler_wl_CXX=
  15443. lt_prog_compiler_pic_CXX=
  15444. lt_prog_compiler_static_CXX=
  15445. # C++ specific cases for pic, static, wl, etc.
  15446. if test yes = "$GXX"; then
  15447. lt_prog_compiler_wl_CXX='-Wl,'
  15448. lt_prog_compiler_static_CXX='-static'
  15449. case $host_os in
  15450. aix*)
  15451. # All AIX code is PIC.
  15452. if test ia64 = "$host_cpu"; then
  15453. # AIX 5 now supports IA64 processor
  15454. lt_prog_compiler_static_CXX='-Bstatic'
  15455. fi
  15456. lt_prog_compiler_pic_CXX='-fPIC'
  15457. ;;
  15458. amigaos*)
  15459. case $host_cpu in
  15460. powerpc)
  15461. # see comment about AmigaOS4 .so support
  15462. lt_prog_compiler_pic_CXX='-fPIC'
  15463. ;;
  15464. m68k)
  15465. # FIXME: we need at least 68020 code to build shared libraries, but
  15466. # adding the '-m68020' flag to GCC prevents building anything better,
  15467. # like '-m68040'.
  15468. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  15469. ;;
  15470. esac
  15471. ;;
  15472. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15473. # PIC is the default for these OSes.
  15474. ;;
  15475. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  15476. # This hack is so that the source file can tell whether it is being
  15477. # built for inclusion in a dll (and should export symbols for example).
  15478. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15479. # (--disable-auto-import) libraries
  15480. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  15481. case $host_os in
  15482. os2*)
  15483. lt_prog_compiler_static_CXX='$wl-static'
  15484. ;;
  15485. esac
  15486. ;;
  15487. darwin* | rhapsody*)
  15488. # PIC is the default on this platform
  15489. # Common symbols not allowed in MH_DYLIB files
  15490. lt_prog_compiler_pic_CXX='-fno-common'
  15491. ;;
  15492. *djgpp*)
  15493. # DJGPP does not support shared libraries at all
  15494. lt_prog_compiler_pic_CXX=
  15495. ;;
  15496. haiku*)
  15497. # PIC is the default for Haiku.
  15498. # The "-static" flag exists, but is broken.
  15499. lt_prog_compiler_static_CXX=
  15500. ;;
  15501. interix[3-9]*)
  15502. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15503. # Instead, we relocate shared libraries at runtime.
  15504. ;;
  15505. sysv4*MP*)
  15506. if test -d /usr/nec; then
  15507. lt_prog_compiler_pic_CXX=-Kconform_pic
  15508. fi
  15509. ;;
  15510. hpux*)
  15511. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  15512. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  15513. # sets the default TLS model and affects inlining.
  15514. case $host_cpu in
  15515. hppa*64*)
  15516. ;;
  15517. *)
  15518. lt_prog_compiler_pic_CXX='-fPIC'
  15519. ;;
  15520. esac
  15521. ;;
  15522. *qnx* | *nto*)
  15523. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15524. # it will coredump.
  15525. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15526. ;;
  15527. *)
  15528. lt_prog_compiler_pic_CXX='-fPIC'
  15529. ;;
  15530. esac
  15531. else
  15532. case $host_os in
  15533. aix[4-9]*)
  15534. # All AIX code is PIC.
  15535. if test ia64 = "$host_cpu"; then
  15536. # AIX 5 now supports IA64 processor
  15537. lt_prog_compiler_static_CXX='-Bstatic'
  15538. else
  15539. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  15540. fi
  15541. ;;
  15542. chorus*)
  15543. case $cc_basename in
  15544. cxch68*)
  15545. # Green Hills C++ Compiler
  15546. # _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"
  15547. ;;
  15548. esac
  15549. ;;
  15550. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  15551. # This hack is so that the source file can tell whether it is being
  15552. # built for inclusion in a dll (and should export symbols for example).
  15553. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  15554. ;;
  15555. dgux*)
  15556. case $cc_basename in
  15557. ec++*)
  15558. lt_prog_compiler_pic_CXX='-KPIC'
  15559. ;;
  15560. ghcx*)
  15561. # Green Hills C++ Compiler
  15562. lt_prog_compiler_pic_CXX='-pic'
  15563. ;;
  15564. *)
  15565. ;;
  15566. esac
  15567. ;;
  15568. freebsd* | dragonfly* | midnightbsd*)
  15569. # FreeBSD uses GNU C++
  15570. ;;
  15571. hpux9* | hpux10* | hpux11*)
  15572. case $cc_basename in
  15573. CC*)
  15574. lt_prog_compiler_wl_CXX='-Wl,'
  15575. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  15576. if test ia64 != "$host_cpu"; then
  15577. lt_prog_compiler_pic_CXX='+Z'
  15578. fi
  15579. ;;
  15580. aCC*)
  15581. lt_prog_compiler_wl_CXX='-Wl,'
  15582. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  15583. case $host_cpu in
  15584. hppa*64*|ia64*)
  15585. # +Z the default
  15586. ;;
  15587. *)
  15588. lt_prog_compiler_pic_CXX='+Z'
  15589. ;;
  15590. esac
  15591. ;;
  15592. *)
  15593. ;;
  15594. esac
  15595. ;;
  15596. interix*)
  15597. # This is c89, which is MS Visual C++ (no shared libs)
  15598. # Anyone wants to do a port?
  15599. ;;
  15600. irix5* | irix6* | nonstopux*)
  15601. case $cc_basename in
  15602. CC*)
  15603. lt_prog_compiler_wl_CXX='-Wl,'
  15604. lt_prog_compiler_static_CXX='-non_shared'
  15605. # CC pic flag -KPIC is the default.
  15606. ;;
  15607. *)
  15608. ;;
  15609. esac
  15610. ;;
  15611. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15612. case $cc_basename in
  15613. KCC*)
  15614. # KAI C++ Compiler
  15615. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15616. lt_prog_compiler_pic_CXX='-fPIC'
  15617. ;;
  15618. ecpc* )
  15619. # old Intel C++ for x86_64, which still supported -KPIC.
  15620. lt_prog_compiler_wl_CXX='-Wl,'
  15621. lt_prog_compiler_pic_CXX='-KPIC'
  15622. lt_prog_compiler_static_CXX='-static'
  15623. ;;
  15624. icpc* )
  15625. # Intel C++, used to be incompatible with GCC.
  15626. # ICC 10 doesn't accept -KPIC any more.
  15627. lt_prog_compiler_wl_CXX='-Wl,'
  15628. lt_prog_compiler_pic_CXX='-fPIC'
  15629. lt_prog_compiler_static_CXX='-static'
  15630. ;;
  15631. pgCC* | pgcpp*)
  15632. # Portland Group C++ compiler
  15633. lt_prog_compiler_wl_CXX='-Wl,'
  15634. lt_prog_compiler_pic_CXX='-fpic'
  15635. lt_prog_compiler_static_CXX='-Bstatic'
  15636. ;;
  15637. cxx*)
  15638. # Compaq C++
  15639. # Make sure the PIC flag is empty. It appears that all Alpha
  15640. # Linux and Compaq Tru64 Unix objects are PIC.
  15641. lt_prog_compiler_pic_CXX=
  15642. lt_prog_compiler_static_CXX='-non_shared'
  15643. ;;
  15644. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  15645. # IBM XL 8.0, 9.0 on PPC and BlueGene
  15646. lt_prog_compiler_wl_CXX='-Wl,'
  15647. lt_prog_compiler_pic_CXX='-qpic'
  15648. lt_prog_compiler_static_CXX='-qstaticlink'
  15649. ;;
  15650. *)
  15651. case `$CC -V 2>&1 | $SED 5q` in
  15652. *Sun\ C*)
  15653. # Sun C++ 5.9
  15654. lt_prog_compiler_pic_CXX='-KPIC'
  15655. lt_prog_compiler_static_CXX='-Bstatic'
  15656. lt_prog_compiler_wl_CXX='-Qoption ld '
  15657. ;;
  15658. esac
  15659. ;;
  15660. esac
  15661. ;;
  15662. lynxos*)
  15663. ;;
  15664. m88k*)
  15665. ;;
  15666. mvs*)
  15667. case $cc_basename in
  15668. cxx*)
  15669. lt_prog_compiler_pic_CXX='-W c,exportall'
  15670. ;;
  15671. *)
  15672. ;;
  15673. esac
  15674. ;;
  15675. netbsd* | netbsdelf*-gnu)
  15676. ;;
  15677. *-mlibc)
  15678. ;;
  15679. *qnx* | *nto*)
  15680. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15681. # it will coredump.
  15682. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15683. ;;
  15684. osf3* | osf4* | osf5*)
  15685. case $cc_basename in
  15686. KCC*)
  15687. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15688. ;;
  15689. RCC*)
  15690. # Rational C++ 2.4.1
  15691. lt_prog_compiler_pic_CXX='-pic'
  15692. ;;
  15693. cxx*)
  15694. # Digital/Compaq C++
  15695. lt_prog_compiler_wl_CXX='-Wl,'
  15696. # Make sure the PIC flag is empty. It appears that all Alpha
  15697. # Linux and Compaq Tru64 Unix objects are PIC.
  15698. lt_prog_compiler_pic_CXX=
  15699. lt_prog_compiler_static_CXX='-non_shared'
  15700. ;;
  15701. *)
  15702. ;;
  15703. esac
  15704. ;;
  15705. psos*)
  15706. ;;
  15707. serenity*)
  15708. ;;
  15709. solaris*)
  15710. case $cc_basename in
  15711. CC* | sunCC*)
  15712. # Sun C++ 4.2, 5.x and Centerline C++
  15713. lt_prog_compiler_pic_CXX='-KPIC'
  15714. lt_prog_compiler_static_CXX='-Bstatic'
  15715. lt_prog_compiler_wl_CXX='-Qoption ld '
  15716. ;;
  15717. gcx*)
  15718. # Green Hills C++ Compiler
  15719. lt_prog_compiler_pic_CXX='-PIC'
  15720. ;;
  15721. *)
  15722. ;;
  15723. esac
  15724. ;;
  15725. sunos4*)
  15726. case $cc_basename in
  15727. CC*)
  15728. # Sun C++ 4.x
  15729. lt_prog_compiler_pic_CXX='-pic'
  15730. lt_prog_compiler_static_CXX='-Bstatic'
  15731. ;;
  15732. lcc*)
  15733. # Lucid
  15734. lt_prog_compiler_pic_CXX='-pic'
  15735. ;;
  15736. *)
  15737. ;;
  15738. esac
  15739. ;;
  15740. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15741. case $cc_basename in
  15742. CC*)
  15743. lt_prog_compiler_wl_CXX='-Wl,'
  15744. lt_prog_compiler_pic_CXX='-KPIC'
  15745. lt_prog_compiler_static_CXX='-Bstatic'
  15746. ;;
  15747. esac
  15748. ;;
  15749. tandem*)
  15750. case $cc_basename in
  15751. NCC*)
  15752. # NonStop-UX NCC 3.20
  15753. lt_prog_compiler_pic_CXX='-KPIC'
  15754. ;;
  15755. *)
  15756. ;;
  15757. esac
  15758. ;;
  15759. vxworks*)
  15760. ;;
  15761. *)
  15762. lt_prog_compiler_can_build_shared_CXX=no
  15763. ;;
  15764. esac
  15765. fi
  15766. case $host_os in
  15767. # For platforms that do not support PIC, -DPIC is meaningless:
  15768. *djgpp*)
  15769. lt_prog_compiler_pic_CXX=
  15770. ;;
  15771. *)
  15772. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  15773. ;;
  15774. esac
  15775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15776. printf %s "checking for $compiler option to produce PIC... " >&6; }
  15777. if test ${lt_cv_prog_compiler_pic_CXX+y}
  15778. then :
  15779. printf %s "(cached) " >&6
  15780. else case e in #(
  15781. e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
  15782. esac
  15783. fi
  15784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  15785. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  15786. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  15787. #
  15788. # Check to make sure the PIC flag actually works.
  15789. #
  15790. if test -n "$lt_prog_compiler_pic_CXX"; then
  15791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  15792. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  15793. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  15794. then :
  15795. printf %s "(cached) " >&6
  15796. else case e in #(
  15797. e) lt_cv_prog_compiler_pic_works_CXX=no
  15798. ac_outfile=conftest.$ac_objext
  15799. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15800. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15801. # Insert the option either (1) after the last *FLAGS variable, or
  15802. # (2) before a word containing "conftest.", or (3) at the end.
  15803. # Note that $ac_compile itself does not contain backslashes and begins
  15804. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15805. # The option is referenced via a variable to avoid confusing sed.
  15806. lt_compile=`echo "$ac_compile" | $SED \
  15807. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15808. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15809. -e 's:$: $lt_compiler_flag:'`
  15810. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15811. (eval "$lt_compile" 2>conftest.err)
  15812. ac_status=$?
  15813. cat conftest.err >&5
  15814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15815. if (exit $ac_status) && test -s "$ac_outfile"; then
  15816. # The compiler can only warn and ignore the option if not recognized
  15817. # So say no if there are warnings other than the usual output.
  15818. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15819. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15820. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15821. lt_cv_prog_compiler_pic_works_CXX=yes
  15822. fi
  15823. fi
  15824. $RM conftest*
  15825. ;;
  15826. esac
  15827. fi
  15828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  15829. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15830. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  15831. case $lt_prog_compiler_pic_CXX in
  15832. "" | " "*) ;;
  15833. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15834. esac
  15835. else
  15836. lt_prog_compiler_pic_CXX=
  15837. lt_prog_compiler_can_build_shared_CXX=no
  15838. fi
  15839. fi
  15840. #
  15841. # Check to make sure the static flag actually works.
  15842. #
  15843. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15845. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15846. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  15847. then :
  15848. printf %s "(cached) " >&6
  15849. else case e in #(
  15850. e) lt_cv_prog_compiler_static_works_CXX=no
  15851. save_LDFLAGS=$LDFLAGS
  15852. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15853. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15854. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15855. # The linker can only warn and ignore the option if not recognized
  15856. # So say no if there are warnings
  15857. if test -s conftest.err; then
  15858. # Append any errors to the config.log.
  15859. cat conftest.err 1>&5
  15860. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15861. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15862. if diff conftest.exp conftest.er2 >/dev/null; then
  15863. lt_cv_prog_compiler_static_works_CXX=yes
  15864. fi
  15865. else
  15866. lt_cv_prog_compiler_static_works_CXX=yes
  15867. fi
  15868. fi
  15869. $RM -r conftest*
  15870. LDFLAGS=$save_LDFLAGS
  15871. ;;
  15872. esac
  15873. fi
  15874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15875. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15876. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  15877. :
  15878. else
  15879. lt_prog_compiler_static_CXX=
  15880. fi
  15881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15882. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15883. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15884. then :
  15885. printf %s "(cached) " >&6
  15886. else case e in #(
  15887. e) lt_cv_prog_compiler_c_o_CXX=no
  15888. $RM -r conftest 2>/dev/null
  15889. mkdir conftest
  15890. cd conftest
  15891. mkdir out
  15892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15894. # Insert the option either (1) after the last *FLAGS variable, or
  15895. # (2) before a word containing "conftest.", or (3) at the end.
  15896. # Note that $ac_compile itself does not contain backslashes and begins
  15897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15898. lt_compile=`echo "$ac_compile" | $SED \
  15899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15901. -e 's:$: $lt_compiler_flag:'`
  15902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15903. (eval "$lt_compile" 2>out/conftest.err)
  15904. ac_status=$?
  15905. cat out/conftest.err >&5
  15906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15908. then
  15909. # The compiler can only warn and ignore the option if not recognized
  15910. # So say no if there are warnings
  15911. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15912. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15913. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15914. lt_cv_prog_compiler_c_o_CXX=yes
  15915. fi
  15916. fi
  15917. chmod u+w . 2>&5
  15918. $RM conftest*
  15919. # SGI C++ compiler will create directory out/ii_files/ for
  15920. # template instantiation
  15921. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15922. $RM out/* && rmdir out
  15923. cd ..
  15924. $RM -r conftest
  15925. $RM conftest*
  15926. ;;
  15927. esac
  15928. fi
  15929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15930. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15932. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15933. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15934. then :
  15935. printf %s "(cached) " >&6
  15936. else case e in #(
  15937. e) lt_cv_prog_compiler_c_o_CXX=no
  15938. $RM -r conftest 2>/dev/null
  15939. mkdir conftest
  15940. cd conftest
  15941. mkdir out
  15942. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15943. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15944. # Insert the option either (1) after the last *FLAGS variable, or
  15945. # (2) before a word containing "conftest.", or (3) at the end.
  15946. # Note that $ac_compile itself does not contain backslashes and begins
  15947. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15948. lt_compile=`echo "$ac_compile" | $SED \
  15949. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15950. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15951. -e 's:$: $lt_compiler_flag:'`
  15952. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15953. (eval "$lt_compile" 2>out/conftest.err)
  15954. ac_status=$?
  15955. cat out/conftest.err >&5
  15956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15957. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15958. then
  15959. # The compiler can only warn and ignore the option if not recognized
  15960. # So say no if there are warnings
  15961. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15962. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15963. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15964. lt_cv_prog_compiler_c_o_CXX=yes
  15965. fi
  15966. fi
  15967. chmod u+w . 2>&5
  15968. $RM conftest*
  15969. # SGI C++ compiler will create directory out/ii_files/ for
  15970. # template instantiation
  15971. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15972. $RM out/* && rmdir out
  15973. cd ..
  15974. $RM -r conftest
  15975. $RM conftest*
  15976. ;;
  15977. esac
  15978. fi
  15979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15980. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15981. hard_links=nottested
  15982. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  15983. # do not overwrite the value of need_locks provided by the user
  15984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15985. printf %s "checking if we can lock with hard links... " >&6; }
  15986. hard_links=yes
  15987. $RM conftest*
  15988. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15989. touch conftest.a
  15990. ln conftest.a conftest.b 2>&5 || hard_links=no
  15991. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15993. printf "%s\n" "$hard_links" >&6; }
  15994. if test no = "$hard_links"; then
  15995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  15996. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  15997. need_locks=warn
  15998. fi
  15999. else
  16000. need_locks=no
  16001. fi
  16002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16003. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  16004. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16005. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  16006. case $host_os in
  16007. aix[4-9]*)
  16008. # If we're using GNU nm, then we don't want the "-C" option.
  16009. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  16010. # Without the "-l" option, or with the "-B" option, AIX nm treats
  16011. # weak defined symbols like other global defined symbols, whereas
  16012. # GNU nm marks them as "W".
  16013. # While the 'weak' keyword is ignored in the Export File, we need
  16014. # it in the Import File for the 'aix-soname' feature, so we have
  16015. # to replace the "-B" option with "-P" for AIX nm.
  16016. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  16017. 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'
  16018. else
  16019. 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'
  16020. fi
  16021. ;;
  16022. pw32*)
  16023. export_symbols_cmds_CXX=$ltdll_cmds
  16024. ;;
  16025. cygwin* | mingw* | windows* | cegcc*)
  16026. case $cc_basename in
  16027. cl* | icl*)
  16028. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  16029. ;;
  16030. *)
  16031. 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'
  16032. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  16033. ;;
  16034. esac
  16035. ;;
  16036. *)
  16037. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16038. ;;
  16039. esac
  16040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16041. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  16042. test no = "$ld_shlibs_CXX" && can_build_shared=no
  16043. with_gnu_ld_CXX=$with_gnu_ld
  16044. #
  16045. # Do we need to explicitly link libc?
  16046. #
  16047. case "x$archive_cmds_need_lc_CXX" in
  16048. x|xyes)
  16049. # Assume -lc should be added
  16050. archive_cmds_need_lc_CXX=yes
  16051. if test yes,yes = "$GCC,$enable_shared"; then
  16052. case $archive_cmds_CXX in
  16053. *'~'*)
  16054. # FIXME: we may have to deal with multi-command sequences.
  16055. ;;
  16056. '$CC '*)
  16057. # Test whether the compiler implicitly links with -lc since on some
  16058. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16059. # to ld, don't add -lc before -lgcc.
  16060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  16061. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  16062. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  16063. then :
  16064. printf %s "(cached) " >&6
  16065. else case e in #(
  16066. e) $RM conftest*
  16067. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16069. (eval $ac_compile) 2>&5
  16070. ac_status=$?
  16071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16072. test $ac_status = 0; } 2>conftest.err; then
  16073. soname=conftest
  16074. lib=conftest
  16075. libobjs=conftest.$ac_objext
  16076. deplibs=
  16077. wl=$lt_prog_compiler_wl_CXX
  16078. pic_flag=$lt_prog_compiler_pic_CXX
  16079. compiler_flags=-v
  16080. linker_flags=-v
  16081. verstring=
  16082. output_objdir=.
  16083. libname=conftest
  16084. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  16085. allow_undefined_flag_CXX=
  16086. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  16087. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16088. ac_status=$?
  16089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16090. test $ac_status = 0; }
  16091. then
  16092. lt_cv_archive_cmds_need_lc_CXX=no
  16093. else
  16094. lt_cv_archive_cmds_need_lc_CXX=yes
  16095. fi
  16096. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  16097. else
  16098. cat conftest.err 1>&5
  16099. fi
  16100. $RM conftest*
  16101. ;;
  16102. esac
  16103. fi
  16104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  16105. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  16106. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  16107. ;;
  16108. esac
  16109. fi
  16110. ;;
  16111. esac
  16112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  16113. printf %s "checking dynamic linker characteristics... " >&6; }
  16114. library_names_spec=
  16115. libname_spec='lib$name'
  16116. soname_spec=
  16117. shrext_cmds=.so
  16118. postinstall_cmds=
  16119. postuninstall_cmds=
  16120. finish_cmds=
  16121. finish_eval=
  16122. shlibpath_var=
  16123. shlibpath_overrides_runpath=unknown
  16124. version_type=none
  16125. dynamic_linker="$host_os ld.so"
  16126. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16127. need_lib_prefix=unknown
  16128. hardcode_into_libs=no
  16129. # when you set need_version to no, make sure it does not cause -set_version
  16130. # flags to be left without arguments
  16131. need_version=unknown
  16132. case $host_os in
  16133. aix3*)
  16134. version_type=linux # correct to gnu/linux during the next big refactor
  16135. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  16136. shlibpath_var=LIBPATH
  16137. # AIX 3 has no versioning support, so we append a major version to the name.
  16138. soname_spec='$libname$release$shared_ext$major'
  16139. ;;
  16140. aix[4-9]*)
  16141. version_type=linux # correct to gnu/linux during the next big refactor
  16142. need_lib_prefix=no
  16143. need_version=no
  16144. hardcode_into_libs=yes
  16145. if test ia64 = "$host_cpu"; then
  16146. # AIX 5 supports IA64
  16147. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  16148. shlibpath_var=LD_LIBRARY_PATH
  16149. else
  16150. # With GCC up to 2.95.x, collect2 would create an import file
  16151. # for dependence libraries. The import file would start with
  16152. # the line '#! .'. This would cause the generated library to
  16153. # depend on '.', always an invalid library. This was fixed in
  16154. # development snapshots of GCC prior to 3.0.
  16155. case $host_os in
  16156. aix4 | aix4.[01] | aix4.[01].*)
  16157. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16158. echo ' yes '
  16159. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  16160. :
  16161. else
  16162. can_build_shared=no
  16163. fi
  16164. ;;
  16165. esac
  16166. # Using Import Files as archive members, it is possible to support
  16167. # filename-based versioning of shared library archives on AIX. While
  16168. # this would work for both with and without runtime linking, it will
  16169. # prevent static linking of such archives. So we do filename-based
  16170. # shared library versioning with .so extension only, which is used
  16171. # when both runtime linking and shared linking is enabled.
  16172. # Unfortunately, runtime linking may impact performance, so we do
  16173. # not want this to be the default eventually. Also, we use the
  16174. # versioned .so libs for executables only if there is the -brtl
  16175. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  16176. # To allow for filename-based versioning support, we need to create
  16177. # libNAME.so.V as an archive file, containing:
  16178. # *) an Import File, referring to the versioned filename of the
  16179. # archive as well as the shared archive member, telling the
  16180. # bitwidth (32 or 64) of that shared object, and providing the
  16181. # list of exported symbols of that shared object, eventually
  16182. # decorated with the 'weak' keyword
  16183. # *) the shared object with the F_LOADONLY flag set, to really avoid
  16184. # it being seen by the linker.
  16185. # At run time we better use the real file rather than another symlink,
  16186. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  16187. case $with_aix_soname,$aix_use_runtimelinking in
  16188. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  16189. # soname into executable. Probably we can add versioning support to
  16190. # collect2, so additional links can be useful in future.
  16191. aix,yes) # traditional libtool
  16192. dynamic_linker='AIX unversionable lib.so'
  16193. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16194. # instead of lib<name>.a to let people know that these are not
  16195. # typical AIX shared libraries.
  16196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16197. ;;
  16198. aix,no) # traditional AIX only
  16199. dynamic_linker='AIX lib.a(lib.so.V)'
  16200. # We preserve .a as extension for shared libraries through AIX4.2
  16201. # and later when we are not doing run time linking.
  16202. library_names_spec='$libname$release.a $libname.a'
  16203. soname_spec='$libname$release$shared_ext$major'
  16204. ;;
  16205. svr4,*) # full svr4 only
  16206. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  16207. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16208. # We do not specify a path in Import Files, so LIBPATH fires.
  16209. shlibpath_overrides_runpath=yes
  16210. ;;
  16211. *,yes) # both, prefer svr4
  16212. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  16213. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16214. # unpreferred sharedlib libNAME.a needs extra handling
  16215. 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"'
  16216. 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"'
  16217. # We do not specify a path in Import Files, so LIBPATH fires.
  16218. shlibpath_overrides_runpath=yes
  16219. ;;
  16220. *,no) # both, prefer aix
  16221. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  16222. library_names_spec='$libname$release.a $libname.a'
  16223. soname_spec='$libname$release$shared_ext$major'
  16224. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  16225. 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)'
  16226. 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"'
  16227. ;;
  16228. esac
  16229. shlibpath_var=LIBPATH
  16230. fi
  16231. ;;
  16232. amigaos*)
  16233. case $host_cpu in
  16234. powerpc)
  16235. # Since July 2007 AmigaOS4 officially supports .so libraries.
  16236. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  16237. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16238. ;;
  16239. m68k)
  16240. library_names_spec='$libname.ixlibrary $libname.a'
  16241. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16242. 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'
  16243. ;;
  16244. esac
  16245. ;;
  16246. beos*)
  16247. library_names_spec='$libname$shared_ext'
  16248. dynamic_linker="$host_os ld.so"
  16249. shlibpath_var=LIBRARY_PATH
  16250. ;;
  16251. bsdi[45]*)
  16252. version_type=linux # correct to gnu/linux during the next big refactor
  16253. need_version=no
  16254. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16255. soname_spec='$libname$release$shared_ext$major'
  16256. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16257. shlibpath_var=LD_LIBRARY_PATH
  16258. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16259. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16260. # the default ld.so.conf also contains /usr/contrib/lib and
  16261. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16262. # libtool to hard-code these into programs
  16263. ;;
  16264. cygwin* | mingw* | windows* | pw32* | cegcc*)
  16265. version_type=windows
  16266. shrext_cmds=.dll
  16267. need_version=no
  16268. need_lib_prefix=no
  16269. case $GCC,$cc_basename in
  16270. yes,*)
  16271. # gcc
  16272. library_names_spec='$libname.dll.a'
  16273. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16274. # If user builds GCC with multilib enabled,
  16275. # it should just install on $(libdir)
  16276. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  16277. if test xyes = x"$multilib"; then
  16278. postinstall_cmds='base_file=`basename \$file`~
  16279. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16280. dldir=$destdir/`dirname \$dlpath`~
  16281. $install_prog $dir/$dlname $destdir/$dlname~
  16282. chmod a+x $destdir/$dlname~
  16283. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16284. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  16285. fi'
  16286. else
  16287. postinstall_cmds='base_file=`basename \$file`~
  16288. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16289. dldir=$destdir/`dirname \$dlpath`~
  16290. test -d \$dldir || mkdir -p \$dldir~
  16291. $install_prog $dir/$dlname \$dldir/$dlname~
  16292. chmod a+x \$dldir/$dlname~
  16293. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16294. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16295. fi'
  16296. fi
  16297. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16298. dlpath=$dir/\$dldll~
  16299. $RM \$dlpath'
  16300. shlibpath_overrides_runpath=yes
  16301. case $host_os in
  16302. cygwin*)
  16303. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16304. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16305. ;;
  16306. mingw* | windows* | cegcc*)
  16307. # MinGW DLLs use traditional 'lib' prefix
  16308. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16309. ;;
  16310. pw32*)
  16311. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16312. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16313. ;;
  16314. esac
  16315. dynamic_linker='Win32 ld.exe'
  16316. ;;
  16317. *,cl* | *,icl*)
  16318. # Native MSVC or ICC
  16319. libname_spec='$name'
  16320. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16321. library_names_spec='$libname.dll.lib'
  16322. case $build_os in
  16323. mingw* | windows*)
  16324. sys_lib_search_path_spec=
  16325. lt_save_ifs=$IFS
  16326. IFS=';'
  16327. for lt_path in $LIB
  16328. do
  16329. IFS=$lt_save_ifs
  16330. # Let DOS variable expansion print the short 8.3 style file name.
  16331. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  16332. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  16333. done
  16334. IFS=$lt_save_ifs
  16335. # Convert to MSYS style.
  16336. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  16337. ;;
  16338. cygwin*)
  16339. # Convert to unix form, then to dos form, then back to unix form
  16340. # but this time dos style (no spaces!) so that the unix form looks
  16341. # like /cygdrive/c/PROGRA~1:/cygdr...
  16342. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  16343. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  16344. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16345. ;;
  16346. *)
  16347. sys_lib_search_path_spec=$LIB
  16348. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  16349. # It is most probably a Windows format PATH.
  16350. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16351. else
  16352. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16353. fi
  16354. # FIXME: find the short name or the path components, as spaces are
  16355. # common. (e.g. "Program Files" -> "PROGRA~1")
  16356. ;;
  16357. esac
  16358. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16359. postinstall_cmds='base_file=`basename \$file`~
  16360. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16361. dldir=$destdir/`dirname \$dlpath`~
  16362. test -d \$dldir || mkdir -p \$dldir~
  16363. $install_prog $dir/$dlname \$dldir/$dlname'
  16364. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16365. dlpath=$dir/\$dldll~
  16366. $RM \$dlpath'
  16367. shlibpath_overrides_runpath=yes
  16368. dynamic_linker='Win32 link.exe'
  16369. ;;
  16370. *)
  16371. # Assume MSVC and ICC wrapper
  16372. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  16373. dynamic_linker='Win32 ld.exe'
  16374. ;;
  16375. esac
  16376. # FIXME: first we should search . and the directory the executable is in
  16377. shlibpath_var=PATH
  16378. ;;
  16379. darwin* | rhapsody*)
  16380. dynamic_linker="$host_os dyld"
  16381. version_type=darwin
  16382. need_lib_prefix=no
  16383. need_version=no
  16384. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  16385. soname_spec='$libname$release$major$shared_ext'
  16386. shlibpath_overrides_runpath=yes
  16387. shlibpath_var=DYLD_LIBRARY_PATH
  16388. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  16389. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16390. ;;
  16391. dgux*)
  16392. version_type=linux # correct to gnu/linux during the next big refactor
  16393. need_lib_prefix=no
  16394. need_version=no
  16395. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16396. soname_spec='$libname$release$shared_ext$major'
  16397. shlibpath_var=LD_LIBRARY_PATH
  16398. ;;
  16399. freebsd* | dragonfly* | midnightbsd*)
  16400. # DragonFly does not have aout. When/if they implement a new
  16401. # versioning mechanism, adjust this.
  16402. if test -x /usr/bin/objformat; then
  16403. objformat=`/usr/bin/objformat`
  16404. else
  16405. case $host_os in
  16406. freebsd[23].*) objformat=aout ;;
  16407. *) objformat=elf ;;
  16408. esac
  16409. fi
  16410. # Handle Gentoo/FreeBSD as it was Linux
  16411. case $host_vendor in
  16412. gentoo)
  16413. version_type=linux ;;
  16414. *)
  16415. version_type=freebsd-$objformat ;;
  16416. esac
  16417. case $version_type in
  16418. freebsd-elf*)
  16419. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16420. soname_spec='$libname$release$shared_ext$major'
  16421. need_version=no
  16422. need_lib_prefix=no
  16423. ;;
  16424. freebsd-*)
  16425. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16426. need_version=yes
  16427. ;;
  16428. linux)
  16429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16430. soname_spec='${libname}${release}${shared_ext}$major'
  16431. need_lib_prefix=no
  16432. need_version=no
  16433. ;;
  16434. esac
  16435. case $host_cpu in
  16436. powerpc64)
  16437. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  16438. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  16439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16440. /* end confdefs.h. */
  16441. int test_pointer_size[sizeof (void *) - 5];
  16442. _ACEOF
  16443. if ac_fn_cxx_try_compile "$LINENO"
  16444. then :
  16445. shlibpath_var=LD_LIBRARY_PATH
  16446. else case e in #(
  16447. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  16448. esac
  16449. fi
  16450. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16451. ;;
  16452. *)
  16453. shlibpath_var=LD_LIBRARY_PATH
  16454. ;;
  16455. esac
  16456. case $host_os in
  16457. freebsd2.*)
  16458. shlibpath_overrides_runpath=yes
  16459. ;;
  16460. freebsd3.[01]* | freebsdelf3.[01]*)
  16461. shlibpath_overrides_runpath=yes
  16462. hardcode_into_libs=yes
  16463. ;;
  16464. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16465. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16466. shlibpath_overrides_runpath=no
  16467. hardcode_into_libs=yes
  16468. ;;
  16469. *) # from 4.6 on, and DragonFly
  16470. shlibpath_overrides_runpath=yes
  16471. hardcode_into_libs=yes
  16472. ;;
  16473. esac
  16474. ;;
  16475. haiku*)
  16476. version_type=linux # correct to gnu/linux during the next big refactor
  16477. need_lib_prefix=no
  16478. need_version=no
  16479. dynamic_linker="$host_os runtime_loader"
  16480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16481. soname_spec='$libname$release$shared_ext$major'
  16482. shlibpath_var=LIBRARY_PATH
  16483. shlibpath_overrides_runpath=no
  16484. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  16485. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  16486. hardcode_into_libs=no
  16487. ;;
  16488. hpux9* | hpux10* | hpux11*)
  16489. # Give a soname corresponding to the major version so that dld.sl refuses to
  16490. # link against other versions.
  16491. version_type=sunos
  16492. need_lib_prefix=no
  16493. need_version=no
  16494. case $host_cpu in
  16495. ia64*)
  16496. shrext_cmds='.so'
  16497. hardcode_into_libs=yes
  16498. dynamic_linker="$host_os dld.so"
  16499. shlibpath_var=LD_LIBRARY_PATH
  16500. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16501. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16502. soname_spec='$libname$release$shared_ext$major'
  16503. if test 32 = "$HPUX_IA64_MODE"; then
  16504. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16505. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  16506. else
  16507. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16508. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  16509. fi
  16510. ;;
  16511. hppa*64*)
  16512. shrext_cmds='.sl'
  16513. hardcode_into_libs=yes
  16514. dynamic_linker="$host_os dld.sl"
  16515. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16516. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16517. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16518. soname_spec='$libname$release$shared_ext$major'
  16519. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16520. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16521. ;;
  16522. *)
  16523. shrext_cmds='.sl'
  16524. dynamic_linker="$host_os dld.sl"
  16525. shlibpath_var=SHLIB_PATH
  16526. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16528. soname_spec='$libname$release$shared_ext$major'
  16529. ;;
  16530. esac
  16531. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  16532. postinstall_cmds='chmod 555 $lib'
  16533. # or fails outright, so override atomically:
  16534. install_override_mode=555
  16535. ;;
  16536. interix[3-9]*)
  16537. version_type=linux # correct to gnu/linux during the next big refactor
  16538. need_lib_prefix=no
  16539. need_version=no
  16540. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16541. soname_spec='$libname$release$shared_ext$major'
  16542. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16543. shlibpath_var=LD_LIBRARY_PATH
  16544. shlibpath_overrides_runpath=no
  16545. hardcode_into_libs=yes
  16546. ;;
  16547. irix5* | irix6* | nonstopux*)
  16548. case $host_os in
  16549. nonstopux*) version_type=nonstopux ;;
  16550. *)
  16551. if test yes = "$lt_cv_prog_gnu_ld"; then
  16552. version_type=linux # correct to gnu/linux during the next big refactor
  16553. else
  16554. version_type=irix
  16555. fi ;;
  16556. esac
  16557. need_lib_prefix=no
  16558. need_version=no
  16559. soname_spec='$libname$release$shared_ext$major'
  16560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  16561. case $host_os in
  16562. irix5* | nonstopux*)
  16563. libsuff= shlibsuff=
  16564. ;;
  16565. *)
  16566. case $LD in # libtool.m4 will add one of these switches to LD
  16567. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16568. libsuff= shlibsuff= libmagic=32-bit;;
  16569. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16570. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16571. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16572. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16573. *) libsuff= shlibsuff= libmagic=never-match;;
  16574. esac
  16575. ;;
  16576. esac
  16577. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16578. shlibpath_overrides_runpath=no
  16579. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  16580. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  16581. hardcode_into_libs=yes
  16582. ;;
  16583. # No shared lib support for Linux oldld, aout, or coff.
  16584. linux*oldld* | linux*aout* | linux*coff*)
  16585. dynamic_linker=no
  16586. ;;
  16587. linux*android*)
  16588. version_type=none # Android doesn't support versioned libraries.
  16589. need_lib_prefix=no
  16590. need_version=no
  16591. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  16592. soname_spec='$libname$release$shared_ext'
  16593. finish_cmds=
  16594. shlibpath_var=LD_LIBRARY_PATH
  16595. shlibpath_overrides_runpath=yes
  16596. # This implies no fast_install, which is unacceptable.
  16597. # Some rework will be needed to allow for fast_install
  16598. # before this can be enabled.
  16599. hardcode_into_libs=yes
  16600. dynamic_linker='Android linker'
  16601. # -rpath works at least for libraries that are not overridden by
  16602. # libraries installed in system locations.
  16603. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  16604. ;;
  16605. # This must be glibc/ELF.
  16606. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16607. version_type=linux # correct to gnu/linux during the next big refactor
  16608. need_lib_prefix=no
  16609. need_version=no
  16610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16611. soname_spec='$libname$release$shared_ext$major'
  16612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16613. shlibpath_var=LD_LIBRARY_PATH
  16614. shlibpath_overrides_runpath=no
  16615. # Some binutils ld are patched to set DT_RUNPATH
  16616. if test ${lt_cv_shlibpath_overrides_runpath+y}
  16617. then :
  16618. printf %s "(cached) " >&6
  16619. else case e in #(
  16620. e) lt_cv_shlibpath_overrides_runpath=no
  16621. save_LDFLAGS=$LDFLAGS
  16622. save_libdir=$libdir
  16623. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  16624. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  16625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16626. /* end confdefs.h. */
  16627. int
  16628. main (void)
  16629. {
  16630. ;
  16631. return 0;
  16632. }
  16633. _ACEOF
  16634. if ac_fn_cxx_try_link "$LINENO"
  16635. then :
  16636. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  16637. then :
  16638. lt_cv_shlibpath_overrides_runpath=yes
  16639. fi
  16640. fi
  16641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16642. conftest$ac_exeext conftest.$ac_ext
  16643. LDFLAGS=$save_LDFLAGS
  16644. libdir=$save_libdir
  16645. ;;
  16646. esac
  16647. fi
  16648. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  16649. # This implies no fast_install, which is unacceptable.
  16650. # Some rework will be needed to allow for fast_install
  16651. # before this can be enabled.
  16652. hardcode_into_libs=yes
  16653. # Ideally, we could use ldconfig to report *all* directories which are
  16654. # searched for libraries, however this is still not possible. Aside from not
  16655. # being certain /sbin/ldconfig is available, command
  16656. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  16657. # even though it is searched at run-time. Try to do the best guess by
  16658. # appending ld.so.conf contents (and includes) to the search path.
  16659. if test -f /etc/ld.so.conf; then
  16660. 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' ' '`
  16661. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16662. fi
  16663. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16664. # powerpc, because MkLinux only supported shared libraries with the
  16665. # GNU dynamic linker. Since this was broken with cross compilers,
  16666. # most powerpc-linux boxes support dynamic linking these days and
  16667. # people can always --disable-shared, the test was removed, and we
  16668. # assume the GNU/Linux dynamic linker is in use.
  16669. dynamic_linker='GNU/Linux ld.so'
  16670. ;;
  16671. netbsdelf*-gnu)
  16672. version_type=linux
  16673. need_lib_prefix=no
  16674. need_version=no
  16675. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16676. soname_spec='$libname$release$shared_ext$major'
  16677. shlibpath_var=LD_LIBRARY_PATH
  16678. shlibpath_overrides_runpath=no
  16679. hardcode_into_libs=yes
  16680. dynamic_linker='NetBSD ld.elf_so'
  16681. ;;
  16682. netbsd*)
  16683. version_type=sunos
  16684. need_lib_prefix=no
  16685. need_version=no
  16686. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16687. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16688. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16689. dynamic_linker='NetBSD (a.out) ld.so'
  16690. else
  16691. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16692. soname_spec='$libname$release$shared_ext$major'
  16693. dynamic_linker='NetBSD ld.elf_so'
  16694. fi
  16695. shlibpath_var=LD_LIBRARY_PATH
  16696. shlibpath_overrides_runpath=yes
  16697. hardcode_into_libs=yes
  16698. ;;
  16699. *-mlibc)
  16700. version_type=linux # correct to gnu/linux during the next big refactor
  16701. need_lib_prefix=no
  16702. need_version=no
  16703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16704. soname_spec='$libname$release$shared_ext$major'
  16705. dynamic_linker='mlibc ld.so'
  16706. shlibpath_var=LD_LIBRARY_PATH
  16707. shlibpath_overrides_runpath=no
  16708. hardcode_into_libs=yes
  16709. ;;
  16710. newsos6)
  16711. version_type=linux # correct to gnu/linux during the next big refactor
  16712. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16713. shlibpath_var=LD_LIBRARY_PATH
  16714. shlibpath_overrides_runpath=yes
  16715. ;;
  16716. *nto* | *qnx*)
  16717. version_type=qnx
  16718. need_lib_prefix=no
  16719. need_version=no
  16720. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16721. soname_spec='$libname$release$shared_ext$major'
  16722. shlibpath_var=LD_LIBRARY_PATH
  16723. shlibpath_overrides_runpath=no
  16724. hardcode_into_libs=yes
  16725. dynamic_linker='ldqnx.so'
  16726. ;;
  16727. openbsd*)
  16728. version_type=sunos
  16729. sys_lib_dlsearch_path_spec=/usr/lib
  16730. need_lib_prefix=no
  16731. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  16732. need_version=no
  16733. else
  16734. need_version=yes
  16735. fi
  16736. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16737. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16738. shlibpath_var=LD_LIBRARY_PATH
  16739. shlibpath_overrides_runpath=yes
  16740. ;;
  16741. os2*)
  16742. libname_spec='$name'
  16743. version_type=windows
  16744. shrext_cmds=.dll
  16745. need_version=no
  16746. need_lib_prefix=no
  16747. # OS/2 can only load a DLL with a base name of 8 characters or less.
  16748. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  16749. v=$($ECHO $release$versuffix | tr -d .-);
  16750. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  16751. $ECHO $n$v`$shared_ext'
  16752. library_names_spec='${libname}_dll.$libext'
  16753. dynamic_linker='OS/2 ld.exe'
  16754. shlibpath_var=BEGINLIBPATH
  16755. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16756. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16757. postinstall_cmds='base_file=`basename \$file`~
  16758. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  16759. dldir=$destdir/`dirname \$dlpath`~
  16760. test -d \$dldir || mkdir -p \$dldir~
  16761. $install_prog $dir/$dlname \$dldir/$dlname~
  16762. chmod a+x \$dldir/$dlname~
  16763. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16764. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16765. fi'
  16766. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  16767. dlpath=$dir/\$dldll~
  16768. $RM \$dlpath'
  16769. ;;
  16770. osf3* | osf4* | osf5*)
  16771. version_type=osf
  16772. need_lib_prefix=no
  16773. need_version=no
  16774. soname_spec='$libname$release$shared_ext$major'
  16775. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16776. shlibpath_var=LD_LIBRARY_PATH
  16777. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16778. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16779. ;;
  16780. rdos*)
  16781. dynamic_linker=no
  16782. ;;
  16783. serenity*)
  16784. version_type=linux # correct to gnu/linux during the next big refactor
  16785. need_lib_prefix=no
  16786. need_version=no
  16787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16788. soname_spec='$libname$release$shared_ext$major'
  16789. shlibpath_var=LD_LIBRARY_PATH
  16790. shlibpath_overrides_runpath=no
  16791. dynamic_linker='SerenityOS LibELF'
  16792. ;;
  16793. solaris*)
  16794. version_type=linux # correct to gnu/linux during the next big refactor
  16795. need_lib_prefix=no
  16796. need_version=no
  16797. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16798. soname_spec='$libname$release$shared_ext$major'
  16799. shlibpath_var=LD_LIBRARY_PATH
  16800. shlibpath_overrides_runpath=yes
  16801. hardcode_into_libs=yes
  16802. # ldd complains unless libraries are executable
  16803. postinstall_cmds='chmod +x $lib'
  16804. ;;
  16805. sunos4*)
  16806. version_type=sunos
  16807. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16808. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16809. shlibpath_var=LD_LIBRARY_PATH
  16810. shlibpath_overrides_runpath=yes
  16811. if test yes = "$with_gnu_ld"; then
  16812. need_lib_prefix=no
  16813. fi
  16814. need_version=yes
  16815. ;;
  16816. sysv4 | sysv4.3*)
  16817. version_type=linux # correct to gnu/linux during the next big refactor
  16818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16819. soname_spec='$libname$release$shared_ext$major'
  16820. shlibpath_var=LD_LIBRARY_PATH
  16821. case $host_vendor in
  16822. sni)
  16823. shlibpath_overrides_runpath=no
  16824. need_lib_prefix=no
  16825. runpath_var=LD_RUN_PATH
  16826. ;;
  16827. siemens)
  16828. need_lib_prefix=no
  16829. ;;
  16830. motorola)
  16831. need_lib_prefix=no
  16832. need_version=no
  16833. shlibpath_overrides_runpath=no
  16834. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16835. ;;
  16836. esac
  16837. ;;
  16838. sysv4*MP*)
  16839. if test -d /usr/nec; then
  16840. version_type=linux # correct to gnu/linux during the next big refactor
  16841. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  16842. soname_spec='$libname$shared_ext.$major'
  16843. shlibpath_var=LD_LIBRARY_PATH
  16844. fi
  16845. ;;
  16846. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16847. version_type=sco
  16848. need_lib_prefix=no
  16849. need_version=no
  16850. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  16851. soname_spec='$libname$release$shared_ext$major'
  16852. shlibpath_var=LD_LIBRARY_PATH
  16853. shlibpath_overrides_runpath=yes
  16854. hardcode_into_libs=yes
  16855. if test yes = "$with_gnu_ld"; then
  16856. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16857. else
  16858. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16859. case $host_os in
  16860. sco3.2v5*)
  16861. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16862. ;;
  16863. esac
  16864. fi
  16865. sys_lib_dlsearch_path_spec='/usr/lib'
  16866. ;;
  16867. tpf*)
  16868. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16869. version_type=linux # correct to gnu/linux during the next big refactor
  16870. need_lib_prefix=no
  16871. need_version=no
  16872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16873. shlibpath_var=LD_LIBRARY_PATH
  16874. shlibpath_overrides_runpath=no
  16875. hardcode_into_libs=yes
  16876. ;;
  16877. uts4*)
  16878. version_type=linux # correct to gnu/linux during the next big refactor
  16879. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16880. soname_spec='$libname$release$shared_ext$major'
  16881. shlibpath_var=LD_LIBRARY_PATH
  16882. ;;
  16883. emscripten*)
  16884. version_type=none
  16885. need_lib_prefix=no
  16886. need_version=no
  16887. library_names_spec='$libname$release$shared_ext'
  16888. soname_spec='$libname$release$shared_ext'
  16889. finish_cmds=
  16890. dynamic_linker="Emscripten linker"
  16891. lt_prog_compiler_wl_CXX=
  16892. lt_prog_compiler_pic_CXX=
  16893. lt_prog_compiler_static_CXX=
  16894. # C++ specific cases for pic, static, wl, etc.
  16895. if test yes = "$GXX"; then
  16896. lt_prog_compiler_wl_CXX='-Wl,'
  16897. lt_prog_compiler_static_CXX='-static'
  16898. case $host_os in
  16899. aix*)
  16900. # All AIX code is PIC.
  16901. if test ia64 = "$host_cpu"; then
  16902. # AIX 5 now supports IA64 processor
  16903. lt_prog_compiler_static_CXX='-Bstatic'
  16904. fi
  16905. lt_prog_compiler_pic_CXX='-fPIC'
  16906. ;;
  16907. amigaos*)
  16908. case $host_cpu in
  16909. powerpc)
  16910. # see comment about AmigaOS4 .so support
  16911. lt_prog_compiler_pic_CXX='-fPIC'
  16912. ;;
  16913. m68k)
  16914. # FIXME: we need at least 68020 code to build shared libraries, but
  16915. # adding the '-m68020' flag to GCC prevents building anything better,
  16916. # like '-m68040'.
  16917. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16918. ;;
  16919. esac
  16920. ;;
  16921. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16922. # PIC is the default for these OSes.
  16923. ;;
  16924. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  16925. # This hack is so that the source file can tell whether it is being
  16926. # built for inclusion in a dll (and should export symbols for example).
  16927. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16928. # (--disable-auto-import) libraries
  16929. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16930. case $host_os in
  16931. os2*)
  16932. lt_prog_compiler_static_CXX='$wl-static'
  16933. ;;
  16934. esac
  16935. ;;
  16936. darwin* | rhapsody*)
  16937. # PIC is the default on this platform
  16938. # Common symbols not allowed in MH_DYLIB files
  16939. lt_prog_compiler_pic_CXX='-fno-common'
  16940. ;;
  16941. *djgpp*)
  16942. # DJGPP does not support shared libraries at all
  16943. lt_prog_compiler_pic_CXX=
  16944. ;;
  16945. haiku*)
  16946. # PIC is the default for Haiku.
  16947. # The "-static" flag exists, but is broken.
  16948. lt_prog_compiler_static_CXX=
  16949. ;;
  16950. interix[3-9]*)
  16951. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16952. # Instead, we relocate shared libraries at runtime.
  16953. ;;
  16954. sysv4*MP*)
  16955. if test -d /usr/nec; then
  16956. lt_prog_compiler_pic_CXX=-Kconform_pic
  16957. fi
  16958. ;;
  16959. hpux*)
  16960. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16961. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  16962. # sets the default TLS model and affects inlining.
  16963. case $host_cpu in
  16964. hppa*64*)
  16965. ;;
  16966. *)
  16967. lt_prog_compiler_pic_CXX='-fPIC'
  16968. ;;
  16969. esac
  16970. ;;
  16971. *qnx* | *nto*)
  16972. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16973. # it will coredump.
  16974. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16975. ;;
  16976. *)
  16977. lt_prog_compiler_pic_CXX='-fPIC'
  16978. ;;
  16979. esac
  16980. else
  16981. case $host_os in
  16982. aix[4-9]*)
  16983. # All AIX code is PIC.
  16984. if test ia64 = "$host_cpu"; then
  16985. # AIX 5 now supports IA64 processor
  16986. lt_prog_compiler_static_CXX='-Bstatic'
  16987. else
  16988. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  16989. fi
  16990. ;;
  16991. chorus*)
  16992. case $cc_basename in
  16993. cxch68*)
  16994. # Green Hills C++ Compiler
  16995. # _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"
  16996. ;;
  16997. esac
  16998. ;;
  16999. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  17000. # This hack is so that the source file can tell whether it is being
  17001. # built for inclusion in a dll (and should export symbols for example).
  17002. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17003. ;;
  17004. dgux*)
  17005. case $cc_basename in
  17006. ec++*)
  17007. lt_prog_compiler_pic_CXX='-KPIC'
  17008. ;;
  17009. ghcx*)
  17010. # Green Hills C++ Compiler
  17011. lt_prog_compiler_pic_CXX='-pic'
  17012. ;;
  17013. *)
  17014. ;;
  17015. esac
  17016. ;;
  17017. freebsd* | dragonfly* | midnightbsd*)
  17018. # FreeBSD uses GNU C++
  17019. ;;
  17020. hpux9* | hpux10* | hpux11*)
  17021. case $cc_basename in
  17022. CC*)
  17023. lt_prog_compiler_wl_CXX='-Wl,'
  17024. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  17025. if test ia64 != "$host_cpu"; then
  17026. lt_prog_compiler_pic_CXX='+Z'
  17027. fi
  17028. ;;
  17029. aCC*)
  17030. lt_prog_compiler_wl_CXX='-Wl,'
  17031. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  17032. case $host_cpu in
  17033. hppa*64*|ia64*)
  17034. # +Z the default
  17035. ;;
  17036. *)
  17037. lt_prog_compiler_pic_CXX='+Z'
  17038. ;;
  17039. esac
  17040. ;;
  17041. *)
  17042. ;;
  17043. esac
  17044. ;;
  17045. interix*)
  17046. # This is c89, which is MS Visual C++ (no shared libs)
  17047. # Anyone wants to do a port?
  17048. ;;
  17049. irix5* | irix6* | nonstopux*)
  17050. case $cc_basename in
  17051. CC*)
  17052. lt_prog_compiler_wl_CXX='-Wl,'
  17053. lt_prog_compiler_static_CXX='-non_shared'
  17054. # CC pic flag -KPIC is the default.
  17055. ;;
  17056. *)
  17057. ;;
  17058. esac
  17059. ;;
  17060. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17061. case $cc_basename in
  17062. KCC*)
  17063. # KAI C++ Compiler
  17064. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17065. lt_prog_compiler_pic_CXX='-fPIC'
  17066. ;;
  17067. ecpc* )
  17068. # old Intel C++ for x86_64, which still supported -KPIC.
  17069. lt_prog_compiler_wl_CXX='-Wl,'
  17070. lt_prog_compiler_pic_CXX='-KPIC'
  17071. lt_prog_compiler_static_CXX='-static'
  17072. ;;
  17073. icpc* )
  17074. # Intel C++, used to be incompatible with GCC.
  17075. # ICC 10 doesn't accept -KPIC any more.
  17076. lt_prog_compiler_wl_CXX='-Wl,'
  17077. lt_prog_compiler_pic_CXX='-fPIC'
  17078. lt_prog_compiler_static_CXX='-static'
  17079. ;;
  17080. pgCC* | pgcpp*)
  17081. # Portland Group C++ compiler
  17082. lt_prog_compiler_wl_CXX='-Wl,'
  17083. lt_prog_compiler_pic_CXX='-fpic'
  17084. lt_prog_compiler_static_CXX='-Bstatic'
  17085. ;;
  17086. cxx*)
  17087. # Compaq C++
  17088. # Make sure the PIC flag is empty. It appears that all Alpha
  17089. # Linux and Compaq Tru64 Unix objects are PIC.
  17090. lt_prog_compiler_pic_CXX=
  17091. lt_prog_compiler_static_CXX='-non_shared'
  17092. ;;
  17093. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  17094. # IBM XL 8.0, 9.0 on PPC and BlueGene
  17095. lt_prog_compiler_wl_CXX='-Wl,'
  17096. lt_prog_compiler_pic_CXX='-qpic'
  17097. lt_prog_compiler_static_CXX='-qstaticlink'
  17098. ;;
  17099. *)
  17100. case `$CC -V 2>&1 | $SED 5q` in
  17101. *Sun\ C*)
  17102. # Sun C++ 5.9
  17103. lt_prog_compiler_pic_CXX='-KPIC'
  17104. lt_prog_compiler_static_CXX='-Bstatic'
  17105. lt_prog_compiler_wl_CXX='-Qoption ld '
  17106. ;;
  17107. esac
  17108. ;;
  17109. esac
  17110. ;;
  17111. lynxos*)
  17112. ;;
  17113. m88k*)
  17114. ;;
  17115. mvs*)
  17116. case $cc_basename in
  17117. cxx*)
  17118. lt_prog_compiler_pic_CXX='-W c,exportall'
  17119. ;;
  17120. *)
  17121. ;;
  17122. esac
  17123. ;;
  17124. netbsd* | netbsdelf*-gnu)
  17125. ;;
  17126. *-mlibc)
  17127. ;;
  17128. *qnx* | *nto*)
  17129. # QNX uses GNU C++, but need to define -shared option too, otherwise
  17130. # it will coredump.
  17131. lt_prog_compiler_pic_CXX='-fPIC -shared'
  17132. ;;
  17133. osf3* | osf4* | osf5*)
  17134. case $cc_basename in
  17135. KCC*)
  17136. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17137. ;;
  17138. RCC*)
  17139. # Rational C++ 2.4.1
  17140. lt_prog_compiler_pic_CXX='-pic'
  17141. ;;
  17142. cxx*)
  17143. # Digital/Compaq C++
  17144. lt_prog_compiler_wl_CXX='-Wl,'
  17145. # Make sure the PIC flag is empty. It appears that all Alpha
  17146. # Linux and Compaq Tru64 Unix objects are PIC.
  17147. lt_prog_compiler_pic_CXX=
  17148. lt_prog_compiler_static_CXX='-non_shared'
  17149. ;;
  17150. *)
  17151. ;;
  17152. esac
  17153. ;;
  17154. psos*)
  17155. ;;
  17156. serenity*)
  17157. ;;
  17158. solaris*)
  17159. case $cc_basename in
  17160. CC* | sunCC*)
  17161. # Sun C++ 4.2, 5.x and Centerline C++
  17162. lt_prog_compiler_pic_CXX='-KPIC'
  17163. lt_prog_compiler_static_CXX='-Bstatic'
  17164. lt_prog_compiler_wl_CXX='-Qoption ld '
  17165. ;;
  17166. gcx*)
  17167. # Green Hills C++ Compiler
  17168. lt_prog_compiler_pic_CXX='-PIC'
  17169. ;;
  17170. *)
  17171. ;;
  17172. esac
  17173. ;;
  17174. sunos4*)
  17175. case $cc_basename in
  17176. CC*)
  17177. # Sun C++ 4.x
  17178. lt_prog_compiler_pic_CXX='-pic'
  17179. lt_prog_compiler_static_CXX='-Bstatic'
  17180. ;;
  17181. lcc*)
  17182. # Lucid
  17183. lt_prog_compiler_pic_CXX='-pic'
  17184. ;;
  17185. *)
  17186. ;;
  17187. esac
  17188. ;;
  17189. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17190. case $cc_basename in
  17191. CC*)
  17192. lt_prog_compiler_wl_CXX='-Wl,'
  17193. lt_prog_compiler_pic_CXX='-KPIC'
  17194. lt_prog_compiler_static_CXX='-Bstatic'
  17195. ;;
  17196. esac
  17197. ;;
  17198. tandem*)
  17199. case $cc_basename in
  17200. NCC*)
  17201. # NonStop-UX NCC 3.20
  17202. lt_prog_compiler_pic_CXX='-KPIC'
  17203. ;;
  17204. *)
  17205. ;;
  17206. esac
  17207. ;;
  17208. vxworks*)
  17209. ;;
  17210. *)
  17211. lt_prog_compiler_can_build_shared_CXX=no
  17212. ;;
  17213. esac
  17214. fi
  17215. case $host_os in
  17216. # For platforms that do not support PIC, -DPIC is meaningless:
  17217. *djgpp*)
  17218. lt_prog_compiler_pic_CXX=
  17219. ;;
  17220. *)
  17221. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  17222. ;;
  17223. esac
  17224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  17225. printf %s "checking for $compiler option to produce PIC... " >&6; }
  17226. if test ${lt_cv_prog_compiler_pic_CXX+y}
  17227. then :
  17228. printf %s "(cached) " >&6
  17229. else case e in #(
  17230. e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
  17231. esac
  17232. fi
  17233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  17234. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  17235. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  17236. #
  17237. # Check to make sure the PIC flag actually works.
  17238. #
  17239. if test -n "$lt_prog_compiler_pic_CXX"; then
  17240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  17241. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  17242. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  17243. then :
  17244. printf %s "(cached) " >&6
  17245. else case e in #(
  17246. e) lt_cv_prog_compiler_pic_works_CXX=no
  17247. ac_outfile=conftest.$ac_objext
  17248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17249. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  17250. # Insert the option either (1) after the last *FLAGS variable, or
  17251. # (2) before a word containing "conftest.", or (3) at the end.
  17252. # Note that $ac_compile itself does not contain backslashes and begins
  17253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17254. # The option is referenced via a variable to avoid confusing sed.
  17255. lt_compile=`echo "$ac_compile" | $SED \
  17256. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17257. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17258. -e 's:$: $lt_compiler_flag:'`
  17259. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17260. (eval "$lt_compile" 2>conftest.err)
  17261. ac_status=$?
  17262. cat conftest.err >&5
  17263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17264. if (exit $ac_status) && test -s "$ac_outfile"; then
  17265. # The compiler can only warn and ignore the option if not recognized
  17266. # So say no if there are warnings other than the usual output.
  17267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  17268. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17269. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17270. lt_cv_prog_compiler_pic_works_CXX=yes
  17271. fi
  17272. fi
  17273. $RM conftest*
  17274. ;;
  17275. esac
  17276. fi
  17277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  17278. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  17279. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  17280. case $lt_prog_compiler_pic_CXX in
  17281. "" | " "*) ;;
  17282. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  17283. esac
  17284. else
  17285. lt_prog_compiler_pic_CXX=
  17286. lt_prog_compiler_can_build_shared_CXX=no
  17287. fi
  17288. fi
  17289. #
  17290. # Check to make sure the static flag actually works.
  17291. #
  17292. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  17293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17294. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  17295. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  17296. then :
  17297. printf %s "(cached) " >&6
  17298. else case e in #(
  17299. e) lt_cv_prog_compiler_static_works_CXX=no
  17300. save_LDFLAGS=$LDFLAGS
  17301. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17302. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17303. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17304. # The linker can only warn and ignore the option if not recognized
  17305. # So say no if there are warnings
  17306. if test -s conftest.err; then
  17307. # Append any errors to the config.log.
  17308. cat conftest.err 1>&5
  17309. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  17310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17311. if diff conftest.exp conftest.er2 >/dev/null; then
  17312. lt_cv_prog_compiler_static_works_CXX=yes
  17313. fi
  17314. else
  17315. lt_cv_prog_compiler_static_works_CXX=yes
  17316. fi
  17317. fi
  17318. $RM -r conftest*
  17319. LDFLAGS=$save_LDFLAGS
  17320. ;;
  17321. esac
  17322. fi
  17323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  17324. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  17325. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  17326. :
  17327. else
  17328. lt_prog_compiler_static_CXX=
  17329. fi
  17330. ='-fPIC'
  17331. archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  17332. archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  17333. archive_cmds_need_lc_CXX=no
  17334. no_undefined_flag_CXX=
  17335. ;;
  17336. *)
  17337. dynamic_linker=no
  17338. ;;
  17339. esac
  17340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  17341. printf "%s\n" "$dynamic_linker" >&6; }
  17342. test no = "$dynamic_linker" && can_build_shared=no
  17343. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17344. if test yes = "$GCC"; then
  17345. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17346. fi
  17347. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  17348. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  17349. fi
  17350. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  17351. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  17352. fi
  17353. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  17354. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  17355. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  17356. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  17357. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  17358. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  17359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  17360. printf %s "checking how to hardcode library paths into programs... " >&6; }
  17361. hardcode_action_CXX=
  17362. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  17363. test -n "$runpath_var_CXX" ||
  17364. test yes = "$hardcode_automatic_CXX"; then
  17365. # We can hardcode non-existent directories.
  17366. if test no != "$hardcode_direct_CXX" &&
  17367. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17368. # have to relink, otherwise we might link with an installed library
  17369. # when we should be linking with a yet-to-be-installed one
  17370. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  17371. test no != "$hardcode_minus_L_CXX"; then
  17372. # Linking always hardcodes the temporary library directory.
  17373. hardcode_action_CXX=relink
  17374. else
  17375. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17376. hardcode_action_CXX=immediate
  17377. fi
  17378. else
  17379. # We cannot hardcode anything, or else we can only hardcode existing
  17380. # directories.
  17381. hardcode_action_CXX=unsupported
  17382. fi
  17383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  17384. printf "%s\n" "$hardcode_action_CXX" >&6; }
  17385. if test relink = "$hardcode_action_CXX" ||
  17386. test yes = "$inherit_rpath_CXX"; then
  17387. # Fast installation is not supported
  17388. enable_fast_install=no
  17389. elif test yes = "$shlibpath_overrides_runpath" ||
  17390. test no = "$enable_shared"; then
  17391. # Fast installation is not necessary
  17392. enable_fast_install=needless
  17393. fi
  17394. fi # test -n "$compiler"
  17395. CC=$lt_save_CC
  17396. CFLAGS=$lt_save_CFLAGS
  17397. LDCXX=$LD
  17398. LD=$lt_save_LD
  17399. GCC=$lt_save_GCC
  17400. with_gnu_ld=$lt_save_with_gnu_ld
  17401. lt_cv_path_LDCXX=$lt_cv_path_LD
  17402. lt_cv_path_LD=$lt_save_path_LD
  17403. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  17404. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  17405. fi # test yes != "$_lt_caught_CXX_error"
  17406. ac_ext=cpp
  17407. ac_cpp='$CXXCPP $CPPFLAGS'
  17408. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17409. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17410. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17411. if test "$GCC" = yes
  17412. then :
  17413. for flag in -Wall -Wextra; do
  17414. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | sed "$as_sed_sh"`
  17415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  17416. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  17417. if eval test \${$as_CACHEVAR+y}
  17418. then :
  17419. printf %s "(cached) " >&6
  17420. else case e in #(
  17421. e)
  17422. ax_check_save_flags=$CXXFLAGS
  17423. CXXFLAGS="$CXXFLAGS -Werror $flag"
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. int main(void) { return 0; }
  17427. _ACEOF
  17428. if ac_fn_cxx_try_compile "$LINENO"
  17429. then :
  17430. eval "$as_CACHEVAR=yes"
  17431. else case e in #(
  17432. e) eval "$as_CACHEVAR=no" ;;
  17433. esac
  17434. fi
  17435. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17436. CXXFLAGS=$ax_check_save_flags ;;
  17437. esac
  17438. fi
  17439. eval ac_res=\$$as_CACHEVAR
  17440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17441. printf "%s\n" "$ac_res" >&6; }
  17442. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  17443. then :
  17444. if test ${AM_CXXFLAGS+y}
  17445. then :
  17446. case " $AM_CXXFLAGS " in #(
  17447. *" $flag "*) :
  17448. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  17449. (: AM_CXXFLAGS already contains $flag) 2>&5
  17450. ac_status=$?
  17451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17452. test $ac_status = 0; } ;; #(
  17453. *) :
  17454. as_fn_append AM_CXXFLAGS " $flag"
  17455. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17456. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17457. ac_status=$?
  17458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17459. test $ac_status = 0; }
  17460. ;;
  17461. esac
  17462. else case e in #(
  17463. e)
  17464. AM_CXXFLAGS=$flag
  17465. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17466. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17467. ac_status=$?
  17468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17469. test $ac_status = 0; }
  17470. ;;
  17471. esac
  17472. fi
  17473. else case e in #(
  17474. e) : ;;
  17475. esac
  17476. fi
  17477. done
  17478. for flag in -fexceptions; do
  17479. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | sed "$as_sed_sh"`
  17480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  17481. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  17482. if eval test \${$as_CACHEVAR+y}
  17483. then :
  17484. printf %s "(cached) " >&6
  17485. else case e in #(
  17486. e)
  17487. ax_check_save_flags=$CXXFLAGS
  17488. CXXFLAGS="$CXXFLAGS -Werror $flag"
  17489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17490. /* end confdefs.h. */
  17491. int main(void) { return 0; }
  17492. _ACEOF
  17493. if ac_fn_cxx_try_compile "$LINENO"
  17494. then :
  17495. eval "$as_CACHEVAR=yes"
  17496. else case e in #(
  17497. e) eval "$as_CACHEVAR=no" ;;
  17498. esac
  17499. fi
  17500. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17501. CXXFLAGS=$ax_check_save_flags ;;
  17502. esac
  17503. fi
  17504. eval ac_res=\$$as_CACHEVAR
  17505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17506. printf "%s\n" "$ac_res" >&6; }
  17507. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  17508. then :
  17509. if test ${AM_CXXFLAGS+y}
  17510. then :
  17511. case " $AM_CXXFLAGS " in #(
  17512. *" $flag "*) :
  17513. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  17514. (: AM_CXXFLAGS already contains $flag) 2>&5
  17515. ac_status=$?
  17516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17517. test $ac_status = 0; } ;; #(
  17518. *) :
  17519. as_fn_append AM_CXXFLAGS " $flag"
  17520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17521. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17522. ac_status=$?
  17523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17524. test $ac_status = 0; }
  17525. ;;
  17526. esac
  17527. else case e in #(
  17528. e)
  17529. AM_CXXFLAGS=$flag
  17530. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17531. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17532. ac_status=$?
  17533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17534. test $ac_status = 0; }
  17535. ;;
  17536. esac
  17537. fi
  17538. else case e in #(
  17539. e) : ;;
  17540. esac
  17541. fi
  17542. done
  17543. for flag in -fno-strict-aliasing; do
  17544. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | sed "$as_sed_sh"`
  17545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  17546. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  17547. if eval test \${$as_CACHEVAR+y}
  17548. then :
  17549. printf %s "(cached) " >&6
  17550. else case e in #(
  17551. e)
  17552. ax_check_save_flags=$CXXFLAGS
  17553. CXXFLAGS="$CXXFLAGS -Werror $flag"
  17554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17555. /* end confdefs.h. */
  17556. int main(void) { return 0; }
  17557. _ACEOF
  17558. if ac_fn_cxx_try_compile "$LINENO"
  17559. then :
  17560. eval "$as_CACHEVAR=yes"
  17561. else case e in #(
  17562. e) eval "$as_CACHEVAR=no" ;;
  17563. esac
  17564. fi
  17565. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17566. CXXFLAGS=$ax_check_save_flags ;;
  17567. esac
  17568. fi
  17569. eval ac_res=\$$as_CACHEVAR
  17570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17571. printf "%s\n" "$ac_res" >&6; }
  17572. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  17573. then :
  17574. if test ${AM_CXXFLAGS+y}
  17575. then :
  17576. case " $AM_CXXFLAGS " in #(
  17577. *" $flag "*) :
  17578. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  17579. (: AM_CXXFLAGS already contains $flag) 2>&5
  17580. ac_status=$?
  17581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17582. test $ac_status = 0; } ;; #(
  17583. *) :
  17584. as_fn_append AM_CXXFLAGS " $flag"
  17585. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17586. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17587. ac_status=$?
  17588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17589. test $ac_status = 0; }
  17590. ;;
  17591. esac
  17592. else case e in #(
  17593. e)
  17594. AM_CXXFLAGS=$flag
  17595. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  17596. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  17597. ac_status=$?
  17598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17599. test $ac_status = 0; }
  17600. ;;
  17601. esac
  17602. fi
  17603. else case e in #(
  17604. e) : ;;
  17605. esac
  17606. fi
  17607. done
  17608. fi
  17609. ac_ext=c
  17610. ac_cpp='$CPP $CPPFLAGS'
  17611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17614. if test "$GCC" = yes
  17615. then :
  17616. for flag in -fno-strict-aliasing; do
  17617. as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"`
  17618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  17619. printf %s "checking whether the linker accepts $flag... " >&6; }
  17620. if eval test \${$as_CACHEVAR+y}
  17621. then :
  17622. printf %s "(cached) " >&6
  17623. else case e in #(
  17624. e)
  17625. ax_check_save_flags=$LDFLAGS
  17626. LDFLAGS="$LDFLAGS $flag"
  17627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17628. /* end confdefs.h. */
  17629. int
  17630. main (void)
  17631. {
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. if ac_fn_c_try_link "$LINENO"
  17637. then :
  17638. eval "$as_CACHEVAR=yes"
  17639. else case e in #(
  17640. e) eval "$as_CACHEVAR=no" ;;
  17641. esac
  17642. fi
  17643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17644. conftest$ac_exeext conftest.$ac_ext
  17645. LDFLAGS=$ax_check_save_flags ;;
  17646. esac
  17647. fi
  17648. eval ac_res=\$$as_CACHEVAR
  17649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17650. printf "%s\n" "$ac_res" >&6; }
  17651. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  17652. then :
  17653. if test ${AM_LDFLAGS+y}
  17654. then :
  17655. case " $AM_LDFLAGS " in #(
  17656. *" $flag "*) :
  17657. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  17658. (: AM_LDFLAGS already contains $flag) 2>&5
  17659. ac_status=$?
  17660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17661. test $ac_status = 0; } ;; #(
  17662. *) :
  17663. as_fn_append AM_LDFLAGS " $flag"
  17664. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  17665. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  17666. ac_status=$?
  17667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17668. test $ac_status = 0; }
  17669. ;;
  17670. esac
  17671. else case e in #(
  17672. e)
  17673. AM_LDFLAGS=$flag
  17674. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  17675. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  17676. ac_status=$?
  17677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17678. test $ac_status = 0; }
  17679. ;;
  17680. esac
  17681. fi
  17682. else case e in #(
  17683. e) : ;;
  17684. esac
  17685. fi
  17686. done
  17687. fi
  17688. case "$LD" in #(
  17689. *clang*) :
  17690. case "${host_os}" in #(
  17691. *linux*) :
  17692. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  17693. *) :
  17694. ;;
  17695. esac ;; #(
  17696. *) :
  17697. ;;
  17698. esac
  17699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  17700. printf %s "checking whether compiler supports visibility... " >&6; }
  17701. if test ${expatcfg_cv_compiler_supports_visibility+y}
  17702. then :
  17703. printf %s "(cached) " >&6
  17704. else case e in #(
  17705. e) expatcfg_cv_compiler_supports_visibility=no
  17706. OLDFLAGS=$CFLAGS
  17707. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  17708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17709. /* end confdefs.h. */
  17710. void __attribute__((visibility("default"))) foo(void);
  17711. void foo(void) {}
  17712. _ACEOF
  17713. if ac_fn_c_try_compile "$LINENO"
  17714. then :
  17715. expatcfg_cv_compiler_supports_visibility=yes
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17718. CFLAGS=$OLDFLAGS ;;
  17719. esac
  17720. fi
  17721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  17722. printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
  17723. if test "$expatcfg_cv_compiler_supports_visibility" = yes
  17724. then :
  17725. if test ${AM_CFLAGS+y}
  17726. then :
  17727. case " $AM_CFLAGS " in #(
  17728. *" -fvisibility=hidden "*) :
  17729. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  17730. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  17731. ac_status=$?
  17732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17733. test $ac_status = 0; } ;; #(
  17734. *) :
  17735. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  17736. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  17737. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  17738. ac_status=$?
  17739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17740. test $ac_status = 0; }
  17741. ;;
  17742. esac
  17743. else case e in #(
  17744. e)
  17745. AM_CFLAGS=-fvisibility=hidden
  17746. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  17747. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  17748. ac_status=$?
  17749. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17750. test $ac_status = 0; }
  17751. ;;
  17752. esac
  17753. fi
  17754. if test "${enable_shared}" = yes
  17755. then :
  17756. if test ${AM_CPPFLAGS+y}
  17757. then :
  17758. case " $AM_CPPFLAGS " in #(
  17759. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  17760. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  17761. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  17762. ac_status=$?
  17763. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17764. test $ac_status = 0; } ;; #(
  17765. *) :
  17766. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  17767. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  17768. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  17769. ac_status=$?
  17770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17771. test $ac_status = 0; }
  17772. ;;
  17773. esac
  17774. else case e in #(
  17775. e)
  17776. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  17777. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  17778. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  17779. ac_status=$?
  17780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17781. test $ac_status = 0; }
  17782. ;;
  17783. esac
  17784. fi
  17785. fi
  17786. fi
  17787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17788. printf %s "checking whether byte ordering is bigendian... " >&6; }
  17789. if test ${ac_cv_c_bigendian+y}
  17790. then :
  17791. printf %s "(cached) " >&6
  17792. else case e in #(
  17793. e) ac_cv_c_bigendian=unknown
  17794. # See if we're dealing with a universal compiler.
  17795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17796. /* end confdefs.h. */
  17797. #ifndef __APPLE_CC__
  17798. not a universal capable compiler
  17799. #endif
  17800. typedef int dummy;
  17801. _ACEOF
  17802. if ac_fn_c_try_compile "$LINENO"
  17803. then :
  17804. # Check for potential -arch flags. It is not universal unless
  17805. # there are at least two -arch flags with different values.
  17806. ac_arch=
  17807. ac_prev=
  17808. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17809. if test -n "$ac_prev"; then
  17810. case $ac_word in
  17811. i?86 | x86_64 | ppc | ppc64)
  17812. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17813. ac_arch=$ac_word
  17814. else
  17815. ac_cv_c_bigendian=universal
  17816. break
  17817. fi
  17818. ;;
  17819. esac
  17820. ac_prev=
  17821. elif test "x$ac_word" = "x-arch"; then
  17822. ac_prev=arch
  17823. fi
  17824. done
  17825. fi
  17826. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17827. if test $ac_cv_c_bigendian = unknown; then
  17828. # See if sys/param.h defines the BYTE_ORDER macro.
  17829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17830. /* end confdefs.h. */
  17831. #include <sys/types.h>
  17832. #include <sys/param.h>
  17833. int
  17834. main (void)
  17835. {
  17836. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  17837. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  17838. && LITTLE_ENDIAN)
  17839. bogus endian macros
  17840. #endif
  17841. ;
  17842. return 0;
  17843. }
  17844. _ACEOF
  17845. if ac_fn_c_try_compile "$LINENO"
  17846. then :
  17847. # It does; now see whether it defined to BIG_ENDIAN or not.
  17848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17849. /* end confdefs.h. */
  17850. #include <sys/types.h>
  17851. #include <sys/param.h>
  17852. int
  17853. main (void)
  17854. {
  17855. #if BYTE_ORDER != BIG_ENDIAN
  17856. not big endian
  17857. #endif
  17858. ;
  17859. return 0;
  17860. }
  17861. _ACEOF
  17862. if ac_fn_c_try_compile "$LINENO"
  17863. then :
  17864. ac_cv_c_bigendian=yes
  17865. else case e in #(
  17866. e) ac_cv_c_bigendian=no ;;
  17867. esac
  17868. fi
  17869. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17870. fi
  17871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17872. fi
  17873. if test $ac_cv_c_bigendian = unknown; then
  17874. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17876. /* end confdefs.h. */
  17877. #include <limits.h>
  17878. int
  17879. main (void)
  17880. {
  17881. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17882. bogus endian macros
  17883. #endif
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_compile "$LINENO"
  17889. then :
  17890. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17892. /* end confdefs.h. */
  17893. #include <limits.h>
  17894. int
  17895. main (void)
  17896. {
  17897. #ifndef _BIG_ENDIAN
  17898. not big endian
  17899. #endif
  17900. ;
  17901. return 0;
  17902. }
  17903. _ACEOF
  17904. if ac_fn_c_try_compile "$LINENO"
  17905. then :
  17906. ac_cv_c_bigendian=yes
  17907. else case e in #(
  17908. e) ac_cv_c_bigendian=no ;;
  17909. esac
  17910. fi
  17911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17912. fi
  17913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17914. fi
  17915. if test $ac_cv_c_bigendian = unknown; then
  17916. # Compile a test program.
  17917. if test "$cross_compiling" = yes
  17918. then :
  17919. # Try to guess by grepping values from an object file.
  17920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17921. /* end confdefs.h. */
  17922. unsigned short int ascii_mm[] =
  17923. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17924. unsigned short int ascii_ii[] =
  17925. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17926. int use_ascii (int i) {
  17927. return ascii_mm[i] + ascii_ii[i];
  17928. }
  17929. unsigned short int ebcdic_ii[] =
  17930. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17931. unsigned short int ebcdic_mm[] =
  17932. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17933. int use_ebcdic (int i) {
  17934. return ebcdic_mm[i] + ebcdic_ii[i];
  17935. }
  17936. int
  17937. main (int argc, char **argv)
  17938. {
  17939. /* Intimidate the compiler so that it does not
  17940. optimize the arrays away. */
  17941. char *p = argv[0];
  17942. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  17943. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  17944. return use_ascii (argc) == use_ebcdic (*p);
  17945. }
  17946. _ACEOF
  17947. if ac_fn_c_try_link "$LINENO"
  17948. then :
  17949. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  17950. ac_cv_c_bigendian=yes
  17951. fi
  17952. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  17953. if test "$ac_cv_c_bigendian" = unknown; then
  17954. ac_cv_c_bigendian=no
  17955. else
  17956. # finding both strings is unlikely to happen, but who knows?
  17957. ac_cv_c_bigendian=unknown
  17958. fi
  17959. fi
  17960. fi
  17961. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17962. conftest$ac_exeext conftest.$ac_ext
  17963. else case e in #(
  17964. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17965. /* end confdefs.h. */
  17966. $ac_includes_default
  17967. int
  17968. main (void)
  17969. {
  17970. /* Are we little or big endian? From Harbison&Steele. */
  17971. union
  17972. {
  17973. long int l;
  17974. char c[sizeof (long int)];
  17975. } u;
  17976. u.l = 1;
  17977. return u.c[sizeof (long int) - 1] == 1;
  17978. ;
  17979. return 0;
  17980. }
  17981. _ACEOF
  17982. if ac_fn_c_try_run "$LINENO"
  17983. then :
  17984. ac_cv_c_bigendian=no
  17985. else case e in #(
  17986. e) ac_cv_c_bigendian=yes ;;
  17987. esac
  17988. fi
  17989. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17990. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  17991. esac
  17992. fi
  17993. fi ;;
  17994. esac
  17995. fi
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  17997. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  17998. case $ac_cv_c_bigendian in #(
  17999. yes)
  18000. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18001. BYTEORDER=4321;; #(
  18002. no)
  18003. BYTEORDER=1234 ;; #(
  18004. universal)
  18005. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18006. ;; #(
  18007. *)
  18008. as_fn_error $? "unknown endianness
  18009. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18010. esac
  18011. printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
  18012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  18013. printf %s "checking for an ANSI C-conforming const... " >&6; }
  18014. if test ${ac_cv_c_const+y}
  18015. then :
  18016. printf %s "(cached) " >&6
  18017. else case e in #(
  18018. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18019. /* end confdefs.h. */
  18020. int
  18021. main (void)
  18022. {
  18023. #ifndef __cplusplus
  18024. /* Ultrix mips cc rejects this sort of thing. */
  18025. typedef int charset[2];
  18026. const charset cs = { 0, 0 };
  18027. /* SunOS 4.1.1 cc rejects this. */
  18028. char const *const *pcpcc;
  18029. char **ppc;
  18030. /* NEC SVR4.0.2 mips cc rejects this. */
  18031. struct point {int x, y;};
  18032. static struct point const zero = {0,0};
  18033. /* IBM XL C 1.02.0.0 rejects this.
  18034. It does not let you subtract one const X* pointer from another in
  18035. an arm of an if-expression whose if-part is not a constant
  18036. expression */
  18037. const char *g = "string";
  18038. pcpcc = &g + (g ? g-g : 0);
  18039. /* HPUX 7.0 cc rejects these. */
  18040. ++pcpcc;
  18041. ppc = (char**) pcpcc;
  18042. pcpcc = (char const *const *) ppc;
  18043. { /* SCO 3.2v4 cc rejects this sort of thing. */
  18044. char tx;
  18045. char *t = &tx;
  18046. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18047. *t++ = 0;
  18048. if (s) return 0;
  18049. }
  18050. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18051. int x[] = {25, 17};
  18052. const int *foo = &x[0];
  18053. ++foo;
  18054. }
  18055. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18056. typedef const int *iptr;
  18057. iptr p = 0;
  18058. ++p;
  18059. }
  18060. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  18061. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18062. struct s { int j; const int *ap[3]; } bx;
  18063. struct s *b = &bx; b->j = 5;
  18064. }
  18065. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18066. const int foo = 10;
  18067. if (!foo) return 0;
  18068. }
  18069. return !cs[0] && !zero.x;
  18070. #endif
  18071. ;
  18072. return 0;
  18073. }
  18074. _ACEOF
  18075. if ac_fn_c_try_compile "$LINENO"
  18076. then :
  18077. ac_cv_c_const=yes
  18078. else case e in #(
  18079. e) ac_cv_c_const=no ;;
  18080. esac
  18081. fi
  18082. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  18083. esac
  18084. fi
  18085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  18086. printf "%s\n" "$ac_cv_c_const" >&6; }
  18087. if test $ac_cv_c_const = no; then
  18088. printf "%s\n" "#define const /**/" >>confdefs.h
  18089. fi
  18090. # Check whether --with-xmlwf was given.
  18091. if test ${with_xmlwf+y}
  18092. then :
  18093. withval=$with_xmlwf;
  18094. else case e in #(
  18095. e) with_xmlwf=yes ;;
  18096. esac
  18097. fi
  18098. if test x${with_xmlwf} = xyes; then
  18099. WITH_XMLWF_TRUE=
  18100. WITH_XMLWF_FALSE='#'
  18101. else
  18102. WITH_XMLWF_TRUE='#'
  18103. WITH_XMLWF_FALSE=
  18104. fi
  18105. # Check whether --with-examples was given.
  18106. if test ${with_examples+y}
  18107. then :
  18108. withval=$with_examples;
  18109. else case e in #(
  18110. e) with_examples=yes ;;
  18111. esac
  18112. fi
  18113. if test x${with_examples} = xyes; then
  18114. WITH_EXAMPLES_TRUE=
  18115. WITH_EXAMPLES_FALSE='#'
  18116. else
  18117. WITH_EXAMPLES_TRUE='#'
  18118. WITH_EXAMPLES_FALSE=
  18119. fi
  18120. # Check whether --with-tests was given.
  18121. if test ${with_tests+y}
  18122. then :
  18123. withval=$with_tests;
  18124. else case e in #(
  18125. e) with_tests=yes ;;
  18126. esac
  18127. fi
  18128. if test x${with_tests} = xyes; then
  18129. WITH_TESTS_TRUE=
  18130. WITH_TESTS_FALSE='#'
  18131. else
  18132. WITH_TESTS_TRUE='#'
  18133. WITH_TESTS_FALSE=
  18134. fi
  18135. if test x${with_tests} = xyes
  18136. then :
  18137. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  18138. ac_ext=cpp
  18139. ac_cpp='$CXXCPP $CPPFLAGS'
  18140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18143. ac_success=no
  18144. if test x$ac_success = xno; then
  18145. for alternative in ${ax_cxx_compile_alternatives}; do
  18146. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
  18147. if test x"$switch" = xMSVC; then
  18148. switch=-std:c++${alternative}
  18149. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | sed "$as_sed_sh"`
  18150. else
  18151. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
  18152. fi
  18153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  18154. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  18155. if eval test \${$cachevar+y}
  18156. then :
  18157. printf %s "(cached) " >&6
  18158. else case e in #(
  18159. e) ac_save_CXX="$CXX"
  18160. CXX="$CXX $switch"
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. // If the compiler admits that it is not ready for C++11, why torture it?
  18164. // Hopefully, this will speed up the test.
  18165. #ifndef __cplusplus
  18166. #error "This is not a C++ compiler"
  18167. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  18168. // only set it correctly if /Zc:__cplusplus is specified as well as a
  18169. // /std:c++NN switch:
  18170. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  18171. #elif __cplusplus < 201103L && !defined _MSC_VER
  18172. #error "This is not a C++11 compiler"
  18173. #else
  18174. namespace cxx11
  18175. {
  18176. namespace test_static_assert
  18177. {
  18178. template <typename T>
  18179. struct check
  18180. {
  18181. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  18182. };
  18183. }
  18184. namespace test_final_override
  18185. {
  18186. struct Base
  18187. {
  18188. virtual ~Base() {}
  18189. virtual void f() {}
  18190. };
  18191. struct Derived : public Base
  18192. {
  18193. virtual ~Derived() override {}
  18194. virtual void f() override {}
  18195. };
  18196. }
  18197. namespace test_double_right_angle_brackets
  18198. {
  18199. template < typename T >
  18200. struct check {};
  18201. typedef check<void> single_type;
  18202. typedef check<check<void>> double_type;
  18203. typedef check<check<check<void>>> triple_type;
  18204. typedef check<check<check<check<void>>>> quadruple_type;
  18205. }
  18206. namespace test_decltype
  18207. {
  18208. int
  18209. f()
  18210. {
  18211. int a = 1;
  18212. decltype(a) b = 2;
  18213. return a + b;
  18214. }
  18215. }
  18216. namespace test_type_deduction
  18217. {
  18218. template < typename T1, typename T2 >
  18219. struct is_same
  18220. {
  18221. static const bool value = false;
  18222. };
  18223. template < typename T >
  18224. struct is_same<T, T>
  18225. {
  18226. static const bool value = true;
  18227. };
  18228. template < typename T1, typename T2 >
  18229. auto
  18230. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  18231. {
  18232. return a1 + a2;
  18233. }
  18234. int
  18235. test(const int c, volatile int v)
  18236. {
  18237. static_assert(is_same<int, decltype(0)>::value == true, "");
  18238. static_assert(is_same<int, decltype(c)>::value == false, "");
  18239. static_assert(is_same<int, decltype(v)>::value == false, "");
  18240. auto ac = c;
  18241. auto av = v;
  18242. auto sumi = ac + av + 'x';
  18243. auto sumf = ac + av + 1.0;
  18244. static_assert(is_same<int, decltype(ac)>::value == true, "");
  18245. static_assert(is_same<int, decltype(av)>::value == true, "");
  18246. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  18247. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  18248. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  18249. return (sumf > 0.0) ? sumi : add(c, v);
  18250. }
  18251. }
  18252. namespace test_noexcept
  18253. {
  18254. int f() { return 0; }
  18255. int g() noexcept { return 0; }
  18256. static_assert(noexcept(f()) == false, "");
  18257. static_assert(noexcept(g()) == true, "");
  18258. }
  18259. namespace test_constexpr
  18260. {
  18261. template < typename CharT >
  18262. unsigned long constexpr
  18263. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  18264. {
  18265. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  18266. }
  18267. template < typename CharT >
  18268. unsigned long constexpr
  18269. strlen_c(const CharT *const s) noexcept
  18270. {
  18271. return strlen_c_r(s, 0UL);
  18272. }
  18273. static_assert(strlen_c("") == 0UL, "");
  18274. static_assert(strlen_c("1") == 1UL, "");
  18275. static_assert(strlen_c("example") == 7UL, "");
  18276. static_assert(strlen_c("another\0example") == 7UL, "");
  18277. }
  18278. namespace test_rvalue_references
  18279. {
  18280. template < int N >
  18281. struct answer
  18282. {
  18283. static constexpr int value = N;
  18284. };
  18285. answer<1> f(int&) { return answer<1>(); }
  18286. answer<2> f(const int&) { return answer<2>(); }
  18287. answer<3> f(int&&) { return answer<3>(); }
  18288. void
  18289. test()
  18290. {
  18291. int i = 0;
  18292. const int c = 0;
  18293. static_assert(decltype(f(i))::value == 1, "");
  18294. static_assert(decltype(f(c))::value == 2, "");
  18295. static_assert(decltype(f(0))::value == 3, "");
  18296. }
  18297. }
  18298. namespace test_uniform_initialization
  18299. {
  18300. struct test
  18301. {
  18302. static const int zero {};
  18303. static const int one {1};
  18304. };
  18305. static_assert(test::zero == 0, "");
  18306. static_assert(test::one == 1, "");
  18307. }
  18308. namespace test_lambdas
  18309. {
  18310. void
  18311. test1()
  18312. {
  18313. auto lambda1 = [](){};
  18314. auto lambda2 = lambda1;
  18315. lambda1();
  18316. lambda2();
  18317. }
  18318. int
  18319. test2()
  18320. {
  18321. auto a = [](int i, int j){ return i + j; }(1, 2);
  18322. auto b = []() -> int { return '0'; }();
  18323. auto c = [=](){ return a + b; }();
  18324. auto d = [&](){ return c; }();
  18325. auto e = [a, &b](int x) mutable {
  18326. const auto identity = [](int y){ return y; };
  18327. for (auto i = 0; i < a; ++i)
  18328. a += b--;
  18329. return x + identity(a + b);
  18330. }(0);
  18331. return a + b + c + d + e;
  18332. }
  18333. int
  18334. test3()
  18335. {
  18336. const auto nullary = [](){ return 0; };
  18337. const auto unary = [](int x){ return x; };
  18338. using nullary_t = decltype(nullary);
  18339. using unary_t = decltype(unary);
  18340. const auto higher1st = [](nullary_t f){ return f(); };
  18341. const auto higher2nd = [unary](nullary_t f1){
  18342. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  18343. };
  18344. return higher1st(nullary) + higher2nd(nullary)(unary);
  18345. }
  18346. }
  18347. namespace test_variadic_templates
  18348. {
  18349. template <int...>
  18350. struct sum;
  18351. template <int N0, int... N1toN>
  18352. struct sum<N0, N1toN...>
  18353. {
  18354. static constexpr auto value = N0 + sum<N1toN...>::value;
  18355. };
  18356. template <>
  18357. struct sum<>
  18358. {
  18359. static constexpr auto value = 0;
  18360. };
  18361. static_assert(sum<>::value == 0, "");
  18362. static_assert(sum<1>::value == 1, "");
  18363. static_assert(sum<23>::value == 23, "");
  18364. static_assert(sum<1, 2>::value == 3, "");
  18365. static_assert(sum<5, 5, 11>::value == 21, "");
  18366. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  18367. }
  18368. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  18369. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  18370. // because of this.
  18371. namespace test_template_alias_sfinae
  18372. {
  18373. struct foo {};
  18374. template<typename T>
  18375. using member = typename T::member_type;
  18376. template<typename T>
  18377. void func(...) {}
  18378. template<typename T>
  18379. void func(member<T>*) {}
  18380. void test();
  18381. void test() { func<foo>(0); }
  18382. }
  18383. } // namespace cxx11
  18384. #endif // __cplusplus >= 201103L
  18385. _ACEOF
  18386. if ac_fn_cxx_try_compile "$LINENO"
  18387. then :
  18388. eval $cachevar=yes
  18389. else case e in #(
  18390. e) eval $cachevar=no ;;
  18391. esac
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18394. CXX="$ac_save_CXX" ;;
  18395. esac
  18396. fi
  18397. eval ac_res=\$$cachevar
  18398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18399. printf "%s\n" "$ac_res" >&6; }
  18400. if eval test x\$$cachevar = xyes; then
  18401. CXX="$CXX $switch"
  18402. if test -n "$CXXCPP" ; then
  18403. CXXCPP="$CXXCPP $switch"
  18404. fi
  18405. ac_success=yes
  18406. break
  18407. fi
  18408. done
  18409. if test x$ac_success = xyes; then
  18410. break
  18411. fi
  18412. done
  18413. fi
  18414. ac_ext=c
  18415. ac_cpp='$CPP $CPPFLAGS'
  18416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18419. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  18420. if test x$ac_success = xno; then
  18421. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  18422. fi
  18423. fi
  18424. if test x$ac_success = xno; then
  18425. HAVE_CXX11=0
  18426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  18427. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  18428. else
  18429. HAVE_CXX11=1
  18430. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  18431. fi
  18432. fi
  18433. EXPATCFG_ON_MINGW=no
  18434. case "${host_os}" in #(
  18435. mingw*) :
  18436. EXPATCFG_ON_MINGW=yes
  18437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  18438. printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
  18439. *) :
  18440. ;;
  18441. esac
  18442. if test x${EXPATCFG_ON_MINGW} = xyes; then
  18443. MINGW_TRUE=
  18444. MINGW_FALSE='#'
  18445. else
  18446. MINGW_TRUE='#'
  18447. MINGW_FALSE=
  18448. fi
  18449. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  18450. UNICODE_TRUE=
  18451. UNICODE_FALSE='#'
  18452. else
  18453. UNICODE_TRUE='#'
  18454. UNICODE_FALSE=
  18455. fi
  18456. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
  18457. _INTERNAL_UNICODE_WCHAR_T_TRUE=
  18458. _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
  18459. else
  18460. _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
  18461. _INTERNAL_UNICODE_WCHAR_T_FALSE=
  18462. fi
  18463. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
  18464. _INTERNAL_MIN_SIZE_TRUE=
  18465. _INTERNAL_MIN_SIZE_FALSE='#'
  18466. else
  18467. _INTERNAL_MIN_SIZE_TRUE='#'
  18468. _INTERNAL_MIN_SIZE_FALSE=
  18469. fi
  18470. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
  18471. _INTERNAL_LARGE_SIZE_TRUE=
  18472. _INTERNAL_LARGE_SIZE_FALSE='#'
  18473. else
  18474. _INTERNAL_LARGE_SIZE_TRUE='#'
  18475. _INTERNAL_LARGE_SIZE_FALSE=
  18476. fi
  18477. LIBM=
  18478. case $host in
  18479. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-mingw* | *-*-pw32* | *-*-darwin*)
  18480. # These system don't have libm, or don't need it
  18481. ;;
  18482. *-ncr-sysv4.3*)
  18483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  18484. printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
  18485. if test ${ac_cv_lib_mw__mwvalidcheckl+y}
  18486. then :
  18487. printf %s "(cached) " >&6
  18488. else case e in #(
  18489. e) ac_check_lib_save_LIBS=$LIBS
  18490. LIBS="-lmw $LIBS"
  18491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18492. /* end confdefs.h. */
  18493. /* Override any GCC internal prototype to avoid an error.
  18494. Use char because int might match the return type of a GCC
  18495. builtin and then its argument prototype would still apply.
  18496. The 'extern "C"' is for builds by C++ compilers;
  18497. although this is not generally supported in C code supporting it here
  18498. has little cost and some practical benefit (sr 110532). */
  18499. #ifdef __cplusplus
  18500. extern "C"
  18501. #endif
  18502. char _mwvalidcheckl (void);
  18503. int
  18504. main (void)
  18505. {
  18506. return _mwvalidcheckl ();
  18507. ;
  18508. return 0;
  18509. }
  18510. _ACEOF
  18511. if ac_fn_c_try_link "$LINENO"
  18512. then :
  18513. ac_cv_lib_mw__mwvalidcheckl=yes
  18514. else case e in #(
  18515. e) ac_cv_lib_mw__mwvalidcheckl=no ;;
  18516. esac
  18517. fi
  18518. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18519. conftest$ac_exeext conftest.$ac_ext
  18520. LIBS=$ac_check_lib_save_LIBS ;;
  18521. esac
  18522. fi
  18523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  18524. printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  18525. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
  18526. then :
  18527. LIBM=-lmw
  18528. fi
  18529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  18530. printf %s "checking for cos in -lm... " >&6; }
  18531. if test ${ac_cv_lib_m_cos+y}
  18532. then :
  18533. printf %s "(cached) " >&6
  18534. else case e in #(
  18535. e) ac_check_lib_save_LIBS=$LIBS
  18536. LIBS="-lm $LIBS"
  18537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18538. /* end confdefs.h. */
  18539. /* Override any GCC internal prototype to avoid an error.
  18540. Use char because int might match the return type of a GCC
  18541. builtin and then its argument prototype would still apply.
  18542. The 'extern "C"' is for builds by C++ compilers;
  18543. although this is not generally supported in C code supporting it here
  18544. has little cost and some practical benefit (sr 110532). */
  18545. #ifdef __cplusplus
  18546. extern "C"
  18547. #endif
  18548. char cos (void);
  18549. int
  18550. main (void)
  18551. {
  18552. return cos ();
  18553. ;
  18554. return 0;
  18555. }
  18556. _ACEOF
  18557. if ac_fn_c_try_link "$LINENO"
  18558. then :
  18559. ac_cv_lib_m_cos=yes
  18560. else case e in #(
  18561. e) ac_cv_lib_m_cos=no ;;
  18562. esac
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18565. conftest$ac_exeext conftest.$ac_ext
  18566. LIBS=$ac_check_lib_save_LIBS ;;
  18567. esac
  18568. fi
  18569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  18570. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  18571. if test "x$ac_cv_lib_m_cos" = xyes
  18572. then :
  18573. LIBM="$LIBM -lm"
  18574. fi
  18575. ;;
  18576. *)
  18577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  18578. printf %s "checking for cos in -lm... " >&6; }
  18579. if test ${ac_cv_lib_m_cos+y}
  18580. then :
  18581. printf %s "(cached) " >&6
  18582. else case e in #(
  18583. e) ac_check_lib_save_LIBS=$LIBS
  18584. LIBS="-lm $LIBS"
  18585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18586. /* end confdefs.h. */
  18587. /* Override any GCC internal prototype to avoid an error.
  18588. Use char because int might match the return type of a GCC
  18589. builtin and then its argument prototype would still apply.
  18590. The 'extern "C"' is for builds by C++ compilers;
  18591. although this is not generally supported in C code supporting it here
  18592. has little cost and some practical benefit (sr 110532). */
  18593. #ifdef __cplusplus
  18594. extern "C"
  18595. #endif
  18596. char cos (void);
  18597. int
  18598. main (void)
  18599. {
  18600. return cos ();
  18601. ;
  18602. return 0;
  18603. }
  18604. _ACEOF
  18605. if ac_fn_c_try_link "$LINENO"
  18606. then :
  18607. ac_cv_lib_m_cos=yes
  18608. else case e in #(
  18609. e) ac_cv_lib_m_cos=no ;;
  18610. esac
  18611. fi
  18612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18613. conftest$ac_exeext conftest.$ac_ext
  18614. LIBS=$ac_check_lib_save_LIBS ;;
  18615. esac
  18616. fi
  18617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  18618. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  18619. if test "x$ac_cv_lib_m_cos" = xyes
  18620. then :
  18621. LIBM=-lm
  18622. fi
  18623. ;;
  18624. esac
  18625. # Check whether --with-libbsd was given.
  18626. if test ${with_libbsd+y}
  18627. then :
  18628. withval=$with_libbsd;
  18629. else case e in #(
  18630. e) with_libbsd=no ;;
  18631. esac
  18632. fi
  18633. if test "x${with_libbsd}" != xno
  18634. then :
  18635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  18636. printf %s "checking for arc4random_buf in -lbsd... " >&6; }
  18637. if test ${ac_cv_lib_bsd_arc4random_buf+y}
  18638. then :
  18639. printf %s "(cached) " >&6
  18640. else case e in #(
  18641. e) ac_check_lib_save_LIBS=$LIBS
  18642. LIBS="-lbsd $LIBS"
  18643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18644. /* end confdefs.h. */
  18645. /* Override any GCC internal prototype to avoid an error.
  18646. Use char because int might match the return type of a GCC
  18647. builtin and then its argument prototype would still apply.
  18648. The 'extern "C"' is for builds by C++ compilers;
  18649. although this is not generally supported in C code supporting it here
  18650. has little cost and some practical benefit (sr 110532). */
  18651. #ifdef __cplusplus
  18652. extern "C"
  18653. #endif
  18654. char arc4random_buf (void);
  18655. int
  18656. main (void)
  18657. {
  18658. return arc4random_buf ();
  18659. ;
  18660. return 0;
  18661. }
  18662. _ACEOF
  18663. if ac_fn_c_try_link "$LINENO"
  18664. then :
  18665. ac_cv_lib_bsd_arc4random_buf=yes
  18666. else case e in #(
  18667. e) ac_cv_lib_bsd_arc4random_buf=no ;;
  18668. esac
  18669. fi
  18670. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18671. conftest$ac_exeext conftest.$ac_ext
  18672. LIBS=$ac_check_lib_save_LIBS ;;
  18673. esac
  18674. fi
  18675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  18676. printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  18677. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
  18678. then :
  18679. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  18680. LIBS="-lbsd $LIBS"
  18681. else case e in #(
  18682. e) if test "x${with_libbsd}" = xyes
  18683. then :
  18684. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  18685. fi ;;
  18686. esac
  18687. fi
  18688. fi
  18689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD, libbsd or glibc 2.36+)" >&5
  18690. printf %s "checking for arc4random_buf (BSD, libbsd or glibc 2.36+)... " >&6; }
  18691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18692. /* end confdefs.h. */
  18693. #if defined(HAVE_LIBBSD)
  18694. # include <bsd/stdlib.h>
  18695. #else
  18696. # include <stdlib.h> /* for arc4random_buf on BSD */
  18697. #endif
  18698. int main(void) {
  18699. char dummy[123]; // double brackets for m4
  18700. arc4random_buf(dummy, 0U);
  18701. return 0;
  18702. }
  18703. _ACEOF
  18704. if ac_fn_c_try_link "$LINENO"
  18705. then :
  18706. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  18707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18708. printf "%s\n" "yes" >&6; }
  18709. else case e in #(
  18710. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18711. printf "%s\n" "no" >&6; }
  18712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)" >&5
  18713. printf %s "checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)... " >&6; }
  18714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18715. /* end confdefs.h. */
  18716. #if defined(HAVE_LIBBSD)
  18717. # include <bsd/stdlib.h>
  18718. #else
  18719. # include <stdlib.h>
  18720. #endif
  18721. int main(void) {
  18722. arc4random();
  18723. return 0;
  18724. }
  18725. _ACEOF
  18726. if ac_fn_c_try_link "$LINENO"
  18727. then :
  18728. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  18729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18730. printf "%s\n" "yes" >&6; }
  18731. else case e in #(
  18732. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18733. printf "%s\n" "no" >&6; } ;;
  18734. esac
  18735. fi
  18736. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18737. conftest$ac_exeext conftest.$ac_ext ;;
  18738. esac
  18739. fi
  18740. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18741. conftest$ac_exeext conftest.$ac_ext
  18742. # Check whether --with-getrandom was given.
  18743. if test ${with_getrandom+y}
  18744. then :
  18745. withval=$with_getrandom;
  18746. else case e in #(
  18747. e) with_getrandom=check ;;
  18748. esac
  18749. fi
  18750. if test "x$with_getrandom" != xno
  18751. then :
  18752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  18753. printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  18754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18755. /* end confdefs.h. */
  18756. #include <stdlib.h> /* for NULL */
  18757. #include <sys/random.h>
  18758. int main(void) {
  18759. return getrandom(NULL, 0U, 0U);
  18760. }
  18761. _ACEOF
  18762. if ac_fn_c_try_link "$LINENO"
  18763. then :
  18764. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  18765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18766. printf "%s\n" "yes" >&6; }
  18767. else case e in #(
  18768. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18769. printf "%s\n" "no" >&6; }
  18770. if test "x$with_getrandom" = xyes
  18771. then :
  18772. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  18773. fi ;;
  18774. esac
  18775. fi
  18776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18777. conftest$ac_exeext conftest.$ac_ext
  18778. fi
  18779. # Check whether --with-sys_getrandom was given.
  18780. if test ${with_sys_getrandom+y}
  18781. then :
  18782. withval=$with_sys_getrandom;
  18783. else case e in #(
  18784. e) with_sys_getrandom=check ;;
  18785. esac
  18786. fi
  18787. if test "x$with_sys_getrandom" != xno
  18788. then :
  18789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  18790. printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  18791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18792. /* end confdefs.h. */
  18793. #define _GNU_SOURCE
  18794. #include <stdlib.h> /* for NULL */
  18795. #include <unistd.h> /* for syscall */
  18796. #include <sys/syscall.h> /* for SYS_getrandom */
  18797. int main(void) {
  18798. syscall(SYS_getrandom, NULL, 0, 0);
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. if ac_fn_c_try_link "$LINENO"
  18803. then :
  18804. printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  18805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18806. printf "%s\n" "yes" >&6; }
  18807. else case e in #(
  18808. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18809. printf "%s\n" "no" >&6; }
  18810. if test "x$with_sys_getrandom" = xyes
  18811. then :
  18812. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  18813. fi ;;
  18814. esac
  18815. fi
  18816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18817. conftest$ac_exeext conftest.$ac_ext
  18818. fi
  18819. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  18820. if test "x$ac_cv_header_fcntl_h" = xyes
  18821. then :
  18822. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  18823. fi
  18824. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  18825. if test "x$ac_cv_header_unistd_h" = xyes
  18826. then :
  18827. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  18828. fi
  18829. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  18830. if test "x$ac_cv_type_off_t" = xyes
  18831. then :
  18832. else case e in #(
  18833. e)
  18834. printf "%s\n" "#define off_t long int" >>confdefs.h
  18835. ;;
  18836. esac
  18837. fi
  18838. ac_func=
  18839. for ac_item in $ac_func_c_list
  18840. do
  18841. if test $ac_func; then
  18842. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  18843. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  18844. echo "#define $ac_item 1" >> confdefs.h
  18845. fi
  18846. ac_func=
  18847. else
  18848. ac_func=$ac_item
  18849. fi
  18850. done
  18851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  18852. printf %s "checking for working mmap... " >&6; }
  18853. if test ${ac_cv_func_mmap_fixed_mapped+y}
  18854. then :
  18855. printf %s "(cached) " >&6
  18856. else case e in #(
  18857. e) if test "$cross_compiling" = yes
  18858. then :
  18859. case "$host_os" in # ((
  18860. # Guess yes on platforms where we know the result.
  18861. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  18862. # If we don't know, assume the worst.
  18863. *) ac_cv_func_mmap_fixed_mapped=no ;;
  18864. esac
  18865. else case e in #(
  18866. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18867. /* end confdefs.h. */
  18868. $ac_includes_default
  18869. /* malloc might have been renamed as rpl_malloc. */
  18870. #undef malloc
  18871. /* Thanks to Mike Haertel and Jim Avera for this test.
  18872. Here is a matrix of mmap possibilities:
  18873. mmap private not fixed
  18874. mmap private fixed at somewhere currently unmapped
  18875. mmap private fixed at somewhere already mapped
  18876. mmap shared not fixed
  18877. mmap shared fixed at somewhere currently unmapped
  18878. mmap shared fixed at somewhere already mapped
  18879. For private mappings, we should verify that changes cannot be read()
  18880. back from the file, nor mmap's back from the file at a different
  18881. address. (There have been systems where private was not correctly
  18882. implemented like the infamous i386 svr4.0, and systems where the
  18883. VM page cache was not coherent with the file system buffer cache
  18884. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18885. For shared mappings, we should conversely verify that changes get
  18886. propagated back to all the places they're supposed to be. */
  18887. #include <fcntl.h>
  18888. #include <sys/mman.h>
  18889. #ifndef getpagesize
  18890. /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
  18891. been removed from POSIX and is limited to page sizes that fit in 'int'. */
  18892. # ifdef _SC_PAGESIZE
  18893. # define getpagesize() sysconf (_SC_PAGESIZE)
  18894. # elif defined _SC_PAGE_SIZE
  18895. # define getpagesize() sysconf (_SC_PAGE_SIZE)
  18896. # elif HAVE_GETPAGESIZE
  18897. int getpagesize ();
  18898. # else
  18899. # ifdef HAVE_SYS_PARAM_H
  18900. # include <sys/param.h>
  18901. # ifdef EXEC_PAGESIZE
  18902. # define getpagesize() EXEC_PAGESIZE
  18903. # else /* no EXEC_PAGESIZE */
  18904. # ifdef NBPG
  18905. # define getpagesize() NBPG * CLSIZE
  18906. # ifndef CLSIZE
  18907. # define CLSIZE 1
  18908. # endif /* no CLSIZE */
  18909. # else /* no NBPG */
  18910. # ifdef NBPC
  18911. # define getpagesize() NBPC
  18912. # else /* no NBPC */
  18913. # ifdef PAGESIZE
  18914. # define getpagesize() PAGESIZE
  18915. # endif /* PAGESIZE */
  18916. # endif /* no NBPC */
  18917. # endif /* no NBPG */
  18918. # endif /* no EXEC_PAGESIZE */
  18919. # else /* no HAVE_SYS_PARAM_H */
  18920. # define getpagesize() 8192 /* punt totally */
  18921. # endif /* no HAVE_SYS_PARAM_H */
  18922. # endif
  18923. #endif
  18924. int
  18925. main (void)
  18926. {
  18927. char *data, *data2, *data3;
  18928. const char *cdata2;
  18929. long i, pagesize;
  18930. int fd, fd2;
  18931. pagesize = getpagesize ();
  18932. /* First, make a file with some known garbage in it. */
  18933. data = (char *) malloc (pagesize);
  18934. if (!data)
  18935. return 1;
  18936. for (i = 0; i < pagesize; ++i)
  18937. *(data + i) = rand ();
  18938. umask (0);
  18939. fd = creat ("conftest.mmap", 0600);
  18940. if (fd < 0)
  18941. return 2;
  18942. if (write (fd, data, pagesize) != pagesize)
  18943. return 3;
  18944. close (fd);
  18945. /* Next, check that the tail of a page is zero-filled. File must have
  18946. non-zero length, otherwise we risk SIGBUS for entire page. */
  18947. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  18948. if (fd2 < 0)
  18949. return 4;
  18950. cdata2 = "";
  18951. if (write (fd2, cdata2, 1) != 1)
  18952. return 5;
  18953. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  18954. if (data2 == MAP_FAILED)
  18955. return 6;
  18956. for (i = 0; i < pagesize; ++i)
  18957. if (*(data2 + i))
  18958. return 7;
  18959. close (fd2);
  18960. /* 'return 8;' not currently used. */
  18961. /* Next, try to mmap the file at a fixed address which already has
  18962. something else allocated at it. If we can, also make sure that
  18963. we see the same garbage. */
  18964. fd = open ("conftest.mmap", O_RDWR);
  18965. if (fd < 0)
  18966. return 9;
  18967. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18968. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18969. return 10;
  18970. for (i = 0; i < pagesize; ++i)
  18971. if (*(data + i) != *(data2 + i))
  18972. return 11;
  18973. /* Finally, make sure that changes to the mapped area do not
  18974. percolate back to the file as seen by read(). (This is a bug on
  18975. some variants of i386 svr4.0.) */
  18976. for (i = 0; i < pagesize; ++i)
  18977. *(data2 + i) = *(data2 + i) + 1;
  18978. data3 = (char *) malloc (pagesize);
  18979. if (!data3)
  18980. return 12;
  18981. if (read (fd, data3, pagesize) != pagesize)
  18982. return 13;
  18983. for (i = 0; i < pagesize; ++i)
  18984. if (*(data + i) != *(data3 + i))
  18985. return 14;
  18986. close (fd);
  18987. free (data);
  18988. free (data3);
  18989. return 0;
  18990. }
  18991. _ACEOF
  18992. if ac_fn_c_try_run "$LINENO"
  18993. then :
  18994. ac_cv_func_mmap_fixed_mapped=yes
  18995. else case e in #(
  18996. e) ac_cv_func_mmap_fixed_mapped=no ;;
  18997. esac
  18998. fi
  18999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19000. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  19001. esac
  19002. fi
  19003. ;;
  19004. esac
  19005. fi
  19006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19007. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  19008. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19009. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  19010. fi
  19011. rm -f conftest.mmap conftest.txt
  19012. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
  19013. then :
  19014. FILEMAP=unixfilemap
  19015. else case e in #(
  19016. e) FILEMAP=readfilemap ;;
  19017. esac
  19018. fi
  19019. printf "%s\n" "#define XML_NS 1" >>confdefs.h
  19020. printf "%s\n" "#define XML_GE 1" >>confdefs.h
  19021. printf "%s\n" "#define XML_DTD 1" >>confdefs.h
  19022. printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
  19023. # Check whether --enable-xml-attr-info was given.
  19024. if test ${enable_xml_attr_info+y}
  19025. then :
  19026. enableval=$enable_xml_attr_info;
  19027. else case e in #(
  19028. e) enable_xml_attr_info=no ;;
  19029. esac
  19030. fi
  19031. if test "x${enable_xml_attr_info}" = "xyes"
  19032. then :
  19033. printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
  19034. fi
  19035. # Check whether --enable-xml-context was given.
  19036. if test ${enable_xml_context+y}
  19037. then :
  19038. enableval=$enable_xml_context; enable_xml_context=${enableval}
  19039. fi
  19040. if test "x${enable_xml_context}" != "xno"
  19041. then :
  19042. if test "x${enable_xml_context}" = "xyes" \
  19043. -o "x${enable_xml_context}" = "x"
  19044. then :
  19045. enable_xml_context=1024
  19046. fi
  19047. else case e in #(
  19048. e) enable_xml_context=0 ;;
  19049. esac
  19050. fi
  19051. printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
  19052. # Check whether --with-docbook was given.
  19053. if test ${with_docbook+y}
  19054. then :
  19055. withval=$with_docbook;
  19056. else case e in #(
  19057. e) with_docbook=check ;;
  19058. esac
  19059. fi
  19060. if test "x$with_docbook" != xno
  19061. then :
  19062. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  19063. do
  19064. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19065. set dummy $ac_prog; ac_word=$2
  19066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19067. printf %s "checking for $ac_word... " >&6; }
  19068. if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
  19069. then :
  19070. printf %s "(cached) " >&6
  19071. else case e in #(
  19072. e) if test -n "$DOCBOOK_TO_MAN"; then
  19073. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  19074. else
  19075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19076. for as_dir in $PATH
  19077. do
  19078. IFS=$as_save_IFS
  19079. case $as_dir in #(((
  19080. '') as_dir=./ ;;
  19081. */) ;;
  19082. *) as_dir=$as_dir/ ;;
  19083. esac
  19084. for ac_exec_ext in '' $ac_executable_extensions; do
  19085. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19086. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  19087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19088. break 2
  19089. fi
  19090. done
  19091. done
  19092. IFS=$as_save_IFS
  19093. fi ;;
  19094. esac
  19095. fi
  19096. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  19097. if test -n "$DOCBOOK_TO_MAN"; then
  19098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  19099. printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
  19100. else
  19101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19102. printf "%s\n" "no" >&6; }
  19103. fi
  19104. test -n "$DOCBOOK_TO_MAN" && break
  19105. done
  19106. fi
  19107. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
  19108. then :
  19109. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  19110. fi
  19111. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
  19112. then :
  19113. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
  19114. then :
  19115. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  19116. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  19117. configure to command docbook2x-man of docbook2X.
  19118. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  19119. You can also configure using --without-docbook if you can do without a man
  19120. page for xmlwf." "$LINENO" 5
  19121. fi
  19122. fi
  19123. if test -f "${srcdir}"/doc/xmlwf.1
  19124. then :
  19125. if true; then
  19126. WITH_MANPAGE_TRUE=
  19127. WITH_MANPAGE_FALSE='#'
  19128. else
  19129. WITH_MANPAGE_TRUE='#'
  19130. WITH_MANPAGE_FALSE=
  19131. fi
  19132. if test "x$with_docbook" = xno -o "x${DOCBOOK_TO_MAN}" = x
  19133. then :
  19134. if true; then
  19135. WITH_PREBUILT_MANPAGE_TRUE=
  19136. WITH_PREBUILT_MANPAGE_FALSE='#'
  19137. else
  19138. WITH_PREBUILT_MANPAGE_TRUE='#'
  19139. WITH_PREBUILT_MANPAGE_FALSE=
  19140. fi
  19141. if false; then
  19142. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  19143. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  19144. else
  19145. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  19146. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  19147. fi
  19148. else case e in #(
  19149. e) if false; then
  19150. WITH_PREBUILT_MANPAGE_TRUE=
  19151. WITH_PREBUILT_MANPAGE_FALSE='#'
  19152. else
  19153. WITH_PREBUILT_MANPAGE_TRUE='#'
  19154. WITH_PREBUILT_MANPAGE_FALSE=
  19155. fi
  19156. if true; then
  19157. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  19158. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  19159. else
  19160. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  19161. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  19162. fi
  19163. ;;
  19164. esac
  19165. fi
  19166. else case e in #(
  19167. e) if test "x$with_docbook" != xno -a "x${DOCBOOK_TO_MAN}" != x
  19168. then :
  19169. if true; then
  19170. WITH_MANPAGE_TRUE=
  19171. WITH_MANPAGE_FALSE='#'
  19172. else
  19173. WITH_MANPAGE_TRUE='#'
  19174. WITH_MANPAGE_FALSE=
  19175. fi
  19176. if true; then
  19177. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  19178. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  19179. else
  19180. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  19181. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  19182. fi
  19183. else case e in #(
  19184. e) if false; then
  19185. WITH_MANPAGE_TRUE=
  19186. WITH_MANPAGE_FALSE='#'
  19187. else
  19188. WITH_MANPAGE_TRUE='#'
  19189. WITH_MANPAGE_FALSE=
  19190. fi
  19191. if false; then
  19192. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  19193. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  19194. else
  19195. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  19196. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  19197. fi
  19198. ;;
  19199. esac
  19200. fi
  19201. if false; then
  19202. WITH_PREBUILT_MANPAGE_TRUE=
  19203. WITH_PREBUILT_MANPAGE_FALSE='#'
  19204. else
  19205. WITH_PREBUILT_MANPAGE_TRUE='#'
  19206. WITH_PREBUILT_MANPAGE_FALSE=
  19207. fi
  19208. ;;
  19209. esac
  19210. fi
  19211. if test "x${enable_xml_attr_info}" = xyes
  19212. then :
  19213. EXPAT_ATTR_INFO=ON
  19214. else case e in #(
  19215. e) EXPAT_ATTR_INFO=OFF ;;
  19216. esac
  19217. fi
  19218. EXPAT_DTD=ON
  19219. if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
  19220. then :
  19221. EXPAT_LARGE_SIZE=ON
  19222. else case e in #(
  19223. e) EXPAT_LARGE_SIZE=OFF ;;
  19224. esac
  19225. fi
  19226. if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
  19227. then :
  19228. EXPAT_MIN_SIZE=ON
  19229. else case e in #(
  19230. e) EXPAT_MIN_SIZE=OFF ;;
  19231. esac
  19232. fi
  19233. EXPAT_NS=ON
  19234. if test "x${enable_xml_context}" != xno
  19235. then :
  19236. EXPAT_CONTEXT_BYTES=${enable_xml_context}
  19237. else case e in #(
  19238. e) EXPAT_CONTEXT_BYTES=OFF ;;
  19239. esac
  19240. fi
  19241. if test "x${UNICODE_TRUE}" = x
  19242. then :
  19243. if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
  19244. then :
  19245. EXPAT_CHAR_TYPE=wchar_t
  19246. else case e in #(
  19247. e) EXPAT_CHAR_TYPE=ushort ;;
  19248. esac
  19249. fi
  19250. else case e in #(
  19251. e) EXPAT_CHAR_TYPE=char ;;
  19252. esac
  19253. fi
  19254. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  19255. LIBDIR_BASENAME="$(basename "${libdir}")"
  19256. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  19257. SO_MINOR="${LIBAGE}"
  19258. SO_PATCH="${LIBREVISION}"
  19259. if ac_fn_c_compute_int "$LINENO" "sizeof(void *)" "SIZEOF_VOID_P" ""
  19260. then :
  19261. fi
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library name prefix" >&5
  19263. printf %s "checking for shared library name prefix... " >&6; }
  19264. case "${host_os}" in #(
  19265. cygwin*) :
  19266. CMAKE_SHARED_LIBRARY_PREFIX=cyg ;; #(
  19267. *) :
  19268. CMAKE_SHARED_LIBRARY_PREFIX=lib ;;
  19269. esac
  19270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CMAKE_SHARED_LIBRARY_PREFIX}" >&5
  19271. printf "%s\n" "${CMAKE_SHARED_LIBRARY_PREFIX}" >&6; }
  19272. case "${host_os}" in #(
  19273. darwin*) :
  19274. CMAKE_SOURCE=cmake/autotools/expat__macos.cmake.in
  19275. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in
  19276. ;; #(
  19277. mingw*|cygwin*) :
  19278. CMAKE_SOURCE=cmake/autotools/expat__windows.cmake.in
  19279. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in
  19280. ;; #(
  19281. *) :
  19282. CMAKE_SOURCE=cmake/autotools/expat__linux.cmake.in
  19283. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in
  19284. ;;
  19285. esac
  19286. ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat.cmake:${CMAKE_SOURCE} 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"
  19287. ac_config_files="$ac_config_files run.sh"
  19288. cat >confcache <<\_ACEOF
  19289. # This file is a shell script that caches the results of configure
  19290. # tests run on this system so they can be shared between configure
  19291. # scripts and configure runs, see configure's option --config-cache.
  19292. # It is not useful on other systems. If it contains results you don't
  19293. # want to keep, you may remove or edit it.
  19294. #
  19295. # config.status only pays attention to the cache file if you give it
  19296. # the --recheck option to rerun configure.
  19297. #
  19298. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  19299. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  19300. # following values.
  19301. _ACEOF
  19302. # The following way of writing the cache mishandles newlines in values,
  19303. # but we know of no workaround that is simple, portable, and efficient.
  19304. # So, we kill variables containing newlines.
  19305. # Ultrix sh set writes to stderr and can't be redirected directly,
  19306. # and sets the high bit in the cache file unless we assign to the vars.
  19307. (
  19308. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19309. eval ac_val=\$$ac_var
  19310. case $ac_val in #(
  19311. *${as_nl}*)
  19312. case $ac_var in #(
  19313. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19314. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19315. esac
  19316. case $ac_var in #(
  19317. _ | IFS | as_nl) ;; #(
  19318. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19319. *) { eval $ac_var=; unset $ac_var;} ;;
  19320. esac ;;
  19321. esac
  19322. done
  19323. (set) 2>&1 |
  19324. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19325. *${as_nl}ac_space=\ *)
  19326. # 'set' does not quote correctly, so add quotes: double-quote
  19327. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19328. sed -n \
  19329. "s/'/'\\\\''/g;
  19330. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19331. ;; #(
  19332. *)
  19333. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  19334. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19335. ;;
  19336. esac |
  19337. sort
  19338. ) |
  19339. sed '
  19340. /^ac_cv_env_/b end
  19341. t clear
  19342. :clear
  19343. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  19344. t end
  19345. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19346. :end' >>confcache
  19347. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19348. if test -w "$cache_file"; then
  19349. if test "x$cache_file" != "x/dev/null"; then
  19350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19351. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  19352. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19353. cat confcache >"$cache_file"
  19354. else
  19355. case $cache_file in #(
  19356. */* | ?:*)
  19357. mv -f confcache "$cache_file"$$ &&
  19358. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19359. *)
  19360. mv -f confcache "$cache_file" ;;
  19361. esac
  19362. fi
  19363. fi
  19364. else
  19365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19366. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  19367. fi
  19368. fi
  19369. rm -f confcache
  19370. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19371. # Let make expand exec_prefix.
  19372. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19373. DEFS=-DHAVE_CONFIG_H
  19374. ac_libobjs=
  19375. ac_ltlibobjs=
  19376. U=
  19377. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19378. # 1. Remove the extension, and $U if already installed.
  19379. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19380. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  19381. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19382. # will be set to the directory where LIBOBJS objects are built.
  19383. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19384. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19385. done
  19386. LIBOBJS=$ac_libobjs
  19387. LTLIBOBJS=$ac_ltlibobjs
  19388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  19389. printf %s "checking that generated files are newer than configure... " >&6; }
  19390. if test -n "$am_sleep_pid"; then
  19391. # Hide warnings about reused PIDs.
  19392. wait $am_sleep_pid 2>/dev/null
  19393. fi
  19394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  19395. printf "%s\n" "done" >&6; }
  19396. case $enable_silent_rules in # (((
  19397. yes) AM_DEFAULT_VERBOSITY=0;;
  19398. no) AM_DEFAULT_VERBOSITY=1;;
  19399. esac
  19400. if test $am_cv_make_support_nested_variables = yes; then
  19401. AM_V='$(V)'
  19402. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  19403. else
  19404. AM_V=$AM_DEFAULT_VERBOSITY
  19405. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  19406. fi
  19407. if test -n "$EXEEXT"; then
  19408. am__EXEEXT_TRUE=
  19409. am__EXEEXT_FALSE='#'
  19410. else
  19411. am__EXEEXT_TRUE='#'
  19412. am__EXEEXT_FALSE=
  19413. fi
  19414. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  19415. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  19416. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19417. fi
  19418. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19419. as_fn_error $? "conditional \"AMDEP\" was never defined.
  19420. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19421. fi
  19422. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19423. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  19424. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19425. fi
  19426. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19427. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  19428. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19429. fi
  19430. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  19431. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  19432. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19433. fi
  19434. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  19435. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  19436. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19437. fi
  19438. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  19439. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  19440. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19441. fi
  19442. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  19443. as_fn_error $? "conditional \"MINGW\" was never defined.
  19444. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19445. fi
  19446. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  19447. as_fn_error $? "conditional \"UNICODE\" was never defined.
  19448. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19449. fi
  19450. if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
  19451. as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
  19452. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19453. fi
  19454. if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
  19455. as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
  19456. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19457. fi
  19458. if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
  19459. as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
  19460. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19461. fi
  19462. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  19463. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  19464. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19465. fi
  19466. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  19467. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  19468. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19469. fi
  19470. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  19471. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  19472. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19473. fi
  19474. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  19475. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  19476. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19477. fi
  19478. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  19479. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  19480. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19481. fi
  19482. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  19483. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  19484. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19485. fi
  19486. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  19487. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  19488. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19489. fi
  19490. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  19491. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  19492. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19493. fi
  19494. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  19495. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  19496. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19497. fi
  19498. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  19499. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  19500. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19501. fi
  19502. : "${CONFIG_STATUS=./config.status}"
  19503. ac_write_fail=0
  19504. ac_clean_files_save=$ac_clean_files
  19505. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19507. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  19508. as_write_fail=0
  19509. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19510. #! $SHELL
  19511. # Generated by $as_me.
  19512. # Run this file to recreate the current configuration.
  19513. # Compiler output produced by configure, useful for debugging
  19514. # configure, is in config.log if it exists.
  19515. debug=false
  19516. ac_cs_recheck=false
  19517. ac_cs_silent=false
  19518. SHELL=\${CONFIG_SHELL-$SHELL}
  19519. export SHELL
  19520. _ASEOF
  19521. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19522. ## -------------------- ##
  19523. ## M4sh Initialization. ##
  19524. ## -------------------- ##
  19525. # Be more Bourne compatible
  19526. DUALCASE=1; export DUALCASE # for MKS sh
  19527. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19528. then :
  19529. emulate sh
  19530. NULLCMD=:
  19531. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19532. # is contrary to our usage. Disable this feature.
  19533. alias -g '${1+"$@"}'='"$@"'
  19534. setopt NO_GLOB_SUBST
  19535. else case e in #(
  19536. e) case `(set -o) 2>/dev/null` in #(
  19537. *posix*) :
  19538. set -o posix ;; #(
  19539. *) :
  19540. ;;
  19541. esac ;;
  19542. esac
  19543. fi
  19544. # Reset variables that may have inherited troublesome values from
  19545. # the environment.
  19546. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  19547. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  19548. # side effect of setting IFS to empty, thus disabling word splitting.)
  19549. # Quoting is to prevent editors from complaining about space-tab.
  19550. as_nl='
  19551. '
  19552. export as_nl
  19553. IFS=" "" $as_nl"
  19554. PS1='$ '
  19555. PS2='> '
  19556. PS4='+ '
  19557. # Ensure predictable behavior from utilities with locale-dependent output.
  19558. LC_ALL=C
  19559. export LC_ALL
  19560. LANGUAGE=C
  19561. export LANGUAGE
  19562. # We cannot yet rely on "unset" to work, but we need these variables
  19563. # to be unset--not just set to an empty or harmless value--now, to
  19564. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  19565. # also avoids known problems related to "unset" and subshell syntax
  19566. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  19567. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  19568. do eval test \${$as_var+y} \
  19569. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19570. done
  19571. # Ensure that fds 0, 1, and 2 are open.
  19572. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  19573. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  19574. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  19575. # The user is always right.
  19576. if ${PATH_SEPARATOR+false} :; then
  19577. PATH_SEPARATOR=:
  19578. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19579. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19580. PATH_SEPARATOR=';'
  19581. }
  19582. fi
  19583. # Find who we are. Look in the path if we contain no directory separator.
  19584. as_myself=
  19585. case $0 in #((
  19586. *[\\/]* ) as_myself=$0 ;;
  19587. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19588. for as_dir in $PATH
  19589. do
  19590. IFS=$as_save_IFS
  19591. case $as_dir in #(((
  19592. '') as_dir=./ ;;
  19593. */) ;;
  19594. *) as_dir=$as_dir/ ;;
  19595. esac
  19596. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  19597. done
  19598. IFS=$as_save_IFS
  19599. ;;
  19600. esac
  19601. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  19602. # in which case we are not to be found in the path.
  19603. if test "x$as_myself" = x; then
  19604. as_myself=$0
  19605. fi
  19606. if test ! -f "$as_myself"; then
  19607. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19608. exit 1
  19609. fi
  19610. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19611. # ----------------------------------------
  19612. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19613. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19614. # script with STATUS, using 1 if that was 0.
  19615. as_fn_error ()
  19616. {
  19617. as_status=$1; test $as_status -eq 0 && as_status=1
  19618. if test "$4"; then
  19619. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19620. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19621. fi
  19622. printf "%s\n" "$as_me: error: $2" >&2
  19623. as_fn_exit $as_status
  19624. } # as_fn_error
  19625. # as_fn_set_status STATUS
  19626. # -----------------------
  19627. # Set $? to STATUS, without forking.
  19628. as_fn_set_status ()
  19629. {
  19630. return $1
  19631. } # as_fn_set_status
  19632. # as_fn_exit STATUS
  19633. # -----------------
  19634. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19635. as_fn_exit ()
  19636. {
  19637. set +e
  19638. as_fn_set_status $1
  19639. exit $1
  19640. } # as_fn_exit
  19641. # as_fn_unset VAR
  19642. # ---------------
  19643. # Portably unset VAR.
  19644. as_fn_unset ()
  19645. {
  19646. { eval $1=; unset $1;}
  19647. }
  19648. as_unset=as_fn_unset
  19649. # as_fn_append VAR VALUE
  19650. # ----------------------
  19651. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19652. # advantage of any shell optimizations that allow amortized linear growth over
  19653. # repeated appends, instead of the typical quadratic growth present in naive
  19654. # implementations.
  19655. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  19656. then :
  19657. eval 'as_fn_append ()
  19658. {
  19659. eval $1+=\$2
  19660. }'
  19661. else case e in #(
  19662. e) as_fn_append ()
  19663. {
  19664. eval $1=\$$1\$2
  19665. } ;;
  19666. esac
  19667. fi # as_fn_append
  19668. # as_fn_arith ARG...
  19669. # ------------------
  19670. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19671. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19672. # must be portable across $(()) and expr.
  19673. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  19674. then :
  19675. eval 'as_fn_arith ()
  19676. {
  19677. as_val=$(( $* ))
  19678. }'
  19679. else case e in #(
  19680. e) as_fn_arith ()
  19681. {
  19682. as_val=`expr "$@" || test $? -eq 1`
  19683. } ;;
  19684. esac
  19685. fi # as_fn_arith
  19686. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19687. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19688. as_expr=expr
  19689. else
  19690. as_expr=false
  19691. fi
  19692. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19693. as_basename=basename
  19694. else
  19695. as_basename=false
  19696. fi
  19697. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19698. as_dirname=dirname
  19699. else
  19700. as_dirname=false
  19701. fi
  19702. as_me=`$as_basename -- "$0" ||
  19703. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19704. X"$0" : 'X\(//\)$' \| \
  19705. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19706. printf "%s\n" X/"$0" |
  19707. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19708. s//\1/
  19709. q
  19710. }
  19711. /^X\/\(\/\/\)$/{
  19712. s//\1/
  19713. q
  19714. }
  19715. /^X\/\(\/\).*/{
  19716. s//\1/
  19717. q
  19718. }
  19719. s/.*/./; q'`
  19720. # Avoid depending upon Character Ranges.
  19721. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19722. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19723. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19724. as_cr_digits='0123456789'
  19725. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19726. # Determine whether it's possible to make 'echo' print without a newline.
  19727. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  19728. # for compatibility with existing Makefiles.
  19729. ECHO_C= ECHO_N= ECHO_T=
  19730. case `echo -n x` in #(((((
  19731. -n*)
  19732. case `echo 'xy\c'` in
  19733. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19734. xy) ECHO_C='\c';;
  19735. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19736. ECHO_T=' ';;
  19737. esac;;
  19738. *)
  19739. ECHO_N='-n';;
  19740. esac
  19741. # For backward compatibility with old third-party macros, we provide
  19742. # the shell variables $as_echo and $as_echo_n. New code should use
  19743. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  19744. as_echo='printf %s\n'
  19745. as_echo_n='printf %s'
  19746. rm -f conf$$ conf$$.exe conf$$.file
  19747. if test -d conf$$.dir; then
  19748. rm -f conf$$.dir/conf$$.file
  19749. else
  19750. rm -f conf$$.dir
  19751. mkdir conf$$.dir 2>/dev/null
  19752. fi
  19753. if (echo >conf$$.file) 2>/dev/null; then
  19754. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19755. as_ln_s='ln -s'
  19756. # ... but there are two gotchas:
  19757. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  19758. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  19759. # In both cases, we have to default to 'cp -pR'.
  19760. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19761. as_ln_s='cp -pR'
  19762. elif ln conf$$.file conf$$ 2>/dev/null; then
  19763. as_ln_s=ln
  19764. else
  19765. as_ln_s='cp -pR'
  19766. fi
  19767. else
  19768. as_ln_s='cp -pR'
  19769. fi
  19770. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19771. rmdir conf$$.dir 2>/dev/null
  19772. # as_fn_mkdir_p
  19773. # -------------
  19774. # Create "$as_dir" as a directory, including parents if necessary.
  19775. as_fn_mkdir_p ()
  19776. {
  19777. case $as_dir in #(
  19778. -*) as_dir=./$as_dir;;
  19779. esac
  19780. test -d "$as_dir" || eval $as_mkdir_p || {
  19781. as_dirs=
  19782. while :; do
  19783. case $as_dir in #(
  19784. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19785. *) as_qdir=$as_dir;;
  19786. esac
  19787. as_dirs="'$as_qdir' $as_dirs"
  19788. as_dir=`$as_dirname -- "$as_dir" ||
  19789. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19790. X"$as_dir" : 'X\(//\)[^/]' \| \
  19791. X"$as_dir" : 'X\(//\)$' \| \
  19792. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19793. printf "%s\n" X"$as_dir" |
  19794. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19795. s//\1/
  19796. q
  19797. }
  19798. /^X\(\/\/\)[^/].*/{
  19799. s//\1/
  19800. q
  19801. }
  19802. /^X\(\/\/\)$/{
  19803. s//\1/
  19804. q
  19805. }
  19806. /^X\(\/\).*/{
  19807. s//\1/
  19808. q
  19809. }
  19810. s/.*/./; q'`
  19811. test -d "$as_dir" && break
  19812. done
  19813. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19814. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19815. } # as_fn_mkdir_p
  19816. if mkdir -p . 2>/dev/null; then
  19817. as_mkdir_p='mkdir -p "$as_dir"'
  19818. else
  19819. test -d ./-p && rmdir ./-p
  19820. as_mkdir_p=false
  19821. fi
  19822. # as_fn_executable_p FILE
  19823. # -----------------------
  19824. # Test if FILE is an executable regular file.
  19825. as_fn_executable_p ()
  19826. {
  19827. test -f "$1" && test -x "$1"
  19828. } # as_fn_executable_p
  19829. as_test_x='test -x'
  19830. as_executable_p=as_fn_executable_p
  19831. # Sed expression to map a string onto a valid CPP name.
  19832. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19833. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  19834. # Sed expression to map a string onto a valid variable name.
  19835. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  19836. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  19837. exec 6>&1
  19838. ## ----------------------------------- ##
  19839. ## Main body of $CONFIG_STATUS script. ##
  19840. ## ----------------------------------- ##
  19841. _ASEOF
  19842. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19843. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19844. # Save the log message, to keep $0 and so on meaningful, and to
  19845. # report actual input values of CONFIG_FILES etc. instead of their
  19846. # values after options handling.
  19847. ac_log="
  19848. This file was extended by expat $as_me 2.7.3, which was
  19849. generated by GNU Autoconf 2.72. Invocation command line was
  19850. CONFIG_FILES = $CONFIG_FILES
  19851. CONFIG_HEADERS = $CONFIG_HEADERS
  19852. CONFIG_LINKS = $CONFIG_LINKS
  19853. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19854. $ $0 $@
  19855. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19856. "
  19857. _ACEOF
  19858. case $ac_config_files in *"
  19859. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19860. esac
  19861. case $ac_config_headers in *"
  19862. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19863. esac
  19864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19865. # Files that config.status was made for.
  19866. config_files="$ac_config_files"
  19867. config_headers="$ac_config_headers"
  19868. config_commands="$ac_config_commands"
  19869. _ACEOF
  19870. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19871. ac_cs_usage="\
  19872. '$as_me' instantiates files and other configuration actions
  19873. from templates according to the current configuration. Unless the files
  19874. and actions are specified as TAGs, all are instantiated by default.
  19875. Usage: $0 [OPTION]... [TAG]...
  19876. -h, --help print this help, then exit
  19877. -V, --version print version number and configuration settings, then exit
  19878. --config print configuration, then exit
  19879. -q, --quiet, --silent
  19880. do not print progress messages
  19881. -d, --debug don't remove temporary files
  19882. --recheck update $as_me by reconfiguring in the same conditions
  19883. --file=FILE[:TEMPLATE]
  19884. instantiate the configuration file FILE
  19885. --header=FILE[:TEMPLATE]
  19886. instantiate the configuration header FILE
  19887. Configuration files:
  19888. $config_files
  19889. Configuration headers:
  19890. $config_headers
  19891. Configuration commands:
  19892. $config_commands
  19893. Report bugs to <https://github.com/libexpat/libexpat/issues>."
  19894. _ACEOF
  19895. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  19896. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  19897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19898. ac_cs_config='$ac_cs_config_escaped'
  19899. ac_cs_version="\\
  19900. expat config.status 2.7.3
  19901. configured by $0, generated by GNU Autoconf 2.72,
  19902. with options \\"\$ac_cs_config\\"
  19903. Copyright (C) 2023 Free Software Foundation, Inc.
  19904. This config.status script is free software; the Free Software Foundation
  19905. gives unlimited permission to copy, distribute and modify it."
  19906. ac_pwd='$ac_pwd'
  19907. srcdir='$srcdir'
  19908. INSTALL='$INSTALL'
  19909. MKDIR_P='$MKDIR_P'
  19910. AWK='$AWK'
  19911. test -n "\$AWK" || AWK=awk
  19912. _ACEOF
  19913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19914. # The default lists apply if the user does not specify any file.
  19915. ac_need_defaults=:
  19916. while test $# != 0
  19917. do
  19918. case $1 in
  19919. --*=?*)
  19920. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19921. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19922. ac_shift=:
  19923. ;;
  19924. --*=)
  19925. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19926. ac_optarg=
  19927. ac_shift=:
  19928. ;;
  19929. *)
  19930. ac_option=$1
  19931. ac_optarg=$2
  19932. ac_shift=shift
  19933. ;;
  19934. esac
  19935. case $ac_option in
  19936. # Handling of the options.
  19937. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19938. ac_cs_recheck=: ;;
  19939. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19940. printf "%s\n" "$ac_cs_version"; exit ;;
  19941. --config | --confi | --conf | --con | --co | --c )
  19942. printf "%s\n" "$ac_cs_config"; exit ;;
  19943. --debug | --debu | --deb | --de | --d | -d )
  19944. debug=: ;;
  19945. --file | --fil | --fi | --f )
  19946. $ac_shift
  19947. case $ac_optarg in
  19948. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19949. '') as_fn_error $? "missing file argument" ;;
  19950. esac
  19951. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19952. ac_need_defaults=false;;
  19953. --header | --heade | --head | --hea )
  19954. $ac_shift
  19955. case $ac_optarg in
  19956. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19957. esac
  19958. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19959. ac_need_defaults=false;;
  19960. --he | --h)
  19961. # Conflict between --help and --header
  19962. as_fn_error $? "ambiguous option: '$1'
  19963. Try '$0 --help' for more information.";;
  19964. --help | --hel | -h )
  19965. printf "%s\n" "$ac_cs_usage"; exit ;;
  19966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19967. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19968. ac_cs_silent=: ;;
  19969. # This is an error.
  19970. -*) as_fn_error $? "unrecognized option: '$1'
  19971. Try '$0 --help' for more information." ;;
  19972. *) as_fn_append ac_config_targets " $1"
  19973. ac_need_defaults=false ;;
  19974. esac
  19975. shift
  19976. done
  19977. ac_configure_extra_args=
  19978. if $ac_cs_silent; then
  19979. exec 6>/dev/null
  19980. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19981. fi
  19982. _ACEOF
  19983. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19984. if \$ac_cs_recheck; then
  19985. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19986. shift
  19987. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  19988. CONFIG_SHELL='$SHELL'
  19989. export CONFIG_SHELL
  19990. exec "\$@"
  19991. fi
  19992. _ACEOF
  19993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19994. exec 5>>config.log
  19995. {
  19996. echo
  19997. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19998. ## Running $as_me. ##
  19999. _ASBOX
  20000. printf "%s\n" "$ac_log"
  20001. } >&5
  20002. _ACEOF
  20003. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20004. #
  20005. # INIT-COMMANDS
  20006. #
  20007. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  20008. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20009. # if CDPATH is set.
  20010. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20011. sed_quote_subst='$sed_quote_subst'
  20012. double_quote_subst='$double_quote_subst'
  20013. delay_variable_subst='$delay_variable_subst'
  20014. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20015. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20016. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20017. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20018. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20019. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20020. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20021. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20022. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20023. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  20024. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20025. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20026. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20027. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20028. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20029. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20030. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20031. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20032. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20033. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20034. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20035. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20036. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20037. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20038. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20039. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20040. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20041. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20042. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20043. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20044. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20045. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20046. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20047. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20048. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20049. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20050. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20051. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  20052. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20053. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20054. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20055. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20056. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20057. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20058. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  20059. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20060. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20061. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20062. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20063. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20064. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20065. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20066. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20067. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20068. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20069. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20070. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20071. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20072. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20073. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  20074. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20075. 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"`'
  20076. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  20077. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20078. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20079. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  20080. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20081. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20082. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20083. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20084. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20085. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20086. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20087. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20088. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20089. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20090. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20091. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20092. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20093. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20094. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20095. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20096. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20097. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20098. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20099. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20100. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20101. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20102. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20103. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20104. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20105. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20106. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20107. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20108. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20109. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20110. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20111. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20112. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20113. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20114. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20115. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20116. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20117. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20118. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20119. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20120. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20121. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20122. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20123. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20124. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20125. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20126. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20127. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20128. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20129. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20130. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20131. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20132. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20133. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20134. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20135. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20136. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20137. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20138. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20139. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20140. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20141. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20142. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20143. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20144. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  20145. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  20146. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20147. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20148. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20149. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20150. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20151. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20152. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20153. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20154. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20155. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20156. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20157. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20158. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20159. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20160. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20161. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20162. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20163. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20164. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20165. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20166. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20167. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20168. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20169. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20170. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20171. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20172. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20173. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20174. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20175. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20176. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20177. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20178. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20179. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20180. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20181. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20182. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20183. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20184. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20185. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20186. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20187. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20188. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20189. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20190. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20191. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20192. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20193. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20194. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20195. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20196. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20197. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20198. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20199. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20200. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20201. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20202. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20203. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20204. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20205. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20206. LTCC='$LTCC'
  20207. LTCFLAGS='$LTCFLAGS'
  20208. compiler='$compiler_DEFAULT'
  20209. # A function that is used when there is no print builtin or printf.
  20210. func_fallback_echo ()
  20211. {
  20212. eval 'cat <<_LTECHO_EOF
  20213. \$1
  20214. _LTECHO_EOF'
  20215. }
  20216. # Quote evaled strings.
  20217. for var in AS \
  20218. DLLTOOL \
  20219. OBJDUMP \
  20220. SHELL \
  20221. ECHO \
  20222. PATH_SEPARATOR \
  20223. SED \
  20224. GREP \
  20225. EGREP \
  20226. FGREP \
  20227. LD \
  20228. NM \
  20229. LN_S \
  20230. lt_SP2NL \
  20231. lt_NL2SP \
  20232. reload_flag \
  20233. FILECMD \
  20234. deplibs_check_method \
  20235. file_magic_cmd \
  20236. file_magic_glob \
  20237. want_nocaseglob \
  20238. sharedlib_from_linklib_cmd \
  20239. AR \
  20240. archiver_list_spec \
  20241. STRIP \
  20242. RANLIB \
  20243. CC \
  20244. CFLAGS \
  20245. compiler \
  20246. lt_cv_sys_global_symbol_pipe \
  20247. lt_cv_sys_global_symbol_to_cdecl \
  20248. lt_cv_sys_global_symbol_to_import \
  20249. lt_cv_sys_global_symbol_to_c_name_address \
  20250. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20251. lt_cv_nm_interface \
  20252. nm_file_list_spec \
  20253. lt_cv_truncate_bin \
  20254. lt_prog_compiler_no_builtin_flag \
  20255. lt_prog_compiler_pic \
  20256. lt_prog_compiler_wl \
  20257. lt_prog_compiler_static \
  20258. lt_cv_prog_compiler_c_o \
  20259. need_locks \
  20260. MANIFEST_TOOL \
  20261. DSYMUTIL \
  20262. NMEDIT \
  20263. LIPO \
  20264. OTOOL \
  20265. OTOOL64 \
  20266. shrext_cmds \
  20267. export_dynamic_flag_spec \
  20268. whole_archive_flag_spec \
  20269. compiler_needs_object \
  20270. with_gnu_ld \
  20271. allow_undefined_flag \
  20272. no_undefined_flag \
  20273. hardcode_libdir_flag_spec \
  20274. hardcode_libdir_separator \
  20275. exclude_expsyms \
  20276. include_expsyms \
  20277. file_list_spec \
  20278. variables_saved_for_relink \
  20279. libname_spec \
  20280. library_names_spec \
  20281. soname_spec \
  20282. install_override_mode \
  20283. finish_eval \
  20284. old_striplib \
  20285. striplib \
  20286. compiler_lib_search_dirs \
  20287. predep_objects \
  20288. postdep_objects \
  20289. predeps \
  20290. postdeps \
  20291. compiler_lib_search_path \
  20292. LD_CXX \
  20293. reload_flag_CXX \
  20294. compiler_CXX \
  20295. lt_prog_compiler_no_builtin_flag_CXX \
  20296. lt_prog_compiler_pic_CXX \
  20297. lt_prog_compiler_wl_CXX \
  20298. lt_prog_compiler_static_CXX \
  20299. lt_cv_prog_compiler_c_o_CXX \
  20300. export_dynamic_flag_spec_CXX \
  20301. whole_archive_flag_spec_CXX \
  20302. compiler_needs_object_CXX \
  20303. with_gnu_ld_CXX \
  20304. allow_undefined_flag_CXX \
  20305. no_undefined_flag_CXX \
  20306. hardcode_libdir_flag_spec_CXX \
  20307. hardcode_libdir_separator_CXX \
  20308. exclude_expsyms_CXX \
  20309. include_expsyms_CXX \
  20310. file_list_spec_CXX \
  20311. compiler_lib_search_dirs_CXX \
  20312. predep_objects_CXX \
  20313. postdep_objects_CXX \
  20314. predeps_CXX \
  20315. postdeps_CXX \
  20316. compiler_lib_search_path_CXX; do
  20317. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20318. *[\\\\\\\`\\"\\\$]*)
  20319. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20320. ;;
  20321. *)
  20322. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20323. ;;
  20324. esac
  20325. done
  20326. # Double-quote double-evaled strings.
  20327. for var in reload_cmds \
  20328. old_postinstall_cmds \
  20329. old_postuninstall_cmds \
  20330. old_archive_cmds \
  20331. extract_expsyms_cmds \
  20332. old_archive_from_new_cmds \
  20333. old_archive_from_expsyms_cmds \
  20334. archive_cmds \
  20335. archive_expsym_cmds \
  20336. module_cmds \
  20337. module_expsym_cmds \
  20338. export_symbols_cmds \
  20339. prelink_cmds \
  20340. postlink_cmds \
  20341. postinstall_cmds \
  20342. postuninstall_cmds \
  20343. finish_cmds \
  20344. sys_lib_search_path_spec \
  20345. configure_time_dlsearch_path \
  20346. configure_time_lt_sys_library_path \
  20347. reload_cmds_CXX \
  20348. old_archive_cmds_CXX \
  20349. old_archive_from_new_cmds_CXX \
  20350. old_archive_from_expsyms_cmds_CXX \
  20351. archive_cmds_CXX \
  20352. archive_expsym_cmds_CXX \
  20353. module_cmds_CXX \
  20354. module_expsym_cmds_CXX \
  20355. export_symbols_cmds_CXX \
  20356. prelink_cmds_CXX \
  20357. postlink_cmds_CXX; do
  20358. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20359. *[\\\\\\\`\\"\\\$]*)
  20360. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20361. ;;
  20362. *)
  20363. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20364. ;;
  20365. esac
  20366. done
  20367. ac_aux_dir='$ac_aux_dir'
  20368. # See if we are running on zsh, and set the options that allow our
  20369. # commands through without removal of \ escapes INIT.
  20370. if test -n "\${ZSH_VERSION+set}"; then
  20371. setopt NO_GLOB_SUBST
  20372. fi
  20373. PACKAGE='$PACKAGE'
  20374. VERSION='$VERSION'
  20375. RM='$RM'
  20376. ofile='$ofile'
  20377. _ACEOF
  20378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20379. # Handling of arguments.
  20380. for ac_config_target in $ac_config_targets
  20381. do
  20382. case $ac_config_target in
  20383. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  20384. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20385. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20386. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20387. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  20388. "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
  20389. "cmake/autotools/expat.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat.cmake:${CMAKE_SOURCE}" ;;
  20390. "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
  20391. "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
  20392. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20393. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  20394. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20395. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  20396. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  20397. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  20398. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  20399. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  20400. esac
  20401. done
  20402. # If the user did not use the arguments to specify the items to instantiate,
  20403. # then the envvar interface is used. Set only those that are not.
  20404. # We use the long form for the default assignment because of an extremely
  20405. # bizarre bug on SunOS 4.1.3.
  20406. if $ac_need_defaults; then
  20407. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  20408. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  20409. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  20410. fi
  20411. # Have a temporary directory for convenience. Make it in the build tree
  20412. # simply because there is no reason against having it here, and in addition,
  20413. # creating and moving files from /tmp can sometimes cause problems.
  20414. # Hook for its removal unless debugging.
  20415. # Note that there is a small window in which the directory will not be cleaned:
  20416. # after its creation but before its name has been assigned to '$tmp'.
  20417. $debug ||
  20418. {
  20419. tmp= ac_tmp=
  20420. trap 'exit_status=$?
  20421. : "${ac_tmp:=$tmp}"
  20422. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20423. ' 0
  20424. trap 'as_fn_exit 1' 1 2 13 15
  20425. }
  20426. # Create a (secure) tmp directory for tmp files.
  20427. {
  20428. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20429. test -d "$tmp"
  20430. } ||
  20431. {
  20432. tmp=./conf$$-$RANDOM
  20433. (umask 077 && mkdir "$tmp")
  20434. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20435. ac_tmp=$tmp
  20436. # Set up the scripts for CONFIG_FILES section.
  20437. # No need to generate them if there are no CONFIG_FILES.
  20438. # This happens for instance with './config.status config.h'.
  20439. if test -n "$CONFIG_FILES"; then
  20440. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  20441. ac_cs_awk_getline=:
  20442. ac_cs_awk_pipe_init=
  20443. ac_cs_awk_read_file='
  20444. while ((getline aline < (F[key])) > 0)
  20445. print(aline)
  20446. close(F[key])'
  20447. ac_cs_awk_pipe_fini=
  20448. else
  20449. ac_cs_awk_getline=false
  20450. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  20451. ac_cs_awk_read_file='
  20452. print "|#_!!_#|"
  20453. print "cat " F[key] " &&"
  20454. '$ac_cs_awk_pipe_init
  20455. # The final ':' finishes the AND list.
  20456. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  20457. fi
  20458. ac_cr=`echo X | tr X '\015'`
  20459. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20460. # But we know of no other shell where ac_cr would be empty at this
  20461. # point, so we can use a bashism as a fallback.
  20462. if test "x$ac_cr" = x; then
  20463. eval ac_cr=\$\'\\r\'
  20464. fi
  20465. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20466. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20467. ac_cs_awk_cr='\\r'
  20468. else
  20469. ac_cs_awk_cr=$ac_cr
  20470. fi
  20471. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20472. _ACEOF
  20473. # Create commands to substitute file output variables.
  20474. {
  20475. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  20476. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  20477. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  20478. echo "_ACAWK" &&
  20479. echo "_ACEOF"
  20480. } >conf$$files.sh &&
  20481. . ./conf$$files.sh ||
  20482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20483. rm -f conf$$files.sh
  20484. {
  20485. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20486. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20487. echo "_ACEOF"
  20488. } >conf$$subs.sh ||
  20489. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20490. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20491. ac_delim='%!_!# '
  20492. for ac_last_try in false false false false false :; do
  20493. . ./conf$$subs.sh ||
  20494. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20495. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20496. if test $ac_delim_n = $ac_delim_num; then
  20497. break
  20498. elif $ac_last_try; then
  20499. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20500. else
  20501. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20502. fi
  20503. done
  20504. rm -f conf$$subs.sh
  20505. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20506. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20507. _ACEOF
  20508. sed -n '
  20509. h
  20510. s/^/S["/; s/!.*/"]=/
  20511. p
  20512. g
  20513. s/^[^!]*!//
  20514. :repl
  20515. t repl
  20516. s/'"$ac_delim"'$//
  20517. t delim
  20518. :nl
  20519. h
  20520. s/\(.\{148\}\)..*/\1/
  20521. t more1
  20522. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20523. p
  20524. n
  20525. b repl
  20526. :more1
  20527. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20528. p
  20529. g
  20530. s/.\{148\}//
  20531. t nl
  20532. :delim
  20533. h
  20534. s/\(.\{148\}\)..*/\1/
  20535. t more2
  20536. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20537. p
  20538. b
  20539. :more2
  20540. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20541. p
  20542. g
  20543. s/.\{148\}//
  20544. t delim
  20545. ' <conf$$subs.awk | sed '
  20546. /^[^""]/{
  20547. N
  20548. s/\n//
  20549. }
  20550. ' >>$CONFIG_STATUS || ac_write_fail=1
  20551. rm -f conf$$subs.awk
  20552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20553. _ACAWK
  20554. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20555. for (key in S) S_is_set[key] = 1
  20556. FS = ""
  20557. \$ac_cs_awk_pipe_init
  20558. }
  20559. {
  20560. line = $ 0
  20561. nfields = split(line, field, "@")
  20562. substed = 0
  20563. len = length(field[1])
  20564. for (i = 2; i < nfields; i++) {
  20565. key = field[i]
  20566. keylen = length(key)
  20567. if (S_is_set[key]) {
  20568. value = S[key]
  20569. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20570. len += length(value) + length(field[++i])
  20571. substed = 1
  20572. } else
  20573. len += 1 + keylen
  20574. }
  20575. if (nfields == 3 && !substed) {
  20576. key = field[2]
  20577. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  20578. \$ac_cs_awk_read_file
  20579. next
  20580. }
  20581. }
  20582. print line
  20583. }
  20584. \$ac_cs_awk_pipe_fini
  20585. _ACAWK
  20586. _ACEOF
  20587. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20588. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20589. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20590. else
  20591. cat
  20592. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20593. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20594. _ACEOF
  20595. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20596. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20597. # trailing colons and then remove the whole line if VPATH becomes empty
  20598. # (actually we leave an empty line to preserve line numbers).
  20599. if test "x$srcdir" = x.; then
  20600. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20601. h
  20602. s///
  20603. s/^/:/
  20604. s/[ ]*$/:/
  20605. s/:\$(srcdir):/:/g
  20606. s/:\${srcdir}:/:/g
  20607. s/:@srcdir@:/:/g
  20608. s/^:*//
  20609. s/:*$//
  20610. x
  20611. s/\(=[ ]*\).*/\1/
  20612. G
  20613. s/\n//
  20614. s/^[^=]*=[ ]*$//
  20615. }'
  20616. fi
  20617. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20618. fi # test -n "$CONFIG_FILES"
  20619. # Set up the scripts for CONFIG_HEADERS section.
  20620. # No need to generate them if there are no CONFIG_HEADERS.
  20621. # This happens for instance with './config.status Makefile'.
  20622. if test -n "$CONFIG_HEADERS"; then
  20623. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20624. BEGIN {
  20625. _ACEOF
  20626. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  20627. # here-document in config.status, that substitutes the proper values into
  20628. # config.h.in to produce config.h.
  20629. # Create a delimiter string that does not exist in confdefs.h, to ease
  20630. # handling of long lines.
  20631. ac_delim='%!_!# '
  20632. for ac_last_try in false false :; do
  20633. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20634. if test -z "$ac_tt"; then
  20635. break
  20636. elif $ac_last_try; then
  20637. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20638. else
  20639. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20640. fi
  20641. done
  20642. # For the awk script, D is an array of macro values keyed by name,
  20643. # likewise P contains macro parameters if any. Preserve backslash
  20644. # newline sequences.
  20645. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20646. sed -n '
  20647. s/.\{148\}/&'"$ac_delim"'/g
  20648. t rset
  20649. :rset
  20650. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20651. t def
  20652. d
  20653. :def
  20654. s/\\$//
  20655. t bsnl
  20656. s/["\\]/\\&/g
  20657. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20658. D["\1"]=" \3"/p
  20659. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20660. d
  20661. :bsnl
  20662. s/["\\]/\\&/g
  20663. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20664. D["\1"]=" \3\\\\\\n"\\/p
  20665. t cont
  20666. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20667. t cont
  20668. d
  20669. :cont
  20670. n
  20671. s/.\{148\}/&'"$ac_delim"'/g
  20672. t clear
  20673. :clear
  20674. s/\\$//
  20675. t bsnlc
  20676. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20677. d
  20678. :bsnlc
  20679. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20680. b cont
  20681. ' <confdefs.h | sed '
  20682. s/'"$ac_delim"'/"\\\
  20683. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20684. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20685. for (key in D) D_is_set[key] = 1
  20686. FS = ""
  20687. }
  20688. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20689. line = \$ 0
  20690. split(line, arg, " ")
  20691. if (arg[1] == "#") {
  20692. defundef = arg[2]
  20693. mac1 = arg[3]
  20694. } else {
  20695. defundef = substr(arg[1], 2)
  20696. mac1 = arg[2]
  20697. }
  20698. split(mac1, mac2, "(") #)
  20699. macro = mac2[1]
  20700. prefix = substr(line, 1, index(line, defundef) - 1)
  20701. if (D_is_set[macro]) {
  20702. # Preserve the white space surrounding the "#".
  20703. print prefix "define", macro P[macro] D[macro]
  20704. next
  20705. } else {
  20706. # Replace #undef with comments. This is necessary, for example,
  20707. # in the case of _POSIX_SOURCE, which is predefined and required
  20708. # on some systems where configure will not decide to define it.
  20709. if (defundef == "undef") {
  20710. print "/*", prefix defundef, macro, "*/"
  20711. next
  20712. }
  20713. }
  20714. }
  20715. { print }
  20716. _ACAWK
  20717. _ACEOF
  20718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20719. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20720. fi # test -n "$CONFIG_HEADERS"
  20721. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20722. shift
  20723. for ac_tag
  20724. do
  20725. case $ac_tag in
  20726. :[FHLC]) ac_mode=$ac_tag; continue;;
  20727. esac
  20728. case $ac_mode$ac_tag in
  20729. :[FHL]*:*);;
  20730. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  20731. :[FH]-) ac_tag=-:-;;
  20732. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20733. esac
  20734. ac_save_IFS=$IFS
  20735. IFS=:
  20736. set x $ac_tag
  20737. IFS=$ac_save_IFS
  20738. shift
  20739. ac_file=$1
  20740. shift
  20741. case $ac_mode in
  20742. :L) ac_source=$1;;
  20743. :[FH])
  20744. ac_file_inputs=
  20745. for ac_f
  20746. do
  20747. case $ac_f in
  20748. -) ac_f="$ac_tmp/stdin";;
  20749. *) # Look for the file first in the build tree, then in the source tree
  20750. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20751. # because $ac_f cannot contain ':'.
  20752. test -f "$ac_f" ||
  20753. case $ac_f in
  20754. [\\/$]*) false;;
  20755. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20756. esac ||
  20757. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  20758. esac
  20759. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20760. as_fn_append ac_file_inputs " '$ac_f'"
  20761. done
  20762. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  20763. # use $as_me), people would be surprised to read:
  20764. # /* config.h. Generated by config.status. */
  20765. configure_input='Generated from '`
  20766. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20767. `' by configure.'
  20768. if test x"$ac_file" != x-; then
  20769. configure_input="$ac_file. $configure_input"
  20770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20771. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  20772. fi
  20773. # Neutralize special characters interpreted by sed in replacement strings.
  20774. case $configure_input in #(
  20775. *\&* | *\|* | *\\* )
  20776. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  20777. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20778. *) ac_sed_conf_input=$configure_input;;
  20779. esac
  20780. case $ac_tag in
  20781. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20782. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20783. esac
  20784. ;;
  20785. esac
  20786. ac_dir=`$as_dirname -- "$ac_file" ||
  20787. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20788. X"$ac_file" : 'X\(//\)[^/]' \| \
  20789. X"$ac_file" : 'X\(//\)$' \| \
  20790. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20791. printf "%s\n" X"$ac_file" |
  20792. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20793. s//\1/
  20794. q
  20795. }
  20796. /^X\(\/\/\)[^/].*/{
  20797. s//\1/
  20798. q
  20799. }
  20800. /^X\(\/\/\)$/{
  20801. s//\1/
  20802. q
  20803. }
  20804. /^X\(\/\).*/{
  20805. s//\1/
  20806. q
  20807. }
  20808. s/.*/./; q'`
  20809. as_dir="$ac_dir"; as_fn_mkdir_p
  20810. ac_builddir=.
  20811. case "$ac_dir" in
  20812. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20813. *)
  20814. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  20815. # A ".." for each directory in $ac_dir_suffix.
  20816. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20817. case $ac_top_builddir_sub in
  20818. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20819. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20820. esac ;;
  20821. esac
  20822. ac_abs_top_builddir=$ac_pwd
  20823. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20824. # for backward compatibility:
  20825. ac_top_builddir=$ac_top_build_prefix
  20826. case $srcdir in
  20827. .) # We are building in place.
  20828. ac_srcdir=.
  20829. ac_top_srcdir=$ac_top_builddir_sub
  20830. ac_abs_top_srcdir=$ac_pwd ;;
  20831. [\\/]* | ?:[\\/]* ) # Absolute name.
  20832. ac_srcdir=$srcdir$ac_dir_suffix;
  20833. ac_top_srcdir=$srcdir
  20834. ac_abs_top_srcdir=$srcdir ;;
  20835. *) # Relative name.
  20836. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20837. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20838. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20839. esac
  20840. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20841. case $ac_mode in
  20842. :F)
  20843. #
  20844. # CONFIG_FILE
  20845. #
  20846. case $INSTALL in
  20847. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20848. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20849. esac
  20850. ac_MKDIR_P=$MKDIR_P
  20851. case $MKDIR_P in
  20852. [\\/$]* | ?:[\\/]* ) ;;
  20853. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20854. esac
  20855. _ACEOF
  20856. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20857. # If the template does not know about datarootdir, expand it.
  20858. # FIXME: This hack should be removed a few years after 2.60.
  20859. ac_datarootdir_hack=; ac_datarootdir_seen=
  20860. ac_sed_dataroot='
  20861. /datarootdir/ {
  20862. p
  20863. q
  20864. }
  20865. /@datadir@/p
  20866. /@docdir@/p
  20867. /@infodir@/p
  20868. /@localedir@/p
  20869. /@mandir@/p'
  20870. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20871. *datarootdir*) ac_datarootdir_seen=yes;;
  20872. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20874. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20875. _ACEOF
  20876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20877. ac_datarootdir_hack='
  20878. s&@datadir@&$datadir&g
  20879. s&@docdir@&$docdir&g
  20880. s&@infodir@&$infodir&g
  20881. s&@localedir@&$localedir&g
  20882. s&@mandir@&$mandir&g
  20883. s&\\\${datarootdir}&$datarootdir&g' ;;
  20884. esac
  20885. _ACEOF
  20886. # Neutralize VPATH when '$srcdir' = '.'.
  20887. # Shell code in configure.ac might set extrasub.
  20888. # FIXME: do we really want to maintain this feature?
  20889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20890. ac_sed_extra="$ac_vpsub
  20891. $extrasub
  20892. _ACEOF
  20893. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20894. :t
  20895. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20896. s|@configure_input@|$ac_sed_conf_input|;t t
  20897. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20898. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20899. s&@srcdir@&$ac_srcdir&;t t
  20900. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20901. s&@top_srcdir@&$ac_top_srcdir&;t t
  20902. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20903. s&@builddir@&$ac_builddir&;t t
  20904. s&@abs_builddir@&$ac_abs_builddir&;t t
  20905. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20906. s&@INSTALL@&$ac_INSTALL&;t t
  20907. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20908. $ac_datarootdir_hack
  20909. "
  20910. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  20911. if $ac_cs_awk_getline; then
  20912. $AWK -f "$ac_tmp/subs.awk"
  20913. else
  20914. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  20915. fi \
  20916. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20917. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20918. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20919. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20920. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  20922. which seems to be undefined. Please make sure it is defined" >&5
  20923. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  20924. which seems to be undefined. Please make sure it is defined" >&2;}
  20925. rm -f "$ac_tmp/stdin"
  20926. case $ac_file in
  20927. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20928. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20929. esac \
  20930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20931. ;;
  20932. :H)
  20933. #
  20934. # CONFIG_HEADER
  20935. #
  20936. if test x"$ac_file" != x-; then
  20937. {
  20938. printf "%s\n" "/* $configure_input */" >&1 \
  20939. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20940. } >"$ac_tmp/config.h" \
  20941. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20942. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20944. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  20945. else
  20946. rm -f "$ac_file"
  20947. mv "$ac_tmp/config.h" "$ac_file" \
  20948. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20949. fi
  20950. else
  20951. printf "%s\n" "/* $configure_input */" >&1 \
  20952. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20953. || as_fn_error $? "could not create -" "$LINENO" 5
  20954. fi
  20955. # Compute "$ac_file"'s index in $config_headers.
  20956. _am_arg="$ac_file"
  20957. _am_stamp_count=1
  20958. for _am_header in $config_headers :; do
  20959. case $_am_header in
  20960. $_am_arg | $_am_arg:* )
  20961. break ;;
  20962. * )
  20963. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20964. esac
  20965. done
  20966. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20967. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20968. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20969. X"$_am_arg" : 'X\(//\)$' \| \
  20970. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20971. printf "%s\n" X"$_am_arg" |
  20972. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20973. s//\1/
  20974. q
  20975. }
  20976. /^X\(\/\/\)[^/].*/{
  20977. s//\1/
  20978. q
  20979. }
  20980. /^X\(\/\/\)$/{
  20981. s//\1/
  20982. q
  20983. }
  20984. /^X\(\/\).*/{
  20985. s//\1/
  20986. q
  20987. }
  20988. s/.*/./; q'`/stamp-h$_am_stamp_count
  20989. ;;
  20990. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20991. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  20992. ;;
  20993. esac
  20994. case $ac_file$ac_mode in
  20995. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20996. # Older Autoconf quotes --file arguments for eval, but not when files
  20997. # are listed without --file. Let's play safe and only enable the eval
  20998. # if we detect the quoting.
  20999. # TODO: see whether this extra hack can be removed once we start
  21000. # requiring Autoconf 2.70 or later.
  21001. case $CONFIG_FILES in #(
  21002. *\'*) :
  21003. eval set x "$CONFIG_FILES" ;; #(
  21004. *) :
  21005. set x $CONFIG_FILES ;; #(
  21006. *) :
  21007. ;;
  21008. esac
  21009. shift
  21010. # Used to flag and report bootstrapping failures.
  21011. am_rc=0
  21012. for am_mf
  21013. do
  21014. # Strip MF so we end up with the name of the file.
  21015. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  21016. # Check whether this is an Automake generated Makefile which includes
  21017. # dependency-tracking related rules and includes.
  21018. # Grep'ing the whole file directly is not great: AIX grep has a line
  21019. # limit of 2048, but all sed's we know have understand at least 4000.
  21020. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  21021. || continue
  21022. am_dirpart=`$as_dirname -- "$am_mf" ||
  21023. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21024. X"$am_mf" : 'X\(//\)[^/]' \| \
  21025. X"$am_mf" : 'X\(//\)$' \| \
  21026. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21027. printf "%s\n" X"$am_mf" |
  21028. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21029. s//\1/
  21030. q
  21031. }
  21032. /^X\(\/\/\)[^/].*/{
  21033. s//\1/
  21034. q
  21035. }
  21036. /^X\(\/\/\)$/{
  21037. s//\1/
  21038. q
  21039. }
  21040. /^X\(\/\).*/{
  21041. s//\1/
  21042. q
  21043. }
  21044. s/.*/./; q'`
  21045. am_filepart=`$as_basename -- "$am_mf" ||
  21046. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  21047. X"$am_mf" : 'X\(//\)$' \| \
  21048. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21049. printf "%s\n" X/"$am_mf" |
  21050. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21051. s//\1/
  21052. q
  21053. }
  21054. /^X\/\(\/\/\)$/{
  21055. s//\1/
  21056. q
  21057. }
  21058. /^X\/\(\/\).*/{
  21059. s//\1/
  21060. q
  21061. }
  21062. s/.*/./; q'`
  21063. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  21064. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21065. | $MAKE -f - am--depfiles" >&5
  21066. (cd "$am_dirpart" \
  21067. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21068. | $MAKE -f - am--depfiles) >&5 2>&5
  21069. ac_status=$?
  21070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21071. (exit $ac_status); } || am_rc=$?
  21072. done
  21073. if test $am_rc -ne 0; then
  21074. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  21075. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  21076. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  21077. for automatic dependency tracking. If GNU make was not used, consider
  21078. re-running the configure script with MAKE=\"gmake\" (or whatever is
  21079. necessary). You can also try re-running configure with the
  21080. '--disable-dependency-tracking' option to at least be able to build
  21081. the package (albeit without support for automatic dependency tracking).
  21082. See 'config.log' for more details" "$LINENO" 5; }
  21083. fi
  21084. { am_dirpart=; unset am_dirpart;}
  21085. { am_filepart=; unset am_filepart;}
  21086. { am_mf=; unset am_mf;}
  21087. { am_rc=; unset am_rc;}
  21088. rm -f conftest-deps.mk
  21089. }
  21090. ;;
  21091. "libtool":C)
  21092. # See if we are running on zsh, and set the options that allow our
  21093. # commands through without removal of \ escapes.
  21094. if test -n "${ZSH_VERSION+set}"; then
  21095. setopt NO_GLOB_SUBST
  21096. fi
  21097. cfgfile=${ofile}T
  21098. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21099. $RM "$cfgfile"
  21100. cat <<_LT_EOF >> "$cfgfile"
  21101. #! $SHELL
  21102. # Generated automatically by $as_me ($PACKAGE) $VERSION
  21103. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21104. # Provide generalized library-building support services.
  21105. # Written by Gordon Matzigkeit, 1996
  21106. # Copyright (C) 2024 Free Software Foundation, Inc.
  21107. # This is free software; see the source for copying conditions. There is NO
  21108. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21109. # GNU Libtool is free software; you can redistribute it and/or modify
  21110. # it under the terms of the GNU General Public License as published by
  21111. # the Free Software Foundation; either version 2 of the License, or
  21112. # (at your option) any later version.
  21113. #
  21114. # As a special exception to the GNU General Public License, if you
  21115. # distribute this file as part of a program or library that is built
  21116. # using GNU Libtool, you may include this file under the same
  21117. # distribution terms that you use for the rest of that program.
  21118. #
  21119. # GNU Libtool is distributed in the hope that it will be useful, but
  21120. # WITHOUT ANY WARRANTY; without even the implied warranty of
  21121. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21122. # GNU General Public License for more details.
  21123. #
  21124. # You should have received a copy of the GNU General Public License
  21125. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21126. # The names of the tagged configurations supported by this script.
  21127. available_tags='CXX '
  21128. # Configured defaults for sys_lib_dlsearch_path munging.
  21129. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  21130. # ### BEGIN LIBTOOL CONFIG
  21131. # Which release of libtool.m4 was used?
  21132. macro_version=$macro_version
  21133. macro_revision=$macro_revision
  21134. # Assembler program.
  21135. AS=$lt_AS
  21136. # DLL creation program.
  21137. DLLTOOL=$lt_DLLTOOL
  21138. # Object dumper program.
  21139. OBJDUMP=$lt_OBJDUMP
  21140. # Whether or not to build shared libraries.
  21141. build_libtool_libs=$enable_shared
  21142. # Whether or not to build static libraries.
  21143. build_old_libs=$enable_static
  21144. # What type of objects to build.
  21145. pic_mode=$pic_mode
  21146. # Whether or not to optimize for fast installation.
  21147. fast_install=$enable_fast_install
  21148. # Shared archive member basename,for filename based shared library versioning on AIX.
  21149. shared_archive_member_spec=$shared_archive_member_spec
  21150. # Shell to use when invoking shell scripts.
  21151. SHELL=$lt_SHELL
  21152. # An echo program that protects backslashes.
  21153. ECHO=$lt_ECHO
  21154. # The PATH separator for the build system.
  21155. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21156. # The host system.
  21157. host_alias=$host_alias
  21158. host=$host
  21159. host_os=$host_os
  21160. # The build system.
  21161. build_alias=$build_alias
  21162. build=$build
  21163. build_os=$build_os
  21164. # A sed program that does not truncate output.
  21165. SED=$lt_SED
  21166. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21167. Xsed="\$SED -e 1s/^X//"
  21168. # A grep program that handles long lines.
  21169. GREP=$lt_GREP
  21170. # An ERE matcher.
  21171. EGREP=$lt_EGREP
  21172. # A literal string matcher.
  21173. FGREP=$lt_FGREP
  21174. # A BSD- or MS-compatible name lister.
  21175. NM=$lt_NM
  21176. # Whether we need soft or hard links.
  21177. LN_S=$lt_LN_S
  21178. # What is the maximum length of a command?
  21179. max_cmd_len=$max_cmd_len
  21180. # Object file suffix (normally "o").
  21181. objext=$ac_objext
  21182. # Executable file suffix (normally "").
  21183. exeext=$exeext
  21184. # whether the shell understands "unset".
  21185. lt_unset=$lt_unset
  21186. # turn spaces into newlines.
  21187. SP2NL=$lt_lt_SP2NL
  21188. # turn newlines into spaces.
  21189. NL2SP=$lt_lt_NL2SP
  21190. # convert \$build file names to \$host format.
  21191. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21192. # convert \$build files to toolchain format.
  21193. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21194. # A file(cmd) program that detects file types.
  21195. FILECMD=$lt_FILECMD
  21196. # Method to check whether dependent libraries are shared objects.
  21197. deplibs_check_method=$lt_deplibs_check_method
  21198. # Command to use when deplibs_check_method = "file_magic".
  21199. file_magic_cmd=$lt_file_magic_cmd
  21200. # How to find potential files when deplibs_check_method = "file_magic".
  21201. file_magic_glob=$lt_file_magic_glob
  21202. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21203. want_nocaseglob=$lt_want_nocaseglob
  21204. # Command to associate shared and link libraries.
  21205. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21206. # The archiver.
  21207. AR=$lt_AR
  21208. # Flags to create an archive (by configure).
  21209. lt_ar_flags=$lt_ar_flags
  21210. # Flags to create an archive.
  21211. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  21212. # How to feed a file listing to the archiver.
  21213. archiver_list_spec=$lt_archiver_list_spec
  21214. # A symbol stripping program.
  21215. STRIP=$lt_STRIP
  21216. # Commands used to install an old-style archive.
  21217. RANLIB=$lt_RANLIB
  21218. old_postinstall_cmds=$lt_old_postinstall_cmds
  21219. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21220. # Whether to use a lock for old archive extraction.
  21221. lock_old_archive_extraction=$lock_old_archive_extraction
  21222. # A C compiler.
  21223. LTCC=$lt_CC
  21224. # LTCC compiler flags.
  21225. LTCFLAGS=$lt_CFLAGS
  21226. # Take the output of nm and produce a listing of raw symbols and C names.
  21227. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21228. # Transform the output of nm in a proper C declaration.
  21229. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21230. # Transform the output of nm into a list of symbols to manually relocate.
  21231. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  21232. # Transform the output of nm in a C name address pair.
  21233. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21234. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21235. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21236. # The name lister interface.
  21237. nm_interface=$lt_lt_cv_nm_interface
  21238. # Specify filename containing input files for \$NM.
  21239. nm_file_list_spec=$lt_nm_file_list_spec
  21240. # The root where to search for dependent libraries,and where our libraries should be installed.
  21241. lt_sysroot=$lt_sysroot
  21242. # Command to truncate a binary pipe.
  21243. lt_truncate_bin=$lt_lt_cv_truncate_bin
  21244. # The name of the directory that contains temporary libtool files.
  21245. objdir=$objdir
  21246. # Used to examine libraries when file_magic_cmd begins with "file".
  21247. MAGIC_CMD=$MAGIC_CMD
  21248. # Must we lock files when doing compilation?
  21249. need_locks=$lt_need_locks
  21250. # Manifest tool.
  21251. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21252. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21253. DSYMUTIL=$lt_DSYMUTIL
  21254. # Tool to change global to local symbols on Mac OS X.
  21255. NMEDIT=$lt_NMEDIT
  21256. # Tool to manipulate fat objects and archives on Mac OS X.
  21257. LIPO=$lt_LIPO
  21258. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21259. OTOOL=$lt_OTOOL
  21260. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21261. OTOOL64=$lt_OTOOL64
  21262. # Old archive suffix (normally "a").
  21263. libext=$libext
  21264. # Shared library suffix (normally ".so").
  21265. shrext_cmds=$lt_shrext_cmds
  21266. # The commands to extract the exported symbol list from a shared archive.
  21267. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21268. # Variables whose values should be saved in libtool wrapper scripts and
  21269. # restored at link time.
  21270. variables_saved_for_relink=$lt_variables_saved_for_relink
  21271. # Do we need the "lib" prefix for modules?
  21272. need_lib_prefix=$need_lib_prefix
  21273. # Do we need a version for libraries?
  21274. need_version=$need_version
  21275. # Library versioning type.
  21276. version_type=$version_type
  21277. # Shared library runtime path variable.
  21278. runpath_var=$runpath_var
  21279. # Shared library path variable.
  21280. shlibpath_var=$shlibpath_var
  21281. # Is shlibpath searched before the hard-coded library search path?
  21282. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21283. # Format of library name prefix.
  21284. libname_spec=$lt_libname_spec
  21285. # List of archive names. First name is the real one, the rest are links.
  21286. # The last name is the one that the linker finds with -lNAME
  21287. library_names_spec=$lt_library_names_spec
  21288. # The coded name of the library, if different from the real name.
  21289. soname_spec=$lt_soname_spec
  21290. # Permission mode override for installation of shared libraries.
  21291. install_override_mode=$lt_install_override_mode
  21292. # Command to use after installation of a shared archive.
  21293. postinstall_cmds=$lt_postinstall_cmds
  21294. # Command to use after uninstallation of a shared archive.
  21295. postuninstall_cmds=$lt_postuninstall_cmds
  21296. # Commands used to finish a libtool library installation in a directory.
  21297. finish_cmds=$lt_finish_cmds
  21298. # As "finish_cmds", except a single script fragment to be evaled but
  21299. # not shown.
  21300. finish_eval=$lt_finish_eval
  21301. # Whether we should hardcode library paths into libraries.
  21302. hardcode_into_libs=$hardcode_into_libs
  21303. # Compile-time system search path for libraries.
  21304. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21305. # Detected run-time system search path for libraries.
  21306. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  21307. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  21308. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  21309. # Whether dlopen is supported.
  21310. dlopen_support=$enable_dlopen
  21311. # Whether dlopen of programs is supported.
  21312. dlopen_self=$enable_dlopen_self
  21313. # Whether dlopen of statically linked programs is supported.
  21314. dlopen_self_static=$enable_dlopen_self_static
  21315. # Commands to strip libraries.
  21316. old_striplib=$lt_old_striplib
  21317. striplib=$lt_striplib
  21318. # The linker used to build libraries.
  21319. LD=$lt_LD
  21320. # How to create reloadable object files.
  21321. reload_flag=$lt_reload_flag
  21322. reload_cmds=$lt_reload_cmds
  21323. # Commands used to build an old-style archive.
  21324. old_archive_cmds=$lt_old_archive_cmds
  21325. # A language specific compiler.
  21326. CC=$lt_compiler
  21327. # Is the compiler the GNU compiler?
  21328. with_gcc=$GCC
  21329. # Compiler flag to turn off builtin functions.
  21330. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21331. # Additional compiler flags for building library objects.
  21332. pic_flag=$lt_lt_prog_compiler_pic
  21333. # How to pass a linker flag through the compiler.
  21334. wl=$lt_lt_prog_compiler_wl
  21335. # Compiler flag to prevent dynamic linking.
  21336. link_static_flag=$lt_lt_prog_compiler_static
  21337. # Does compiler simultaneously support -c and -o options?
  21338. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21339. # Whether or not to add -lc for building shared libraries.
  21340. build_libtool_need_lc=$archive_cmds_need_lc
  21341. # Whether or not to disallow shared libs when runtime libs are static.
  21342. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21343. # Compiler flag to allow reflexive dlopens.
  21344. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21345. # Compiler flag to generate shared objects directly from archives.
  21346. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21347. # Whether the compiler copes with passing no objects directly.
  21348. compiler_needs_object=$lt_compiler_needs_object
  21349. # Create an old-style archive from a shared archive.
  21350. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21351. # Create a temporary old-style archive to link instead of a shared archive.
  21352. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21353. # Commands used to build a shared archive.
  21354. archive_cmds=$lt_archive_cmds
  21355. archive_expsym_cmds=$lt_archive_expsym_cmds
  21356. # Commands used to build a loadable module if different from building
  21357. # a shared archive.
  21358. module_cmds=$lt_module_cmds
  21359. module_expsym_cmds=$lt_module_expsym_cmds
  21360. # Whether we are building with GNU ld or not.
  21361. with_gnu_ld=$lt_with_gnu_ld
  21362. # Flag that allows shared libraries with undefined symbols to be built.
  21363. allow_undefined_flag=$lt_allow_undefined_flag
  21364. # Flag that enforces no undefined symbols.
  21365. no_undefined_flag=$lt_no_undefined_flag
  21366. # Flag to hardcode \$libdir into a binary during linking.
  21367. # This must work even if \$libdir does not exist
  21368. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21369. # Whether we need a single "-rpath" flag with a separated argument.
  21370. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21371. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21372. # DIR into the resulting binary.
  21373. hardcode_direct=$hardcode_direct
  21374. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21375. # DIR into the resulting binary and the resulting library dependency is
  21376. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  21377. # library is relocated.
  21378. hardcode_direct_absolute=$hardcode_direct_absolute
  21379. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21380. # into the resulting binary.
  21381. hardcode_minus_L=$hardcode_minus_L
  21382. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21383. # into the resulting binary.
  21384. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21385. # Set to "yes" if building a shared library automatically hardcodes DIR
  21386. # into the library and all subsequent libraries and executables linked
  21387. # against it.
  21388. hardcode_automatic=$hardcode_automatic
  21389. # Set to yes if linker adds runtime paths of dependent libraries
  21390. # to runtime path list.
  21391. inherit_rpath=$inherit_rpath
  21392. # Whether libtool must link a program against all its dependency libraries.
  21393. link_all_deplibs=$link_all_deplibs
  21394. # Set to "yes" if exported symbols are required.
  21395. always_export_symbols=$always_export_symbols
  21396. # The commands to list exported symbols.
  21397. export_symbols_cmds=$lt_export_symbols_cmds
  21398. # Symbols that should not be listed in the preloaded symbols.
  21399. exclude_expsyms=$lt_exclude_expsyms
  21400. # Symbols that must always be exported.
  21401. include_expsyms=$lt_include_expsyms
  21402. # Commands necessary for linking programs (against libraries) with templates.
  21403. prelink_cmds=$lt_prelink_cmds
  21404. # Commands necessary for finishing linking programs.
  21405. postlink_cmds=$lt_postlink_cmds
  21406. # Specify filename containing input files.
  21407. file_list_spec=$lt_file_list_spec
  21408. # How to hardcode a shared library path into an executable.
  21409. hardcode_action=$hardcode_action
  21410. # The directories searched by this compiler when creating a shared library.
  21411. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21412. # Dependencies to place before and after the objects being linked to
  21413. # create a shared library.
  21414. predep_objects=$lt_predep_objects
  21415. postdep_objects=$lt_postdep_objects
  21416. predeps=$lt_predeps
  21417. postdeps=$lt_postdeps
  21418. # The library search path used internally by the compiler when linking
  21419. # a shared library.
  21420. compiler_lib_search_path=$lt_compiler_lib_search_path
  21421. # ### END LIBTOOL CONFIG
  21422. _LT_EOF
  21423. cat <<'_LT_EOF' >> "$cfgfile"
  21424. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  21425. # func_munge_path_list VARIABLE PATH
  21426. # -----------------------------------
  21427. # VARIABLE is name of variable containing _space_ separated list of
  21428. # directories to be munged by the contents of PATH, which is string
  21429. # having a format:
  21430. # "DIR[:DIR]:"
  21431. # string "DIR[ DIR]" will be prepended to VARIABLE
  21432. # ":DIR[:DIR]"
  21433. # string "DIR[ DIR]" will be appended to VARIABLE
  21434. # "DIRP[:DIRP]::[DIRA:]DIRA"
  21435. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  21436. # "DIRA[ DIRA]" will be appended to VARIABLE
  21437. # "DIR[:DIR]"
  21438. # VARIABLE will be replaced by "DIR[ DIR]"
  21439. func_munge_path_list ()
  21440. {
  21441. case x$2 in
  21442. x)
  21443. ;;
  21444. *:)
  21445. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  21446. ;;
  21447. x:*)
  21448. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  21449. ;;
  21450. *::*)
  21451. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  21452. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  21453. ;;
  21454. *)
  21455. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  21456. ;;
  21457. esac
  21458. }
  21459. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  21460. func_cc_basename ()
  21461. {
  21462. for cc_temp in $*""; do
  21463. case $cc_temp in
  21464. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21465. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21466. \-*) ;;
  21467. *) break;;
  21468. esac
  21469. done
  21470. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  21471. }
  21472. # ### END FUNCTIONS SHARED WITH CONFIGURE
  21473. _LT_EOF
  21474. case $host_os in
  21475. aix3*)
  21476. cat <<\_LT_EOF >> "$cfgfile"
  21477. # AIX sometimes has problems with the GCC collect2 program. For some
  21478. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21479. # vanish in a puff of smoke.
  21480. if test set != "${COLLECT_NAMES+set}"; then
  21481. COLLECT_NAMES=
  21482. export COLLECT_NAMES
  21483. fi
  21484. _LT_EOF
  21485. ;;
  21486. esac
  21487. ltmain=$ac_aux_dir/ltmain.sh
  21488. # We use sed instead of cat because bash on DJGPP gets confused if
  21489. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21490. # text mode, it properly converts lines to CR/LF. This bash problem
  21491. # is reportedly fixed, but why not run on old versions too?
  21492. $SED '$q' "$ltmain" >> "$cfgfile" \
  21493. || (rm -f "$cfgfile"; exit 1)
  21494. mv -f "$cfgfile" "$ofile" ||
  21495. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21496. chmod +x "$ofile"
  21497. cat <<_LT_EOF >> "$ofile"
  21498. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21499. # The linker used to build libraries.
  21500. LD=$lt_LD_CXX
  21501. # How to create reloadable object files.
  21502. reload_flag=$lt_reload_flag_CXX
  21503. reload_cmds=$lt_reload_cmds_CXX
  21504. # Commands used to build an old-style archive.
  21505. old_archive_cmds=$lt_old_archive_cmds_CXX
  21506. # A language specific compiler.
  21507. CC=$lt_compiler_CXX
  21508. # Is the compiler the GNU compiler?
  21509. with_gcc=$GCC_CXX
  21510. # Compiler flag to turn off builtin functions.
  21511. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21512. # Additional compiler flags for building library objects.
  21513. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21514. # How to pass a linker flag through the compiler.
  21515. wl=$lt_lt_prog_compiler_wl_CXX
  21516. # Compiler flag to prevent dynamic linking.
  21517. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21518. # Does compiler simultaneously support -c and -o options?
  21519. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21520. # Whether or not to add -lc for building shared libraries.
  21521. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21522. # Whether or not to disallow shared libs when runtime libs are static.
  21523. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21524. # Compiler flag to allow reflexive dlopens.
  21525. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21526. # Compiler flag to generate shared objects directly from archives.
  21527. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21528. # Whether the compiler copes with passing no objects directly.
  21529. compiler_needs_object=$lt_compiler_needs_object_CXX
  21530. # Create an old-style archive from a shared archive.
  21531. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21532. # Create a temporary old-style archive to link instead of a shared archive.
  21533. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21534. # Commands used to build a shared archive.
  21535. archive_cmds=$lt_archive_cmds_CXX
  21536. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21537. # Commands used to build a loadable module if different from building
  21538. # a shared archive.
  21539. module_cmds=$lt_module_cmds_CXX
  21540. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21541. # Whether we are building with GNU ld or not.
  21542. with_gnu_ld=$lt_with_gnu_ld_CXX
  21543. # Flag that allows shared libraries with undefined symbols to be built.
  21544. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21545. # Flag that enforces no undefined symbols.
  21546. no_undefined_flag=$lt_no_undefined_flag_CXX
  21547. # Flag to hardcode \$libdir into a binary during linking.
  21548. # This must work even if \$libdir does not exist
  21549. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21550. # Whether we need a single "-rpath" flag with a separated argument.
  21551. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21552. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21553. # DIR into the resulting binary.
  21554. hardcode_direct=$hardcode_direct_CXX
  21555. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21556. # DIR into the resulting binary and the resulting library dependency is
  21557. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  21558. # library is relocated.
  21559. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21560. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21561. # into the resulting binary.
  21562. hardcode_minus_L=$hardcode_minus_L_CXX
  21563. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21564. # into the resulting binary.
  21565. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21566. # Set to "yes" if building a shared library automatically hardcodes DIR
  21567. # into the library and all subsequent libraries and executables linked
  21568. # against it.
  21569. hardcode_automatic=$hardcode_automatic_CXX
  21570. # Set to yes if linker adds runtime paths of dependent libraries
  21571. # to runtime path list.
  21572. inherit_rpath=$inherit_rpath_CXX
  21573. # Whether libtool must link a program against all its dependency libraries.
  21574. link_all_deplibs=$link_all_deplibs_CXX
  21575. # Set to "yes" if exported symbols are required.
  21576. always_export_symbols=$always_export_symbols_CXX
  21577. # The commands to list exported symbols.
  21578. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21579. # Symbols that should not be listed in the preloaded symbols.
  21580. exclude_expsyms=$lt_exclude_expsyms_CXX
  21581. # Symbols that must always be exported.
  21582. include_expsyms=$lt_include_expsyms_CXX
  21583. # Commands necessary for linking programs (against libraries) with templates.
  21584. prelink_cmds=$lt_prelink_cmds_CXX
  21585. # Commands necessary for finishing linking programs.
  21586. postlink_cmds=$lt_postlink_cmds_CXX
  21587. # Specify filename containing input files.
  21588. file_list_spec=$lt_file_list_spec_CXX
  21589. # How to hardcode a shared library path into an executable.
  21590. hardcode_action=$hardcode_action_CXX
  21591. # The directories searched by this compiler when creating a shared library.
  21592. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21593. # Dependencies to place before and after the objects being linked to
  21594. # create a shared library.
  21595. predep_objects=$lt_predep_objects_CXX
  21596. postdep_objects=$lt_postdep_objects_CXX
  21597. predeps=$lt_predeps_CXX
  21598. postdeps=$lt_postdeps_CXX
  21599. # The library search path used internally by the compiler when linking
  21600. # a shared library.
  21601. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21602. # ### END LIBTOOL TAG CONFIG: CXX
  21603. _LT_EOF
  21604. ;;
  21605. "run.sh":F) chmod +x run.sh ;;
  21606. esac
  21607. done # for ac_tag
  21608. as_fn_exit 0
  21609. _ACEOF
  21610. ac_clean_files=$ac_clean_files_save
  21611. test $ac_write_fail = 0 ||
  21612. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21613. # configure is writing to config.log, and then calls config.status.
  21614. # config.status does its own redirection, appending to config.log.
  21615. # Unfortunately, on DOS this fails, as config.log is still kept open
  21616. # by configure, so config.status won't be able to write to it; its
  21617. # output is simply discarded. So we exec the FD to /dev/null,
  21618. # effectively closing config.log, so it can be properly (re)opened and
  21619. # appended to by config.status. When coming back to configure, we
  21620. # need to make the FD available again.
  21621. if test "$no_create" != yes; then
  21622. ac_cs_success=:
  21623. ac_config_status_args=
  21624. test "$silent" = yes &&
  21625. ac_config_status_args="$ac_config_status_args --quiet"
  21626. exec 5>/dev/null
  21627. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21628. exec 5>>config.log
  21629. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21630. # would make configure fail if this is the last instruction.
  21631. $ac_cs_success || as_fn_exit 1
  21632. fi
  21633. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21635. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21636. fi
  21637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
  21638. Automake flags (can be overridden by user flags):
  21639. AM_CPPFLAGS: ${AM_CPPFLAGS}
  21640. AM_CFLAGS: ${AM_CFLAGS}
  21641. AM_CXXFLAGS: ${AM_CXXFLAGS}
  21642. AM_LDFLAGS: ${AM_LDFLAGS}
  21643. User flags (override Automake flags on conflict):
  21644. CPPFLAGS: ${CPPFLAGS}
  21645. CFLAGS: ${CFLAGS}
  21646. CXXFLAGS: ${CXXFLAGS}
  21647. LDFLAGS: ${LDFLAGS}" >&5
  21648. printf "%s\n" "$as_me:
  21649. Automake flags (can be overridden by user flags):
  21650. AM_CPPFLAGS: ${AM_CPPFLAGS}
  21651. AM_CFLAGS: ${AM_CFLAGS}
  21652. AM_CXXFLAGS: ${AM_CXXFLAGS}
  21653. AM_LDFLAGS: ${AM_LDFLAGS}
  21654. User flags (override Automake flags on conflict):
  21655. CPPFLAGS: ${CPPFLAGS}
  21656. CFLAGS: ${CFLAGS}
  21657. CXXFLAGS: ${CXXFLAGS}
  21658. LDFLAGS: ${LDFLAGS}" >&6;}